Network lock based on TCP sockets
Project description
TcpNetLock
Network lock based on TCP sockets
Free software: GNU General Public License v3
Documentation: https://tcpnetlock.readthedocs.io.
Features
Runs on Python 3.6 / Python 3.5
Do not require external libraries
Ready to use Docker image (based on Alpine)
Includes server and python client
Includes utility to run Linux commands while holding the lock
Simple protocol: you can get a lock even with nc
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.0.7 (2018-06-18)
Refactor messy code from server, client and cli
0.0.7 (2018-06-17)
Code cleanup and refactor
Add tests
Implements run_with_lock script to make really easy to use from shell scripts
0.0.6 (2018-06-16)
Create shell script to be sourced, to facilitate use of tcpnetlock from shell scripts
0.0.5 (2018-06-15)
Update CONTRIBUTING (documents commands for the full release process)
Disable upload to pypi from Travis-CI
0.0.4 (2018-06-15)
Encapsulate Lock, adds client id and timestamp
Implement sending of keepalive from client
Remove use of ‘click’
Start server from cli with configurable parameters (listen address, port, etc)
Use client id to identify who has the lock
0.0.3 (2018-06-15)
Validate lock name in server
FIX client to handle RESPONSE_ERR response
Add unittests
Refactor locks into server class
Use threading for test server
Make code compatible with Python 3.5
0.0.2 (2018-06-15)
Implements RELEASE of locks
FIX release of lock when client closes the connection
Validates lock name
Code refactoring
0.0.1 (2018-06-15)
Add files from cookiecutter-pypackage
Migrate test cases to pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tcpnetlock-0.0.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42671b221cdccb54d0060da239a80392f6af3fda8ad7851ac38016bb7cbb537 |
|
MD5 | 56bc51cb88f5ecc1b93621825efc9422 |
|
BLAKE2b-256 | 7e3e6abc0b4bff6c57c0ba55ddedde31edaa95572afa9f8611fd19103d2f9de0 |