rti-ethics-engine 1.0.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.
@@ -0,0 +1,207 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RTI Ethics Engine Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,198 @@
1
+ Metadata-Version: 2.4
2
+ Name: rti-ethics-engine
3
+ Version: 1.0.0
4
+ Summary: India's first granular AI ethics framework for RTI applications (36 metrics, 9 dimensions)
5
+ Project-URL: Homepage, https://github.com/rti-ethics/rti-ethics-engine
6
+ Project-URL: Documentation, https://rti-ethics-engine.readthedocs.io
7
+ Project-URL: Repository, https://github.com/rti-ethics/rti-ethics-engine
8
+ Project-URL: Issues, https://github.com/rti-ethics/rti-ethics-engine/issues
9
+ Author: RTI Ethics Engine Team
10
+ License: MIT License
11
+
12
+ Copyright (c) 2026 RTI Ethics Engine Team
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ License-File: LICENSE
32
+ Keywords: ai-ethics,audit,compliance,fairness,government,india,llm,rti
33
+ Classifier: Development Status :: 5 - Production/Stable
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: Intended Audience :: Science/Research
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Operating System :: OS Independent
38
+ Classifier: Programming Language :: Python :: 3
39
+ Classifier: Programming Language :: Python :: 3.9
40
+ Classifier: Programming Language :: Python :: 3.10
41
+ Classifier: Programming Language :: Python :: 3.11
42
+ Classifier: Programming Language :: Python :: 3.12
43
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
44
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
45
+ Requires-Python: >=3.9
46
+ Requires-Dist: numpy>=1.24.0
47
+ Provides-Extra: dev
48
+ Requires-Dist: black>=23.0; extra == 'dev'
49
+ Requires-Dist: mypy>=1.0; extra == 'dev'
50
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
51
+ Requires-Dist: pytest>=7.0; extra == 'dev'
52
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
53
+ Provides-Extra: docs
54
+ Requires-Dist: sphinx-rtd-theme>=1.0; extra == 'docs'
55
+ Requires-Dist: sphinx>=5.0; extra == 'docs'
56
+ Description-Content-Type: text/markdown
57
+
58
+ # RTI Ethics Engine
59
+
60
+ **India's first granular AI ethics framework for RTI applications** - A production-ready Python package implementing 36 metrics across 9 ethical dimensions with granular formula access.
61
+
62
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
63
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
64
+
65
+ ## ๐Ÿš€ Installation
66
+
67
+ ```bash
68
+ pip install rti-ethics-engine
69
+ ```
70
+
71
+ Or install from source:
72
+
73
+ ```bash
74
+ git clone https://github.com/rti-ethics/rti-ethics-engine.git
75
+ cd rti-ethics-engine
76
+ pip install -e .
77
+ ```
78
+
79
+ ## โšก Quick Start
80
+
81
+ ```python
82
+ from rti_ethics_engine import evaluate
83
+
84
+ # Define your metrics
85
+ metrics = {
86
+ "fairness": {"spd": 0.02, "di": 1.0, "eop": 0.05, "aod": 0.03},
87
+ "drift": {"psi": 0.1, "ks": 0.02},
88
+ "legal": {"lawfulness": 1.0, "cvr": 0.98},
89
+ "performance": {"accuracy": 0.92, "recall": 0.88},
90
+ "explainability": {"confidence": 0.85, "fi": 0.3},
91
+ "security": {"adv_acc": 0.8, "pisr": 0.02},
92
+ "monitoring": {"alc": 0.98, "sla": 0.995},
93
+ "ux": {"tcr": 0.92, "ftr": 0.08},
94
+ "environmental": {"inf_cost": 0.02, "gpu_hours": 0.05}
95
+ }
96
+
97
+ # Evaluate
98
+ result = evaluate(metrics)
99
+
100
+ # Get the decision
101
+ print(result.final_label) # "ETHICAL"
102
+ print(result.s_llm) # 0.9234 (LLM Ethics Score)
103
+ print(result.risk_band) # "LOW"
104
+ ```
105
+
106
+ ## ๐ŸŽฏ Granular Metric Access
107
+
108
+ The killer feature - access ANY formula value at ANY layer:
109
+
110
+ ```python
111
+ # Access specific L1 formula values
112
+ spd = result.get_l1_metric("fairness", "spd") # 0.02
113
+ psi = result.get_l1_metric("drift", "psi") # 0.1
114
+ accuracy = result.get_l1_metric("performance", "accuracy") # 0.92
115
+
116
+ # Access L2 risk scores
117
+ fairness_risk = result.get_l2_risk("fairness") # 0.12
118
+ legal_risk = result.get_l2_risk("legal") # 0.00
119
+
120
+ # Access L3 forensic evidence
121
+ explanation = result.get_l3_evidence("legal")["explanation"]
122
+
123
+ # Aggregation helpers
124
+ failed_dims = result.get_failed_dims() # ["Legal Compliance"]
125
+ pass_rate = result.l1_pass_rate() # 0.889 (8/9 passed)
126
+
127
+ # Audit table for CIC compliance
128
+ result.print_audit_table()
129
+ # RTI-2026035174555 | ETHICAL | S_LLM=0.92
130
+ # โœ… Legal Compliance: L2=0.02
131
+ # โœ… Bias & Fairness: L2=0.05
132
+ # ...
133
+ ```
134
+
135
+ ## ๐Ÿ“Š 9 Ethical Dimensions
136
+
137
+ | Dimension | L1 Metrics | Description |
138
+ | -------------------- | ------------------- | ---------------------- |
139
+ | **Legal Compliance** | lawfulness, cvr | RTI Act 2005 alignment |
140
+ | **Bias & Fairness** | spd, di, eop, aod | Demographic equity |
141
+ | **Explainability** | confidence, fi | Model interpretability |
142
+ | **Security** | adv_acc, pisr | Adversarial robustness |
143
+ | **Monitoring** | alc, sla | Audit trail integrity |
144
+ | **Performance** | accuracy, recall | Statistical accuracy |
145
+ | **Human-AI UX** | tcr, ftr | User friction |
146
+ | **Drift** | psi, ks | Model stability |
147
+ | **Environmental** | inf_cost, gpu_hours | Carbon footprint |
148
+
149
+ ## ๐Ÿ—๏ธ Architecture
150
+
151
+ ```
152
+ rti_ethics_engine/
153
+ โ”œโ”€โ”€ __init__.py # Public API
154
+ โ”œโ”€โ”€ config.py # Thresholds & weights
155
+ โ”œโ”€โ”€ dimensions.py # 9 dimension evaluators
156
+ โ”œโ”€โ”€ core.py # EthicsEngine orchestrator
157
+ โ”œโ”€โ”€ results.py # EthicsResult with accessors
158
+ โ””โ”€โ”€ metrics.py # Computation helpers
159
+ ```
160
+
161
+ ## ๐Ÿ“– API Reference
162
+
163
+ ### `evaluate(metrics: dict) -> EthicsResult`
164
+
165
+ Quick evaluation entrypoint.
166
+
167
+ ### `EthicsEngine`
168
+
169
+ Full engine with `run_protocol()` method.
170
+
171
+ ### `EthicsResult`
172
+
173
+ Result object with:
174
+
175
+ - `final_label`: "ETHICAL" / "CONDITIONALLY_ETHICAL" / "UNETHICAL"
176
+ - `s_llm`: LLM Ethics Score [0, 1]
177
+ - `risk_band`: "LOW" / "MEDIUM" / "HIGH" / "CRITICAL"
178
+ - `get_l1_metric(dim, metric)`: Access any L1 formula value
179
+ - `get_l2_risk(dim)`: Get dimension risk score
180
+ - `get_l3_evidence(dim)`: Get forensic evidence
181
+ - `get_failed_dims()`: List failed dimensions
182
+ - `l1_pass_rate()`: Fraction of L1 passes
183
+ - `to_json()`: Export as JSON
184
+
185
+ ## ๐Ÿงช Testing
186
+
187
+ ```bash
188
+ pip install -e ".[dev]"
189
+ pytest tests/ -v
190
+ ```
191
+
192
+ ## ๐Ÿ“„ License
193
+
194
+ MIT License - See [LICENSE](LICENSE) for details.
195
+
196
+ ## ๐Ÿ‡ฎ๐Ÿ‡ณ Made for India
197
+
198
+ Designed specifically for RTI Act 2005 compliance and CIC audit requirements.
@@ -0,0 +1,141 @@
1
+ # RTI Ethics Engine
2
+
3
+ **India's first granular AI ethics framework for RTI applications** - A production-ready Python package implementing 36 metrics across 9 ethical dimensions with granular formula access.
4
+
5
+ [![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
8
+ ## ๐Ÿš€ Installation
9
+
10
+ ```bash
11
+ pip install rti-ethics-engine
12
+ ```
13
+
14
+ Or install from source:
15
+
16
+ ```bash
17
+ git clone https://github.com/rti-ethics/rti-ethics-engine.git
18
+ cd rti-ethics-engine
19
+ pip install -e .
20
+ ```
21
+
22
+ ## โšก Quick Start
23
+
24
+ ```python
25
+ from rti_ethics_engine import evaluate
26
+
27
+ # Define your metrics
28
+ metrics = {
29
+ "fairness": {"spd": 0.02, "di": 1.0, "eop": 0.05, "aod": 0.03},
30
+ "drift": {"psi": 0.1, "ks": 0.02},
31
+ "legal": {"lawfulness": 1.0, "cvr": 0.98},
32
+ "performance": {"accuracy": 0.92, "recall": 0.88},
33
+ "explainability": {"confidence": 0.85, "fi": 0.3},
34
+ "security": {"adv_acc": 0.8, "pisr": 0.02},
35
+ "monitoring": {"alc": 0.98, "sla": 0.995},
36
+ "ux": {"tcr": 0.92, "ftr": 0.08},
37
+ "environmental": {"inf_cost": 0.02, "gpu_hours": 0.05}
38
+ }
39
+
40
+ # Evaluate
41
+ result = evaluate(metrics)
42
+
43
+ # Get the decision
44
+ print(result.final_label) # "ETHICAL"
45
+ print(result.s_llm) # 0.9234 (LLM Ethics Score)
46
+ print(result.risk_band) # "LOW"
47
+ ```
48
+
49
+ ## ๐ŸŽฏ Granular Metric Access
50
+
51
+ The killer feature - access ANY formula value at ANY layer:
52
+
53
+ ```python
54
+ # Access specific L1 formula values
55
+ spd = result.get_l1_metric("fairness", "spd") # 0.02
56
+ psi = result.get_l1_metric("drift", "psi") # 0.1
57
+ accuracy = result.get_l1_metric("performance", "accuracy") # 0.92
58
+
59
+ # Access L2 risk scores
60
+ fairness_risk = result.get_l2_risk("fairness") # 0.12
61
+ legal_risk = result.get_l2_risk("legal") # 0.00
62
+
63
+ # Access L3 forensic evidence
64
+ explanation = result.get_l3_evidence("legal")["explanation"]
65
+
66
+ # Aggregation helpers
67
+ failed_dims = result.get_failed_dims() # ["Legal Compliance"]
68
+ pass_rate = result.l1_pass_rate() # 0.889 (8/9 passed)
69
+
70
+ # Audit table for CIC compliance
71
+ result.print_audit_table()
72
+ # RTI-2026035174555 | ETHICAL | S_LLM=0.92
73
+ # โœ… Legal Compliance: L2=0.02
74
+ # โœ… Bias & Fairness: L2=0.05
75
+ # ...
76
+ ```
77
+
78
+ ## ๐Ÿ“Š 9 Ethical Dimensions
79
+
80
+ | Dimension | L1 Metrics | Description |
81
+ | -------------------- | ------------------- | ---------------------- |
82
+ | **Legal Compliance** | lawfulness, cvr | RTI Act 2005 alignment |
83
+ | **Bias & Fairness** | spd, di, eop, aod | Demographic equity |
84
+ | **Explainability** | confidence, fi | Model interpretability |
85
+ | **Security** | adv_acc, pisr | Adversarial robustness |
86
+ | **Monitoring** | alc, sla | Audit trail integrity |
87
+ | **Performance** | accuracy, recall | Statistical accuracy |
88
+ | **Human-AI UX** | tcr, ftr | User friction |
89
+ | **Drift** | psi, ks | Model stability |
90
+ | **Environmental** | inf_cost, gpu_hours | Carbon footprint |
91
+
92
+ ## ๐Ÿ—๏ธ Architecture
93
+
94
+ ```
95
+ rti_ethics_engine/
96
+ โ”œโ”€โ”€ __init__.py # Public API
97
+ โ”œโ”€โ”€ config.py # Thresholds & weights
98
+ โ”œโ”€โ”€ dimensions.py # 9 dimension evaluators
99
+ โ”œโ”€โ”€ core.py # EthicsEngine orchestrator
100
+ โ”œโ”€โ”€ results.py # EthicsResult with accessors
101
+ โ””โ”€โ”€ metrics.py # Computation helpers
102
+ ```
103
+
104
+ ## ๐Ÿ“– API Reference
105
+
106
+ ### `evaluate(metrics: dict) -> EthicsResult`
107
+
108
+ Quick evaluation entrypoint.
109
+
110
+ ### `EthicsEngine`
111
+
112
+ Full engine with `run_protocol()` method.
113
+
114
+ ### `EthicsResult`
115
+
116
+ Result object with:
117
+
118
+ - `final_label`: "ETHICAL" / "CONDITIONALLY_ETHICAL" / "UNETHICAL"
119
+ - `s_llm`: LLM Ethics Score [0, 1]
120
+ - `risk_band`: "LOW" / "MEDIUM" / "HIGH" / "CRITICAL"
121
+ - `get_l1_metric(dim, metric)`: Access any L1 formula value
122
+ - `get_l2_risk(dim)`: Get dimension risk score
123
+ - `get_l3_evidence(dim)`: Get forensic evidence
124
+ - `get_failed_dims()`: List failed dimensions
125
+ - `l1_pass_rate()`: Fraction of L1 passes
126
+ - `to_json()`: Export as JSON
127
+
128
+ ## ๐Ÿงช Testing
129
+
130
+ ```bash
131
+ pip install -e ".[dev]"
132
+ pytest tests/ -v
133
+ ```
134
+
135
+ ## ๐Ÿ“„ License
136
+
137
+ MIT License - See [LICENSE](LICENSE) for details.
138
+
139
+ ## ๐Ÿ‡ฎ๐Ÿ‡ณ Made for India
140
+
141
+ Designed specifically for RTI Act 2005 compliance and CIC audit requirements.
@@ -0,0 +1,90 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "rti-ethics-engine"
7
+ version = "1.0.0"
8
+ description = "India's first granular AI ethics framework for RTI applications (36 metrics, 9 dimensions)"
9
+ readme = "README.md"
10
+ license = {file = "LICENSE"}
11
+ requires-python = ">=3.9"
12
+ authors = [
13
+ {name = "RTI Ethics Engine Team"}
14
+ ]
15
+ keywords = [
16
+ "ai-ethics",
17
+ "rti",
18
+ "india",
19
+ "government",
20
+ "compliance",
21
+ "fairness",
22
+ "audit",
23
+ "llm"
24
+ ]
25
+ classifiers = [
26
+ "Development Status :: 5 - Production/Stable",
27
+ "Intended Audience :: Developers",
28
+ "Intended Audience :: Science/Research",
29
+ "License :: OSI Approved :: MIT License",
30
+ "Operating System :: OS Independent",
31
+ "Programming Language :: Python :: 3",
32
+ "Programming Language :: Python :: 3.9",
33
+ "Programming Language :: Python :: 3.10",
34
+ "Programming Language :: Python :: 3.11",
35
+ "Programming Language :: Python :: 3.12",
36
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
37
+ "Topic :: Software Development :: Libraries :: Python Modules"
38
+ ]
39
+ dependencies = [
40
+ "numpy>=1.24.0"
41
+ ]
42
+
43
+ [project.optional-dependencies]
44
+ dev = [
45
+ "pytest>=7.0",
46
+ "pytest-cov>=4.0",
47
+ "black>=23.0",
48
+ "mypy>=1.0",
49
+ "ruff>=0.1.0"
50
+ ]
51
+ docs = [
52
+ "sphinx>=5.0",
53
+ "sphinx-rtd-theme>=1.0"
54
+ ]
55
+
56
+ [project.urls]
57
+ Homepage = "https://github.com/rti-ethics/rti-ethics-engine"
58
+ Documentation = "https://rti-ethics-engine.readthedocs.io"
59
+ Repository = "https://github.com/rti-ethics/rti-ethics-engine"
60
+ Issues = "https://github.com/rti-ethics/rti-ethics-engine/issues"
61
+
62
+ [tool.hatch.build.targets.wheel]
63
+ packages = ["rti_ethics_engine"]
64
+
65
+ [tool.hatch.build.targets.sdist]
66
+ include = [
67
+ "/rti_ethics_engine",
68
+ "/tests",
69
+ "/README.md",
70
+ "/LICENSE"
71
+ ]
72
+
73
+ [tool.pytest.ini_options]
74
+ testpaths = ["tests"]
75
+ python_files = ["test_*.py"]
76
+ addopts = "-v --tb=short"
77
+
78
+ [tool.black]
79
+ line-length = 100
80
+ target-version = ["py39", "py310", "py311"]
81
+
82
+ [tool.ruff]
83
+ line-length = 100
84
+ select = ["E", "F", "W", "I", "N"]
85
+
86
+ [tool.mypy]
87
+ python_version = "3.9"
88
+ warn_return_any = true
89
+ warn_unused_configs = true
90
+ disallow_untyped_defs = true