├── .docker ├── dev.env ├── graylog │ └── dev.env └── test.env ├── .dockerignore ├── .editorconfig ├── .env-example ├── .gitignore ├── Dockerfile ├── Dockerfile-prd ├── Jenkinsfile ├── Makefile ├── README.md ├── __version__.py ├── apps ├── __init__.py ├── app.py ├── auth │ ├── __init__.py │ ├── commands.py │ ├── exceptions.py │ ├── resources.py │ ├── schemas.py │ └── use_case.py ├── events │ ├── __init__.py │ └── user_created.py ├── extensions │ ├── __init__.py │ ├── api.py │ ├── config.py │ ├── db.py │ ├── jwt.py │ ├── logging.py │ ├── messages.py │ └── responses.py └── users │ ├── __init__.py │ ├── commands.py │ ├── exceptions.py │ ├── models.py │ ├── repositories.py │ ├── resources.py │ ├── resources_admin.py │ ├── schemas.py │ ├── use_case.py │ └── utils.py ├── boot.sh ├── confs ├── gunicorn_api_users.conf.py ├── nginx_api_users.conf ├── nginx_api_users_https.conf └── supervisor_api_users.conf ├── docker-compose.yaml ├── fabfile.py ├── gunicorn_settings.py ├── poetry.lock ├── pyproject.toml ├── pytest.ini ├── requirements.txt ├── requirements └── base.txt ├── run.py ├── setup.cfg ├── setup.py ├── static ├── Insomnia_2023-05-11.json ├── coverage.svg ├── create-superuser-with-docker.gif ├── create-superuser.gif ├── docker-create-user.gif ├── login-and-fetch-users.gif ├── make-test.gif └── openapi3.png └── tests ├── __init__.py ├── auth ├── __init__.py └── test_resources.py ├── conftest.py ├── factories ├── __init__.py └── users.py ├── home ├── __init__.py └── test_home.py ├── messages └── test_messages.py ├── responses └── test_responses.py └── users ├── __init__.py ├── test_admin_user_by_cpf.py ├── test_admin_user_page_list.py ├── test_check_password_in_signup.py ├── test_cpf.py ├── test_generate_password.py ├── test_models.py ├── test_repositories.py └── test_resources.py /.docker/dev.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.docker/dev.env -------------------------------------------------------------------------------- /.docker/graylog/dev.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.docker/graylog/dev.env -------------------------------------------------------------------------------- /.docker/test.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.docker/test.env -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env-example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.env-example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/Dockerfile -------------------------------------------------------------------------------- /Dockerfile-prd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/Dockerfile-prd -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/Jenkinsfile -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/README.md -------------------------------------------------------------------------------- /__version__.py: -------------------------------------------------------------------------------- 1 | version = '1.0.29' 2 | -------------------------------------------------------------------------------- /apps/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/app.py -------------------------------------------------------------------------------- /apps/auth/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/auth/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/auth/commands.py -------------------------------------------------------------------------------- /apps/auth/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/auth/exceptions.py -------------------------------------------------------------------------------- /apps/auth/resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/auth/resources.py -------------------------------------------------------------------------------- /apps/auth/schemas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/auth/schemas.py -------------------------------------------------------------------------------- /apps/auth/use_case.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/auth/use_case.py -------------------------------------------------------------------------------- /apps/events/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/events/user_created.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/events/user_created.py -------------------------------------------------------------------------------- /apps/extensions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/extensions/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/api.py -------------------------------------------------------------------------------- /apps/extensions/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/config.py -------------------------------------------------------------------------------- /apps/extensions/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/db.py -------------------------------------------------------------------------------- /apps/extensions/jwt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/jwt.py -------------------------------------------------------------------------------- /apps/extensions/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/logging.py -------------------------------------------------------------------------------- /apps/extensions/messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/messages.py -------------------------------------------------------------------------------- /apps/extensions/responses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/extensions/responses.py -------------------------------------------------------------------------------- /apps/users/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/users/commands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/commands.py -------------------------------------------------------------------------------- /apps/users/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/exceptions.py -------------------------------------------------------------------------------- /apps/users/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/models.py -------------------------------------------------------------------------------- /apps/users/repositories.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/repositories.py -------------------------------------------------------------------------------- /apps/users/resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/resources.py -------------------------------------------------------------------------------- /apps/users/resources_admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/resources_admin.py -------------------------------------------------------------------------------- /apps/users/schemas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/schemas.py -------------------------------------------------------------------------------- /apps/users/use_case.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/use_case.py -------------------------------------------------------------------------------- /apps/users/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/apps/users/utils.py -------------------------------------------------------------------------------- /boot.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/boot.sh -------------------------------------------------------------------------------- /confs/gunicorn_api_users.conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/confs/gunicorn_api_users.conf.py -------------------------------------------------------------------------------- /confs/nginx_api_users.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/confs/nginx_api_users.conf -------------------------------------------------------------------------------- /confs/nginx_api_users_https.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/confs/nginx_api_users_https.conf -------------------------------------------------------------------------------- /confs/supervisor_api_users.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/confs/supervisor_api_users.conf -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /fabfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/fabfile.py -------------------------------------------------------------------------------- /gunicorn_settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/gunicorn_settings.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/pytest.ini -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/requirements.txt -------------------------------------------------------------------------------- /requirements/base.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/requirements/base.txt -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/run.py -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/setup.py -------------------------------------------------------------------------------- /static/Insomnia_2023-05-11.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/Insomnia_2023-05-11.json -------------------------------------------------------------------------------- /static/coverage.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/coverage.svg -------------------------------------------------------------------------------- /static/create-superuser-with-docker.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/create-superuser-with-docker.gif -------------------------------------------------------------------------------- /static/create-superuser.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/create-superuser.gif -------------------------------------------------------------------------------- /static/docker-create-user.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/docker-create-user.gif -------------------------------------------------------------------------------- /static/login-and-fetch-users.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/login-and-fetch-users.gif -------------------------------------------------------------------------------- /static/make-test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/make-test.gif -------------------------------------------------------------------------------- /static/openapi3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/static/openapi3.png -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auth/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auth/test_resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/auth/test_resources.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/factories/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/factories/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/factories/users.py -------------------------------------------------------------------------------- /tests/home/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/home/test_home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/home/test_home.py -------------------------------------------------------------------------------- /tests/messages/test_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/messages/test_messages.py -------------------------------------------------------------------------------- /tests/responses/test_responses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/responses/test_responses.py -------------------------------------------------------------------------------- /tests/users/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/users/test_admin_user_by_cpf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_admin_user_by_cpf.py -------------------------------------------------------------------------------- /tests/users/test_admin_user_page_list.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_admin_user_page_list.py -------------------------------------------------------------------------------- /tests/users/test_check_password_in_signup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_check_password_in_signup.py -------------------------------------------------------------------------------- /tests/users/test_cpf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_cpf.py -------------------------------------------------------------------------------- /tests/users/test_generate_password.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_generate_password.py -------------------------------------------------------------------------------- /tests/users/test_models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_models.py -------------------------------------------------------------------------------- /tests/users/test_repositories.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_repositories.py -------------------------------------------------------------------------------- /tests/users/test_resources.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucassimon/flask-api-users/HEAD/tests/users/test_resources.py --------------------------------------------------------------------------------