Flask-based API serving endpoints for DeepRaaga music generation. Extracted from the original DeepRaaga project for PyPI.
Project description
deepraaga-api
Flask-based API serving endpoints for DeepRaaga music generation. Extracted from the original DeepRaaga project.
Installation
You can install the API layer via pip. To ensure that the underlying neural network models are available for generation, you should install it with the models optional dependencies:
pip install deepraaga-api[models]
Overview
The deepraaga-api package provides a RESTful interface over the DeepRaaga machine learning backend. It allows external applications (like React frontends) to easily query and generate sequential notes based on learned Carnatic representations.
Usage
You can start the API directly using the bundled CLI tool:
deepraaga-api --port 8000
This will spin up a local Flask server running on http://localhost:8000.
REST Endpoints
GET /
Returns the status of the DeepRaaga API.
POST /api/generate
Generates a sequence of notes.
- Request Body:
{ "raga": "mayamalavagowla", "duration": 30, "temperature": 1.0 }
- Response:
{ "notes": ["C4", "D4", "E4", "F4", "G4"], "raga": "mayamalavagowla" }
Programmatic Usage
You can also import the Flask app directly to mount it in another WSGI server (like Gunicorn):
from deepraaga_api.serve import app
if __name__ == '__main__':
app.run(port=8080)
License
This project is licensed under 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepraaga_api-0.1.0.tar.gz.
File metadata
- Download URL: deepraaga_api-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
940851fe50f0e48a2eebb3707465ec5867e0762add501bf66484b088a29977d5
|
|
| MD5 |
d74542395a9982d94af63aee6bf48838
|
|
| BLAKE2b-256 |
f74df1361b1b317e127f04a142c241c32a45de1bbcdf05d8d7651dd86ec0b63c
|
File details
Details for the file deepraaga_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: deepraaga_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1883681dfc54f2a2841984a0cd214a442e97aee3c8e9a07c5afeee104f0d2ca
|
|
| MD5 |
5392026f7b96af68742359251484aa5b
|
|
| BLAKE2b-256 |
5bbdae5c3d7b0612e32cea229ab4108907b103d12a4bb3df1cfa17e763e90e96
|