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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13632d7d3170479e3fd0d870b1bc3bc5245d7745f634248c76ce7a289bbeed04
|
|
| MD5 |
5e9b8f197a96575e33c9a3dae2751e4d
|
|
| BLAKE2b-256 |
dc53930260bcafc98bd0f08580f6e297929af561085f0fa639014da8210020cd
|
File details
Details for the file IndianConstitution-0.5-py3-none-any.whl.
File metadata
- Download URL: IndianConstitution-0.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
044ecd57c46b7d1307d5da315fefa95e99ff3dea3847e3a7789bdcd26bec72ee
|
|
| MD5 |
5b83623089d85a71c236aea6f907c323
|
|
| BLAKE2b-256 |
6bc89f53f1c0964821a2f8c0484a354529d6fea9ad53e7750d708ab94a97d455
|