Skip to main content

Koroviev

Code jinja template generator for structured projects :)

PyPI

Install

pip3 install koroviev

Help and init

For see commands list (man), type to console:

koroviev

For init, type to console (in project root folder):

koroviev init

Simple example: Create template and generate

Test project structure:

test_project
├── .koroviev_templates
├── .koroviev.toml
└── test_project
    ├── ... other ...
    ├── base.py
    └── cruds

For example, I add one template with name "crud" in my config file (.koroviev.toml) with two params

[setup]
language = 'python'
project_folder = 'test_project'
templates_folder = '.koroviev_templates'
template_extension = 'py'

[templates.crud]
comment = "my test template"
target_project_dir = "cruds/"
params = ["name", "table"]

For easy get auto generate templates folder structure

koroviev structure generate
Create template type folder 'unary': '/home/user/projects/test_project/.koroviev_templates/unary'...
Create template file 'test': '/home/user/projects/test_project/.koroviev_templates/unary/test.py'...

Structure after template folder generate:

test_project
├── .koroviev_templates
│   └── unary
│       └── crud.py
├── .koroviev.toml
└── test_project
    ├── ... other ...
    ├── base.py
    └── cruds

Fill crud.py with this code:

from test_project.base import BaseCRUD

class {{name|capitalize}}CRUD(BaseCRUD):
    table = "{{table}}"

Next, generate "test" crud by this template:

$ koroviev gen crud
Input name for generated file: test
Input 'name' value: test
Input 'table' value: test
Create file by template: /home/user/projects/test_project/test_project/cruds/test.py...

Result cruds/test.py:

from test_project.base import BaseCRUD

class TestCRUD(BaseCRUD):
    table = "test"

Metadata

Release files for koroviev 0.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for koroviev 0.1.21
File Size Uploaded Provenance Actions
koroviev-0.1.21.tar.gz 6.9 kB Without provenance Details for koroviev-0.1.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for koroviev 0.1.21
File Interpreter ABI Platform Actions
koroviev-0.1.21-py3-none-any.whl Python 3 none any Details for koroviev-0.1.21-py3-none-any.whl

Total release size: 15.3 kB

Release files / koroviev-0.1.21.tar.gz

Download URL koroviev-0.1.21.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8f34086ddd901ee4ec3db06bc0c8a3332a6523a3969e66b921b9a319e658bb2b
BLAKE2b-256 checksum
How to use checksums
e7662775e371f2eb3d8fb5643b9087a3efd2216925307d6448cc120e828be0a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1023-azure

Release files / koroviev-0.1.21-py3-none-any.whl

Download URL koroviev-0.1.21-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb3cbe2dfee6005bb0ce860184bf7fb68b5360cdb62812bfe384f99a849d6a14
BLAKE2b-256 checksum
How to use checksums
01373f5acfd9c5b4331de74bbd56dd516e393bed8c106f5fc1c42c27db9e9e50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1023-azure

Security for koroviev 0.1.21

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.

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