Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muayyad-alsadi/uPyApp
Micro-service template for python
https://github.com/muayyad-alsadi/uPyApp
bottle bottlepy microservice python web web-app
Last synced: about 1 month ago
JSON representation
Micro-service template for python
- Host: GitHub
- URL: https://github.com/muayyad-alsadi/uPyApp
- Owner: muayyad-alsadi
- License: apache-2.0
- Created: 2016-09-24T11:55:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T07:28:20.000Z (over 4 years ago)
- Last Synced: 2024-10-18T00:56:25.041Z (about 2 months ago)
- Topics: bottle, bottlepy, microservice, python, web, web-app
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-jordan - uPyApp - Python Microservice Web Application scafold using [bottlepy](https://bottlepy.org/) (Python / Gists)
README
# uPyApp - Micro-service template for python
## Features
## Structure
## How to use
copy the project, search for `MyApp` and `my-app` and change it to whatever you like
## Setup and run
to init the project
```
cp example/my-app.ini my-app.ini
cp example/uwsgi.ini uwsgi.ini
virtualenv --system-site-packages virtualenv
source bin/activate
pip install -r requirements.txt
```you can script `uwsgi.ini` edits with crudini
```
crudini --set uwsgi.ini uwsgi cheaper-rss-limit-soft "$(( TOTAL_MEM * 1 / 3 ))"
crudini --set uwsgi.ini uwsgi cheaper-rss-limit-hard "$(( TOTAL_MEM * 3 / 8 ))"
```