Skip to main content

API client for Safelyx.

Project description

Safelyx API

pypi

Safelyx API client

Safelyx API client for Python.

You can find the API documentation at https://safelyx.com/safe-api.

Some things to note:

  1. It's simply making an HTTP request to the Safelyx API.

  2. It's using the requests library to make the HTTP request.

  3. If the request to the API fails (HTTP error), it will throw an error, so you might want to wrap it in a try/except block.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safelyx-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

safelyx-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for safelyx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 99dd63f8c64dba89a8fa6752079579d8fec3984b486998ae63f9f1b417583c71
MD5 d8be7059f0f82e82690595bf0c0cfd35
BLAKE2b-256 5cd1b2aef8cdcc9500a6f8823305c92826b5e2f66ef3ab239c8f7f81b16fa195

See more details on using hashes here.

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

Hashes for safelyx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42373da41939f01a593d488062b027d72cdb5f4638e91461d7a87105fdde8ea6
MD5 33edb2c7fd6875bfbe72a20d647ea309
BLAKE2b-256 84128a6e879c42c68d04e7e8abf11d1d3aa651cfe253289593078bf390ee6bf8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page