Skip to main content

Shadow Tools

shadow-tools is a lightweight Python toolbox for everyday apps and scripts. It keeps the basics in one clean package without trying to replace specialized libraries.

Install

pip install shadow-tools
pip install "shadow-tools[websocket]"  # optional WebSocket client

What is included

  • HTTP requests with no required third-party dependency
  • WebSocket connections through an optional extra
  • Async execution for blocking jobs
  • File and directory helpers
  • JSON and CSV reading/writing
  • Email, URL, and required-key checks
  • shadow command-line tool

Quick start

from shadowtools import get, write_json, is_email

response = get("https://api.github.com")
print(response.status, response.json())
write_json("output.json", {"ready": True})
assert is_email("person@example.com")
shadow get https://api.github.com --json
shadow json-format settings.json

WebSockets

from shadowtools.websocket import connect

socket = connect("wss://example.com/socket")
socket.send("hello")
print(socket.recv())
socket.close()

Release

Build locally with python -m build, then publish only after reviewing the generated distributions and confirming the PyPI project name is available.

License

MIT

Metadata

Release files for shadow-tools 0.1.0

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

Source distribution (sdist)

Source distribution for shadow-tools 0.1.0
File Size Uploaded Provenance Actions
shadow_tools-0.1.0.tar.gz 5.2 kB Without provenance Details for shadow_tools-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shadow-tools 0.1.0
File Interpreter ABI Platform Actions
shadow_tools-0.1.0-py3-none-any.whl Python 3 none any Details for shadow_tools-0.1.0-py3-none-any.whl

Total release size: 12.8 kB

Release files / shadow_tools-0.1.0.tar.gz

Download URL shadow_tools-0.1.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
594d96802183a2da9e645e0da3f8f2d7f5b8fe1455b5827a2640269566fb79c3
BLAKE2b-256 checksum
How to use checksums
d8d10398629ed75e315a713448e3a4e671ec065bb12180170ae2fdf86bd0f74f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / shadow_tools-0.1.0-py3-none-any.whl

Download URL shadow_tools-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d856d3e5f2a94756a045239b6d53fa75edea1bf109ecf01c2d6d897596dc5d47
BLAKE2b-256 checksum
How to use checksums
81a3e73eb2abe64881ab5d1b086aedd312bc6b4bc382ed91c4e46d7b0f760964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for shadow-tools 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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