Skip to main content

Configuration components for the SPARC platform

Project description

Basic common configuration tools used in the SPARC platform. Includes, but not limited to Zope Component ZCML utilities.

ZCA Configuration

Tools that leverage SPARC packages are usually also dependant on Zope Component Architecture ( Use of ZCA requires component configuration,which SPARC does via ZCML (

Among other things, sparc.common provides access to Configure(), an easy function that can be used to configure dependant applications.

### Usage - ZCA configuration

This simplifies your ability to create components via ZCML and have your application parse the ZCML files to allow them to be registered for lookup. >>> import a.package.that.contains.a.configure.zcml >>> import another.package.that.contains.a.configure.zcml >>> from sparc.common import Configure >>> Configure([your.package.that.contains.a.configure.zcml, … another.package.that.contains.a.configure.zcml])

You will now have access to components configured within those packages.

### Usage - Retrieve user feedback from CLI application

This simplifies the process of getting feedback for processing within a CLI application. >>> import sparc.common >>> from sparc.common import Configure >>> from sparc.common import ICallable >>> from zope.component import getUtility >>> Configure([sparc.common]) >>> asker = getUtiliy(ICallable, ‘sparc.common.ask_question’) >>> answer = asker(u”How are you?”, required = True, answers = … {‘1’:’awesome’,‘2’:’ok’,‘3’:’not so good’}, tries = 3) How are you? (1) awesome (2) ok (3) not so good

>>> print answer


  • initial release


  • let value getter have a default
  • allow pacakge-less zcml imports (file-path only zcml declarations)
  • update IPyContainerConfigValue to allow deep key reference
  • fix dependency identifiers
  • fix generator error
  • remove dependency on ZCA from implementations
  • remove dependency on zope.component
  • add travis ci config

Project details

Download files

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

Files for sparc.configuration, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sparc.configuration-0.0.2-py2-none-any.whl (22.1 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size sparc.configuration-0.0.2.tar.gz (12.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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