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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
dxd-0.0.1-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file dxd-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: dxd-0.0.1-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 | dd71980b1ac7c666ee88883968b821e77817fa382f925e68620f16aa94124757 |
|
MD5 | 0ccef17725797d2bf26fdd388a4b2ea8 |
|
BLAKE2b-256 | e3067ca89723e5b98925016b3f020aebd382457a96056e858ac8df896773b87c |