Skip to main content

exdrf-gen-al2r

exdrf-gen-al2r is an exdrf-gen plugin that emits FastAPI APIRouter stubs from SQLAlchemy-backed ExDataset metadata. List and read handlers are typed with XxxEx; create uses XxxCreate. Patch is emitted only when exdrf-gen-al2pd would emit XxxEdit (composite PK–only link tables skip PATCH). The SCHEMAS-PKG argument must point at the package tree produced by al2pd.

Python 3.12.2+ is required.

Command-line usage

exdrf-gen al2r DATASET OUT-PATH DB-MODULE SCHEMAS-PKG

Or: python -m exdrf_gen al2r ....

  • DATASET — module.path:DeclarativeBase.
  • OUT-PATH — directory for *_routes.py and __init__.py (or EXDRF_AL2R_PATH).
  • DB-MODULE — dotted import path for ORM classes (from DB-MODULE import Model).
  • SCHEMAS-PKG — dotted root package where al2pd wrote schemas (or EXDRF_AL2R_SCHEMAS). Import path per resource is SCHEMAS-PKG.<categories...>.<snake_case_name_plural> (e.g. myapp.schemas.widgets for Widget at the root category).

Path parameters for GET/PATCH follow resource.primary_fields() order (e.g. {left_id}/{right_id} for composite keys).

Dependencies

exdrf-gen, exdrf-al, click, exdrf-gen-al2pd (for resource_generates_edit_payload). Generated routers import FastAPI and SQLAlchemy — add those to the application environment.

Plugin registration

[project.entry-points.'exdrf.plugins']
exdrf_gen = 'exdrf_gen_al2r'

See also

  • exdrf-gen-al2pd — generates the Pydantic modules al2r imports.
  • exdrf-gen — README.md.

Metadata

Release files for exdrf-gen-al2r 0.1.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exdrf-gen-al2r 0.1.19
File Size Uploaded Provenance Actions
exdrf_gen_al2r-0.1.19.tar.gz 19.1 kB Without provenance Details for exdrf_gen_al2r-0.1.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exdrf-gen-al2r 0.1.19
File Interpreter ABI Platform Actions
exdrf_gen_al2r-0.1.19-py3-none-any.whl Python 3 none any Details for exdrf_gen_al2r-0.1.19-py3-none-any.whl

Total release size: 41.3 kB

Release files / exdrf_gen_al2r-0.1.19.tar.gz

Download URL exdrf_gen_al2r-0.1.19.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0f4c8df9de389966d86c70270e5983d50d7e05bcfc83d90fc1935464f2f45819
BLAKE2b-256 checksum
How to use checksums
21bcd4f9c46a24ef982082d13b8076beacd34de356553a8a0049ee859b42837f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / exdrf_gen_al2r-0.1.19-py3-none-any.whl

Download URL exdrf_gen_al2r-0.1.19-py3-none-any.whl
Size 22.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
136aee86df08283225dab0dfbde05c4f1a8968167566816ffb9b0f02fa8e127b
BLAKE2b-256 checksum
How to use checksums
851d93203889cfdb73e6d3f74204d0a4dab581a6e2e2927598d42d6685e79fbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for exdrf-gen-al2r 0.1.19

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page