1- # FastAPIAuthenticator
1+ # FastAPIUIAuth
22
33Python module to add username and password authentication to specific FastAPI routes
44
@@ -8,20 +8,24 @@ Python module to add username and password authentication to specific FastAPI ro
88
99![ Platform] [ label-platform ]
1010
11- ## Installation
11+ ** Deployments **
1212
13- ``` shell
14- repo=" thevickypedia/FastAPIAuthenticator"
13+ [ ![ pypi] [ label-actions-pypi ]] [ gha_pypi ]
1514
16- latest=$( curl -s https://api.github.com/repos/${repo} /tags | jq -r ' .[0].name' )
15+ [ ![ Pypi] [ label-pypi ]] [ pypi ]
16+ [ ![ Pypi-format] [ label-pypi-format ]] [ pypi-files ]
17+ [ ![ Pypi-status] [ label-pypi-status ]] [ pypi ]
1718
18- pip install " git+https://github.com/${repo} .git@${latest} "
19+ ## Installation
20+
21+ ``` shell
22+ pip install FastAPI-UI-Auth
1923```
2024
2125## Usage
2226
2327``` python
24- import fastapiauthenticator as api
28+ import uiauth
2529
2630from fastapi import FastAPI
2731
@@ -34,16 +38,16 @@ async def public_route():
3438async def private_route ():
3539 return {" message" : " This is a private route" }
3640
37- api .protect(
41+ uiauth .protect(
3842 app = app,
39- params = api .Parameters(
43+ params = uiauth .Parameters(
4044 path = " /private" ,
4145 function = private_route
4246 )
4347)
4448```
4549
46- > ` FastAPIAuthenticator ` supports both ` APIRoute ` and ` APIWebSocketRoute ` routes.<br >
50+ > ` FastAPI-UI-Auth ` supports both ` APIRoute ` and ` APIWebSocketRoute ` routes.<br >
4751> Refer [ samples] directory for different use-cases.
4852
4953## Coding Standards
@@ -73,6 +77,11 @@ python -m pip install sphinx==5.1.1 pre-commit recommonmark
7377pre-commit run --all-files
7478```
7579
80+ ## Pypi Package
81+ [ ![ pypi-module] [ label-pypi-package ]] [ pypi-repo ]
82+
83+ [ https://pypi.org/project/FastAPI-UI-Auth/ ] [ pypi ]
84+
7685## License & copyright
7786
7887© ; Vignesh Rao
@@ -82,12 +91,23 @@ Licensed under the [MIT License][license]
8291[ // ] : # ( Labels )
8392
8493[ 3.11 ] : https://docs.python.org/3/whatsnew/3.11.html
85- [ license ] : https://github.com/thevickypedia/FastAPIAuthenticator /blob/main/LICENSE
94+ [ license ] : https://github.com/thevickypedia/FastAPI-UI-Auth /blob/main/LICENSE
8695[ google-docs ] : https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings
8796[ pep8 ] : https://www.python.org/dev/peps/pep-0008/
8897[ isort ] : https://pycqa.github.io/isort/
89- [ samples ] : https://github.com/thevickypedia/FastAPIAuthenticator /tree/main/samples
98+ [ samples ] : https://github.com/thevickypedia/FastAPI-UI-Auth /tree/main/samples
9099
100+ [ label-actions-pypi ] : https://github.com/thevickypedia/FastAPI-UI-Auth/actions/workflows/python-publish.yml/badge.svg
101+ [ label-pypi ] : https://img.shields.io/pypi/v/FastAPI-UI-Auth
102+ [ label-pypi-format ] : https://img.shields.io/pypi/format/FastAPI-UI-Auth
103+ [ label-pypi-status ] : https://img.shields.io/pypi/status/FastAPI-UI-Auth
104+ [ label-pypi-package ] : https://img.shields.io/badge/Pypi%20Package-FastAPI-UI-Auth-blue?style=for-the-badge&logo=Python
91105[ label-pyversion ] : https://img.shields.io/badge/python-3.11%20%7C%203.12-blue
92106[ label-platform ] : https://img.shields.io/badge/Platform-Linux|macOS|Windows-1f425f.svg
93- [ release-notes ] : https://github.com/thevickypedia/FastAPIAuthenticator/blob/main/release_notes.rst
107+ [ release-notes ] : https://github.com/thevickypedia/FastAPI-UI-Auth/blob/main/release_notes.rst
108+
109+ [ gha_pypi ] : https://github.com/thevickypedia/FastAPI-UI-Auth/actions/workflows/python-publish.yml
110+
111+ [ pypi ] : https://pypi.org/project/FastAPI-UI-Auth
112+ [ pypi-files ] : https://pypi.org/project/FastAPI-UI-Auth/#files
113+ [ pypi-repo ] : https://packaging.python.org/tutorials/packaging-projects/
0 commit comments