🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

safelyx

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safelyx

API client for Safelyx.

0.1.1
PyPI
Maintainers
0

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:

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

  • It's using the requests library 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/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

Keywords

safelyx

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts