Git Product home page Git Product logo

pygita's Introduction

pygita

pygita is a wrapper of bhagavadgita.io api for Python 3

PyPI - License PyPI - Downloads GitHub last commit Build Status Code quality Scrutinizer coverage Requires.io (branch) GitHub repo size PyPI - Python Version PyPI - Wheel PyPI made-with-python PyPI - Status PyPI - Format

Installation

Install it from pypi using pip

pip install pygita

Authentication

Usage

1. Create a client

from pygita import Client
client = Client(CLIENT_ID, CLIENT_SECRET)

2. Get a verse

verse = client.get_verse(verse_number, chapter_number)

3. Get a chapter

chapter = client.get_chapter(chapter_number)

Objects

Attributes of Chapter objects

1. chapter_number
2. chapter_summary
3. name
4. verses_count
5. name_meaning
6. name_translation
7. name_transliterated(in English only)
8. name_meaning(in Hindi only)

Attributes of Verse objects

1. chapter_number
2. verse_number
3. text
4. meaning
5. transliteration
6. word_meanings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.