Skip to main content

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.

Metadata

Release files for tursopy 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tursopy 0.0.3
File Size Uploaded
tursopy-0.0.3.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tursopy 0.0.3
File Interpreter ABI Platform
tursopy-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / tursopy-0.0.3.tar.gz

Download URL tursopy-0.0.3.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
79c673e8f951ed20dbb7d424d8048014a46625b7d655a7a0b13de34cb6411e7a
BLAKE2b-256 checksum
How to use checksums
93789b2b48e0f9130f7482a94e63e829e5a1399840ee012e1291ac5bfd2b2c63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / tursopy-0.0.3-py3-none-any.whl

Download URL tursopy-0.0.3-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
410b9857c12d760cca0857867e4ad2197fdb20cc6980cb0adb001d112ae261be
BLAKE2b-256 checksum
How to use checksums
ba0913e9750b65807e05e085889c124bc29a500a869e2a3a450b7ae7022ef59c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page