Skip to main content

Scrapyd queue management using Redis.

Project description

scrapyq

version pyversions actions codecov

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapyq-2.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapyq-2.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file scrapyq-2.0.0.tar.gz.

File metadata

  • Download URL: scrapyq-2.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scrapyq-2.0.0.tar.gz
Algorithm Hash digest
SHA256 06f4b10b3e5367980ae1e533190ab000fbe43170b0e814e79c6023660b3dcb77
MD5 21b018ed3c252489e4b0255773f2d808
BLAKE2b-256 3b39db279619f73ce3bf86d6f69164c948230e655a11b06461c27169c5aa2d26

See more details on using hashes here.

File details

Details for the file scrapyq-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: scrapyq-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scrapyq-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8507f7b1d220d3237740183b37d69acb960e8dc40c470e20ee1ad2d97af4cd37
MD5 f5ce2a1e544c41fb4d824889acfc23c9
BLAKE2b-256 c6ad258635cf12b550d3549b54ba8c15ae8b19fa652f16f40b16b5f1652bcbd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page