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

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

File metadata

  • Download URL: pyturso-0.4.0rc4.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.0rc4.tar.gz
Algorithm Hash digest
SHA256 f39af1ac6981a677e965bf484ea353add7b92fc9f87dc09f7a9c5f84c69bb9bd
MD5 fd59517302aca16a7bc60dcb42be42f9
BLAKE2b-256 3a308669de5971e77f89ff7b9a80dc0279434533223676b20d2aaadfde2fc37a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d00ef7d8f7780eaae7b048d1c6b73d18e9cc82e41d19b45c92037024c1d8cef
MD5 ca1f33b4db6ccd3c01a6f4beccaabd36
BLAKE2b-256 5468bce7d72e10d52cc01fd9cd67ade1c380fed56bd46a6f9d70351e69e2f0e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9af1c7e3a9265fbbbec202e008ec2244e04c937fd049aaa884f3a79ea9ffb4d2
MD5 710de9e99cd1e9a310a5f6af3fe9723e
BLAKE2b-256 225f7134ae89712c90c64f2b0573e2ad69af16d047ce418da3cb729ac9e00fe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae119f72d5e5c22bc7707a9e4affc6aaccec9e51179d5562022e4a1a605c03b3
MD5 6d13567f7badd0eb3de6dc9dbb5cec82
BLAKE2b-256 db2f22e3df9cf0eb7250f685f5953c79a25c86def6db755839a98662fb32c3c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a4e9e37456f44d484c1ea0cac9a22c1d766bdbf6b44250c89ddfe861bb9afd9
MD5 e3867206cd52344632be44be51a83bfe
BLAKE2b-256 05fff56a0b402d4acd2f0868ed4bd21985397933a697f3cc4bf1efbb610ea965

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0cc0f08c4c6730e4b870110e83a38f90cb0a753d75fde52a5bd91e31d3da812
MD5 0d696805fb8c6e4fc7dc7f3427a6f38a
BLAKE2b-256 ed3c04b9736c423d6ae7557868a3595e22613ba4215ecb46d581fee7df4b0648

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 209c52d3183ed12456a7c89b744653b43ec7b7e78739bd38b20229df9f12ac83
MD5 16df1f948ee206952acef961c01464ea
BLAKE2b-256 ef67108b9a55afa7005197cae13f6e3722d33da72179d316f476bb9bddd611dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 810e0a10a22aac5e2f15a14e59306b6e53fd94be6841868ce6e306ce075b03c0
MD5 11c739e4395bbc88da38c2506256f5c1
BLAKE2b-256 4ac1ff6cc4f83da51f5fd16e3933cb0d7acf739f89f3717fed20f57de362041a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c2a2b2ce7412502cb225dca6a19c21f8183063b573d56d9af627526191b92f78
MD5 4e7262b433753e21dac32dadf9acfd18
BLAKE2b-256 226ee58dbc6f9b4f15febedb0ce514b76d8f651b5febf851b730483d8870da6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9ef51b4dc1753b2c9fedf98ca14a00b65f6099c1eae899a2b555ef2d3ef61e9
MD5 615d3d7ba44daaf5cfcb128dfffda1af
BLAKE2b-256 d309bd8c7025d0087e5c4841f0d879c5221d075d54c0149d1b6b1282bbf551b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55db3480181afdd464a729ae6983db5a0cd8726cd369bf0af140cae72cada477
MD5 fde45e457c0baedce724a66b62f2bb27
BLAKE2b-256 4b5bfc47419d3789bbb060a427617b0e8470a1a4fa5d9e29186cec1bb3ec26b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1cc93acd854f8de120545ee58b734cf7daa354e1596f58ff9f2a89862c9209ab
MD5 e98e3abcc8b5073d737c2f82e5e9c0ce
BLAKE2b-256 2e78684ea0fe622a18ce5397baf7c3e29fb4dfde6736dc708ce0dc4175b7c57b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyturso-0.4.0rc4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7e35ce3dea4fdebc83ee7dac85abf2501031389864d7b4039eeca672c89b5b0
MD5 53f98dd8733289fcbc4ce62025ad63c3
BLAKE2b-256 6ac3aea8f3b33e8509d9b329b1a1ae74c7836de0479c70bb060478b24ee75463

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