Skip to main content

environment

Project description

python-file-sync

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.0.tar.gz (5.2 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.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sync_env-1.0.0.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

Hashes for sync_env-1.0.0.tar.gz
Algorithm Hash digest
SHA256 096324068a09637044fd32fa0ce66020d95f9ff5fa029ed16d6c58c1a7d6139f
MD5 9b11f9821dc5175c7b6acd6727cde1b0
BLAKE2b-256 9df4067ea6255c9a500934ff8e47d9f004ea810dcd42dec1c82f358612aca679

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sync_env-1.0.0-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

Hashes for sync_env-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e98d35b1da23c06f19b36a89364c2dc37e3e496b0499c9f678722ef6af0ec7ad
MD5 ee44b159042f39dc78379c563528dc87
BLAKE2b-256 c9ca7dd43dcdddd7de4cd62281f919c0b23728896134e43fc1bfa05e6215fde9

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