Skip to main content

A Python SDK for TensorDock API

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tensordock-0.1.12.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

tensordock-0.1.12-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file tensordock-0.1.12.tar.gz.

File metadata

  • Download URL: tensordock-0.1.12.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for tensordock-0.1.12.tar.gz
Algorithm Hash digest
SHA256 38ae0c842a1c23299e441cb6f684c254e17ade7b1c057f84dc4bf9adc17d7dea
MD5 6ca60a6be4b28debf018737d2c49df40
BLAKE2b-256 69d7f7e842d31a5fe277b1de7595628b4bebb08a344b32882e299514014db35e

See more details on using hashes here.

File details

Details for the file tensordock-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: tensordock-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for tensordock-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d4c1df7277986744c73e6cc7e9141c8bb0dd590df8e8d45fb740de696c861b7d
MD5 45c9edddd615fa3f03114af0fa49c22f
BLAKE2b-256 4fe0bef360928b3884f3440cfa6787994c9cf30d39b0c46971cd261249cd8af9

See more details on using hashes here.

Supported by

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