Skip to main content

Configurable venv extension

Project description

Kantan

Configurable venv extension.

How to use?

Kantan assumes the existence of a folder $HOME/.kantan containing available configuration.

/$HOME
    /.kantan
        /default
            configuration.json
            file_to_copy

Example configuration.json:

{
    "requirements": [ // Requirements to be installed on the new environment using `pip install`
        "numpy=1.2.3"
    ],
    "include_files" : [ // Files to be copied to `env_dir`
        "file_to_copy"
    ]
}

Then check how to use kantan from commandline.

$ kantan -h

Development

Python virtual environment

Create and load a virtual environement.

python -m venv .venv
source .venv/bin/activate

Install

Install all dependencies in editable mode.

make install

Misc

Check what other shortcuts are available.

make help

Areas of improvement

  • Add/Test Support for older/newer Python versions.
  • Json schema for configuration.json validation.
  • Make configuration extendable.
  • Improve coverage of builder and extensions.
  • Improve error handling and messages

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

kantan-0.4.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

kantan-0.4.0-py3-none-any.whl (5.9 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