Adding lots of functionality to FastAPI
Project description
BigFastAPI
BigFastAPI is an extension of FastAPI that adds a bunch of things that are commonly used in APIs.
BigFastAPI Documentation: https://bigfa.st/,
FastAPI Documentation: https://fastapi.tiangolo.com
Features
Implemented
- Authentication (login, logout)
- Users
- Organizations
- Comments
- Blog
- FAQ
- Countries
- Pages
- Contact
- Files
- Notifications
- Image
- Wallet
- PDF Converter
- Credits
- Products
In Progress
- Transactional Email sending + templates
- Plans
- Bank Accounts
- Subscriptions
- Settings
Planned
- Currency Rates
- Marketing Emails
- Research bank format providers to build on
- Analytics
- ActivityLog
How to use BigFastAPI
- Create a new python project
- Create a main.py file and set it up as described in the fastapi documentation
- install the latest version of bigfastapi by running
pip install bigfastapi
- In your main.py, import FastAPI, CORSMiddleware and the create_database function (from bigfastapi.db.database.py). You can look into the bigfastapi main.py to see everything you should import
- create a .env file and provide all the required environment variables. check check .env.sample file for a sample of what the env should contain
- Make sure you have a main that calls uvicorn in the bottom of your file
- You now have access to all the functions in bigfastapi. You can include any of them by importing (from bigfastapi.countries import app as countries) and then including a router app.include_router(countries, tags=["Countries"])
- Run the main.py file
python main.py
to start up your server. - learn more about how to use bigfastapi at https://bigfa.st/
How to contribute to BigFastAPI
- Fork and clone the bigfastapi repository.
- Create a virtual environment with
python3 -m venv env
orpython -m venv env
- Activate the virtual environment using
.\env\Scripts\Activate.ps1
(windows-powershell) or.\env\Scripts\activate.bat
(windows-command prompt) orsource /path/to/venv/bin/activate
(linux/mac) - run
pip install -r requirements.txt
- Create a .env file by copying the .env.sample file
- Run
python main.py
. Check the code to understand how to use the library - commands for building bigfastapi into a library:
python setup.py sdist bdist_wheel
- You can install your local version of the library into another project run:
pip install <path to local bigfastapi>\dist\<name of whl file>
- update on pypi using
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
(first install twine usingpip install twine
)
Documentation
When you run the sample code, visit http://127.0.0.1:7001/docs to view the documentation for all endpoints
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bigfastapi-0.6.1.tar.gz
(168.9 kB
view details)
Built Distribution
bigfastapi-0.6.1-py3-none-any.whl
(226.0 kB
view details)
File details
Details for the file bigfastapi-0.6.1.tar.gz
.
File metadata
- Download URL: bigfastapi-0.6.1.tar.gz
- Upload date:
- Size: 168.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458604b96b338ae42d0ddcdd63bee6af5f4cfc2ca33abcdb53f94433ee09962e |
|
MD5 | 60ed22d8580fb4ed8e9eea155d33eaae |
|
BLAKE2b-256 | b2f5954d040d45314044ba7e117e64cb4868afe522039283fc69e345bc76ec14 |
File details
Details for the file bigfastapi-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: bigfastapi-0.6.1-py3-none-any.whl
- Upload date:
- Size: 226.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc102aed4da91d5b27fd7dfaed45fa559c530c01fec44912f1929b439d0fdc56 |
|
MD5 | 7e27c0cea7b382a516b253ecaf6adbf5 |
|
BLAKE2b-256 | 50911826718bac4e72339e915a49a53dce5330e8d34371b2e58c5979dc7e23f4 |