Skip to main content

SQLAlchemy Nested Mutable Types.

Project description

SQLAlchemy-Nested-Mutable

An advanced SQLAlchemy column type factory that helps map complex Python types (e.g. List, Dict, Pydantic Model and their hybrids) to database types (e.g. ARRAY, JSONB), And keep track of mutations in deeply nested data structures so that SQLAlchemy can emit proper UPDATE statements.

SQLAlchemy-Nested-Mutable is highly inspired by SQLAlchemy-JSON [0][1]. However, it does not limit the mapped Python types to dict-like objects.

Documentation is not ready yet. Please refer to these test files for usage:

  • test_mutable_list.py
  • test_mutable_dict.py
  • test_mutable_pydantic_type.py

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

sqlalchemy_nested_mutable-0.0.1.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

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