semvec/pypi-packages huggingface dataset:
cleantalk-python-antispam 1.2.0
CleanTalk module for Python

cleantalk_python_antispam
===============

A Python API for antispam service cleantalk.org. Invisible protection from spam, no captches, no puzzles, no animals and no math.

## How API stops spam?
API uses several simple tests to stop spammers.
- Spam bots signatures.
- Blacklists checks by Email, IP, web-sites domain names.
- JavaScript availability.
- Comment submit time.
- Relevance test for the comment.

## How API works?
API sends a comment's text and several previous approved comments to the servers. Servers evaluates the relevance of the comment's text on the topic, tests on spam and finaly provides a solution - to publish or put on manual moderation of comments. If a comment is placed on manual moderation, the plugin adds to the text of a comment explaining the reason for the ban server publishing.

## Requirements

- Python 2.6 and above
- Python 3 and above 

## SPAM test for text comment sample 

```python
from cleantalk import CleanTalk


ct = CleanTalk(auth_key='yourkey')
ct_result = ct.request(
	message = 'abc', # Visitor comment
	sender_ip = '196.19.250.114', # Visitor IP address
	sender_email = 'stop_email@example.com', # Visitor email
	sender_nickname = 'spam_bot', # Visitor nickname
	js_on = 1, # Is visitor has JavaScript
	submit_time = 12 # Seconds from start form filling till the form POST
)
#Check
if ct_result['allow']:
	print('Comment allowed. Reason ' + ct_result['comment'])
	
	print('Comment blocked. Reason ' + ct_result['comment'])
```

## API Response description
API returns Python dictionary object, where keys:
- allow (0|1) - allow to publish or not, in other words spam or ham
- comment (string) - server comment for requests.
- id (string MD5 HEX hash) - unique request idenifier.
  
## Installing via PyPi
Run the next command in the terminal:
```python
pip install cleantalk-python-antispam
```
Then you can use Cleantalk class import:
```python
from cleantalk_python_antispam.cleantalk import CleanTalk
```
pytorch-rex 0.1.9
A toolkit for Relation Extraction and more...
Requires Python: >=3.7

<p align="center">
  <br>
  <img src="docs/REx.png" width="300"/>
  <br>
<p>

<p align="center">
  <a href="https://github.com/Spico197/REx/actions">
    <img alt="Build" src="https://github.com/Spico197/REx/workflows/REx/badge.svg?branch=main">
  </a>
  <a href="https://codecov.io/gh/Spico197/REx">
    <img src="https://codecov.io/gh/Spico197/REx/branch/main/graph/badge.svg"/>
  </a>
  <a href="https://rex.readthedocs.io/en/main/?badge=main">
    <img alt="Docs" src="https://readthedocs.org/projects/rex/badge/?version=main">
  </a>
</p>

A toolkit for Relation extraction, Event eXtraction (REx) and more...

This project has not been finished yet, so be careful when using it, or wait until the first release comes out.

This project is suffering from the second-system effect.
I would like to cut some features to make this going smoothly.

[Accelerate](https://github.com/huggingface/accelerate) seems to be a very sweet wrapper for multi-GPU, TPU training, we highly recommend you to use such frameworks, instead of adding hard codes on your own.

## ⚙️Installation

[Python](https://www.python.org/) (**>=3.7**) and [pytorch](http://pytorch.org/) (**>=1.7.1**) are preliminaries for REx.

```bash
# 1. install from source
$ git clone https://github.com/Spico197/REx.git
$ cd REx
$ pip install -e .

# 2. install from PyPI, recommended
$ pip install pytorch-rex -i https://pypi.org/simple
```

## 🚀QuickStart

- Create a new task: `rex new task_name`

## 🤝 Contributing

Contributions are greatly appreciated to make this project better.

Please see [Contributing](./CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md) for more information.

## 🔑LICENCE

Distributed under the MIT licence.

See `LICENSE` for more informatin.