IndianConstitution


NameIndianConstitution JSON
Version 0.6.1 PyPI version JSON
download
home_pagehttps://github.com/Vikhram-S/IndianConstitution
SummaryA Python module for accessing and managing Constitution data.
upload_time2025-08-28 09:47:16
maintainerVikhram S
docs_urlNone
authorVikhram S
requires_python>=3.6
licenseApache License 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # IndianConstitution <small> (v0.6.0) </small>
Python module to interact with the Constitution of India data and retrieve articles, details, summaries, and search functionalities.

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/indianconstitution?label=Python) ![PyPI - License](https://img.shields.io/pypi/l/indianconstitution?label=License&color=red) ![Maintenance](https://img.shields.io/maintenance/yes/2025?label=Maintained) ![PyPI](https://img.shields.io/pypi/v/indianconstitution?label=PyPi) ![PyPI - Status](https://img.shields.io/pypi/status/indianconstitution?label=Status)
![PyPI - Downloads](https://img.shields.io/pypi/dm/indianconstitution?label=Monthly%20Downloads) 
![Total Downloads](https://static.pepy.tech/badge/indianconstitution?label=Total%20Downloads)

---

## Installation
You can install the package directly from PyPI:

```bash
pip install indianconstitution
```

---

## Features
The `indianconstitution` module provides:

- Full access to the Constitution of India data.
- Retrieval of individual articles and summaries.
- Keyword-based search for articles.
- Count of total articles and search by title functionality.

---

## Usage
Here is how to get started with `indianconstitution`:


**Example:**

```python
from indianconstitution import IndianConstitution

# Load the module with the correct path to the JSON file
india = IndianConstitution()

# Example usage
print(india.preamble())
```

### Python Module Example

```python
from indianconstitution import IndianConstitution

# Load the module with your Constitution data
india = IndianConstitution()

# Access the Preamble
print(india.preamble())

# Retrieve specific articles
print(india.get_article(14))  # Outputs details of Article 14

# List all articles
print(india.articles_list())

# Search for a keyword in the Constitution
print(india.search_keyword('equality'))

# Get a summary of an article
print(india.article_summary(21))

# Count the total number of articles
print(india.count_articles())

# Search articles by title
print(india.search_by_title('Fundamental'))
```

---

## Key Functionalities

| Function                | Description                                                   |
|-------------------------|---------------------------------------------------------------|
| `preamble()`            | Returns the Preamble of the Constitution of India.           |
| `get_article(number)`   | Retrieves the full content of the specified article.          |
| `articles_list()`       | Lists all articles in the Constitution with titles.           |
| `search_keyword(word)`  | Finds all occurrences of a specific keyword in the Constitution text. |
| `article_summary(num)`  | Returns a summary of the specified article.                   |
| `count_articles()`      | Counts the total number of articles in the Constitution.      |
| `search_by_title(title)`| Searches articles by their titles and returns matching results.|

---

## Development
This project is actively maintained. Contributions, suggestions, and feedback are welcome. Please refer to the LICENSE file for usage terms.

---

## License
This project is licensed under the Apache License 2.0.
See the LICENSE file for more details.

---

## Data Source
The Constitution data is compiled from publicly available resources, ensuring authenticity and accuracy.

---

## Developer Information
**Author**: Vikhram S  
**Email**: [vikhrams@saveetha.ac.in](mailto:vikhrams@saveetha.ac.in)

---

## Copyright
© 2025 Vikhram S. All rights reserved.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Vikhram-S/IndianConstitution",
    "name": "IndianConstitution",
    "maintainer": "Vikhram S",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "vikhrams@saveetha.ac.in",
    "keywords": null,
    "author": "Vikhram S",
    "author_email": "vikhrams@saveetha.ac.in",
    "download_url": "https://files.pythonhosted.org/packages/31/65/c59c660133d0cea5b30800738e5c7cf358c27a64435b5d7312db5263275a/indianconstitution-0.6.1.tar.gz",
    "platform": null,
    "description": "# IndianConstitution <small> (v0.6.0) </small>\r\nPython module to interact with the Constitution of India data and retrieve articles, details, summaries, and search functionalities.\r\n\r\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/indianconstitution?label=Python) ![PyPI - License](https://img.shields.io/pypi/l/indianconstitution?label=License&color=red) ![Maintenance](https://img.shields.io/maintenance/yes/2025?label=Maintained) ![PyPI](https://img.shields.io/pypi/v/indianconstitution?label=PyPi) ![PyPI - Status](https://img.shields.io/pypi/status/indianconstitution?label=Status)\r\n![PyPI - Downloads](https://img.shields.io/pypi/dm/indianconstitution?label=Monthly%20Downloads) \r\n![Total Downloads](https://static.pepy.tech/badge/indianconstitution?label=Total%20Downloads)\r\n\r\n---\r\n\r\n## Installation\r\nYou can install the package directly from PyPI:\r\n\r\n```bash\r\npip install indianconstitution\r\n```\r\n\r\n---\r\n\r\n## Features\r\nThe `indianconstitution` module provides:\r\n\r\n- Full access to the Constitution of India data.\r\n- Retrieval of individual articles and summaries.\r\n- Keyword-based search for articles.\r\n- Count of total articles and search by title functionality.\r\n\r\n---\r\n\r\n## Usage\r\nHere is how to get started with `indianconstitution`:\r\n\r\n\r\n**Example:**\r\n\r\n```python\r\nfrom indianconstitution import IndianConstitution\r\n\r\n# Load the module with the correct path to the JSON file\r\nindia = IndianConstitution()\r\n\r\n# Example usage\r\nprint(india.preamble())\r\n```\r\n\r\n### Python Module Example\r\n\r\n```python\r\nfrom indianconstitution import IndianConstitution\r\n\r\n# Load the module with your Constitution data\r\nindia = IndianConstitution()\r\n\r\n# Access the Preamble\r\nprint(india.preamble())\r\n\r\n# Retrieve specific articles\r\nprint(india.get_article(14))  # Outputs details of Article 14\r\n\r\n# List all articles\r\nprint(india.articles_list())\r\n\r\n# Search for a keyword in the Constitution\r\nprint(india.search_keyword('equality'))\r\n\r\n# Get a summary of an article\r\nprint(india.article_summary(21))\r\n\r\n# Count the total number of articles\r\nprint(india.count_articles())\r\n\r\n# Search articles by title\r\nprint(india.search_by_title('Fundamental'))\r\n```\r\n\r\n---\r\n\r\n## Key Functionalities\r\n\r\n| Function                | Description                                                   |\r\n|-------------------------|---------------------------------------------------------------|\r\n| `preamble()`            | Returns the Preamble of the Constitution of India.           |\r\n| `get_article(number)`   | Retrieves the full content of the specified article.          |\r\n| `articles_list()`       | Lists all articles in the Constitution with titles.           |\r\n| `search_keyword(word)`  | Finds all occurrences of a specific keyword in the Constitution text. |\r\n| `article_summary(num)`  | Returns a summary of the specified article.                   |\r\n| `count_articles()`      | Counts the total number of articles in the Constitution.      |\r\n| `search_by_title(title)`| Searches articles by their titles and returns matching results.|\r\n\r\n---\r\n\r\n## Development\r\nThis project is actively maintained. Contributions, suggestions, and feedback are welcome. Please refer to the LICENSE file for usage terms.\r\n\r\n---\r\n\r\n## License\r\nThis project is licensed under the Apache License 2.0.\r\nSee the LICENSE file for more details.\r\n\r\n---\r\n\r\n## Data Source\r\nThe Constitution data is compiled from publicly available resources, ensuring authenticity and accuracy.\r\n\r\n---\r\n\r\n## Developer Information\r\n**Author**: Vikhram S  \r\n**Email**: [vikhrams@saveetha.ac.in](mailto:vikhrams@saveetha.ac.in)\r\n\r\n---\r\n\r\n## Copyright\r\n\u00c2\u00a9 2025 Vikhram S. All rights reserved.\r\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A Python module for accessing and managing Constitution data.",
    "version": "0.6.1",
    "project_urls": {
        "Documentation": "https://pypi.org/project/IndianConstitution/",
        "Homepage": "https://github.com/Vikhram-S/IndianConstitution",
        "Issue Tracker": "https://github.com/Vikhram-S/IndianConstitution/issues",
        "Source": "https://github.com/Vikhram-S/IndianConstitution"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "008f64511e9f5743ce7d0ba5e7f0ccf75c741ded32b6c67497e380292ed9bca5",
                "md5": "fa0f2d20e2cc22a1f7cfb042bdac6d7a",
                "sha256": "bb7f7356be1d10d1c3ebdaeffe2df02954f7ed1f7c864c29dbb37107375473bc"
            },
            "downloads": -1,
            "filename": "indianconstitution-0.6.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fa0f2d20e2cc22a1f7cfb042bdac6d7a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 110234,
            "upload_time": "2025-08-28T09:47:12",
            "upload_time_iso_8601": "2025-08-28T09:47:12.805462Z",
            "url": "https://files.pythonhosted.org/packages/00/8f/64511e9f5743ce7d0ba5e7f0ccf75c741ded32b6c67497e380292ed9bca5/indianconstitution-0.6.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3165c59c660133d0cea5b30800738e5c7cf358c27a64435b5d7312db5263275a",
                "md5": "922a993915350aeae1db1f01f2931246",
                "sha256": "ff424edd701ea1ad0abb5fb49594a1f6e61f9b9459fb900bbd45884c151256e0"
            },
            "downloads": -1,
            "filename": "indianconstitution-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "922a993915350aeae1db1f01f2931246",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 109371,
            "upload_time": "2025-08-28T09:47:16",
            "upload_time_iso_8601": "2025-08-28T09:47:16.055465Z",
            "url": "https://files.pythonhosted.org/packages/31/65/c59c660133d0cea5b30800738e5c7cf358c27a64435b5d7312db5263275a/indianconstitution-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-28 09:47:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Vikhram-S",
    "github_project": "IndianConstitution",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "indianconstitution"
}
        
Elapsed time: 3.15138s