nyckel 0.4.22
pip install nyckel
Latest version
Released:
Python package for the Nyckel API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Oscar Beijbom
- Requires: Python >=3.8
Classifiers
- License
- Operating System
- Programming Language
Project description
Nyckel
Python package for www.nyckel.com
Docs
Visit our Docs pages
Quickstart
from nyckel import Credentials, TextClassificationFunction
# Get credentials from https://www.nyckel.com/console/keys
credentials = Credentials(client_id=..., client_secret=...)
# Create a new text classification function.
func = TextClassificationFunction.create(credentials=credentials, name="IsToxic")
# Provide a few examples.
func.create_samples([
("This is a nice comment", "not toxic"),
("Hello friend", "not toxic"),
("This is a bad comment", "toxic"),
("Who is this? Go away!", "toxic"),
])
# Nyckel trains and deploys your model in a few seconds...
# ...and you can start classifying text right away!
# Classify a new piece of text.
predictions = func.invoke(["New text"])
Contributors
Setup dev environment
pip install -r requirements.txt
Building docs locally
Install additional packages
pip install -r docs/requirements.txt
Run
mkdocs build
Testing
Testing locally requires a local server running the API. CI will run tests against a staging environment.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Oscar Beijbom
- Requires: Python >=3.8
Classifiers
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nyckel-0.4.22.tar.gz
.
File metadata
- Download URL: nyckel-0.4.22.tar.gz
- Upload date:
- Size: 194.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 154e7995470338de09913fdc5abda12abb063cc2d11795a60d953c43a080f653 |
|
MD5 | c60cbe627c661145a17700f50ce67d8a |
|
BLAKE2b-256 | 0cd3688cbba09c62d80228b3a54266257b9078509b11f942083409d1568df697 |
File details
Details for the file nyckel-0.4.22-py3-none-any.whl
.
File metadata
- Download URL: nyckel-0.4.22-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58c0e3acf46a0ccf290bac389ba170b34a3614b859194fb2daa251ac016b9874 |
|
MD5 | f416c70581adefde5798f9f8ec6c4aac |
|
BLAKE2b-256 | b543ed749c484b21db9e61d00e1842c7733e60bfaa28dfafb2ca3ba8944d2e60 |