Skip to main content
Pre-release

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

PyPI - Python Version Downloads GitHub

🧐 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

Build Landing Page (2)

🦾 Automate with Ease

Jobs Landing Page

🚀 Intuitive Dashboard

Deploy Landing Page

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

Release files for nbox 0.9.42rc10

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.42rc10
File Size Uploaded
nbox-0.9.42rc10.tar.gz 141.0 kB Details

Built distribution (wheel)

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

Total release size: 300.5 kB

Release files / nbox-0.9.42rc10.tar.gz

Download URL nbox-0.9.42rc10.tar.gz
Size 141.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9be0c8441eb99bebfc1d748cdce6865b6b0a5aed9756cfee29eb6edd098085d6
BLAKE2b-256 checksum
How to use checksums
52f158ee5d54ff22806ae35a3537fffd74d3ee8262001d1b6bde87c01f935751
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.42rc10-py3-none-any.whl

Download URL nbox-0.9.42rc10-py3-none-any.whl
Size 159.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bf356396164e9227a08466ebacf67e1fce820e9151fc9e1bde27e082a3398a8
BLAKE2b-256 checksum
How to use checksums
2f57a151a8af99e5ca5a64be0ce6d1caef4533e9cd250f4f3a9f730c3f7db121
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 history Release notifications | RSS feed

0.12.1

2 release files

0.12.0

2 release files

0.11.4

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.6

2 release files

0.10.4

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.49

2 release files

0.9.48

2 release files

0.9.47

2 release files

0.9.46

2 release files

0.9.45

2 release files

0.9.44

2 release files

0.9.43

2 release files

0.9.42

2 release files

This release

0.9.42rc10 This release

2 release files

0.9.39

2 release files

0.9.38

2 release files

0.9.37

2 release files

0.9.36

2 release files

0.9.35

2 release files

0.9.34

2 release files

0.9.33

2 release files

0.9.32

2 release files

0.9.31

2 release files

0.9.30

2 release files

0.9.29

2 release files

0.9.28

2 release files

0.9.27

2 release files

0.9.26

2 release files

0.9.25

2 release files

0.9.24

2 release files

0.9.23

2 release files

0.9.22

2 release files

0.9.21

2 release files

0.9.20

2 release files

0.9.16

2 release files

0.9.15

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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