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
Metadata
Release files for lazyenv 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lazyenv-0.1.0.tar.gz | 624.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lazyenv-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 630.0 kB
Release files / lazyenv-0.1.0.tar.gz
| Download URL | lazyenv-0.1.0.tar.gz |
|---|---|
| Size | 624.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53a01c0c6cc43612f4fab6b0d67c965e47b791d9381b770a5dfb4f74b31f0518
|
|
BLAKE2b-256 checksum How to use checksums |
0f0dad1edba50e819513d716ba759b925c8679d61b90b06a74796623423b06da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.13
|
Release files / lazyenv-0.1.0-py3-none-any.whl
| Download URL | lazyenv-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3851a47290709c289827c6c8f7c8ba39f1206b07ae29cee1f234bd0b00a36740
|
|
BLAKE2b-256 checksum How to use checksums |
3759e5fd04db06cd5b35cb170a9647a960769d8d2c9da2ee139102597cd901af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.13
|