puregen
puregen – give your code the freedom to move.
Overview
puregen is a lightweight wrapper built on top of datamodel-code-generator that resolves the issue of having all generated code dumped into a single file. Instead, puregen automatically organizes your code into well-structured folders and files, making your project much easier to maintain.
Key Features:
- Automatic Structuring: Divides generated code into logical modules and directories.
- Seamless Imports: Automatically generates the necessary import statements between files.
- Efficient for Large Projects: Ideal for projects with a vast number of models where managing a single file becomes cumbersome.
Note: This is the first version of puregen and is still under active development. We welcome your feedback and suggestions!
Getting Started
Installation
Install puregen using pip:
pip install puregen
Or:
pip install git+https://github.com/MushroomSquad/puregen.git
Simple Usage
You can generate models from a local file.
puregen --input "api.yaml" --input-file-type "openapi"
Metadata
Release files for puregen 0.1.0
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 |
|---|---|---|---|---|
| puregen-0.1.0.tar.gz | 8.3 kB | Without provenance | Details for puregen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| puregen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for puregen-0.1.0-py3-none-any.whl |
Total release size: 15.6 kB
Release files / puregen-0.1.0.tar.gz
| Download URL | puregen-0.1.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dbd1ea02b807a121cbfd9a46f86dae7ace0df2f24e504404fc50ee53ec6b959
|
|
BLAKE2b-256 checksum How to use checksums |
e3d426a1a9646b4992e447e0304921b828eb4ec724938a897113c1489f904567
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / puregen-0.1.0-py3-none-any.whl
| Download URL | puregen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9bde4bd4bd5c7a4ef91d103c537aab5ce3ab231b2410937ddef7a9232f61977
|
|
BLAKE2b-256 checksum How to use checksums |
4deede0d39a551139972d7c8e481309775eea8dbc8f4a6a88b811fe6851623aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for puregen 0.1.0
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.