Skip to main content

A Python package to interact with the Secwe API

Project description

Secwe AI-Powered Detection of Malicious Domains

Secweb API Overview

secwebapi is a Python package designed to interact with the Secwe API. It provides a simple and intuitive interface for sending requests and processing responses from the API.

Installation

To install secwebapi, you need to have Python installed on your system. If you don't have Python installed, you can download it from the official website.

Once Python is installed, you can install secwebapi by cloning the repository and running the setup script:

python3 -m pip install secwebapi

or by running the following commands in your terminal:

git clone https://github.com/sametazaboglu/secwebapi.git
cd secwebapi
pip install .

Example Usage

Here's an example of how you can use secwebapi to send a request to the Secweb API:

import secwebapi

# Initialize the API with your credentials
USERNAME = ''
API_KEY = ''

web_client = secwebapi.Secweb(
    USERNAME,
    API_KEY
)


# Read domains from a file and store the results
web_client.read_domains_from_file('domains.txt')

# Access the results property
for domain, prediction in web_client.results:
    print(f"Domain: {domain}")
    print(f"Prediction: {prediction}\n")

STAY SAFE

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

secwebapi-2024.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

secwebapi-2024.8-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file secwebapi-2024.8.tar.gz.

File metadata

  • Download URL: secwebapi-2024.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for secwebapi-2024.8.tar.gz
Algorithm Hash digest
SHA256 9d78f51bf142a0fcf5a1bf25e78272e312d59da88f74f837438907b6a39aee81
MD5 63577dc1fd02dffc02cfa8921bb6d595
BLAKE2b-256 93330c9fa1147331422f4c8952b56da91496690b858e198f366f5147fb3c6194

See more details on using hashes here.

File details

Details for the file secwebapi-2024.8-py3-none-any.whl.

File metadata

  • Download URL: secwebapi-2024.8-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for secwebapi-2024.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3df7253c2bbd8fa331c2f0274a28c25e22da73c57c115e1bd8c0e32edc03dd8c
MD5 7089de28811a17858ee7879c7d308d99
BLAKE2b-256 9cc3c399a84b29b8f772f1734ab124d09034b2d37f4bf4b38d54ffef38f41a44

See more details on using hashes here.

Supported by

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