Skip to main content

Turso is a work-in-progress, in-process OLTP database management system, compatible with SQLite.

Project description

Turso Database for Python

PyPI

Chat with other users of Turso on Discord


About

⚠️ Warning: This software is in BETA. It may still contain bugs and unexpected behavior. Use caution with production data and ensure you have backups.

Features

  • SQLite compatible: SQLite query language and file format support (status).
  • In-process: No network overhead, runs directly in your Python process
  • Cross-platform: Supports Linux, macOS, Windows

Installation

uv pip install pyturso

Getting Started

import turso

# Create/open a database
# con = turso.connect(":memory:") # For memory mode
con = turso.connect("sqlite.db")
cur = con.cursor()

# Create a table
cur.execute("""
  CREATE TABLE IF NOT EXISTS users (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    username TEXT NOT NULL
  )
""")
con.commit()

# Insert data
cur.execute("INSERT INTO users (username) VALUES (?)", ("alice",))
cur.execute("INSERT INTO users (username) VALUES (?)", ("bob",))
con.commit()

# Query data
res = cur.execute("SELECT * FROM users")
users = res.fetchall()
print(users)
# Output: [(1, 'alice'), (2, 'bob')]

License

This project is licensed under the MIT license.

Support

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pyturso-0.4.0rc7.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyturso-0.4.0rc7-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc7-cp314-cp314-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyturso-0.4.0rc7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc7-cp313-cp313-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyturso-0.4.0rc7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc7-cp312-cp312-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyturso-0.4.0rc7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc7-cp311-cp311-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyturso-0.4.0rc7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc7-cp310-cp310-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyturso-0.4.0rc7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file pyturso-0.4.0rc7.tar.gz.

File metadata

  • Download URL: pyturso-0.4.0rc7.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for pyturso-0.4.0rc7.tar.gz
Algorithm Hash digest
SHA256 a55ba6825fae05149220124faab00b366f11af3fa0eb32cdd2e2885f9e2417b9
MD5 77938de9d1e56fe4b5d2657296cf2859
BLAKE2b-256 e1f42895408001953c6b429778fd9d55b88cf167c54c7e286feab6df37842663

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f949e7f4ffb712291f09330cebd30dc9058520ac9c2bbad538db617a892b9f88
MD5 01f7481db2c9bfbdb2e35c47a3347bc4
BLAKE2b-256 9ce5d3e4286cb95d7bc03efbc7f3a1b8dfef56169d9debb69840a422185826ab

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec847cf24a4aa42704c6f64c9cca4b686e390d54dbec959f3c2542c1b8c3a75a
MD5 cbfaaf3004654544c6d348df82714f85
BLAKE2b-256 9867b8f9017c439a6c5a05faef4ae66f18133d50d08d31a9c949520284f0c0f0

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0be78d8feb5f5a6f40f7aa8efeeb42753c64a058999dd51e3a1378b698206cd4
MD5 d8386b6a5cbee1053e4c259df696bc77
BLAKE2b-256 e71cdd5efcd919106002c7593f41bffba3d1363d6c24dddb53820f83e39a7d5c

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93ef5590dccb6d9a33b472bd5bcbc5f508b217856bbeff415dc243b10ee2db96
MD5 b671a64703e45c1c8e6b3886e7dce124
BLAKE2b-256 e5dace1dc23298b8dc80ddc10646b89642336a261c532ae362b42e612337802e

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cdb254f7f07bac02c6a5a850314c5474fe33e4a219af730738e34150051cbaa
MD5 af1b225969f8bfe089bb8b092d1747f8
BLAKE2b-256 d5159a0ada37ce2ad4f83055afc85ff28ab98ade5450339a130365b868b4361e

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 42a6a1724d58dc3140d3aebde325a75e5c2a933a2a80c227102f9b1c30c8b859
MD5 701c738fec0bce939445233b3e731b47
BLAKE2b-256 989b3adf2f97dfef244af578344a4eb0c9411e11f267bdc6b7e288029fdca5db

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e2d41eec5063ca23aa756e2229f6648fd4556f37cf4856ea05833eacef3f884
MD5 a437bdea3fc21c6d5e4d836709270cb9
BLAKE2b-256 b1d461e44d5f61aff48a24b45c4bc70018e887e849ec302563ce493e096385c5

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 92eece3d05b4275387a590d84568cf9594a68fe254c913ff03b7bf9cc24c5f59
MD5 bd3d407e52a7139a9ecf36eccda5f0a2
BLAKE2b-256 b970dd283f86b33465a02d2007e58c53538f30debb1b72aa71d07f0e0a7a6c4c

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db1de739c61ec6d874bb5415afe1f40493b1c491b90a03205e580717db00d123
MD5 9cf94a943e3e6aac9ca09b64b41bf90d
BLAKE2b-256 2700e724c79e83f029a8796da3d5e88d4220bef3e6f968920509567054f13b7f

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 666c5fa0f4153571c44ee9f86473ee085f6aeb89db5ddf24dd008fc059302780
MD5 d063fef6d210419011950eefdc1dcfcf
BLAKE2b-256 7e98c5696d4b600705b10960a0c510f5875b2328dd6308a7968b6dfadc62c566

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85a915ff5fa1b6fb9015bafa06553b7101ae7276567a4800147225dcbd7bc248
MD5 e83aa1fa67b24cb8097ede281a505a0f
BLAKE2b-256 29fc3ada30e78787f2a450b8509df327db140be778c9dc68b9c665ee4619765d

See more details on using hashes here.

File details

Details for the file pyturso-0.4.0rc7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyturso-0.4.0rc7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b19e21377192ffc7d67adad43d6e02f8056a3db605bb27d6c00277751faeb8f0
MD5 288dd29b8d3d3897fe31d477ea0b6bf4
BLAKE2b-256 38e97ee8eef4be2259c7b2938b2bb74a54b861c6fa882653aa033fe83b9164f1

See more details on using hashes here.

Supported by

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