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

License

This project is licensed under the MIT License - see the LICENSE file for details.

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.4.0.tar.gz (2.6 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.4.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: homesweethome-0.4.0.tar.gz
  • Upload date:
  • Size: 2.6 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.4.0.tar.gz
Algorithm Hash digest
SHA256 8337bd4c79161e4e8766784b63bb5c67b4194c4717692b782a0dc4ae4969652a
MD5 fa2f14585363d13250128c811ba0c80b
BLAKE2b-256 da27ee6972ae2889f87192450c5b306667820b026e76313da7e8603ed5e91a39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: homesweethome-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56236414c261122e2bbc094c1c1b3b45f0f270cfeeefc1717f391e03510105a9
MD5 c9f696ff187e577993db0ff97c6fc84d
BLAKE2b-256 2e8c44a95b1802648c467e4184fc1156b312fd548ba76413fa30c1a3b4fbdc01

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