Unofficial TensorDock Python SDK
This is an unofficial Python SDK for interacting with the TensorDock Marketplace API. It provides a convenient way to manage virtual machines, containers, and billing information programmatically. Please note that this SDK is not officially supported or endorsed by TensorDock.
Installation
You can install this TensorDock Python SDK using pip:
pip install tensordock
Configuration
To use the SDK, you'll need to obtain an API key and token from the TensorDock marketplace. You can get these from your TensorDock dashboard at https://marketplace.tensordock.com/api
Usage
Here's a quick example of how to use the SDK:
from tensordock import TensorDockAPI
# Initialize the API client
api = TensorDockAPI(api_key='your_api_key', api_token='your_api_token')
# List your virtual machines
vms = api.virtual_machines.list_vms()
print(vms)
# Deploy a new virtual machine
new_vm = api.virtual_machines.deploy_vm(
name="My New VM",
gpu_count=1,
gpu_model="rtx3080-pcie-10gb",
vcpus=4,
ram=16,
storage=100,
operating_system="Ubuntu 20.04 LTS"
)
print(new_vm)
Features
This unofficial SDK aims to provide access to the following TensorDock API endpoints:
- Authorization
- Servers
- Virtual Machines
- Containers
- Billing
For a full list of features and their implementations, please refer to our detailed documentation.
Documentation
For detailed documentation on each method, please refer to our DOCS.md file. For official API documentation, please visit the TensorDock API Documentation.
Contributing
Contributions to this unofficial TensorDock Python SDK are welcome! Please feel free to submit issues, fork the repository and send pull requests. As this is an unofficial project, community involvement is crucial for its maintenance and improvement.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues related to this unofficial SDK, please open an issue on our GitHub repository.
For questions about the TensorDock API itself or for official support, please contact TensorDock directly through their official channels.
Acknowledgements
This project is based on the public API documentation provided by TensorDock. We are grateful for their detailed documentation which makes this unofficial SDK possible.
Metadata
Release files for tensordock 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tensordock-0.1.13.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tensordock-0.1.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / tensordock-0.1.13.tar.gz
| Download URL | tensordock-0.1.13.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8e37dfa36231cbe2799d634f4378d52aedc3e41e25c2b9ae6d60c6efa448cae
|
|
BLAKE2b-256 checksum How to use checksums |
d6e30bf7ffdaa03a461686e89998584fe0bf69261e842d3c0f069b88a2257051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.7
|
Release files / tensordock-0.1.13-py3-none-any.whl
| Download URL | tensordock-0.1.13-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fa50b49f8f77f8b5bd033aa0084e4d8701e65cdc7880c183b6a0302713a52a5
|
|
BLAKE2b-256 checksum How to use checksums |
bf0da04baa63acceb41484b8096ae6ca96f172676dd314207322ce12c93cbc5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.7
|