Skip to content

Commit

Permalink
✨: Fix Documentation issue (#45)
Browse files Browse the repository at this point in the history
* Delete unused File

* Fix Readme issues

* Add a DocString to Main file

* Bump the Version
  • Loading branch information
yezz123 authored Sep 29, 2021
1 parent eb2c57b commit bfd547f
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion AuthX/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Ready to use and customizable Authentications and Oauth2 management for FastAPI"""

__version__ = "0.0.4"
__version__ = "0.0.5"

from AuthX.main import Authentication, AuthX, User

Expand Down
13 changes: 13 additions & 0 deletions AuthX/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@


class AuthX:
"""
Here we define the routers for the API.
This is AuthX specific, so we can't use the fastapi router.
"""

def __init__(
self,
access_cookie_name: str,
Expand Down Expand Up @@ -67,6 +72,14 @@ async def admin_required(self, request: Request) -> None:


class Authentication(AuthX):
"""
Here we define the routers for the API.
Authentication the based class where we can define the routers relate to AuthX.
Args:
AuthX: The base class for the routers.
"""

def __init__(
self,
debug: bool,
Expand Down
41 changes: 20 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# AuthX

![authx](.github/header.svg)
![authx](https://user-images.githubusercontent.com/52716203/135356258-b4c2caa8-4996-40f8-951d-d50a4ba049f9.png)

[![Downloads](https://pepy.tech/badge/authx/month)](https://pepy.tech/project/authx)
[![Testing on Docker](https://github.com/yezz123/AuthX/actions/workflows/docker.yml/badge.svg)](https://github.com/yezz123/AuthX/actions/workflows/docker.yml)
[![PyPI version](https://badge.fury.io/py/AuthX.svg)](https://badge.fury.io/py/AuthX)

- Ready to use and customizable Authentications and Oauth2 management for FastAPI ⚡
Expand All @@ -26,25 +25,25 @@ __Note__: This is a **beta** version of AuthX.

## Features

- [X] Extensible base user model
- [X] Ready-to-use register, login, reset password and verify e-mail routes.
- [X] Ready to use Social login and Oauth2 routes. (now with Google, Facebook)
- [ ] Soon with Microsoft, Twitter, Github, etc.
- [X] Ready-to-use social OAuth2 login flow
- [X] Tested Project on [Docker](https://docker.com/).
- [X] Dependency callable to inject current user in route
- [X] Pluggable password validation
- [X] Using Captcha Service.
- [X] Using Email Service. (SMTP)
- [X] Extensible Error Handling
- [X] High level API to manage users, roles and permissions
- [X] Using Redis as a session store & cache.
- [X] Customizable database backend
- [X] MongoDB async backend included thanks to [mongodb/motor](https://github.com/mongodb/motor)
- [X] Multiple customizable authentication backend
- [X] JWT authentication backend included
- [ ] Soon to be included Cookie authentication backend
- [X] Full OpenAPI schema support, even with several authentication backend.
- Extensible base user model.
- Ready-to-use register, login, reset password and verify e-mail routes.
- Ready to use Social login and Oauth2 routes. (now with Google, Facebook)
- Soon with Microsoft, Twitter, Github, etc.
- Ready-to-use social OAuth2 login flow
- Tested Project on [Docker](https://docker.com/).
- Dependency callable to inject current user in route
- Pluggable password validation
- Using Captcha Service.
- Using Email Service. (SMTP)
- Extensible Error Handling
- High level API to manage users, roles and permissions
- Using Redis as a session store & cache.
- Customizable database backend:
- MongoDB async backend included thanks to [mongodb/motor](https://github.com/mongodb/motor)
- Multiple customizable authentication backend:
- JWT authentication backend included
- Soon to be included Cookie authentication backend
- Full OpenAPI schema support, even with several authentication backend.

## Project using

Expand Down
2 changes: 1 addition & 1 deletion Setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.0.4
current_version = 0.0.5
commit = True
tag = True

Expand Down
8 changes: 0 additions & 8 deletions build.py

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setuptools

VERSION = "0.0.4"
VERSION = "0.0.5"

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down

0 comments on commit bfd547f

Please sign in to comment.