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.3.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.3.tar.gz.
File metadata
- Download URL: sync_env-1.0.3.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 |
e0af07ce0605fe3de83bf3da3b907aef9f704bfefd2a7b022d7ffe45beba0874
|
|
| MD5 |
ff1ca79076333cdbc4f7db3603036e94
|
|
| BLAKE2b-256 |
4b123e6d5b8400827d2afc6f04cd7a5ddc6a12be848c9b0e7210b2260f21d26c
|
File details
Details for the file sync_env-1.0.3-py3-none-any.whl.
File metadata
- Download URL: sync_env-1.0.3-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 |
d84b73a29676f03727ef08398ae2e477faf70c580ed867db12e923ac0117b783
|
|
| MD5 |
fba3d07828c8dccdf2d26aca2b70fb99
|
|
| BLAKE2b-256 |
ac805ac6c301a5d215584824aefe3a1f8acabe0215387062edf640000c0df8ee
|