Metadata-Version: 2.4
Name: data-poisoning-detector
Version: 0.1.2a1
Summary: Data Poisoning Detection using self-supervised learning techniques
Home-page: 
Author: Lakshan Costa
Author-email: lakshancosta2@gmail.com
License: MIT
Keywords: data poisoning,self-supervised learning,machine learning,security
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENCE.txt
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: scikit-learn
Requires-Dist: flask
Requires-Dist: torch
Requires-Dist: torchvision
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

**Status: Alpha**
APIs may change and detection thresholds are still being refined.
Results should not be considered production-stable.

This is the python library that can be used for the api requests so that users can call to check for poisons in their own datasets.

---

## Quick Start

```python
from poison_detector import api

#UCI dataset
report = api.analyze('uci', 73)
print(report)
clean_uci_df = api.clean('uci', 73)

#CSV file
report = api.analyze('csv', 'path/to/file/dataset.csv')
print(report)
clean_csv_df = api.clean('csv', 'path/to/file/dataset.csv')

#URL
report = api.analyze('url', 'https://webpath/to/file/dataset')
print(report)
clean_url_csv_df = api.clean('url', 'https://webpath/to/file/dataset')
```

---

```markdown
## Supported Sources

- "uci" - UCI Machine Learning repository (by dataset ID).
- "csv" - Local CSV files.
- "url" - URL where an csv file is set for the dataset.

for url's in google drive you can use the following format

- https://drive.google.com/uc?id=FILE_ID&export=download
```


Change Log
==============

0.1.2a1 (22/01/2026)
--------------------
- Updated the api call to accept url links.

0.1.0a1 (21/01/2026)
--------------------
- Changed version of package beta -> alpha
- Updated the analyze and clean function to a common function instead of seperate functions for UCI and csv.

0.1.0 (19/01/2026)
--------------------
- Initial Release
- Fixed issue with calling the model file
