This release is a pre-release and may not be stable for production use.
ScrapeRack SDK
Python client for submitting trusted Python functions to a self-hosted ScrapeRack cluster.
ScrapeRack is alpha software. Use it on trusted infrastructure and expect breaking changes.
Install
pip install scraperack
Run a function
The environment must already exist on the cluster.
from scraperack import Cluster
def add(a, b):
from scraperack_runtime import secret, variable
print(variable("LOG_LEVEL", "INFO"))
database_url = secret("DATABASE_URL")
return a + b
cluster = Cluster("http://controller:7070")
try:
execution = cluster.run(
"python",
add,
(2, 3),
variables={"LOG_LEVEL": "DEBUG"},
secrets={"DATABASE_URL": "postgresql://..."},
)
print(cluster.result(execution["id"]))
finally:
cluster.close()
Installation, cluster setup, and source code are available at github.com/damadjan/scraperack.
Metadata
Release files for scraperack 0.1.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| scraperack-0.1.0a3.tar.gz | 10.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scraperack-0.1.0a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / scraperack-0.1.0a3.tar.gz
| Download URL | scraperack-0.1.0a3.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9dbd3c5834999294485e2172446b993029a53145ff5acdec9e2ca262ea530781
|
|
BLAKE2b-256 checksum How to use checksums |
b84dbc25bcc1a4912415e7661f63d909135f980b62305eb4e0ee80578c215899
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / scraperack-0.1.0a3-py3-none-any.whl
| Download URL | scraperack-0.1.0a3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ec3db177a2ef1f1bb3ef97c2a5ee89c2c3b3c460f3aa6b5357b986a1a614f77
|
|
BLAKE2b-256 checksum How to use checksums |
233f02e0e65ab960f61c371ec900df7ac29d2c9d881df8fded2e1f7b1e1e0357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for scraperack 0.1.0a3
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.