Skip to main content

No project description provided

Project description

HomeSweetHome

HomeSweetHome is a library providing opinionated home directory and Dynaconf-based configuration for Python projects.

Usage

Let's say that your application is named myapp.

By default HomeSweetHome assumes your application directory is ~/.myapp and that default configuration file for your application is a YML file ~/.myapp/myapp.yml. In order to make sure the following structure is in place, just create SweetHome object.

from homesweethome.homesweethome import SweetHome

sweet_home = SweetHome("myapp")

Now you can read properties from the configuration YML:

from homesweethome.homesweethome import SweetHome

sweet_home = SweetHome("myapp")
host = sweet_home.read_setting("server.host")
port = sweet_home.read_setting("server.port")

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

homesweethome-0.3.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

homesweethome-0.3.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file homesweethome-0.3.0.tar.gz.

File metadata

  • Download URL: homesweethome-0.3.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for homesweethome-0.3.0.tar.gz
Algorithm Hash digest
SHA256 55d0247590b423905470530b96b6558e8baaacf5d812b6bd0634867108e20ff0
MD5 5e79ed33e5a5b3bc78250a2367da3f61
BLAKE2b-256 d5913b7c876533af4b18bb8d6b7ec91dd5902be30efd1fae5f8eee97eef54141

See more details on using hashes here.

File details

Details for the file homesweethome-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: homesweethome-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for homesweethome-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d0926f83517718db0bca1f72111e8053f16d326ac09cb6b0f6f33b1f6dca089
MD5 61a118cc71248fb0a38e5ac5f8f5d312
BLAKE2b-256 7acc41dca9271d1e7b5cdeed09e364c82089720a7f58d8b7e83227f28069b39b

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