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 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 hashes)

Uploaded Python 3

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