environment
Project description
python-sync-env
easy load environment methods for python
basic usage
environment
NONE=のん
python file
from sync_env import SyncEnv
class Env(SyncEnv):
TEST = "test"
VALUE = None
NONE = None
env = Env()
any file
from any.file import env
assert env.NONE == "なん"
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.2.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.2.tar.gz.
File metadata
- Download URL: sync_env-1.0.2.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 |
f129fdfbd8a38b475959009820af4c1f007a0ea70f9b46bbce7c8804c614f579
|
|
| MD5 |
066a2db896e8837aac91a9a28649e419
|
|
| BLAKE2b-256 |
f20f433eec1eaf6d0ee23611d5c30d34bbeeecef02cd7e8681f4e7a535c82e27
|
File details
Details for the file sync_env-1.0.2-py3-none-any.whl.
File metadata
- Download URL: sync_env-1.0.2-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 |
1ccf168a8b477d9b2de1abeaba52be2f41813a40d54c53d5a2b5f27e4ee71aa3
|
|
| MD5 |
d4d38c1740386d24adb4799d2cf22d62
|
|
| BLAKE2b-256 |
a7b9eb3300acfe1eada71ef283ae29c4af88b7b83b8b590b523736f342d5f9d3
|