Skip to main content

Use cases

  • Got a script that you want to be able to run multiple instances of in parallel?
  • Want to write a program from scratch that's ready to scale up?
  • Using someone else's code that has race conditions and want to singleton-ize it?

Intro

Hungry Hungry Hippos, (HHH) is a python implementation of redlock https://redis.io/topics/distlock with a set of examples that use docker, redis and docker compose. The advantage of this approch, compared to multithreading, is that is can be applied in a single-threaded context (for example if you have to integrate existing code), or in a mutliple container instance context (think microservices)

Features

  • atomic locking guarantees single lock acquisition
  • works across machines / containers
  • handles dead lock recovery
  • can wrap existing code for cases when you cannot or do not want to do a rewrite.

Key concepts

Toolchain

  • docker - images, containers, volumes
  • docker-compose - building, linking services, scaling services
  • redis - in memory key-value database

Installation

pip install hungry-hungry-hippos

See examples for use cases

Metadata

Release files for hungry-hungry-hippos 1.0

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

Source distribution (sdist)

Source distribution for hungry-hungry-hippos 1.0
File Size Uploaded Provenance Actions
hungry_hungry_hippos-1.0.tar.gz 3.8 kB Without provenance Details for hungry_hungry_hippos-1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hungry-hungry-hippos 1.0
File Interpreter ABI Platform Actions
hungry_hungry_hippos-1.0-py3-none-any.whl Python 3 none any Details for hungry_hungry_hippos-1.0-py3-none-any.whl

Total release size: 7.7 kB

Release files / hungry_hungry_hippos-1.0.tar.gz

Download URL hungry_hungry_hippos-1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
504fc229a22d0fc2ccadf0574d114f4b2950cfbebd31c8551b6b88ede2cc2436
BLAKE2b-256 checksum
How to use checksums
fee73b59401ccb3e85606119abc2589e5842aa8296ff2875cc61eeb249d44f1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / hungry_hungry_hippos-1.0-py3-none-any.whl

Download URL hungry_hungry_hippos-1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9174dcccb489dc8484ff76162d8912b9bf020d3de0e48dc58aaf0ade7d558030
BLAKE2b-256 checksum
How to use checksums
29551b80668ba3f9cca17233de3a8a687a4378e6fbd47cfcfe78c6f9dbff2fc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for hungry-hungry-hippos 1.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.

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