Skip to main content

Fully type-hinted Turso Platform API wrapper for Python.

Project description

TursoPy

Fully type-hinted Turso Platform API wrapper for Python.

Test


Documentation: https://mauricekuenicke.github.io/tursopy/

Source Code: https://github.com/MauriceKuenicke/tursopy


⚠️ Important

This project is in early development and currently not safe for use in a production environment. Use at your own risk.

Installation

pip install tursopy

Example Usage

from tursopy import TursoClient

client = TursoClient()
new_api_token = client.create_platform_api_token(name="my-test-token")  # Create a new platform token
client.revoke_token(name=new_api_token.name) # Revoke it again

# You can also create a new database
new_db = client.db.create_database(org_name="my-org", name="delete-me-later")
print("New database:", new_db)

# List available databases in your organization or for your user
print(client.db.list_databases(org_name="my-org"))
client.db.delete_database(org_name="my-org", db_name=new_db.Name) # Delete your database again

Initial Platform API Token

TursoPy assumes a platform api token to be available when running the first time. Please refer to the official documentation to find out how to generate your token.

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

tursopy-0.0.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

tursopy-0.0.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file tursopy-0.0.3.tar.gz.

File metadata

  • Download URL: tursopy-0.0.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tursopy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 79c673e8f951ed20dbb7d424d8048014a46625b7d655a7a0b13de34cb6411e7a
MD5 d6a4dc7b8124c25594f1e4f014dcc41c
BLAKE2b-256 93789b2b48e0f9130f7482a94e63e829e5a1399840ee012e1291ac5bfd2b2c63

See more details on using hashes here.

File details

Details for the file tursopy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tursopy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tursopy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 410b9857c12d760cca0857867e4ad2197fdb20cc6980cb0adb001d112ae261be
MD5 661e20094ff667a4c7771e2db4a5385c
BLAKE2b-256 ba0913e9750b65807e05e085889c124bc29a500a869e2a3a450b7ae7022ef59c

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