Skip to main content

exdrf-gen-al2xl

exdrf-gen-al2xl is an exdrf-gen plugin that generates Python helpers for Excel-oriented workflows (import/export style) from SQLAlchemy-backed ExDataset metadata. It mirrors the category / resource tree used by al2at, and adds schema_from_text.py for parsing structured text into rows.

Despite the name similarity to attrs, this package is not the same as exdrf-gen-al2at: it focuses on spreadsheet tooling (type_to_xl, read_only_columns, custom sorted_fields), not generic attrs models.

Python 3.12.2+ is required.

What it generates

Under the output path:

  • __init__.py, api.py, schema_from_text.py
  • Per category: {category}/__init__.py, {category}/api.py
  • Per resource: {category}/{resource}.py

Templates live under exdrf_gen_al2xl/al2xl_templates/.

Dependencies

Declared in pyproject.toml:

  • attrs

Runtime (with your app and models):

  • exdrf-gen, exdrf-al, click

Command-line usage

exdrf-gen al2xl DATASET OUT-PATH OUT-MODULE DB-MODULE

Or: python -m exdrf_gen al2xl ... with the same arguments.

  • DATASET — module.path:Symbol for the SQLAlchemy declarative base.
  • OUT-PATH — output directory. Env: EXDRF_AL2XL_PATH.
  • OUT-MODULE — target Python package for generated imports.
  • DB-MODULE — module containing SQLAlchemy models (for templates).

Python API

from exdrf_gen_al2xl.creator import generate_xl_from_alchemy
from exdrf_gen.jinja_support import jinja_env

generate_xl_from_alchemy(
    d_set=dataset,
    out_path="/path/to/out",
    out_module="my_app.xl_gen",
    db_module="my_app.db.models",
    env=jinja_env,
)

Template context includes type_to_xl, sorted_fields, read_only_columns, and the usual out_module / db_module / source_module fields.

Plugin registration

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

See also

  • exdrf-gen-al2at — attrs-focused sibling generator
  • exdrf-gen — README.md

Metadata

Release files for exdrf-gen-al2xl 0.1.17

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-al2xl 0.1.17
File Size Uploaded Provenance Actions
exdrf_gen_al2xl-0.1.17.tar.gz 5.3 kB Without provenance Details for exdrf_gen_al2xl-0.1.17.tar.gz

Built distribution (wheel)

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

Total release size: 11.3 kB

Release files / exdrf_gen_al2xl-0.1.17.tar.gz

Download URL exdrf_gen_al2xl-0.1.17.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c90aeb7d3fa7cb6dd3211a618988af64a9738fb85c2ac5f22bb19971b984479
BLAKE2b-256 checksum
How to use checksums
e1fa110ad744e4415f4c2789a1ccecdee215b0e776dc7bc3ddd7f01a15add95d
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_al2xl-0.1.17-py3-none-any.whl

Download URL exdrf_gen_al2xl-0.1.17-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac406ebc4628d38c8a68ec52de75f258eb8c9e73d3c3ddcd1232c2a132f1c665
BLAKE2b-256 checksum
How to use checksums
b5f078cffa224e7b60e1090cd70c33bd1be7eadad331fb841f5615660b8b02d0
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-al2xl 0.1.17

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.

Release history Release notifications | RSS feed

This release

0.1.17 This release

2 release files No provenance

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