scrapyq
Scrapyq is designed to replace the SQLite backend by a Redis backend. In other words, all the queue management will be done using Redis.
Scrapyq is a fork of the original https://github.com/speakol-ads/scrapyd-redis implementation.
Install
pip install scrapyq
Config
To start using this library you just need to override
the spiderqueue option in your scrapyd.conf file:
[scrapyd]
spiderqueue = scrapyq.spiderqueue.RedisSpiderQueue
If you want to customize the access to the database,
you can add into your scrapyd.conf file:
[scrapyq]
queue_prefix = scrapyq.queue.
redis_db = 0
redis_host = localhost
redis_port = 6379
redis_username = 'admin' # (Optional)
redis_password = 'password' # (Optional)
Development and Testing
Installation
Install the package with development dependencies using the dev extra:
pip install -e ".[dev]"
Running tests
Testing requires a Redis instance. You can quickly start a Docker container using the provided Makefile command:
make redis-container
The standard test command runs both Ruff linting and the full pytest suite:
make test
Run code linting with Ruff:
make lint
Run documentation linting with mdformat:
make md-lint
Automatically format code and imports with Ruff:
make format
The coverage command runs linting, documentation linting, and generates a coverage report:
make coverage
Metadata
Release files for scrapyq 2.0.0
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 |
|---|---|---|---|---|
| scrapyq-2.0.0.tar.gz | 4.6 kB | Without provenance | Details for scrapyq-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scrapyq-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for scrapyq-2.0.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / scrapyq-2.0.0.tar.gz
| Download URL | scrapyq-2.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06f4b10b3e5367980ae1e533190ab000fbe43170b0e814e79c6023660b3dcb77
|
|
BLAKE2b-256 checksum How to use checksums |
3b39db279619f73ce3bf86d6f69164c948230e655a11b06461c27169c5aa2d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / scrapyq-2.0.0-py3-none-any.whl
| Download URL | scrapyq-2.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8507f7b1d220d3237740183b37d69acb960e8dc40c470e20ee1ad2d97af4cd37
|
|
BLAKE2b-256 checksum How to use checksums |
c6ad258635cf12b550d3549b54ba8c15ae8b19fa652f16f40b16b5f1652bcbd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for scrapyq 2.0.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.