Skip to main content

This is cool mini LIBRARY for work with settings

Project description

This Is Package for fast use SETTINGS.

Example

STRUCTURE

settings
|
-- db.py
|
-- api.py
|
-- __init__.py

settings/db.py

DB_NAME = "name"
DB_PASSWORD = "password"

settings/api.py

API_TOKEN = "dekejfire"

settings/__init__.py

from settings_master import DirectorySettings, settings as this


settings = DirectorySettings(this)

Now we can use this:

from settings_master.settings import settings

assert settings.DB_NAME == "name"
assert settings.DB_PASWORD == "password"
assert settings.API_TOKEN == "dekejfire"

DEV

LINUX / MAC X

python3 setup.py sdist upload
twine upload dist/*

WINDOWS

python setup.py sdist upload
twine upload dist/*

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

settings_master-0.2.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file settings_master-0.2.0.tar.gz.

File metadata

  • Download URL: settings_master-0.2.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.3

File hashes

Hashes for settings_master-0.2.0.tar.gz
Algorithm Hash digest
SHA256 406114370012402192aa665367351adc81f3f9519ac955638096eeb784a2d4c3
MD5 e055fd2b6ced054c54d55cfa7d526697
BLAKE2b-256 acb82a257abdd9bf5e296b94799ba501ffbcb0a8579735dc919a9d37c68d944a

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