Skip to main content

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

Metadata

Release files for appspace 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for appspace 0.5.4
File Size Uploaded
appspace-0.5.4.zip 15.0 kB Details
appspace-0.5.4.tar.gz 9.8 kB Details
appspace-0.5.4.tar.bz2 8.6 kB Details

Release files / appspace-0.5.4.zip

Download URL appspace-0.5.4.zip
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
992e3b491702472e9bfdd44ca6a610b058aec431792418d1b1348ef3942690ea
BLAKE2b-256 checksum
How to use checksums
7b0e4f6146024a7b7d86758cdff1c3471bdc17633b97c8671288037efd225484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / appspace-0.5.4.tar.gz

Download URL appspace-0.5.4.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f1d9b0e74f3a82e6a1a007a66e5e4334418087f510dcb529c1368ae2c334b30e
BLAKE2b-256 checksum
How to use checksums
41f441f6711871c1b555288085d7ecca92788e698d188793ee55bdb7a6213bc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / appspace-0.5.4.tar.bz2

Download URL appspace-0.5.4.tar.bz2
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d2d3f57e8831f5272b0d83ed63bd322ac97a2055d1eb151f27cac0b15be69260
BLAKE2b-256 checksum
How to use checksums
aa4ba1e98099b5a7fee2eff4e9a08ea431b6ea247700915df0bdaf43a5fdf10e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5.4 This release

3 release files

0.5.3

3 release files

0.5.2

3 release files

0.5.1

3 release files

0.5.0

3 release files

0.4.1

5 release files

0.4.0

5 release files

0.3.3

5 release files

0.3.2

5 release files

0.3.1

5 release files

0.3.0

5 release files

0.2.0

5 release files

0.1.3

5 release files

0.1.2

5 release files

0.1.1

4 release files

0.1

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page