A globally distributed container runtime
Project description
nebulous-py
A python library for the Nebulous runtime
Installation
pip install nebu
Usage
from nebu import Container, V1EnvVar, V1ResourceMeta
container = Container(
metadata=V1ResourceMeta(
name="pytorch-example",
namespace="test",
),
image="pytorch/pytorch:latest",
platform="runpod",
env=[V1EnvVar(name="MY_ENV_VAR", value="my-value")],
command="nvidia-smi",
accelerators=["1:A100_SXM"],
proxy_port=8080,
)
while container.status.status.lower() != "running":
print(f"Container '{container.metadata.name}' is not running, it is '{container.status.status}', waiting...")
time.sleep(1)
print(f"Container '{container.metadata.name}' is running")
print(f"You can access the container at {container.status.tailnet_url}")
Contributing
Please open an issue or a PR to contribute to the project.
Development
make test
Project details
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
nebu-0.1.0.tar.gz
(12.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nebu-0.1.0-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file nebu-0.1.0.tar.gz.
File metadata
- Download URL: nebu-0.1.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58b630d9a5a738495388cb2ea81ee0751eaa1c3d9fe0338c51f80bec3dc1e6e3
|
|
| MD5 |
b6468dccc69453b527ce659c9443071a
|
|
| BLAKE2b-256 |
4e3ea7826933ae0e704ee6e4e586be79294ea00fe3b7eb9213741c8cc001c023
|
File details
Details for the file nebu-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nebu-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faa65d6eb06a1dd05ce3f648a6082d0e1f4b3721e52b8fa335017cfeab72c56d
|
|
| MD5 |
d58ad4294bc706d0726b5777d98c2bf1
|
|
| BLAKE2b-256 |
d6719edf3c5219b3ad9edae0413fdd036dd00906ee8de139ab7f308ef052cb83
|