maldoinc / wireup-demo

Demo application for maldoinc/wireup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wireup demo

Demo application for WireUp, a Python dependency injection library.

Additionally uses request-mapper to map incoming request data to Pydantic models.

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

About

Demo application for maldoinc/wireup

License:MIT License


Languages

Language:Python 100.0%