This is a FastAPI application with an SQLite database for viewing SDA hymns.
-
View a list of most SDA hymns (currently) with additional information.
Parameters:
q (optional)
,cateogries (optional)
,limit )(default=100)
,offset (default=0)
For example:
- The key it is played in
- The author
- Date of publication
- and more
-
Retrieve details of a specific hymn by hymn nu
- Python 3.7+
- FastAPI
- SQLite
-
Clone the repository:
git clone https://github.com/dev-murphy/sda-hymns-api.git cd sda-hymns-api
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Run the application:
uvicorn main:app --reload
- Open your browser and navigate to
http://127.0.0.1:8000/docs
to access the interactive API documentation.
main.py
: The main entry point of the application.hymns.db
: The sqlite database with hymn information
This project is licensed under the MIT License.