Skip to main content

Preference system for applications

Project description

bp.preferences is based on the Preference package available on PyPI (

It overwrites the load_files method to change the behaviour of loading preferences from different files. On initialization preferences are always loaded in this order:

  • package_location/file_name.cfg (contains default preferences)
  • /etc/file_name
  • ~/.file_name
  • current_working_direcory/file_name

Additionaly some methods are added to make conversion of preference values to Python types easier:

def _toString(self, value):
Converts a string enclosed with single or double quotes to a Python string without quotes. This is needed e.g. to support preference values with leading/trailing whitespace characters.



  • Initial release

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bp.preferences, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size bp.preferences-0.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page