Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basemax/fastapismsauth
This is a simple example of how to use Python FastAPI to create a simple authentication system based on phone number with SMS verification. We used SQLite as a database. (Login, Register, Auth, Panel, Whoiam, Hi)
https://github.com/basemax/fastapismsauth
api fastapi fastapi-api fastapi-auth fastapi-crud fastapi-example fastapi-json fastapi-sample fastapi-users py python
Last synced: about 1 month ago
JSON representation
This is a simple example of how to use Python FastAPI to create a simple authentication system based on phone number with SMS verification. We used SQLite as a database. (Login, Register, Auth, Panel, Whoiam, Hi)
- Host: GitHub
- URL: https://github.com/basemax/fastapismsauth
- Owner: BaseMax
- License: gpl-3.0
- Created: 2023-01-25T10:29:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T20:07:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T22:53:46.399Z (about 1 month ago)
- Topics: api, fastapi, fastapi-api, fastapi-auth, fastapi-crud, fastapi-example, fastapi-json, fastapi-sample, fastapi-users, py, python
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fast API SMS Authentication
This is a simple example of how to use FastAPI to create a simple authentication system based on phone number with SMS verification. We used SQLite as a database. (Login, Register, Auth, Panel, Whoiam, Hi)
## Routes
- `/register`: Register a new user (name, phone number, city)
- `/login`: Login with phone number
- `/auth`: Authenticate with verification code
- `/panel`: Get user info
- `/whoiam`: Get user role
- `/hi`: Hi### FastAPI
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
## How to run
```bash
$ uvicorn main:app --reload
```## How to test
```bash
$ python test.py
```## How to debug
```bash
$ python print-db.py
```Copyright (c) 2022, Max Base