API client for Safelyx.
Project description
Safelyx API
Safelyx API client
Safelyx API client for Python.
You can find the API documentation at https://safelyx.com/safe-api.
Some things to note:
-
It's simply making an HTTP request to the Safelyx API.
-
It's using the
requestslibrary to make the HTTP request. -
If the request to the API fails (HTTP error), it will throw an error, so you might want to wrap it in a
try/exceptblock.
Usage
It has a method per API endpoint.
Python
import safelyx
check_result = safelyx.check_link('https://example.com')
print(check_result.result) # Outputs a safety score between 0 (unsafe) and 10 (safe). -1 if there was an error, -2 if there are no checks remaining.
Installation
pip install safelyx
Development
Requires python 3.11+.
make install
make format
make test
Publishing
After committing and pushing with a new version in pyproject.toml, just run:
make publish
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safelyx-0.1.1.tar.gz.
File metadata
- Download URL: safelyx-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99dd63f8c64dba89a8fa6752079579d8fec3984b486998ae63f9f1b417583c71
|
|
| MD5 |
d8be7059f0f82e82690595bf0c0cfd35
|
|
| BLAKE2b-256 |
5cd1b2aef8cdcc9500a6f8823305c92826b5e2f66ef3ab239c8f7f81b16fa195
|
File details
Details for the file safelyx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: safelyx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42373da41939f01a593d488062b027d72cdb5f4638e91461d7a87105fdde8ea6
|
|
| MD5 |
33edb2c7fd6875bfbe72a20d647ea309
|
|
| BLAKE2b-256 |
84128a6e879c42c68d04e7e8abf11d1d3aa651cfe253289593078bf390ee6bf8
|