https://github.com/stanislav-web/pyruc
PyRuc (Python Redis Users Controller)
https://github.com/stanislav-web/pyruc
docker-compose docker-images jwt-authentication-flow python-jwt python-redis python-redis-jwt python3 redis redis-registration redis-users sms users-management
Last synced: 9 months ago
JSON representation
PyRuc (Python Redis Users Controller)
- Host: GitHub
- URL: https://github.com/stanislav-web/pyruc
- Owner: stanislav-web
- License: gpl-3.0
- Created: 2017-10-26T18:39:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T06:17:10.000Z (about 8 years ago)
- Last Synced: 2025-01-23T22:14:07.705Z (10 months ago)
- Topics: docker-compose, docker-images, jwt-authentication-flow, python-jwt, python-redis, python-redis-jwt, python3, redis, redis-registration, redis-users, sms, users-management
- Language: Python
- Homepage: http://drunk-start.surge.sh
- Size: 341 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### PyRuc (Python Redis Users Controller)
PyRuc is the service for maintaining new and existing users accounts
[](https://coveralls.io/github/stanislav-web/PyRuc?branch=master) [](https://www.codacy.com/app/stanisov/PyRuc?utm_source=github.com&utm_medium=referral&utm_content=stanislav-web/PyRuc&utm_campaign=Badge_Grade) [](https://github.com/stanislav-web/PyRuc/blob/master/LICENSE) [](https://github.com/stanislav-web/PyRuc/releases)
| Python | Status |
|:-:|:-:|
|3.5|[](https://travis-ci.org/stanislav-web/PyRuc) |
|3.6|[](https://travis-ci.org/stanislav-web/PyRuc) |
##### What do you get out of the box?
- User's account maintenance in mode of persistent storage use
- Granting access to your internal services
- Rapid recovery access in case of loss of control
##### Requirements
- Python >= 3.5
- Redis >= 4
##### Implemented
- Gunicorn WSGI
- Gevent as default async worker for Gunicorn
- Python flask
- Twilio SMS notifier
- Logstash client as logs filter to Elastic
- JWT authentication
- Redis as persistent user's storage
##### Configuration
```bash
/app/env/development.env
/app/env/production.env
```
##### Installation
- Docker
```bash
# ENV development: using /app/env/development.env
> docker-compose --file docker-compose.dev.yml up --build
# ENV production: using /app/env/production.env
> docker-compose --file docker-compose.prod.yml up --build
```
- Manualy & Run
```bash
> cd app
> pip install -r requirements.txt
> gunicorn -c config.py server --reload
```
##### Try API
[http://drunk-start.surge.sh](http://drunk-start.surge.sh)
##### Diagrams



#### Tests
```bash
> cd app && coverage run setup.py test
```