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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

File metadata

  • Download URL: pyturso-0.4.0rc6.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.0rc6.tar.gz
Algorithm Hash digest
SHA256 b66519cd9fc6f902ff901434f5c647fc0018b9d2f3c11a74be406482d5fba0b0
MD5 783f48f6877362e618c77fd3686b2385
BLAKE2b-256 fc43a3fedbb071af279545414d673c732aadd2186ced9d4b10fb3f601b74f15e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1543b7c240201398f4d1d9b5069161896e622bfcc4e97cb1a534f7275c9bdeb7
MD5 e9e9610a453f7cf7c6ca989b5677463b
BLAKE2b-256 320703c8bce6d615e6a88f42cd5955281416d92a61ef416504183fe893c90479

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5aec14b715a4260d5a5ee73d8e223b3f8d4afa3e1261b34ec48129b47954e9e
MD5 add44338ae1e7c9d8a0dee9241d3d145
BLAKE2b-256 42d73bf2ecc7db3c8e96238d375aa49e3414702399e6f64fd5e4b20f8bcc2ee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ba10023e82c17512ce20f39ffd038d296fc40b38f52ed5afb26fa1546a8b8d7
MD5 87df67dab1b84aa20c8aa1ed9624bdd3
BLAKE2b-256 fdf6e85b1f4abba6cddce60abb356a1c4c04217b370a7d4fc7bfce2142ebee60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13e17bbd73b6de01de337f728d16404e8f6f5463d711860b502fdb1e7be9e499
MD5 a263a849fa74d71caab3bfa0fe4bcad3
BLAKE2b-256 52610ae794ab7a732280fd442011c86ff9380a3c1c0d1f43ce3b9cb6b989c73a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9473cbb528480d8ccbbde5e6bec8cf4d579f3faed732604b71a4260327b15160
MD5 ea3933d22948fedf2a0789f13e629f98
BLAKE2b-256 3bff26616937581f633b0e3cbeb7bbe65922a559b80a6cf14737d1da72d763ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c49bfbe81627c566dc737925233e4f6bbe1fcd7b29a4fc3e632e0576c0f1362e
MD5 383179238cf42fe9647534448a8eb62a
BLAKE2b-256 c0e2ea8e9fcd5a37cfbc40d9abcc87a594cefbf4810db74a58708cff72148c3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e0ce61c77cb60df22f5f08dc646b47d4b4dfcd85fdb8af1471743bbb3ab9b14
MD5 ccc72486f94e1c99111a36875583c514
BLAKE2b-256 878454286c40e789d16565bb8d149c5bc1a2e8e1410d06cd4fe94cbe84fe6f27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1b062510abe3521f04e115d154ae97d79df50290ded3358861e0215fa82e3e93
MD5 f3fc92ae9c89395d1c07d51a89a916a8
BLAKE2b-256 31901f7bec3c78c6acafd5bbb9e7f30a4a628419123aeca8ca5b27f91eb37b39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2acdb3ff22640d2b13dea94b29d0556bd60d9e008f4735274c1a61567c149589
MD5 dcf1aa3ab25fd300311ae4359b7d5414
BLAKE2b-256 ed20ead94684a434c699bfbae8d4b9006abe6ace25bfcb31fdf2dcc95cba8570

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 12996a32f6f66a851ce2ea0f75e33247f1881feee04af6418e2cf460ea2afb61
MD5 c3be20ef4cd68bb0a2caa5ed23a3dd62
BLAKE2b-256 59efebbc61d5d6f56deb298b56dd5672624537883cac3f23b5c8c7abd7b7c7eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1681a6b6a58e77c5fd30ed3960abf22b94aa24fe47bcf4ad21981b772214b436
MD5 5b6cc1a6ce2ada353cbce8cd358de04e
BLAKE2b-256 277b674d28240b69900e68352b3d9695c040667e5a8995369d1dee1e1afe0aad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1fac7ad41bff6d3684e7e17cbecc8086976016f5bd51cb2d2e46e46c8435ac6c
MD5 068740395ed944e5eb5b446c6b1b7147
BLAKE2b-256 de0ee7ca7804d12b411c9262f747469f6e3136c275facbc0523a7c16932d7ca2

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