Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

🏖️ Nbox

nbox is NimbleBox.ai's official SDK.

The entire purpose of this package is to make using ML 🥶.

pip install nbox

🔥 Usage

nbox provides first class support API for all NimbleBox.ai infrastructure (NBX-Build, Jobs, Deploy) and services (NBX-Workspaces) components. Write jobs using nbox.Operators:

from nbox import Operator
from nbox.nbxlib.ops import Magic

# define a class object
weekly_trainer: Operator = Magic()

# call your operators
weekly_trainer(
  pass_values = "directly",
)

# confident? deploy it to your cloud
weekly_trainer.deploy(
  job_id_or_name = "magic_jobs",
  schedule = Schedule(4, 30, ['fri']) # schedule like humans
)

Deploy your machine learning or statistical models:

from nbox import Model
from transformers import AutoModelForSequenceClassification, AutoTokenizer

# define your pre and post processing functions
def pre(x: Dict):
  return AutoTokenizer(**x)

# load your classifier with functions
model = AutoModelForSequenceClassification.from_pretrained("distill-bert")
classifier = Model(model, pre = pre)

# call your model
classifier(f"Is this a good picture?")

# get full control on exporting it
spec = classifier.torch_to_onnx(
  TorchToOnnx(...)
)

# confident? deploy it your cloud
url, key = classifier.deploy(
  spec, deployment_id_or_name = "classification"
)

# use it anywhere
pred = requests.post(
  url,
  json = {
    "text": f"Is this a good picture?"
  },
  header = {"Authorization": f"Bearer {key}"}
).json()

🧩 License

The code in thist repo is licensed as Apache License 2.0. Please check for individual repositories for licenses.

Metadata

Release files for nbox 0.9.14rc14

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

Source distribution (sdist)

Source distribution for nbox 0.9.14rc14
File Size Uploaded Provenance Actions
nbox-0.9.14rc14.tar.gz 115.7 kB Without provenance Details for nbox-0.9.14rc14.tar.gz

Built distribution (wheel)

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

Total release size: 242.8 kB

Release files / nbox-0.9.14rc14.tar.gz

Download URL nbox-0.9.14rc14.tar.gz
Size 115.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6698a6fbb654edcf28e8179c40f08713fb7e2760c84eba37753f58bae2ba41b5
BLAKE2b-256 checksum
How to use checksums
102262caa011cf07b710a80047d23604c9b09a64c464ddf75df81c3e5d38299e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Darwin/21.1.0

Release files / nbox-0.9.14rc14-py3-none-any.whl

Download URL nbox-0.9.14rc14-py3-none-any.whl
Size 127.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4505a6aea67c99adf344aa1de9e25427c3274b62efee435e9df7c391d869275b
BLAKE2b-256 checksum
How to use checksums
32156bb73c05f071e0a1214d626a0bb60d82b401d8f5c6fddb7440dd4e8caab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.12 Darwin/21.1.0

Security for nbox 0.9.14rc14

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
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