https://github.com/dev-murphy/sda-hymns-api
📖 A FastAPI application to explore and retrieve information for all SDA hymns, including lyrics, authors, and categories
https://github.com/dev-murphy/sda-hymns-api
fastapi sqlite-database
Last synced: 2 months ago
JSON representation
📖 A FastAPI application to explore and retrieve information for all SDA hymns, including lyrics, authors, and categories
- Host: GitHub
- URL: https://github.com/dev-murphy/sda-hymns-api
- Owner: dev-murphy
- Created: 2025-01-07T20:56:43.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T17:47:24.000Z (4 months ago)
- Last Synced: 2025-01-17T18:46:13.009Z (4 months ago)
- Topics: fastapi, sqlite-database
- Language: Python
- Homepage: https://sda-hymns-api.vercel.app
- Size: 525 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SDA Hymns API
This is a FastAPI application with an SQLite database for viewing SDA hymns.
## Features
- 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
## Requirements
- Python 3.7+
- FastAPI
- SQLite## Installation
1. Clone the repository:
```bash
git clone https://github.com/dev-murphy/sda-hymns-api.git
cd sda-hymns-api
```2. Create and activate a virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```3. Install the dependencies:
```bash
pip install -r requirements.txt
```4. Run the application:
```bash
uvicorn main:app --reload
```## Usage
- Open your browser and navigate to `http://127.0.0.1:8000/docs` to access the interactive API documentation.
## Project Structure
- `main.py`: The main entry point of the application.
- `hymns.db`: The sqlite database with hymn information## License
This project is licensed under the MIT License.