Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/night-crawler/uwsgi-env
Automatically populates env with UWSGI environment variables and runs uwsgi
https://github.com/night-crawler/uwsgi-env
env environment-vars flask uwsgi
Last synced: about 1 month ago
JSON representation
Automatically populates env with UWSGI environment variables and runs uwsgi
- Host: GitHub
- URL: https://github.com/night-crawler/uwsgi-env
- Owner: night-crawler
- License: mit
- Created: 2018-01-11T07:14:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-11T07:19:03.000Z (almost 7 years ago)
- Last Synced: 2024-08-15T19:05:31.350Z (4 months ago)
- Topics: env, environment-vars, flask, uwsgi
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
```bash
pip install -e git+https://github.com/night-crawler/uwsgi-env.git#egg=uwsgi-env
# OR
pip install uwsgi-env
```### Usage
```python
@manager.option('-h', '--host', dest='host')
@manager.option('-p', '--port', dest='port')
def uwsgi(host=None, port=None,):
from uwsgi_env.utils import uwsgi as _uwsgi
return _uwsgi(host=host, port=port, project='my_project')```
Original by @unbit, [django-uwsgi](https://github.com/unbit/django-uwsgi)