Metadata-Version: 2.1
Name: read_env_keys
Version: 0.0.1
Summary: A small package to easily read API keys from env files
Project-URL: Homepage, https://github.com/MidpriceDog/read-env
Project-URL: Bug Tracker, https://github.com/MidpriceDog/read-env/issues
Author: MidpriceDog
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# read-env
Boilerplate code to read API keys from a .env file in Python

## Quickstart

Clone the repo to your computer. Place the `read_env.py` file in any directory where you need to read from a `.env` file. Import the necessary functions from the file as usual. The function options are described in brief below.

- `read_pair_from_env`: Read key pair from specified env file
- `read_key_from_env`: Read API key from specified env file
- `read_sec_from_env`: Read API secret from specified env file

See the source code doc strings for more detailed exaplantion of function behavior.

## Example

The example below assumes you have cloned the repo to the directory where your .env file is to be read from.

```python
from read_env import *

key = read_key_from_env("/Users/MyName/Desktop/PythonFiles/MyPythonProject/my_env_file.env")
```

## Requirements

Run 

```
pip install -r requirements.txt
```
