Skip to main content

Fully type-hinted Turso Platform API wrapper for Python.

Reason this release was yanked:

Non-functional

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.

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

Uploaded Source

Built Distribution

tursopy-0.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tursopy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 905a35eacc6270c2782f10832211350d421a8805596f4ead4df69f47c8c07714
MD5 4df6f9cf0f4d731b9cff621f59e47990
BLAKE2b-256 d685b0f0c1feb7989e42610f58bdb7f1080bf6a3f388731eda7879ccd28db9e0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tursopy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca743d079732ad179860c15dabc5088cca515a015536eb5bde59e794f2b85667
MD5 dc25089fbf1433aa60ba19e507c55c7f
BLAKE2b-256 eb874da9e962f040b0d4e84c2b4ff9390d4e9285fe11cf0fcb7b141e7f3f9c96

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