This release is a pre-release and may not be stable for production use.
🧐 What is Nbox?
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
🤷Why NimbleBox
- Write and execute code in Python
- Document your code that supports mathematical equations
- Create/Upload/Share notebooks
- Import notebooks from your local machine
- Import/Publish notebooks from/to GitHub
- Import external datasets (e.g. from Kaggle)
- Integrate PyTorch, TensorFlow, Keras, OpenCV
- Share your projects
- Collaborate with your team
🎚 Features
🏗️ Freedom To Build
🦾 Automate with Ease
🚀 Intuitive Dashboard
🏁 Get Started
Install the package from pipy:
pip install nbox
For convinience you should add nbox to your path by setting up an alias. Throughout the rest of the documentation we will be using nbx as the CLI:
alias nbx="python3 -m nbox"
When loading nbox for the first time, it will prompt you the username and password and create a secrets file at ~/.nbx/secrets.json. This file then contains all the information that you don’t have to fetch manually again.
APIs
Our APIs are deep, user functions are kept to minimum and most relavant. This documentation contains the full spec of everything, but here’s all the APIs you need to know:
nbox
├── Model # Framework agnostic Model
│ ├── __call__
│ ├── deploy
│ ├── train_on_instance (WIP)
│ └── train_on_jobs (WIP)
├── Operators # How jobs are combinations of operators
│ ├── __call__
│ └── deploy
├── Jobs # For controlling all your jobs
│ ├── logs # stream logs right on your terminal
│ └── trigger # manually trigger a job
└── Instance
├── __call__ # Run any command on the instance
└── mv (WIP) # Move files to and from NBX-Build
NBX-Jobs and NBX-Deploy
Create a simple folder:
nbx jobs new moonshot
Run any Batch Process
Add the following code to foobar.py:
from nbox import operator, Operator
from nbox.lib.shell import ShellCommand
# define your function and wrap it as an operator
@operator()
def foo(x: Dict):
return "bar"
# or use OOPs like torch, etc.
class MyJob(Operator):
def __init__(self):
super().__init__()
self.foo = foo
self.shell = ShellCommand("echo 'hello {text}'")
def forward(self):
text = self.foo()
self.shell(text = text)
How to get help?
Join our discord and someone from our community or engineering team will respond!
🔖Read our Blog.
🧩 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.42rc13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nbox-0.9.42rc13.tar.gz | 141.0 kB | Without provenance | Details for nbox-0.9.42rc13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nbox-0.9.42rc13-py3-none-any.whl | Python 3 | none | any | Details for nbox-0.9.42rc13-py3-none-any.whl |
Total release size: 300.5 kB
Release files / nbox-0.9.42rc13.tar.gz
| Download URL | nbox-0.9.42rc13.tar.gz |
|---|---|
| Size | 141.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3dace6ebdf14156f2871bb6068b0b6111c3c7cd2f5cca4753d86f3fa14e3bf1
|
|
BLAKE2b-256 checksum How to use checksums |
dc240412d7b8d7a6c3adc43d9b570fb5a9c7cce5f894a99622f2f06430626caf
|
| 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.42rc13-py3-none-any.whl
| Download URL | nbox-0.9.42rc13-py3-none-any.whl |
|---|---|
| Size | 159.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fee102daf18197c1ff0dfd27916dde6d230b6ce70f2ce929e2986e74d603d15
|
|
BLAKE2b-256 checksum How to use checksums |
3b2074b52374c9d54b13b8bf8364240ff0391d54ec49f9fe368c6b462b3a77db
|
| 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.42rc13
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.