Skip to main content

A Python module for accessing and managing Constitution data.

Project description

indianconstitution (v0.5)

Python module to interact with the Constitution of India data and retrieve articles, details, summaries, and search functionalities.

PyPI - Python Version PyPI - License Maintenance PyPI PyPI - Status

Installation

You can install it using pip from the repository as:

pip install indianconstitution

Usage

indianconstitution can be used as a Python module to interact with the Constitution of India data.

Python Module Usage

Here are examples of all current features:

    >>> from indianconstitution import IndianConstitution
    >>> india = IndianConstitution('constitution_data.json')
    >>> india.preamble()
    'We, the people of India, having solemnly resolved to constitute India into a Sovereign, Socialist, Secular, Democratic Republic...'
    >>> india.get_article(14)
    'Article 14: Equality before law. The State shall not deny to any person equality before the law or the equal protection of the laws within the territory of India.'
    >>> india.articles_list()
    'Article 14: Equality before law\nArticle 15: Prohibition of discrimination on grounds of religion, race, caste, sex or place of birth\n...'
    >>> india.search_keyword('equality')
    'Article 14: Equality before law. The State shall not deny to any person equality before the law or the equal protection of the laws within the territory of India.'
    >>> india.article_summary(21)
    'Article 21: Protection of life and personal liberty. No person shall be deprived of his life or personal liberty except according to procedure established by law.'
    >>> india.count_articles()
    448
    >>> india.search_by_title('Fundamental')
    'Article 12: Definition of State\nArticle 13: Laws inconsistent with or in derogation of the fundamental rights\n...'

License

This project is released under the Apache License 2.0.

The Constitution data is compiled from publicly available sources.

Developer Information

Developer: Vikhram S. Email: vikhrams@saveetha.ac.in

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indianconstitution-0.5.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

IndianConstitution-0.5.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file indianconstitution-0.5.3.tar.gz.

File metadata

  • Download URL: indianconstitution-0.5.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for indianconstitution-0.5.3.tar.gz
Algorithm Hash digest
SHA256 4ef1653a338a01638f67cf31cee9b01f1aa59092edca7bf8eaee0fd963304c57
MD5 f5f2d0ae61ec9258011a19c44d7e46e3
BLAKE2b-256 7ce52efe9b771f6c5b47ca39638a6a32ecb39646df057199c891b7c7b4d14b50

See more details on using hashes here.

File details

Details for the file IndianConstitution-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for IndianConstitution-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 582c15beb6cafea217d3e70ec15f7f035e363c263d9523fff82c67ba15033d57
MD5 0eb528c292fb9299c1f128cb2bf2f0c3
BLAKE2b-256 1d79d980beee41bff9c4a0a8b659632b6e10e63e78ced1a71291a92ab382430d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page