Skip to main content

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)

Uploaded Source

Built Distribution

dxd-0.0.3-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for dxd-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ad2439317a9a5c18e02eb1f891c846feee565cfd45159de8295c2f57edccb78a
MD5 8aa4cb811c5e3c75d6336435c9b32e4f
BLAKE2b-256 64f66228db7db7621778dceeda6663a89b41a683d38e2651d7ee160c69967a11

See more details on using hashes here.

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

Hashes for dxd-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3733d8d0067f00d113a4136b52db05ec5050381d2c61ace464a12987a2bb4a88
MD5 b5301eafda2b06ec43ea2c7596c8978d
BLAKE2b-256 334813e1704790e10c0f2ca722bd186ab822fbc42ee6ad3c9682341d914ad8b7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page