Skip to main content

A Python library for easier management of environment variables.

Project description

LazyEnv Logo LazyEnv

Python Version License PyPI Version

📚 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 .env files 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 .env files 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

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

lazyenv-0.1.0.tar.gz (624.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazyenv-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for lazyenv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53a01c0c6cc43612f4fab6b0d67c965e47b791d9381b770a5dfb4f74b31f0518
MD5 2b736c7ee2c323dd5b79986bdecc6088
BLAKE2b-256 0f0dad1edba50e819513d716ba759b925c8679d61b90b06a74796623423b06da

See more details on using hashes here.

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

Hashes for lazyenv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3851a47290709c289827c6c8f7c8ba39f1206b07ae29cee1f234bd0b00a36740
MD5 234c5f28422d36d8fdf32a6c2c13e69a
BLAKE2b-256 3759e5fd04db06cd5b35cb170a9647a960769d8d2c9da2ee139102597cd901af

See more details on using hashes here.

Supported by

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