Skip to main content

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

abstract_security-0.0.1.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

abstract_security-0.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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