Skip to main content

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)

Metadata

Release files for pyshadowserver 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyshadowserver 0.1
File Size Uploaded
pyshadowserver-0.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyshadowserver 0.1
File Interpreter ABI Platform
pyshadowserver-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / pyshadowserver-0.1.tar.gz

Download URL pyshadowserver-0.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
61e4bc044930724f7c391fea8f8245be7e8b26a784799963d9a73ede8ae9b383
BLAKE2b-256 checksum
How to use checksums
8bd3ae3285df055008064d438df7e6e14fdb7aeed28c7e20f50cf1a6ce720bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release files / pyshadowserver-0.1-py3-none-any.whl

Download URL pyshadowserver-0.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ddfc1794d47d382d467e1dd0489e8f0a8182d85fc238e87e945312f16099acd2
BLAKE2b-256 checksum
How to use checksums
3a568250fd39d51a2440dcc4259bbaa560fc1c8f9b27b786204b25f5718ab877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page