environment
Project description
python-sync-env
easy load environment methods for python
basic
environment
NONE=のん
python file
from sync_env import SyncEnv
class Env(SyncEnv):
TEST = "test"
VALUE = None
NONE: str = None
env = Env()
output
# ~~
if __name__ == "__main__":
print(env.TEST)
print(env.VALUE)
print(env.NONE)
test
None
のん
generate
generate script
from sync_env import SyncEnv, GenerateEnv
class EnvA(SyncEnv):
one = None
two = None
class EnvB(SyncEnv):
two = None
three = None
ge = GenerateEnv([
EnvA,
EnvB
])
ge.generate()
output
.env
one=
two=
three=
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
sync_env-1.0.1.tar.gz
(5.2 kB
view details)
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 sync_env-1.0.1.tar.gz.
File metadata
- Download URL: sync_env-1.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9421604f1a9ef5e080a02c6f6698bfeffbecc91d791bf41d2ffa797e119fdca
|
|
| MD5 |
ba1a390ed8629e3516e3e48841f3de2d
|
|
| BLAKE2b-256 |
2da65e0f7f7568391ce7c90b74ef947c5534a242eee828134d8742a0079150b3
|
File details
Details for the file sync_env-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sync_env-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.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc03f9b7194c7a23e96db6c9b9c7ccb0b9cdaa653edf6c0c2ec2f5177aa4cfb
|
|
| MD5 |
cddacb097a8e9fcb99e1f85175c1753b
|
|
| BLAKE2b-256 |
6bfa4fd9fe74a8ff9d1678981659e2e6b3bfa93004263276a186441fe807d70b
|