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.2.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tursopy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 870788429bb1f6235c5680456836633ae5b4005a1988c98e05deec758c8f796e
MD5 6b84549e0739649f99a30cb5b2897633
BLAKE2b-256 e28ecfe3c45544259cd2959a9a16f0590289bc7a03792dcce3cc1127e27bda9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tursopy-0.0.2-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.2

File hashes

Hashes for tursopy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17b3b85c09c03c481765c3ebd2f77bc31bd9b7cf50f075c375e838661a47c27e
MD5 3b39ab9542fd3147e990a680fcdbbb99
BLAKE2b-256 99f94b31b6c0d472016b3f325f3990eb1b0a7d2a080b77e9d71ce6e931f8051a

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