https://github.com/agust613/app_crud_rest_api
App CRUD with FastAPI and SQLite3
https://github.com/agust613/app_crud_rest_api
api application async-await backend crud css database fastapi fetch-api frontend html javascript python randomuser-api sqlite3 table tablemanager
Last synced: 2 months ago
JSON representation
App CRUD with FastAPI and SQLite3
- Host: GitHub
- URL: https://github.com/agust613/app_crud_rest_api
- Owner: AgusT613
- Created: 2023-06-28T02:46:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T01:00:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-04T22:26:48.160Z (4 months ago)
- Topics: api, application, async-await, backend, crud, css, database, fastapi, fetch-api, frontend, html, javascript, python, randomuser-api, sqlite3, table, tablemanager
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Application with a RestAPI and Database
This proyect implements the standard python library sqlite3 to create a database
and connects to it through different methods and functions.### Content
- Backend
- FastAPI
- SQLite3
- [Random User API](randomuser.me)## About the proyect
The main class `Table` (on `tables.py`) is an object in which it is being implemented
the different queries as methods and functions that can be called from the FastAPI
application.### How it starts
> Creates a new table object named 'Users'
```
user_table = Table('Users')
```> Creates the table 'Users' on database
```
user_table.create()
```> Import a number of random users from [Random User API](randomuser.me)
```
user_table.import_random_users(45)
```In addition, the data will be able to be manipulated by a frontend user
in future commits.## About the path of the database
By default the database is named as `user.db` in the same directory as `tables.py`.