APCloudy Pipeline
Scrapy integration that sends items, requests, logs, and stats to AP Cloudy with HMAC auth and full job log capture.
Install
pip install apcloudy-pipeline
Settings
Only the item pipeline is required — requests, logs, stats, parent_url, and error logging are enabled automatically:
APCLOUDY_URL = "https://your-api.com"
APCLOUDY_API_KEY = "your_public_api_key"
APCLOUDY_SECRET_KEY = "your_secret_key"
JOB_ID = 123
APCLOUDY_BATCH_SIZE = 50 # optional
ITEM_PIPELINES = {
"apcloudy_pipeline.pipelines.APCloudyItemPipeline": 300,
}
Log level follows Scrapy LOG_LEVEL.
Payload
{
"job_id": "123",
"data": {
"requests": [{ "url": "...", "parent_url": "https://...", "status_code": 200, "response_size": 18432, "success": true, "...": "..." }],
"items": [{ "title": "...", "_ts": 1753358220 }],
"logs": [{
"index": 0,
"time": "2026-07-01 13:02:55",
"timestamp": 1751374975.12,
"level": "INFO",
"logger": "scrapy.core.engine",
"message": "Spider opened",
"exception": null
}],
"stats": { "item_scraped_count": 1, "finish_reason": "finished" }
}
}
Logs cover startup → crawl → stats dump → closed (plus print() spider lines).
Auth
X-API-KEY / X-TIMESTAMP / X-SIGNATURE
POST {APCLOUDY_URL}/api/webhook/consume
signature = HMAC-SHA256(secret, timestamp + "." + body)
Notes
- Yield items from callbacks (not only
returninside a generator). - Request
parent_urlis the page that scheduled the request (e.g. sitemap → product). Start URLs havenull. - Each request includes
response_size(downloaded body size in bytes). Failed requests send0unless the exception carried a response. - Data flushes on batch size, every 10s, and on engine/process stop — same payload shape as before.
- Requires Python 3.8+, Scrapy 2.0+,
requests,w3lib,itemadapter.
License
MIT
Metadata
Release files for apcloudy-pipeline 0.2.2
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 | Actions |
|---|---|---|---|---|
| apcloudy_pipeline-0.2.2.tar.gz | 13.5 kB | Without provenance | Details for apcloudy_pipeline-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apcloudy_pipeline-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for apcloudy_pipeline-0.2.2-py3-none-any.whl |
Total release size: 29.1 kB
Release files / apcloudy_pipeline-0.2.2.tar.gz
| Download URL | apcloudy_pipeline-0.2.2.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
754200cd41b1c3945d6b2c47f574f8b65f542d0738422a1f2e0b98a2943ddce3
|
|
BLAKE2b-256 checksum How to use checksums |
c076432995de7cba36117792591e291a1d0dfd2b3c04a580c85eee63b3fc1043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / apcloudy_pipeline-0.2.2-py3-none-any.whl
| Download URL | apcloudy_pipeline-0.2.2-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f2be3c5155ed929999e593a9d1fe6ef13809f6648276701755397c3774e0f97
|
|
BLAKE2b-256 checksum How to use checksums |
95eb724fbc8d4265246b84be446fa18be7d6d598875699aa82d533e3916a43be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for apcloudy-pipeline 0.2.2
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.