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
Tableon 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
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 dxd-0.0.5.tar.gz.
File metadata
- Download URL: dxd-0.0.5.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c82deb6d433f33da7e01bdcbf342d50d93e60bbb0022d8a12de83d28895a5c4
|
|
| MD5 |
994156d62d937f5ce77cab7f8beb2adf
|
|
| BLAKE2b-256 |
4040f0783c116280b5be4f7cd0dcd8e134ec4e7eccfd32be145dcb7a1575a8e1
|
File details
Details for the file dxd-0.0.5-py3-none-any.whl.
File metadata
- Download URL: dxd-0.0.5-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235f5696f1080d5378639712670a153283e918bbde352917ebd938153cb0da59
|
|
| MD5 |
b9deafab33f55b24d8476aa9aef1f1f9
|
|
| BLAKE2b-256 |
a0a348f06c4643b6d9c3225ff4555a3f3371ad3b2901cf1f68bd49f2c64e4cf1
|