abstract_security is a python module that simplifies the handling of environment variables. It provides functions for searching for and reading .env files, checking for the existence of .env files in a specified path, safely loading .env files, and retrieving the value of specified environment variables.
Project description
# Abstract Security
Abstract Security is a Python module that simplifies the handling of environment variables. It provides functions for searching for and reading .env files, checking for the existence of .env files in a specified path, safely loading .env files, and retrieving the value of specified environment variables.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Functions](#functions)
- [License](#license)
- [Contact](#contact)
## Installation
```bash
pip install abstract_security
Usage
from abstract_security import get_env_value
# Retrieve the value of the MY_PASSWORD environment variable from the .env file
password = get_env_value()
Functions
find_and_read_env_file
Search for an environment file and read a specific key from it.
search_for_env_key
Search for a specific key in a .env file.
check_env_file
Check if the environment file exists in a specified path.
safe_env_load
Safely load the .env file if it exists at a specified path.
get_env_value
Retrieves the value of the specified environment variable.
For more detailed information, refer to the function docstrings in the code.
License
This project is licensed under the MIT License - see the LICENSE file for details
Contact
Author: putkoff
Email: partners@abstractendeavors.com
Project Link: https://github.com/AbstractEndeavors/abstract_essentials/abstract_security
---
Please note that the usage sections are basic and may not encompass all the functionalities your module provides. You might need to adjust or add more examples based on the complexity of your module.
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
Built Distribution
Hashes for abstract_security-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10d7a221ba3807e7e08f16bb34513d918172b770caccc2318e698c36c24769f8 |
|
MD5 | 4e4275a708a95b336e0d8dd40c3c1427 |
|
BLAKE2b-256 | f140f81f22b34ea82a2ebd53b37ad0d3e6b58ab83936f9577c485b00b20d8518 |