Skip to main content

A simple Redis based lock

Project description

### Overview A distributed asynchronous lock built on top of the Redis PubSub, Get and Set methods. This takes inspiration from the asyncio Lock whereby futures are used instead of the polling done by the multiprocessing Lock.

It’s free to be built upon locally for your needs. Optionally you can do pip install r-mutex

### Requirements - Redis - Python 3.12.6 If you don’t have Redis but have docker you can simply run this command. docker run –name <name> -d -p 6379:6379

If you want to see the messages being sent back and forth in real-time you can do ` docker exec -it <name> redis-cli SUBSCRIBE <key>.live or <key>.broadcast `

### Contact https://www.linkedin.com/in/jadore-t-49379a295/ https://twitter.com/jtzenz

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

r_mutex-1.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

r_mutex-1.0.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file r_mutex-1.0.2.tar.gz.

File metadata

  • Download URL: r_mutex-1.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for r_mutex-1.0.2.tar.gz
Algorithm Hash digest
SHA256 46c215a7f05a0f4776f5008c8aada0e824e29e9fc6342557eff609152c6fda9b
MD5 e35b8a90f3b7027245529538968ea88b
BLAKE2b-256 8ed204b9ce8d7cc1bb9edcd97c11756196f540a55dc3fe0370742f3eddf38510

See more details on using hashes here.

File details

Details for the file r_mutex-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: r_mutex-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for r_mutex-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26a98e2dfb6dde120ff52c293b778c75a0e3259d0f81c06cf5d136f776b6d4bb
MD5 ffd5b2a55268bfec70d3cc2f3fdeced4
BLAKE2b-256 81200d55966a491f391082bf14d40d2745efbd96e20ee85f37519f495d36ab15

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