Skip to main content

Network lock based on TCP sockets

Project description

TcpNetLock

https://img.shields.io/pypi/v/tcpnetlock.svg https://img.shields.io/travis/hgdeoro/tcpnetlock.svg Documentation Status Updates

Network lock based on TCP sockets

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tcpnetlock-0.0.8.tar.gz (25.4 kB view hashes)

Uploaded Source

Built Distribution

tcpnetlock-0.0.8-py2.py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page