A Python library for easier management of environment variables.
Project description
LazyEnv
📚 Overview
LazyEnv is a Python library designed to simplify managing environment variables. It loads project-specific .env files and/or global enviroment variables and provides a convenient way to access these variables using dot notation.
🚀 Features
Implemented
- Load project-specific
.envfiles and/or global enviroment variables. - Dot notation/IntelliSense access for environment variables.
- Command-line interface (CLI) tool (
lazyenv init) to initialize the dot-accessible variable file automatically.
Planned
- Fuzzy search/lookup for environment variables if not using cli.
- Option to sync enviroment variables after changing them.
📦 Installation
pip install lazyenv
🛠️ Usage
Dot Notation Access
To use dot notation access, initialize your environment variables using:
$ lazyenv init
Then, you can access environment variables in your Python script as follows:
from lazyenv import env
print(env.API_KEY)
Advanced CLI Usage
By default, the local .env file is searched for and loaded, but it is possible to change this behavior.
Include global enviroment variables:
$ lazyenv init --incl-global
The arguments can also be shortened and local variables can be excluded:
$ lazyenv init -g -l False
📚 Roadmap
- Load
.envfiles and/or global enviroment variables. - Dot notation access for environment variables.
- Fuzzy search/lookup functionality.
- Sync feature.
📌 Contributing
Contributions are welcome!
👥 License
This project is licensed under the MIT License. See the LICENSE file for details.
🙏 Acknowledgments
Inspired by the projects python-dotenv and python-decouple.
🤝 Contact
- GitHub: @Valmont-Coding
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lazyenv-0.1.0.tar.gz.
File metadata
- Download URL: lazyenv-0.1.0.tar.gz
- Upload date:
- Size: 624.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53a01c0c6cc43612f4fab6b0d67c965e47b791d9381b770a5dfb4f74b31f0518
|
|
| MD5 |
2b736c7ee2c323dd5b79986bdecc6088
|
|
| BLAKE2b-256 |
0f0dad1edba50e819513d716ba759b925c8679d61b90b06a74796623423b06da
|
File details
Details for the file lazyenv-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lazyenv-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3851a47290709c289827c6c8f7c8ba39f1206b07ae29cee1f234bd0b00a36740
|
|
| MD5 |
234c5f28422d36d8fdf32a6c2c13e69a
|
|
| BLAKE2b-256 |
3759e5fd04db06cd5b35cb170a9647a960769d8d2c9da2ee139102597cd901af
|