Skip to main content
Pre-release

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

Scrapy Cluster Utilities

Overview

The scutils package is a collection of utilities that are used by the Scrapy Cluster project. These utilities are agnostic enough that they can be used by any application.

Requirements

  • Unix based machine (Linux or OS X)

  • Python 2.7.x

Installation

Inside a virtualenv, run pip install -U scutils. This will install the latest version of the Scrapy Cluster Utilities. If you are running a Scrapy Cluster, scutils is included inside of the requirements.txt so there is no need to install it separately.

Documentation

Full documentation for the scutils package is included as part of the Official Scrapy Cluster Documentation, which can be found here under the Utilities section.

argparse_helper.py

The argparse_helper module is used to help print top level --help arguments from argparse when used with subparsers. Useful for running applications that have multiple combinations of subcommands and command line arguments.

log_factory.py

The log_factory module provides a standardized way for creating logs for multithreaded and concurrent process log data. It supports all log levels, stdout or to a file, and various output formats including JSON.

method_timer.py

The method_timer module provides a simple decorator that can be added to functions or methods requiring an execution timeout period.

redis_queue.py

The redis_queue module provides 3 core queue classes which use Redis as the place to store data. Includes FIFO, Stack, and Priority Queues.

redis_throttled_queue.py

The redis_throttled_queue module provides a throttled or moderated Redis queue structure that can be used to mitigate the number of pops from the queue within a given time frame.

settings_wrapper.py

The settings_wrapper module is a class the handles loading of default python application settings, which can then be overridden or added to by a local settings file. In the end provides a single dictionary object of all your loaded application settings.

stats_collector.py

The stats_collector module generates Redis based statistics based on time windows or in total. Statistics collection includes time windows, rolling time windows, counters, unique counters, hyperloglog counters, and bitmap counters.

zookeeper_watcher.py

The zookeeper_watcher module provides an easy way to tell an application that it’s watched Zookeeper file has changed. It also handles Zookeeper session disconnects and reconnects behind the scenes of your application.

Metadata

Release files for scutils 1.2.0.dev8

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

Source distribution (sdist)

Source distribution for scutils 1.2.0.dev8
File Size Uploaded
scutils-1.2.0.dev8.tar.gz 18.1 kB Details

Release files / scutils-1.2.0.dev8.tar.gz

Download URL scutils-1.2.0.dev8.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
775153e7d4cbb0bd652df6cf184fcd403b5100e197ef78566aa37f73da8e1bea
BLAKE2b-256 checksum
How to use checksums
b8ec5c89900fa4e5401b56a096df0ef85aad6d5e1148b7c3d5a016c8c951abcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
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