This project has been archived by its maintainers, and is no longer receiving any updates.
iconlib (v0.3)
Python module to interact with the Constitution of India data and retrieve articles, details, summaries, and search functionalities.
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
Metadata
Release files for iconlib 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iconlib-0.4.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iconlib-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / iconlib-0.4.tar.gz
| Download URL | iconlib-0.4.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d587018926a9d27233648331b14fdba005fcb999707d33e662b1341cf0029aa
|
|
BLAKE2b-256 checksum How to use checksums |
2f3ce002a780ac9f551a16da15c93f1f8d90ef349461d94f90a78ef18ac84b4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.9
|
Release files / iconlib-0.4-py3-none-any.whl
| Download URL | iconlib-0.4-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e56b2715fcbb0b922d0cc56906ab352e0844abe2d620ed418ef9f706ef8d66d7
|
|
BLAKE2b-256 checksum How to use checksums |
8c90a9c3caaac0b0f0c5748b73750a2613345ae888f0822ad953128210eb9c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.9
|