Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

useshards

A minimal Python client for Shard.

This alpha supports only GET /v0/version. Sandbox creation, command execution, and file operations are not available in this release. Python 3.10 or later is required. The package has no runtime dependencies.

pip install --pre useshards
from useshards import Shard

shard = Shard(url="https://shard.example.com", api_key="YOUR_API_KEY")
print(shard.version())
import asyncio
from useshards import AsyncShard

async def main():
    shard = AsyncShard()  # Uses SHARD_REMOTE and SHARD_API_KEY.
    print(await shard.version())

asyncio.run(main())

url defaults to SHARD_REMOTE. api_key defaults to SHARD_API_KEY. Use the server base URL without /v0. Base paths are supported. The current server requires a token with daemon:read or * for this endpoint. Use HTTPS for remote connections. HTTP supports local servers or a trusted network. Redirects are rejected. The socket timeout defaults to 30 seconds:

print(shard.version(timeout=5))

AsyncShard uses a worker thread for HTTP requests in this minimal release. Cancellation stops the await, but the HTTP request can continue until its timeout. HTTP failures, malformed responses, and connection failures raise exceptions. The API is experimental. Future alpha releases can change it.

Website: https://useshards.com

License: Apache-2.0

Metadata

Release files for useshards 0.1.0a1

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

Source distribution (sdist)

Source distribution for useshards 0.1.0a1
File Size Uploaded Provenance
useshards-0.1.0a1.tar.gz 7.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 15.2 kB

Release files / useshards-0.1.0a1.tar.gz

Download URL useshards-0.1.0a1.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
efe4668d32fa314c45f05b77fa9eed3a9610efc299000b013ebc92e9885381e0
BLAKE2b-256 checksum
How to use checksums
bd137b1e6eb06550f8f49dd0cba693fe8d52c64e231d9cd50481f8339237be5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / useshards-0.1.0a1-py3-none-any.whl

Download URL useshards-0.1.0a1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c60dcf8d624144a32f22ff606379bd66b42c63f152eef3bffa20c3b5cfcb986
BLAKE2b-256 checksum
How to use checksums
d65d76172f86954e42dde0cac9742b64f7ce2eec0f3eee77afa1e03d2d5cf80b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for useshards 0.1.0a1

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