Skip to main content

Give your code the freedom to move

Project description

Logo

puregen

puregen – give your code the freedom to move.

Issues License: MIT Python Version


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" 

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

puregen-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

puregen-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file puregen-0.1.0.tar.gz.

File metadata

  • Download URL: puregen-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for puregen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8dbd1ea02b807a121cbfd9a46f86dae7ace0df2f24e504404fc50ee53ec6b959
MD5 81a9f6ce1a295400ea0e980a132907eb
BLAKE2b-256 e3d426a1a9646b4992e447e0304921b828eb4ec724938a897113c1489f904567

See more details on using hashes here.

File details

Details for the file puregen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: puregen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for puregen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9bde4bd4bd5c7a4ef91d103c537aab5ce3ab231b2410937ddef7a9232f61977
MD5 d5cd5058262898ff478cc0862d5dc922
BLAKE2b-256 4deede0d39a551139972d7c8e481309775eea8dbc8f4a6a88b811fe6851623aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page