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

Uploaded Python 3

File details

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

File metadata

  • Download URL: indianconstitution-0.5.tar.gz
  • Upload date:
  • Size: 4.6 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.tar.gz
Algorithm Hash digest
SHA256 13632d7d3170479e3fd0d870b1bc3bc5245d7745f634248c76ce7a289bbeed04
MD5 5e9b8f197a96575e33c9a3dae2751e4d
BLAKE2b-256 dc53930260bcafc98bd0f08580f6e297929af561085f0fa639014da8210020cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for IndianConstitution-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 044ecd57c46b7d1307d5da315fefa95e99ff3dea3847e3a7789bdcd26bec72ee
MD5 5b83623089d85a71c236aea6f907c323
BLAKE2b-256 6bc89f53f1c0964821a2f8c0484a354529d6fea9ad53e7750d708ab94a97d455

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