Skip to main content
Help us improve Python packaging – donate today!

On-demand loading and configurable paths

Project Description

# pathconfig

pathconfig is a small library that aims to make it easy to make your application configurable and find its data easily.

it features the following central functions/classes:

  • pathconfig.load_configuration creates an AppContext object that allows to retrieve configuration variables (get_config_var)
  • pathconfig.Factory is a class for objects that have parts that can be loaded on-demand. If obj is your object, and it has a load_banana method, then obj.get(‘banana’) will either returned the cached banana or invoke its load_banana method to retrieve one.
  • pathconfig.load_plugin provides a friendly wrapper around setuptools’ entry_points mechanism.

# Install The most convenient way is to install pathconfig via pip or easy_install:

pip install pathconfig

# Getting started see examples/simple_example.py

Release history Release notifications

History Node

1.0.1a0

This version
History Node

1.0

History Node

1.0a0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pathconfig-1.0.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None Sep 21, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page