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.0rc5.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.0rc5-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.0rc5-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.0rc5-cp314-cp314-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

pyturso-0.4.0rc5-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.0rc5-cp313-cp313-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyturso-0.4.0rc5-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.0rc5-cp312-cp312-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyturso-0.4.0rc5-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.0rc5-cp311-cp311-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyturso-0.4.0rc5-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.0rc5-cp310-cp310-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

pyturso-0.4.0rc5-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.0rc5.tar.gz.

File metadata

  • Download URL: pyturso-0.4.0rc5.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.0rc5.tar.gz
Algorithm Hash digest
SHA256 1fe928cdc5f15ad9d2e60046b25272eb0b7d9647c9f3710d5827c4840c6503a0
MD5 9f7fde10991ab2caff1bd522182017d1
BLAKE2b-256 def84cb65546dedff4c0aef71f6d920c329288297b0e36ffbaa98ed6c69b7210

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c754158955dd08106e7d841b1643c85d90bf2030c2812730d1e139b093c453bb
MD5 f66b9e4ca5d9c2baa8e4cf774638f7ea
BLAKE2b-256 1234dfbb3d1f105ae2583f7482e774a98f2068d9d67601b72aa6302824b2f84c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 52cadca57e8725ccea6b6f728f518880a26aa488c42686e00ff917fef28212f4
MD5 73cfe4515af585b9df58c8f6ac12d47e
BLAKE2b-256 dd58c3b078feb931c46e18194f8abe7367c47510113ce1cf7fd68c18209b6614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b714c2630ea54e7be157bf1a3d2f1843892569d1efb298796c9da6eccaa88121
MD5 02bd9f50e5dff2bafaebd5225b96a9f9
BLAKE2b-256 0070476bb638c12d9d92f0e56556e746c5539b6d345d5506d7160eda423e0954

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e5c4ed1c073e30771f00ff4773d553bf9664267f6f6337da750b02d4b784ba7
MD5 98fcf9da3c115194038e806f00fcb99e
BLAKE2b-256 fefccfe4ea347359e3ff9ffed0cde45510a4c0c994f0c122e056588ee8ecec6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33da9b6e20ffa7a88fd88b54fba98fcb89404450fcb1b710e66dfa9d909b4e60
MD5 b50cbd0ea604aa2f917d723b24ffffd9
BLAKE2b-256 b4c3c5d92473e2bf12d87d6e49fd7cb6c757088b1eee2dcf4372cd5dd824f514

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b55078b47d09ad0a4ceb238a43198b5f8319b3951d15bc14e4301029d4d02c2
MD5 f3694e2d5523797b367d4ea117dd4876
BLAKE2b-256 be0cae4fee0c77e715c38d36d93b0966de7a1944fadb29e9fb0cfb14652f8608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8cf92c6d056d3af8d7d14adb3c2c3d2e4b9e0c65ab85e6dd64f5242ad9aeb0a8
MD5 fae9e6b251cd25c2634096f9f6a9903b
BLAKE2b-256 e53deab15d3f5a5116a225544fabc1997f8969c5fb408312c1aa347cdecd0e77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef325452779ec42155adb763206a16068919b877885243e895c237c2740c63de
MD5 2785b4f04ed23b8fd1a69968518c3714
BLAKE2b-256 bf4160eab37ed84c02eee4a48d8b4957a7290925254ac901f23d6b900c64e041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4304d12c640a72606bd056ffef5f00ed5f2b1f30f09ffe7774166e5ba45599b8
MD5 5e374be013f9ce1c5e01738913bb5889
BLAKE2b-256 5e5f2d5e0e77bc63401b396db3c8e92825e6648257c92a4ecaf2c7c9ccf321d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5739d196e701182ee6f84ee19c9f71cb16a5ef657837a0765a055af87a967a97
MD5 7e8e3ffc2b467c5604e37a8c6f119382
BLAKE2b-256 b96c64b7333c215e955bd445b55e6bc6f430cd480e68f3f5967470d407cb34be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 656c85212aede5efecf17dae6bb7e2425680ed48b3c51bb9f7a584d3d6661b90
MD5 732b25006d443e6ef5bcec767a385b21
BLAKE2b-256 98fd1c439519edc7f86e603d4446c6518c1683ba7af0ac8dab2fb2f113c17b6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 588ce897fdfa7d20af637e505840af561d631a56f66d8dab89946a6130bf08d4
MD5 dff6ffbdde7f899ea7e4fee22e2bbf48
BLAKE2b-256 19e4707828ccb1c6c0fecd7ecfd88cdf68d1c75f22dc423bd4b74b92162254d8

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