semvec/pypi-packages huggingface dataset:
safecall.py 1.0.0
Official RESTful Python API wrapper for the SafeCall API
License: MIT
Requires Python: >=3.0
Keywords: chatwind,safecallapi,api,python

<div align="center">
  <br>

# safecall.py
<br>
<p>
Official RESTful Python API wrapper for the SafeCall API
</p>
<br>
<p>
<br>
<a href="https://www.pypi.org/project/safecall.py"><img src="https://static.pepy.tech/badge/safecall.py/month" alt="PyPi downloads" /></a>
<a href="https://www.pypi.org/project/chatwind.py"><img src="https://api.ghprofile.me/view?username=chatwind-safecall.py&label=repository%20view%20count&style=flat" alt="Repository view count" /></a>
</p>

<br>

</div>

# Usage

## Add the package
To start, you will need to add the package. To do that, simply run `pip install safecall.py`. In your code, add the following:
```py
import safecall
```
Now you can use any of the functions below!

---

### Getting a IP's information
```py
ip = safecall.ip("IP")
print(ip)
```
The code above should return a 200 OK message. (JSON)

### Report an IP
```py
report = safecall.report("KEY", "IP", "REASON")
print(report)
```
The code above should return a 200 OK message. (JSON)

### Get the statistics for SafeCall API
```py
stats = safecall.stats()
print(stats)
```
The code above should return a 200 OK message. (JSON)

---

## Unmentioned feature
If this package does not have a function for a certain API endpoint, we have a function that lets you easily interact with any endpoint!
```py
api = safecall.api("PATH", "METHOD")
print(api)
```
This will return a JSON from the endpoint specified.

**Note:** "PATH" is the endpoint (e.g call/127.0.0.1), and "METHOD" is the HTTP method (e.g POST).