indianconstitution 1.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- indianconstitution-1.1.0/.coverage +0 -0
- indianconstitution-1.1.0/.github/dependabot.yml +17 -0
- indianconstitution-1.1.0/.github/workflows/ci.yml +37 -0
- indianconstitution-1.1.0/.github/workflows/codeql.yml +104 -0
- indianconstitution-1.1.0/.github/workflows/release.yml +30 -0
- indianconstitution-1.1.0/.github/workflows/scorecard.yml +78 -0
- indianconstitution-1.1.0/CITATION.cff +36 -0
- indianconstitution-1.1.0/CODE_OF_CONDUCT.md +19 -0
- indianconstitution-1.1.0/CONTRIBUTING.md +37 -0
- indianconstitution-1.1.0/LICENSE +179 -0
- indianconstitution-1.1.0/MANIFEST.in +4 -0
- indianconstitution-1.1.0/PKG-INFO +200 -0
- indianconstitution-1.1.0/PUBLISH.md +102 -0
- indianconstitution-1.1.0/README.md +160 -0
- indianconstitution-1.1.0/SECURITY.md +21 -0
- indianconstitution-1.1.0/pyproject.toml +77 -0
- indianconstitution-1.1.0/src/indianconstitution/__init__.py +26 -0
- indianconstitution-1.1.0/src/indianconstitution/cli/main.py +179 -0
- indianconstitution-1.1.0/src/indianconstitution/cli/rich_utils.py +37 -0
- indianconstitution-1.1.0/src/indianconstitution/core/engine.py +107 -0
- indianconstitution-1.1.0/src/indianconstitution/core/graph.py +68 -0
- indianconstitution-1.1.0/src/indianconstitution/core/legacy.py +2780 -0
- indianconstitution-1.1.0/src/indianconstitution/core/models.py +33 -0
- indianconstitution-1.1.0/src/indianconstitution/data/constitution.json +2327 -0
- indianconstitution-1.1.0/src/indianconstitution/export/engine.py +44 -0
- indianconstitution-1.1.0/src/indianconstitution/search/engine.py +64 -0
- indianconstitution-1.1.0/src/indianconstitution/utils/caching.py +35 -0
- indianconstitution-1.1.0/tests/test_core.py +22 -0
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "pip"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
open-pull-requests-limit: 10
|
|
8
|
+
labels:
|
|
9
|
+
- "dependencies"
|
|
10
|
+
|
|
11
|
+
- package-ecosystem: "github-actions"
|
|
12
|
+
directory: "/"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: "weekly"
|
|
15
|
+
open-pull-requests-limit: 10
|
|
16
|
+
labels:
|
|
17
|
+
- "dependencies"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
21
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
22
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
pip install -e ".[dev,data]"
|
|
29
|
+
- name: Run tests
|
|
30
|
+
run: |
|
|
31
|
+
pytest tests/
|
|
32
|
+
- name: Lint with Ruff
|
|
33
|
+
run: |
|
|
34
|
+
ruff check src/
|
|
35
|
+
- name: Type check with Mypy
|
|
36
|
+
run: |
|
|
37
|
+
mypy src/
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
|
2
|
+
# to commit it to your repository.
|
|
3
|
+
#
|
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
|
5
|
+
# or to provide custom queries or build logic.
|
|
6
|
+
#
|
|
7
|
+
# ******** NOTE ********
|
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
|
10
|
+
# supported CodeQL languages.
|
|
11
|
+
#
|
|
12
|
+
name: "CodeQL Advanced"
|
|
13
|
+
|
|
14
|
+
on:
|
|
15
|
+
push:
|
|
16
|
+
branches: [ "main" ]
|
|
17
|
+
pull_request:
|
|
18
|
+
branches: [ "main" ]
|
|
19
|
+
schedule:
|
|
20
|
+
- cron: '43 2 * * 0'
|
|
21
|
+
|
|
22
|
+
permissions:
|
|
23
|
+
contents: read
|
|
24
|
+
|
|
25
|
+
jobs:
|
|
26
|
+
analyze:
|
|
27
|
+
name: Analyze (${{ matrix.language }})
|
|
28
|
+
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
|
29
|
+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
|
30
|
+
# - https://gh.io/supported-runners-and-hardware-resources
|
|
31
|
+
# - https://gh.io/using-larger-runners (GitHub.com only)
|
|
32
|
+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
|
|
33
|
+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
|
34
|
+
permissions:
|
|
35
|
+
# required for all workflows
|
|
36
|
+
security-events: write
|
|
37
|
+
|
|
38
|
+
# required to fetch internal or private CodeQL packs
|
|
39
|
+
packages: read
|
|
40
|
+
|
|
41
|
+
# only required for workflows in private repositories
|
|
42
|
+
actions: read
|
|
43
|
+
contents: read
|
|
44
|
+
|
|
45
|
+
strategy:
|
|
46
|
+
fail-fast: false
|
|
47
|
+
matrix:
|
|
48
|
+
include:
|
|
49
|
+
- language: actions
|
|
50
|
+
build-mode: none
|
|
51
|
+
- language: python
|
|
52
|
+
build-mode: none
|
|
53
|
+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
|
|
54
|
+
# Use `c-cpp` to analyze code written in C, C++ or both
|
|
55
|
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
|
|
56
|
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
|
|
57
|
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
|
|
58
|
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
|
|
59
|
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
|
|
60
|
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
|
61
|
+
steps:
|
|
62
|
+
- name: Checkout repository
|
|
63
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
64
|
+
|
|
65
|
+
# Add any setup steps before running the `github/codeql-action/init` action.
|
|
66
|
+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
|
67
|
+
# or others). This is typically only required for manual builds.
|
|
68
|
+
# - name: Setup runtime (example)
|
|
69
|
+
# uses: actions/setup-example@v1
|
|
70
|
+
|
|
71
|
+
# Initializes the CodeQL tools for scanning.
|
|
72
|
+
- name: Initialize CodeQL
|
|
73
|
+
uses: github/codeql-action/init@7fd177fa680c9881b53cdab4d346d32574c9f7f4 # v3.35.4
|
|
74
|
+
with:
|
|
75
|
+
languages: ${{ matrix.language }}
|
|
76
|
+
build-mode: ${{ matrix.build-mode }}
|
|
77
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
|
78
|
+
# By default, queries listed here will override any specified in a config file.
|
|
79
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
|
80
|
+
|
|
81
|
+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
|
82
|
+
# queries: security-extended,security-and-quality
|
|
83
|
+
|
|
84
|
+
# If the analyze step fails for one of the languages you are analyzing with
|
|
85
|
+
# "We were unable to automatically build your code", modify the matrix above
|
|
86
|
+
# to set the build mode to "manual" for that language. Then modify this step
|
|
87
|
+
# to build your code.
|
|
88
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
89
|
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
90
|
+
- name: Run manual build steps
|
|
91
|
+
if: matrix.build-mode == 'manual'
|
|
92
|
+
shell: bash
|
|
93
|
+
run: |
|
|
94
|
+
echo 'If you are using a "manual" build mode for one or more of the' \
|
|
95
|
+
'languages you are analyzing, replace this with the commands to build' \
|
|
96
|
+
'your code, for example:'
|
|
97
|
+
echo ' make bootstrap'
|
|
98
|
+
echo ' make release'
|
|
99
|
+
exit 1
|
|
100
|
+
|
|
101
|
+
- name: Perform CodeQL Analysis
|
|
102
|
+
uses: github/codeql-action/analyze@7fd177fa680c9881b53cdab4d346d32574c9f7f4 # v3.35.4
|
|
103
|
+
with:
|
|
104
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-n-publish:
|
|
13
|
+
name: Build and publish to PyPI
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.10"
|
|
21
|
+
- name: Install pypa/build
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install build --user
|
|
24
|
+
- name: Build a binary wheel and a source tarball
|
|
25
|
+
run: |
|
|
26
|
+
python -m build --sdist --wheel --outdir dist/
|
|
27
|
+
- name: Publish distribution 📦 to PyPI
|
|
28
|
+
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
|
|
29
|
+
with:
|
|
30
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub. They are provided
|
|
2
|
+
# by a third-party and are governed by separate terms of service, privacy
|
|
3
|
+
# policy, and support documentation.
|
|
4
|
+
|
|
5
|
+
name: Scorecard supply-chain security
|
|
6
|
+
on:
|
|
7
|
+
# For Branch-Protection check. Only the default branch is supported. See
|
|
8
|
+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
|
|
9
|
+
branch_protection_rule:
|
|
10
|
+
# To guarantee Maintained check is occasionally updated. See
|
|
11
|
+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
|
|
12
|
+
schedule:
|
|
13
|
+
- cron: '30 10 * * 1'
|
|
14
|
+
push:
|
|
15
|
+
branches: [ "main" ]
|
|
16
|
+
|
|
17
|
+
# Declare default permissions as read only.
|
|
18
|
+
permissions: read-all
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
analysis:
|
|
22
|
+
name: Scorecard analysis
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
|
|
25
|
+
if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request'
|
|
26
|
+
permissions:
|
|
27
|
+
# Needed to upload the results to code-scanning dashboard.
|
|
28
|
+
security-events: write
|
|
29
|
+
# Needed to publish results and get a badge (see publish_results below).
|
|
30
|
+
id-token: write
|
|
31
|
+
# Uncomment the permissions below if installing in a private repository.
|
|
32
|
+
# contents: read
|
|
33
|
+
# actions: read
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- name: "Checkout code"
|
|
37
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
38
|
+
with:
|
|
39
|
+
persist-credentials: false
|
|
40
|
+
|
|
41
|
+
- name: "Run analysis"
|
|
42
|
+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
|
|
43
|
+
with:
|
|
44
|
+
results_file: results.sarif
|
|
45
|
+
results_format: sarif
|
|
46
|
+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
|
|
47
|
+
# - you want to enable the Branch-Protection check on a *public* repository, or
|
|
48
|
+
# - you are installing Scorecard on a *private* repository
|
|
49
|
+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional.
|
|
50
|
+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
|
|
51
|
+
|
|
52
|
+
# Public repositories:
|
|
53
|
+
# - Publish results to OpenSSF REST API for easy access by consumers
|
|
54
|
+
# - Allows the repository to include the Scorecard badge.
|
|
55
|
+
# - See https://github.com/ossf/scorecard-action#publishing-results.
|
|
56
|
+
# For private repositories:
|
|
57
|
+
# - `publish_results` will always be set to `false`, regardless
|
|
58
|
+
# of the value entered here.
|
|
59
|
+
publish_results: true
|
|
60
|
+
|
|
61
|
+
# (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore
|
|
62
|
+
# file_mode: git
|
|
63
|
+
|
|
64
|
+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
|
65
|
+
# format to the repository Actions tab.
|
|
66
|
+
- name: "Upload artifact"
|
|
67
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
68
|
+
with:
|
|
69
|
+
name: SARIF file
|
|
70
|
+
path: results.sarif
|
|
71
|
+
retention-days: 5
|
|
72
|
+
|
|
73
|
+
# Upload the results to GitHub's code scanning dashboard (optional).
|
|
74
|
+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
|
|
75
|
+
- name: "Upload to code-scanning"
|
|
76
|
+
uses: github/codeql-action/upload-sarif@7fd177fa680c9881b53cdab4d346d32574c9f7f4 # v3.35.4
|
|
77
|
+
with:
|
|
78
|
+
sarif_file: results.sarif
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
title: IndianConstitution
|
|
3
|
+
message: "If you use this software in research, policy work, education, or civic technology, please cite it."
|
|
4
|
+
type: software
|
|
5
|
+
|
|
6
|
+
authors:
|
|
7
|
+
- family-names: S
|
|
8
|
+
given-names: Vikhram
|
|
9
|
+
email: vikhrams@saveetha.ac.in
|
|
10
|
+
affiliation: Independent Researcher / Open-Source Developer
|
|
11
|
+
|
|
12
|
+
version: 1.1.0
|
|
13
|
+
date-released: 2026-01-25
|
|
14
|
+
|
|
15
|
+
repository-code: https://github.com/Vikhram-S/IndianConstitution
|
|
16
|
+
url: https://pypi.org/project/IndianConstitution/
|
|
17
|
+
|
|
18
|
+
keywords:
|
|
19
|
+
- Constitution of India
|
|
20
|
+
- legal informatics
|
|
21
|
+
- public policy
|
|
22
|
+
- civic technology
|
|
23
|
+
- AI
|
|
24
|
+
- NLP
|
|
25
|
+
- structured data
|
|
26
|
+
- computational law
|
|
27
|
+
- GovTech
|
|
28
|
+
- Python
|
|
29
|
+
|
|
30
|
+
license: Apache-2.0
|
|
31
|
+
|
|
32
|
+
abstract: >
|
|
33
|
+
IndianConstitution is an open-source, AI- and NLP-enabled, structured data–driven
|
|
34
|
+
Python framework that provides programmatic access to the Constitution of India.
|
|
35
|
+
It is designed to support legal research, public policy analysis, education,
|
|
36
|
+
and civic technology through advanced search, data analysis, and CLI tools.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
|
5
|
+
|
|
6
|
+
## Our Standards
|
|
7
|
+
Examples of behavior that contributes to creating a positive environment include:
|
|
8
|
+
* Using welcoming and inclusive language
|
|
9
|
+
* Being respectful of differing viewpoints and experiences
|
|
10
|
+
* Gracefully accepting constructive criticism
|
|
11
|
+
* Focusing on what is best for the community
|
|
12
|
+
* Showing empathy towards other community members
|
|
13
|
+
|
|
14
|
+
Examples of unacceptable behavior by participants include:
|
|
15
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
|
|
16
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
17
|
+
* Public or private harassment
|
|
18
|
+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
|
|
19
|
+
* Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Contributing to IndianConstitution
|
|
2
|
+
|
|
3
|
+
First off, thank you for considering contributing to `indianconstitution`! It's people like you that make this library better for everyone.
|
|
4
|
+
|
|
5
|
+
## How Can I Contribute?
|
|
6
|
+
|
|
7
|
+
### Reporting Bugs
|
|
8
|
+
- Use the GitHub Issue Tracker.
|
|
9
|
+
- Describe the bug and include steps to reproduce.
|
|
10
|
+
|
|
11
|
+
### Suggesting Enhancements
|
|
12
|
+
- Open a feature request on GitHub.
|
|
13
|
+
- Explain why the feature would be useful.
|
|
14
|
+
|
|
15
|
+
### Pull Requests
|
|
16
|
+
1. Fork the repo.
|
|
17
|
+
2. Create a branch: `git checkout -b feature/my-new-feature`.
|
|
18
|
+
3. Make your changes.
|
|
19
|
+
4. Run tests: `pytest`.
|
|
20
|
+
5. Run linting: `ruff check .`.
|
|
21
|
+
6. Commit your changes: `git commit -am 'Add some feature'`.
|
|
22
|
+
7. Push to the branch: `git push origin feature/my-new-feature`.
|
|
23
|
+
8. Submit a pull request.
|
|
24
|
+
|
|
25
|
+
## Development Setup
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Clone the repo
|
|
29
|
+
git clone https://github.com/vikhram-s/indianconstitution
|
|
30
|
+
cd indianconstitution
|
|
31
|
+
|
|
32
|
+
# Install dependencies with dev extras
|
|
33
|
+
pip install -e ".[dev,data,ai]"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Code Style
|
|
37
|
+
We use **Ruff** for linting and **Black** (via Ruff) for formatting. Please ensure your code follows the established style.
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Vikhram S
|
|
179
|
+
|