Skip to main content

Environ Loader

Project description

Environ Loader

A module for loading environment variables from various sources, like Windows .bat files and Bash .sh files.

Sometimes when writing a Python script, you want to load environment variables are defined in a text file. For example, when running Conan with the virtualenv generator, Conan will generate shell files for Windows and Linux that contain variables like PATH that are configured to use the library/tool. So, if you are installing a tool that the script uses with Conan, then you will have to load the environment variables before calling the tool. This is actually the original motivation for the module.

It is not very sophisticated yet, only simple variable declarations are supported right now (for examples, Bash's $VAR style variable expansion is not supported, only ${VAR}).

Features

  • TODO

Requirements

  • TODO

Installation

You can install Environ Loader via [pip] from [PyPI]:

$ pip install environ-loader

License

Distributed under the terms of the [MIT license][license], Environ Loader is free and open source software.

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

environ-loader-0.0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

environ_loader-0.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file environ-loader-0.0.2.tar.gz.

File metadata

  • Download URL: environ-loader-0.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.5 Linux/5.15.0-46-generic

File hashes

Hashes for environ-loader-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4a3ca41e8dad33ab7bee56bbf1796db395e9be9f8acf2ce302f7ea1a3d86b45c
MD5 b51e5197c6f7ddaccbbb4b7571408a02
BLAKE2b-256 6fcaa1c7b450967aa4c50335e510a5ee9120815ff3535e047bfd39560ce68eb7

See more details on using hashes here.

File details

Details for the file environ_loader-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: environ_loader-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.8.5 Linux/5.15.0-46-generic

File hashes

Hashes for environ_loader-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26c35484e06a8a8ee0211220007038a15c42cd6a8b5578e9d127855cd26992cf
MD5 957ac1a3d0814d43a8163595a77be7e0
BLAKE2b-256 7272779f39604d58359acb061e71b21714e1edc39a4538e569ccbded5b8a9065

See more details on using hashes here.

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