Skip to main content

Python 3 library for Shadow Server reports

Project description

Pyshadowserver

PyPI PyPI - Downloads PyPI - License GitHub issues

Python library to interact with the Shadow Server Report API.

So far it only implements the ASN, malware, Trusted Programs and report queries.

API

See the documentation and the source code for more information.

Unauthenticated queries

from pyshadowserver import ShadowServer, ShadowServerException

ss = ShadowServer()

ss.asn(origin="8.8.8.8")
ss.trusted_program("7fe2248de77813ce850053ed0ce8a474")

Querying reports

from pyshadowserver import ShadowServer, ShadowServerException

ss = ShadowServer(APIKEY, APISECRET)

# Find all reports and save them
reports = ss.reports_list()
for r in reports:
    data = ss.reports_download_raw(r["id"])
    with open(r["file"], "w+") as f:
        f.write(data)

License

This code is published under MIT license: do whatever you want with it, but don't blame me if it fails (and open a PR)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pyshadowserver-0.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

pyshadowserver-0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file pyshadowserver-0.1.tar.gz.

File metadata

  • Download URL: pyshadowserver-0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for pyshadowserver-0.1.tar.gz
Algorithm Hash digest
SHA256 61e4bc044930724f7c391fea8f8245be7e8b26a784799963d9a73ede8ae9b383
MD5 ff749f058cf05e3bad780b53ded65687
BLAKE2b-256 8bd3ae3285df055008064d438df7e6e14fdb7aeed28c7e20f50cf1a6ce720bf7

See more details on using hashes here.

File details

Details for the file pyshadowserver-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyshadowserver-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddfc1794d47d382d467e1dd0489e8f0a8182d85fc238e87e945312f16099acd2
MD5 e9815db955aa59a819081fbe6804023d
BLAKE2b-256 3a568250fd39d51a2440dcc4259bbaa560fc1c8f9b27b786204b25f5718ab877

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