Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nebu-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for nebu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58b630d9a5a738495388cb2ea81ee0751eaa1c3d9fe0338c51f80bec3dc1e6e3
MD5 b6468dccc69453b527ce659c9443071a
BLAKE2b-256 4e3ea7826933ae0e704ee6e4e586be79294ea00fe3b7eb9213741c8cc001c023

See more details on using hashes here.

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

Hashes for nebu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 faa65d6eb06a1dd05ce3f648a6082d0e1f4b3721e52b8fa335017cfeab72c56d
MD5 d58ad4294bc706d0726b5777d98c2bf1
BLAKE2b-256 d6719edf3c5219b3ad9edae0413fdd036dd00906ee8de139ab7f308ef052cb83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page