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

Uploaded Python 3

File details

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

File metadata

  • Download URL: indianconstitution-0.5.2.tar.gz
  • Upload date:
  • Size: 4.7 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.2.tar.gz
Algorithm Hash digest
SHA256 73f011e5d338ce9696507c677c816222247b33899d57006e3474ab253fde468a
MD5 12462d89e062f9ec6633110d2981e4e5
BLAKE2b-256 723d7d458132b394aa6ae5cbbf2963df5d49977ac7babf3d8f1f9ae07453d343

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for IndianConstitution-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf9c55ad6219fc9cc6473739823c58d08eb8207f7bf924810731ceec99886a43
MD5 d9a20ac67af86d5c31061b597aa5d35b
BLAKE2b-256 9495993ef401df0c6f05c2f14ae4317bba0fa60b625895dbaf1b794d30b4ad92

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