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.0rc3.tar.gz (1.2 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.0rc3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc3-cp313-cp313-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyturso-0.4.0rc3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc3-cp312-cp312-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyturso-0.4.0rc3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc3-cp311-cp311-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyturso-0.4.0rc3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pyturso-0.4.0rc3-cp310-cp310-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyturso-0.4.0rc3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pyturso-0.4.0rc3.tar.gz
Algorithm Hash digest
SHA256 28b1a95c296b4f7fa47262efe8c2a16a9e061dc6c384aa846bd10726e038ac0f
MD5 0faa8f398d7be365971fb54193611e61
BLAKE2b-256 ac63ccc21293e409af9d9045a94b14d62bed9cad9477907e094643d584a79cb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9db6c7daa55d4620ec36c56c0a84a9edede2fd23951e98c3291cc7e220689aa1
MD5 7074de171ba7453d1ccdca41e58b766a
BLAKE2b-256 f4a3094738cd139526839f364a96986f58252adf0d863e0a11d42199960d0940

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 337771d2c4d2f3f2ce65ba1ac5e47464f81d3a7fd9fd40d2016f21fce8de2dd7
MD5 bc8c819d497bb1080ef5d392bd66d39d
BLAKE2b-256 b3c6894ea89cf331b34cbd71088a435330918639717f528317da98cf398374c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d95caaff1b915de1af901aa51df83b3f7f131d64fb59ed7d6598dd586894e1e3
MD5 332c3325dd605f6d382537dc1212406c
BLAKE2b-256 e060c1e730eadb2c568526508f82d3b239f3c05a5050b9bb090d22eed2491ac4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e278dafc13e5411596aace47bc626245a801883ba0f482e3e4dc41efe4e693f
MD5 f3f0bc4d42206ba2e4e7fc97ee5e6733
BLAKE2b-256 e4f0743e85706c33140fa38b4ac5e566b274b10fc05edfc9482a5d651fb6be35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92f0ed23b8e8d6de77243d164a3ed9e531e89c8f743f4fedce838268d0fb2817
MD5 545d2878b54941479c89fdcc26e71f62
BLAKE2b-256 49bf042441e68ca28ca4006ec99ddbfc03085974b1f85f47643f04cd2ef421d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4db1913e31e829c8fcb84a8caf0fbb34062522929779f82d85ff1dc541cc6ea3
MD5 49118f3cfb07ba41cc37a18859437b65
BLAKE2b-256 45a7575da1a38116478058f33b689a2755844baac78e4d8b946e611638e7b6ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f8e6398aafc5028feb46e7ca744ec1c16718eccbb0ce91e411869b22cdf1979
MD5 54f6d29dd21a4723df7a3caef6131ae0
BLAKE2b-256 6cda30c79eaa57e89614bb28f72c09a0b32c717f3b2c74625ee6fe81dfda8053

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 125b6525f3dd9564da7755fb5df6ce7e7aa8e5bc9f7f5df2f09cf164703d02fd
MD5 1193e7d30e2f70537e9996266823a283
BLAKE2b-256 b9e79c53068b513555cab95b0e457c8296ad4a0220b08418c14323c2aba62045

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8953248afe7e1745477da41d3c3fb00df7ec41104553c23d3d719275fa813e3d
MD5 fd4628e3220b450b9346a896a10246e6
BLAKE2b-256 114b17448365d8ae657583ee60dd12c7699b419d261773abc8991ed10579c5f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d26c0c6b8ae3e19cf8ec02ed0915cf8e02c1ee8cbf0bf2ab61692830e59bd34
MD5 346d70188c8179311ea34b7983f3591b
BLAKE2b-256 1dcff4501dbfb5b68597751647da96f438c9519d5e5aab8407a488308792ce4a

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