PyCodegen 
Pycodegen is a tool to help you generate code in your project using powerful Jinja2 templates.
To get started:
python3 setup.py install
# Run cli
pycodegen
# Run cli using module
python3 -m pycodegen.cli
Frontend |
Description |
|---|---|
cpp |
Parses C/C++ using libclang |
json |
Passes a JSON file directly to the driver |
How it works
The requested frontend reads the input file and generates an intermediate representation.
The representation is passed to the driver
Driver does any processing required of the representation.
Driver selects the output filename and template to be used and render the output file.
Example usage
# Generate the simple JSON example
pycodegen json examples/simple/input_file.json --driver examples/simple/driver.py --debug
# Get intermediate representation of a C++ file (to aid in driver development)
pycodegen cpp <name-of-file.cpp> --dump-json
Metadata
Release files for pycodegen 0.0.1
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 |
|---|---|---|---|---|
| pycodegen-0.0.1.tar.gz | 6.7 kB | Without provenance | Details for pycodegen-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycodegen-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pycodegen-0.0.1-py3-none-any.whl |
Total release size: 17.6 kB
Release files / pycodegen-0.0.1.tar.gz
| Download URL | pycodegen-0.0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ccefcd5b93e1c6c6dd09a206d938097215ad3d621fb939a187ae2f042181d9b
|
|
BLAKE2b-256 checksum How to use checksums |
ea2c439f48a817fd084f5ee83f6d258a53688c973de9743e425a833e8a09b2a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / pycodegen-0.0.1-py3-none-any.whl
| Download URL | pycodegen-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46e61d0852ce5d3f1bceee8d4dc93510a9bf3376adac627405afbb772a613c24
|
|
BLAKE2b-256 checksum How to use checksums |
45a21c7511bb73cf50a8fe5343eceb7448e9be399261f2f59102d89280ab2d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for pycodegen 0.0.1
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.