/wireup-demo

Demo application for maldoinc/wireup

Primary LanguagePythonMIT LicenseMIT

Wireup demo

Demo application for WireUp, a Python dependency injection library.

Usage

This is intended as a demo to showcase various aspects of wireup. Feel free to explore and play around with to get familiar with the library.

Points of interest

  • app/app.py - Container parameter initialization.
  • app/service - Service declaration.
  • app/blueprint - Autowiring api views.
  • test - Tests. Various examples on testing the services in isolation.

Running the api

env FLASK_APP=app/app.py DB_CONNECTION_URL=sqlite:///var/blog.db MAILER_DSN="smtp://..." python -m flask run