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.1.tar.gz (4.5 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.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: indianconstitution-0.5.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 bc249daa4418e14a3f6c3b393af1e64a8da2cfaccf1fb23190ee97bbc63a03e7
MD5 df016099ccf90ef834acea887275bdc4
BLAKE2b-256 93353c15e8c89979c5877c9b3f96234269f8d94b9131cb91a07be96bb1126369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for IndianConstitution-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94abe74e7f25480bf304d95374d68beefa290bc91eba23f6f31a56c134586211
MD5 9283662a1503721913eb6d76feb5eb2e
BLAKE2b-256 884b1b98ac856a03386dcc9ec07447c7b06e95c8a48d2cbc8f13cb1c995631ea

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