Commit e94869ec authored by Eliot Berriot's avatar Eliot Berriot

Edited README

parent 3c1cd987
Changelog
=========
0.1
***
12/07/2014 - initial release
\ No newline at end of file
......@@ -3,7 +3,7 @@ Introduction
Persisting-theory is a small python utility designed to automate data discovering and access inside a list of packages. Use case: you are building an application that will have pluggable components. You want to allow these components to register data so it can be accessed by any other component of your app.
If you ever used Django framework, you may remember this:
If you ever used Django framework, you may remember this::
from django.contrib import admin
admin.autodiscover()
......@@ -72,7 +72,7 @@ API
``Registry`` inherits from python built-in `collections.OrderedDict`, which means you can use regular dict methods to access registered data::
assert callbacks_registry.get("dog")() == "Wouf"
callbacks_registry.get("dog")() # will print Wouf
assert callbacks_registry.get("chicken", None) is None
Registry.register()
......
from registries import Registry, meta_registry
version = "0.1"
\ No newline at end of file
__version__ = "0.1"
\ No newline at end of file
......@@ -13,7 +13,7 @@ setup(
packages=find_packages(),
include_package_data=True,
license='BSD', # example license
description='A python package to build registries that can autodiscover values accross your project components.',
description='A python package to build registries that can autodiscover values accross your project components',
long_description=README,
url='http://code.eliotberriot.com/eliotberriot/persisting-theory',
author='Eliot Berriot',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment