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')
Metadata
Release files for ssenv 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ssenv-1.0.1.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssenv-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / ssenv-1.0.1.tar.gz
| Download URL | ssenv-1.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d408224ce9a6dfd73e5d408b891dca4228091fd00e9cd6e097f0da16f56d7fdc
|
|
BLAKE2b-256 checksum How to use checksums |
188c77f8c8ba4898407cf22214377030d5cced1c249253435fda7286540a7275
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / ssenv-1.0.1-py3-none-any.whl
| Download URL | ssenv-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b62779b3f70c55dd01548459059242cb4e38ad5f1aa703ea15ed039ff304505c
|
|
BLAKE2b-256 checksum How to use checksums |
42456a4c4f34edc07bf6ccedbaaa4c4478a1f1b79fb00748f88efaf8e960a7b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|