No project description provided
Project description
A little ORM for sqlite and postgresql
Existing ORMs seem to be clunky overkill. Status: experimental.
Features
- Proper typing of table operations.
- Advanced and strongly-typed query patterning system.
- Just subclass
Table
on your dataclasses and it will work. You don't need special column settings. - Works with plain Python types, no need to have special column types on everything.
- Works with pydantic BaseModel (WIP)
- Works with sqlite and postgresql (WIP)
- Async and sync execution calls (WIP)
Other libraries
You should use one of these instead:
Also injection attacks are only defended against user data. We assume that the definitions of dataclasses and query constructions are trusted. That is, if you give a field in your schema dataclass a name like "; DROP TABLE" it will execute the injection.
Developing
pip install hatch
# build
hatch build
# tests
hatch run test:no-cov
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
dxd-0.0.3.tar.gz
(11.8 kB
view details)
Built Distribution
dxd-0.0.3-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file dxd-0.0.3.tar.gz
.
File metadata
- Download URL: dxd-0.0.3.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad2439317a9a5c18e02eb1f891c846feee565cfd45159de8295c2f57edccb78a |
|
MD5 | 8aa4cb811c5e3c75d6336435c9b32e4f |
|
BLAKE2b-256 | 64f66228db7db7621778dceeda6663a89b41a683d38e2651d7ee160c69967a11 |
File details
Details for the file dxd-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: dxd-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3733d8d0067f00d113a4136b52db05ec5050381d2c61ace464a12987a2bb4a88 |
|
MD5 | b5301eafda2b06ec43ea2c7596c8978d |
|
BLAKE2b-256 | 334813e1704790e10c0f2ca722bd186ab822fbc42ee6ad3c9682341d914ad8b7 |