Skip to content

Commit 0f9fc88

Browse files
committed
rename project due to similar name in pypi
1 parent 04cfb36 commit 0f9fc88

28 files changed

+47
-45
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Django-Spam-Detector
1+
# Spam-Detector-AI
22

3-
Django-Spam-Detector is a Python package for detecting and filtering spam messages using Machine Learning models. The
4-
package integrates with Django and offers three different classifiers: Naive Bayes, Random Forest, and Support Vector
5-
Machine (SVM).
3+
Spam-Detector-AI is a Python package for detecting and filtering spam messages using Machine Learning models. The
4+
package integrates with Django or any other project that uses python and offers three different classifiers: Naive
5+
Bayes, Random Forest, and Support Vector Machine (SVM).
66

77
## Table of Contents
88

@@ -18,16 +18,18 @@ Machine (SVM).
1818

1919
## Installation
2020

21-
You can install the spam-detection package via pip:
21+
You can install the spam detection package via pip:
2222

2323
```sh
24-
pip install spam-detection
24+
pip install spam-detector-ai
2525
```
2626

2727
Make sure you have the following dependencies installed:
2828

2929
- scikit-learn
3030
- nltk
31+
- pandas
32+
- numpy
3133

3234
Additionally, you'll need to download the NLTK data and to do so, use the python interpreter to run the following
3335
commands:
@@ -167,7 +169,7 @@ To use the spam detector in your Django project:
167169
3. Use the `is_spam` method to check if a message is spam.
168170

169171
```python
170-
from spam_detector.prediction import VotingSpamDetector
172+
from spam_detector_ai.prediction import VotingSpamDetector
171173

172174
# Create the spam detector
173175
spam_detector = VotingSpamDetector()

setup.cfg

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
2-
name = spam-detector
3-
version = 1.0.0
2+
name = spam-detector-ai
3+
version = 1.0.1
44
description = A package for spam detection using machine learning algorithms.
55
long_description = file: README.md
66
long_description_content_type = text/markdown
@@ -24,16 +24,16 @@ classifiers =
2424
[options]
2525
include_package_data = true
2626
packages =
27-
spam_detector
28-
spam_detector.models
29-
spam_detector.models.svm
30-
spam_detector.models.bayes
31-
spam_detector.models.random_forest
32-
spam_detector.training
33-
spam_detector.classifiers
34-
spam_detector.loading_and_processing
35-
spam_detector.prediction
36-
spam_detector.test_and_tuning
27+
spam_detector_ai
28+
spam_detector_ai.models
29+
spam_detector_ai.models.svm
30+
spam_detector_ai.models.bayes
31+
spam_detector_ai.models.random_forest
32+
spam_detector_ai.training
33+
spam_detector_ai.classifiers
34+
spam_detector_ai.loading_and_processing
35+
spam_detector_ai.prediction
36+
spam_detector_ai.test_and_tuning
3737

3838
python_requires = >=3.8
3939
install_requires =
@@ -43,4 +43,4 @@ install_requires =
4343

4444
[options.package_data]
4545
* = data/*
46-
spam_detector = models/*/*
46+
spam_detector_ai = models/*/*

spam_detector/__init__.py renamed to spam_detector_ai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detector/__init__.py
1+
# spam_detector_ai/__init__.py
22

33
from . import classifiers
44
from . import loading_and_processing
File renamed without changes.

spam_detector/classifiers/base_classifier.py renamed to spam_detector_ai/classifiers/base_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detector/classifiers/base_classifier.py
1+
# spam_detector_ai/classifiers/base_classifier.py
22

33
from abc import ABC, abstractmethod
44

spam_detector/classifiers/classifier_types.py renamed to spam_detector_ai/classifiers/classifier_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detector/classifiers/classifier_types.py
1+
# spam_detector_ai/classifiers/classifier_types.py
22

33
from enum import Enum, auto
44

spam_detector/classifiers/naive_bayes_classifier.py renamed to spam_detector_ai/classifiers/naive_bayes_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detector/classifiers/naive_bayes_classifier.py
1+
# spam_detector_ai/classifiers/naive_bayes_classifier.py
22

33
import pickle
44
from sklearn.feature_extraction.text import CountVectorizer

spam_detector/classifiers/random_forest_classifier.py renamed to spam_detector_ai/classifiers/random_forest_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detector/classifiers/random_forest_classifier.py
1+
# spam_detector_ai/classifiers/random_forest_classifier.py
22

33
import pickle
44
from sklearn.feature_extraction.text import TfidfVectorizer

spam_detector/classifiers/svm_classifier.py renamed to spam_detector_ai/classifiers/svm_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# spam_detector/classifiers/svm_classifier.py
1+
# spam_detector_ai/classifiers/svm_classifier.py
22

33
import pickle
44
from sklearn.feature_extraction.text import TfidfVectorizer
File renamed without changes.

0 commit comments

Comments
 (0)