Skip to main content

Nyckel

Python package for www.nyckel.com

build test docs PyPi version

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

Create a python3.11 venv and run:

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.

  1. Ensure the local server is running
  2. Ensure the nyckel package is installed in the venv using pip install -e .
  3. Run pytest from the root directory

Deploying

One time

  1. pip install hatch

Each time

hatch publish

Metadata

Release files for nyckel 0.4.23

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nyckel 0.4.23
File Size Uploaded Provenance Actions
nyckel-0.4.23.tar.gz 194.5 kB Without provenance Details for nyckel-0.4.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nyckel 0.4.23
File Interpreter ABI Platform Actions
nyckel-0.4.23-py3-none-any.whl Python 3 none any Details for nyckel-0.4.23-py3-none-any.whl

Total release size: 231.9 kB

Release files / nyckel-0.4.23.tar.gz

Download URL nyckel-0.4.23.tar.gz
Size 194.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d257255355b1dfc5248195ea0592923cf054d71ab840ce0d35e5df4d4a218fb5
BLAKE2b-256 checksum
How to use checksums
b495f9c3fa62c3b05230e43d1aad7bafb5ccea7de25f5f5083e89dda0fa0749b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Release files / nyckel-0.4.23-py3-none-any.whl

Download URL nyckel-0.4.23-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
422bd0f9760ce70f6994526d5b838258167cbc9cd6b49dd07524ff72b57315d1
BLAKE2b-256 checksum
How to use checksums
5c49806a2a28efc86b4c17ab626454aa513e6b520baf6eed354f20b124170ffb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.24

Security for nyckel 0.4.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.23 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page