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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d3c6b45a0a198f8d580ecc86bc93ad398539ee4122b762e6df0e3704e69179
|
|
| MD5 |
32494712a25316d6845d9bd08d39ccef
|
|
| BLAKE2b-256 |
e995c39238e579a64333f5b3e8075ad6d02f034e48e9cc4d16e726b5c7a5723b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49316c3ca2f38a9fe8bec4314bfc5f091b3113d94f1bcd9f9b96d5b373d9e2be
|
|
| MD5 |
92713ffb4395ce6cd7bb83c4623d4e42
|
|
| BLAKE2b-256 |
61fd50de29853235ec8c28ad5c29c0346efd9b06c0a9c373f6b056b095dc165b
|