Skip to main content

Loosely coupled application plumbing

Project description

Allows arbitrary combinations of Python imports to be aggregated into a single application. This application is defined using an application configuration file (“appconf”) similar to Django’s urlconf:

>>> from appspace import patterns
>>> apps = patterns(
...    'helpers',
...    ('square', 'math.sqrt'),
...    ('fabulous', 'math.fabs'),
...    include('subapp', 'foo.bar')
... )

Members of an application objects can be accessed as object attributes, dictionary keys, or through the application object’s __call__ interface:

>>> fab1 = plug.helpers.fabulous
>>> fab2 = plug['helpers']['fabulous']
>>> fab1(2)
2.0
>>> fab2(2)
2.0
>>> plug.helpers.fabulous(2)
2.0
>>> plug('fabulous', 2)
2.0

Project details


Download files

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

Source Distributions

appspace-0.1.zip (9.0 kB view details)

Uploaded Source

appspace-0.1.tar.gz (5.1 kB view details)

Uploaded Source

appspace-0.1.tar.bz2 (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

appspace-0.1-py2.7.egg (15.5 kB view details)

Uploaded Egg

File details

Details for the file appspace-0.1.zip.

File metadata

  • Download URL: appspace-0.1.zip
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appspace-0.1.zip
Algorithm Hash digest
SHA256 500cd608ef08783ddccc52e0e1600adb0a085aa7086d4bfb0c41c74eb0e000af
MD5 b984bdc6fd31c73f72c40da6fb962113
BLAKE2b-256 5a02f3c22f41fb3ef031d3341671a09433469f0333049fd43ab9bab125b08eca

See more details on using hashes here.

File details

Details for the file appspace-0.1.tar.gz.

File metadata

  • Download URL: appspace-0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appspace-0.1.tar.gz
Algorithm Hash digest
SHA256 f59cbd44f52dcf4a6fd2150183f20777f30779d042220e2e5f28ccec21fa7932
MD5 6c66baaca7313a68c0058fcbf8a82394
BLAKE2b-256 604ee80ed35268f192e02647103dfeca34b2a32cc05dee7095683d851347d64b

See more details on using hashes here.

File details

Details for the file appspace-0.1.tar.bz2.

File metadata

  • Download URL: appspace-0.1.tar.bz2
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appspace-0.1.tar.bz2
Algorithm Hash digest
SHA256 3df0090883c197f52a494647faa455305e59a9950455bea0b167278aedc26db9
MD5 21bf662dfcbb9f1bde1974faebb1facb
BLAKE2b-256 a58421e58ef4689fc4ec826927f5635270b572dbb4b057c954030c9df2f00dec

See more details on using hashes here.

File details

Details for the file appspace-0.1-py2.7.egg.

File metadata

  • Download URL: appspace-0.1-py2.7.egg
  • Upload date:
  • Size: 15.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appspace-0.1-py2.7.egg
Algorithm Hash digest
SHA256 f90c56a6f743edcb3210b82bfbe273a13b238fb571ed88291392ed53350f781d
MD5 85d4e5c327262b9fbd172e3253298467
BLAKE2b-256 ab7557f42a18c3baa0359ae68597574d57c0ad5ab31bf310ae1ea5ff85fd23d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page