Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appspace

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appspace

easy application construction with easy building blocks

  • 0.5.4
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc