Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

vastai-client

Build Status Python Version wemake-python-styleguide

Python client for the Vast.ai cloud rent service. This package provides a Python client, that allows to list, create, destroy GPU instances programmaticaly, using Python.

There is an official Vast.ai CLI, however it can only be used through the command line.

Installation

pip install vastai-client

Example

With the package you can list offers and run selected machines:

from vastai_client import VastClient

client = VastClient(api_key=<your_api_key>)
available_machines = client.search_offers(search_query='reliability > 0.98 num_gpus=1 gpu_name=RTX_3090', sort_order='dph-')
print(available_machines)

selected_machine = available_machines[0]
client.create_instance(id=selected_machine.id, image='pytorch/pytorch', ssh=True)

For more details, watch documentation.

License

MIT

Credits

This project was generated with wemake-python-package. Current template version is: 9899cb192f754a566da703614227e6d63227b933. See what is updated since then.

Metadata

Release files for vastai-client 0.1.1

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

Source distribution (sdist)

Source distribution for vastai-client 0.1.1
File Size Uploaded Provenance Actions
vastai_client-0.1.1.tar.gz 13.4 kB Without provenance Details for vastai_client-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vastai-client 0.1.1
File Interpreter ABI Platform Actions
vastai_client-0.1.1-py3-none-any.whl Python 3 none any Details for vastai_client-0.1.1-py3-none-any.whl

Total release size: 26.8 kB

Release files / vastai_client-0.1.1.tar.gz

Download URL vastai_client-0.1.1.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f042a58d0ad264398440a279248b8ea136f863864934b82ceab1156f62eb2b59
BLAKE2b-256 checksum
How to use checksums
a335b2d4dcab03386b3d9080227930ffe075e0287b728e96129f8fe5eea29fc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / vastai_client-0.1.1-py3-none-any.whl

Download URL vastai_client-0.1.1-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1da805f36c1ea4de46830f4055f269dbbd89ce4fdbfa5fef1d44fdaeb24a18d5
BLAKE2b-256 checksum
How to use checksums
d410b2c3a989044e2e36304ea7b26213f9a57b2317ef4b472dd2b498f781c509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for vastai-client 0.1.1

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