Skip to main content

easy application construction with easy building blocks

Project description

appspace is a component injection framework that allows any mishmash of Python classes, objects, functions, or modules to be dynamically cobbled together into an application.

An appspaced application is built with an appconf (application configuration) similar to a Django urlconf:

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

Once configured, application components can be accessed as object attributes, dictionary keys, or by calling the component manager directly:

>>> 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.5.4.zip (15.0 kB view details)

Uploaded Source

appspace-0.5.4.tar.gz (9.8 kB view details)

Uploaded Source

appspace-0.5.4.tar.bz2 (8.6 kB view details)

Uploaded Source

File details

Details for the file appspace-0.5.4.zip.

File metadata

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

File hashes

Hashes for appspace-0.5.4.zip
Algorithm Hash digest
SHA256 992e3b491702472e9bfdd44ca6a610b058aec431792418d1b1348ef3942690ea
MD5 022da8c15050d6bff1f8d03b57446f70
BLAKE2b-256 7b0e4f6146024a7b7d86758cdff1c3471bdc17633b97c8671288037efd225484

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for appspace-0.5.4.tar.gz
Algorithm Hash digest
SHA256 f1d9b0e74f3a82e6a1a007a66e5e4334418087f510dcb529c1368ae2c334b30e
MD5 cd1e74743d28e90f5540d6285fda918a
BLAKE2b-256 41f441f6711871c1b555288085d7ecca92788e698d188793ee55bdb7a6213bc7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for appspace-0.5.4.tar.bz2
Algorithm Hash digest
SHA256 d2d3f57e8831f5272b0d83ed63bd322ac97a2055d1eb151f27cac0b15be69260
MD5 3ec290bcb3e7c4c09ee830921755640d
BLAKE2b-256 aa4ba1e98099b5a7fee2eff4e9a08ea431b6ea247700915df0bdaf43a5fdf10e

See more details on using hashes here.

Supported by

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