semvec/pypi-packages huggingface dataset:
labelord 0.4
Simple CLI and WEB tools for managing GitHub labels
License: MIT
Keywords: github labels management replication

========
Labelord
========

|license| |travis| |pypi|


Global multi-project management of GitHub labels (`MI-PYT@FIT CTU`_ project)

--------------------------------------------------------------------------------

Installation
------------

You have multiple options how to install **labelord**:

1. ``python setup.py install`` (stable if you use released version, e.g. ``v0.3``)
2. ``pip install labelord`` (stable)
3. ``pip install --extra-index-url https://test.pypi.org/pypi labelord-suchama4`` (bleeding edge/unstable)

Usage
-----

This Python app allows user to do via CLI:

* List repositories
* List labels for given repository
* Run update/replace labels for multiple projects (labels are specified in configuration file or by template repo)

App allows you run master-to-master replication web server which works with GitHub webhooks and manage labels for multiple repositories in even simpler way (try ``run_server`` command and see landing page for more information)!


For more information please use ``--help``.

This project is reference solution for Labelord tasks series in `cvut/MI-PYT`_.

Config
------

See included config file what are the options. You will need a personal GitHub token for using this application. You can get your token at https://github.com/settings/tokens. But be careful where you place it!

Tests
-----

Tests are currently provided in separate repository within multiple branched and with explanation: https://github.com/MarekSuchanek/labelord_tests

License
-------

This project is licensed under the MIT License - see the `LICENSE`_
file for more details.

.. _MI-PYT@FIT CTU: https://github.com/cvut/MI-PYT
.. _cvut/MI-PYT: https://github.com/cvut/MI-PYT
.. _LICENSE: LICENSE

.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg
    :alt: License
    :target: LICENSE
.. |travis| image:: https://travis-ci.org/MarekSuchanek/labelord.svg?branch=master
    :alt: Build Status
    :target: https://travis-ci.org/MarekSuchanek/labelord
.. |pypi| image:: https://badge.fury.io/py/labelord.svg
    :alt: PyPi Version
    :target: https://badge.fury.io/py/labelord
Flask-Redlock 0.0.3
Adds redis lock support to your Flask application
License: MIT

Flask-Redlock
----------------

Example
```````

.. code:: python

    from flask_redlock import RedisLock

    redis_lock = RedisLock()
    redis_lock.init_app(app)

    with redis_lock.lock('something.lock', 3000, retry=10, interval=0.2) as lock:
        if not lock:
            return 'busy!'

        # Do your work here ...

Links
`````

* `Github <https://github.com/TheWaWaR/flask-redlock>`