Skip to main content

Python SQLite combined with syntax compared to asyncpg progject.

Project description

PostgresLite

Python SQLite combined with syntax compared to asyncpg progject.

No longer do you need to use the default SQLite and rather have a more powerful and easy way to work with SQLite and have good, default additions for things like timestamps, dates. It also supports async and sync connections, in case you need to use it in an async environment.

Install

You can install it by running pip install postgreslite

How to use

from postgreslite import PostgresLite

db = PostgresLite("./hello_world.db")
pool = db.connect()

# Same syntax as asyncpg with pool connection

The value you put in PostgresLite will become the filename of the database. If you leave it empty, it will use the default filename of storage.db.

Project details


Download files

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

Source Distribution

postgreslite-0.2.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

postgreslite-0.2.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file postgreslite-0.2.1.tar.gz.

File metadata

  • Download URL: postgreslite-0.2.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for postgreslite-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a8d3c6b45a0a198f8d580ecc86bc93ad398539ee4122b762e6df0e3704e69179
MD5 32494712a25316d6845d9bd08d39ccef
BLAKE2b-256 e995c39238e579a64333f5b3e8075ad6d02f034e48e9cc4d16e726b5c7a5723b

See more details on using hashes here.

File details

Details for the file postgreslite-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: postgreslite-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for postgreslite-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49316c3ca2f38a9fe8bec4314bfc5f091b3113d94f1bcd9f9b96d5b373d9e2be
MD5 92713ffb4395ce6cd7bb83c4623d4e42
BLAKE2b-256 61fd50de29853235ec8c28ad5c29c0346efd9b06c0a9c373f6b056b095dc165b

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