Skip to main content

Logo

Bhagavad Gita API

Code for the BhagavadGita.io API, which is an app built for Gita readers by Gita readers.

GitHub issues PyPI - Python Version LICENSE Stars Docs Stars

Usage

The Bhagavad Gita API allows any developer to use content from Gita in their apps. This API is built with FastAPI which is based on (and fully compatible with) the open standards for APIs: OpenAPI (previously known as Swagger) and JSON Schema.

Documentation for this API is availaible in two interactive formats:

If you are interested in using this API for your application, please register an account at RapidAPI where you'll get both the credentials as well as sample code in your language of choice. The API is 100% FREE to use.

Projects

Here is a list of interesting projects using this API.

Have you build something with this API ? Open a "Show and tell" discussion. The maintainers will feature your project on the README if they find it interesting.

Self Hosting

The official API is free to use for all. But If you wish you can self host anywhere you want.

If you want to deploy your own instance,You can deploy the API server on your system or VPS.

  • Using pipx

    Note If you dont have pipx, just pip install pipx

    pipx run bhagavad-gita-api
    
  • Or using docker

    docker run -it -p 8081:8081 --env-file=.env bhagavadgita/bhagavad-gita-api
    

Now open http://localhost:8081/docs to see docs. To stop the server press Ctrl + C on your keyboard.

By default an in-memory SQLite database is used. But you configure to use any SQL database of your choice. The official version uses PostgreSQL.

Looking to deploy on a cloud platform ? We have detailed docs to deploy to the following platforms:

Configuration

Here is the list of supported environment variables.

Name Description Default
TESTER_API_KEY The API key for testing. None
SQLALCHEMY_DATABASE_URI The DSN for your database connection. sqlite:// (in memory SQLite db)

If you want to configure your deployment even more, then please take a look at module config.py.

To set the environment variables, you may simply use a .env file where you specify the values in the format of KEY=VALUE.

Development

Feel free to use the issue tracker for bugs and feature requests.

Looking to contribute code ? PRs are most welcome! To get started with developing this API, please read the contributing guide.

Community

Join the Discord chat server and hang out with others in the community.

You can also use GitHub Discussions to ask questions or tell us about projects you have built using this API.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Anubhav Gupta

💻

Sanuj Sood

💻

Aahnik Daw

💻

Akshat Joshi

💻

Amritpal Singh

💻

Niku Singh

💻

sreevardhanreddi

💻 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

Metadata

Release files for bhagavad-gita-api 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bhagavad-gita-api 2.0.2
File Size Uploaded Provenance Actions
bhagavad-gita-api-2.0.2.tar.gz 16.8 kB Without provenance Details for bhagavad-gita-api-2.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bhagavad-gita-api 2.0.2
File Interpreter ABI Platform Actions
bhagavad_gita_api-2.0.2-py3-none-any.whl Python 3 none any Details for bhagavad_gita_api-2.0.2-py3-none-any.whl

Total release size: 38.3 kB

Release files / bhagavad-gita-api-2.0.2.tar.gz

Download URL bhagavad-gita-api-2.0.2.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a52a0e12cbea5892219e655fa35cd13c4b3b53c442903646482f8e13634d676b
BLAKE2b-256 checksum
How to use checksums
ac617b953194ec9e5b0fc507f84caa63a2f7695273c03b56b5c38210e8b6e89e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1036-azure

Release files / bhagavad_gita_api-2.0.2-py3-none-any.whl

Download URL bhagavad_gita_api-2.0.2-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36d15ea91077c1066c589959f83e0d0b355b7953776080d82bc1354b8393cb1a
BLAKE2b-256 checksum
How to use checksums
43b47dad9cde23cdedee5b2fd6b16f46c6fe2e56bc34a57050eca268c6deacf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Linux/5.8.0-1036-azure

Security for bhagavad-gita-api 2.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page