exdrf-gen-openapi2rtk
exdrf-gen-openapi2rtk is an exdrf-gen plugin that turns an OpenAPI
3.x JSON document into RTK Query TypeScript modules (endpoints, hooks, and
generated request/response wiring). It can load a local file or fetch a remote
spec with optional HTTP caching.
Python 3.12.2+ is required. Dependencies (attrs, click,
exdrf-gen, exdrf-ts) are listed in pyproject.toml.
Plugin registration
[project.entry-points.'exdrf.plugins']
exdrf_gen = 'exdrf_gen_openapi2rtk'
Install exdrf-gen and exdrf-gen-openapi2rtk in the same environment;
then exdrf-gen --help lists openapi2rtk.
Usage
CLI
The command is registered on the shared exdrf-gen CLI as
openapi2rtk:
python -m exdrf_gen openapi2rtk /path/to/routes/out \
--openapi-file /path/to/openapi.json \
--types-import "@app/models" \
--base-api-profile minimal
Use --base-api-profile fr_one when generating for the fr-one customer
SPA (same wiring as historical resi_gen r2ts output).
Remote specs: pass --openapi-url (and optional cache flags) instead of or
in addition to --openapi-file—see exdrf-gen --help / subcommand help
for the exact options in your installed version.
See also
resi_gen r2tsin bk-one snapshotsapp.openapi(), then calls this generator with--types-import @resi/modelsandfr_onebase API.exdrf-gen— shared CLI, Jinja environment, and plugin loading.exdrf-ts— type mapping helpers used during emission.
Metadata
Release files for exdrf-gen-openapi2rtk 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| exdrf_gen_openapi2rtk-0.1.18.tar.gz | 17.1 kB | Without provenance | Details for exdrf_gen_openapi2rtk-0.1.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| exdrf_gen_openapi2rtk-0.1.18-py3-none-any.whl | Python 3 | none | any | Details for exdrf_gen_openapi2rtk-0.1.18-py3-none-any.whl |
Total release size: 38.0 kB
Release files / exdrf_gen_openapi2rtk-0.1.18.tar.gz
| Download URL | exdrf_gen_openapi2rtk-0.1.18.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97a916a7b99e1c95f06e531a1cf7b2c14547a7d9ebd73a8e23986134c1aa3381
|
|
BLAKE2b-256 checksum How to use checksums |
096c5d9003cefaec2a1571690134f0812ee3b7f0aef6bf288a30bc97dd241a99
|
| 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_openapi2rtk-0.1.18-py3-none-any.whl
| Download URL | exdrf_gen_openapi2rtk-0.1.18-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08ffed72f530604e37dcc93d5bdfb26c7f5d5d419ffe105580430611df99e0e9
|
|
BLAKE2b-256 checksum How to use checksums |
510a20289cdeb9c362418a4074fd9c8e01ef37abc651b9983b50d2e948d85bb1
|
| 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-openapi2rtk 0.1.18
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.