Super Duper Simple dotenv (.env) handler
Project description
Super Simple Environment
Super Duper Simple, Super Duper Easy dotenv (.env) package in Python.
Feature
- Handle dotenv (.env)
- Import, Load, and Use it now!
Installation
Requirements
- Python 3.X
You can just install Environment package by using pip:
pip install ssenv
Usage
Import the package
First, you should import the package and create an instance of Environment class.
import ssenv
env = ssenv.Environment()
Load the dotenv
You can load the dotenv file by using load_dotenv() method. If you want to reload the dotenv file, you can just use load_dotenv() method again.
env.load_dotenv()
Use it!
You can use the dotenv file by using get() method. If you want to get the value of the dotenv, you can just use get() method with the key of the dotenv. If the dotenv file doesn't have the key, it will return None.
pwd = env.get('MY_PASSWORD')
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssenv-1.0.1.tar.gz.
File metadata
- Download URL: ssenv-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d408224ce9a6dfd73e5d408b891dca4228091fd00e9cd6e097f0da16f56d7fdc
|
|
| MD5 |
143f93d5d3fbfbcaad9a6a1ea8179458
|
|
| BLAKE2b-256 |
188c77f8c8ba4898407cf22214377030d5cced1c249253435fda7286540a7275
|
File details
Details for the file ssenv-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ssenv-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b62779b3f70c55dd01548459059242cb4e38ad5f1aa703ea15ed039ff304505c
|
|
| MD5 |
3905c4183be65a949c8dc2185899d4a3
|
|
| BLAKE2b-256 |
42456a4c4f34edc07bf6ccedbaaa4c4478a1f1b79fb00748f88efaf8e960a7b9
|