Specify APIs with a Python dict and run with one line
Project description
🙈 Dead Simple Web Framework 🙉
Overview:
A dead simple framework for web applications:
Backend:
- Python 3.7 [Flask]
- MongoDB
- TODO: Kafka Hooks
- TODO: Redis Hooks
- TODO: RabbitMQ Hooks
- TODO: Celery Hooks
Installing:
$ pip install dead-simple-framework
Configuration:
TODO
Example Application:
* MongoDB must be running *
$ mongod
from dead_simple_framework import Application
sample_config = {
'/demo': {
'name': 'demo',
'methods': ['GET', 'POST', 'DELETE', 'PUT'],
'template': None,
'defaults': None,
'logic': None,
'collection': 'demo'
}
}
Application(sample_config).run()
Starts a local server at http://0.0.0.0:5000/
Serves CRUD operations for MongoDB collection demo
at endpoint /demo
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for dead_simple_framework-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35438205ba741c95a9f7dd22d4bf0bef309fed19302a16eaa581158caadd0711 |
|
MD5 | 9d802cd3c09b4f9e29deda6922e8d877 |
|
BLAKE2b-256 | 2e4e1e6068cb43ffd57dfd5c35ed2f4c27f3f73773ea97f87dc98b818960574c |