Skip to main content

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.5.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sync_env-1.0.5-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file sync_env-1.0.5.tar.gz.

File metadata

  • Download URL: sync_env-1.0.5.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for sync_env-1.0.5.tar.gz
Algorithm Hash digest
SHA256 32df284f477cbe0129e0b8ca6436db4652356ffdc22d8122722c8bf092debc8e
MD5 c397125d4e9c70cff2404a57525769d7
BLAKE2b-256 a8b683fea93e59418c86ed46dcd7da50b1e87f192f019a7387f96e04a65c6481

See more details on using hashes here.

File details

Details for the file sync_env-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: sync_env-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for sync_env-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc97c74e85d876a7fae7faf509fe16a7027b8d18bdefd5f2240aa3fef652f19
MD5 d0347e078695b3b863a169c617a9e481
BLAKE2b-256 b1a60c3be9bb00da032c424ac4365283e8979f354307151b8203daf7d612c25c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page