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 hashes)

Uploaded Source

Supported by

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