Skip to main content

A Python library for exploring the Constitution of India.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

iconlib (v0.3)

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 iconlib

Usage

Iconlib 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 iconlib import IconLib
    >>> india = IconLib()
    >>> 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.

constitution_of_india.json

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

iconlib-0.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

iconlib-0.4-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file iconlib-0.4.tar.gz.

File metadata

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

File hashes

Hashes for iconlib-0.4.tar.gz
Algorithm Hash digest
SHA256 3d587018926a9d27233648331b14fdba005fcb999707d33e662b1341cf0029aa
MD5 2a18f4731ebebd88f56b86079d9df10f
BLAKE2b-256 2f3ce002a780ac9f551a16da15c93f1f8d90ef349461d94f90a78ef18ac84b4b

See more details on using hashes here.

File details

Details for the file iconlib-0.4-py3-none-any.whl.

File metadata

  • Download URL: iconlib-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for iconlib-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e56b2715fcbb0b922d0cc56906ab352e0844abe2d620ed418ef9f706ef8d66d7
MD5 20cd67e205d9a6e5ce034763575a25fe
BLAKE2b-256 8c90a9c3caaac0b0f0c5748b73750a2613345ae888f0822ad953128210eb9c87

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