Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

configless is tiny small configurator, inspired by pyramid’s configurator. but this is silly not comprehensive.

how to use

you can develop foo function, so IHasFoo interface. and you are providing two variants of foo function. ( and are these)

## definition
from zope.interface import Interface, implementer
from configless.interfaces import IPlugin

class IHasFoo(Interface):
    def foo():

@implementer(IHasFoo, IPlugin)
class MyFoo(object):
    def create_from_setting(cls, settings):
        return cls()

    def foo(self):
        return "my"

class YourFoo(object):
    def create_from_setting(cls, settings):
        return cls()

    def foo(self):
        return "your"

## using
from configless import Configurator
config = Configrator()

## install many plugins about `foo`
config.add_plugin("", MyFoo, categoryname="foo")
config.add_plugin("", YourFoo, categoryname="foo")

## activate plugin, then, is used by plugin about `foo`.
result = config.activate_plugin("")

## so, configurator has function about result # => "my"


you can provides ‘foo’ function

  • define plugin
  • install plugin – via config.add_plugin(..)
  • activate plugin – via config.activate_plugin(..)

Release History

This version
History Node


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
(4.9 kB) Copy SHA256 Hash SHA256
Source None May 7, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting