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.1.0.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.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: r_mutex-1.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 051402941a147de84117d32a3da3e64a93c29e92988d5f310a1f461e5284a2a1
MD5 d71c42b6bfb98b0c05e7fc16a763168e
BLAKE2b-256 1f84470d2b0c5c71c8775a98e89675aed33a48bb89ce33757cb46ff0ebb4a336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: r_mutex-1.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c7e3b580688adb3aeaa64e41fc2f91a7092d161761488efbe21e5ecf8496c4
MD5 22127793964beed457e4f64dcaa6ddc7
BLAKE2b-256 df9b2e3ce23c4c4f1487b3c4e6ab9140b28759ed7fbe11ce22b8f12d16044958

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