Skip to main content

Savitri code generator

Project description

savitrigen

Savitri Project’s official code generation tool.

Usage

Once installed, savitrigen will become available as a Python executable module. You can call it by running python -m savitrigen [options].

To get started, list available presets with python -m savitrigen -l, then choose one with python -m savitrigen -p [preset]. This will create a savitrigen.yml file in your current working directory. To parse it run savitrigen without any options, like python -m savitrigen. That’s pretty much the CLI usage.

Behavior

Savitrigen will look for source/.gitignore to check if the bootstrap repository has already been cloned. If it hasn’t already, savitrigen will then clone it inside source folder. In the next step it will check if npm modules has already been installed then install it if it hasn’t. Thus savitrigen will skip the cloning/installation steps in consecutive runs.

A diff-patch algorithm is used to update the code without touching external changes. It’s nonetheless advisable to commit changes before rerunning the code generation.

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

savitrigen-0.0.95.tar.gz (15.8 kB view hashes)

Uploaded Source

Built Distribution

savitrigen-0.0.95-py3-none-any.whl (23.5 kB view hashes)

Uploaded Python 3

Supported by

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