semvec/pypi-packages huggingface dataset:
hitchtrigger 0.2
Build tool to selectively run blocks of build commands under specified conditions
License: MIT
Keywords: test build

HitchTrigger
============

HitchTrigger is a self contained build tool designed to trigger blocks of build commands when a condition is met
that necessitates a rebuild.

The conditions can be one or more combined of any of the following:

* A file or files (e.g. source files) have changed.
* A specified (build) directory did not exist.
* A period of time has elapsed.
* A 'watched' variable has changed its value.
* An exception occurred the previous time the commands were run (always by default).

To install from pypi::

  $ hitch install hitchtrigger


Use
---

.. code-block:: python

    import hitchtrigger

    monitor = hitchtrigger.Monitor(
        "/path/to/project.watch"
        #override=["virtualenv", ],
    )

    # Will run in the following cases:
    #
    ## The command block has never been run before.
    ## An exception was triggered within the context manager on the previous run.
    ## venv directory is non-existent.
    ## A period of 7 days has elapsed
    ## A previous block named 'previousblock' was run.
    ## Either requirements.txt or dev_requirements.txt have been modified (file modification dates are monitored).
    ## Var "v=1" is changed (e.g. to "v=2").
    ## The line 'override=["virtualenv", ]' is uncommented.

    with monitor.block(
        "virtualenv",
        monitor.nonexistent("venv") | monitor.not_run_since(days=7) | monitor.was_run("previousblock")
        monitor.modified(["requirements.txt", "dev_requirements.txt"]) | monitor.var(v=1)
    ).context() as trigger:
        if trigger:
            print(trigger.why)  # Prints out reason for running

            Path("venv").rmtree(ignore_errors=True)
            virtualenv("venv").run()
            pip("install", "-r", "requirements.txt").run()
            pip("freeze").stdout(Path("freeze.txt")).run()
            pip("install", "dev_requirements.txt").run()
hypnobox-django 0.4.1
Integrate your site with Hypnobox Chat Service.
License: MIT
Keywords: hypnobox-django

=============================
hypnobox-django
=============================

.. image:: https://badge.fury.io/py/hypnobox-django.png
    :target: https://badge.fury.io/py/hypnobox-django

.. image:: https://travis-ci.org/fgmacedo/hypnobox-django.png?branch=master
    :target: https://travis-ci.org/fgmacedo/hypnobox-django

Integrate your site with Hypnobox chat service.

Documentation
-------------

The full documentation is at https://hypnobox-django.readthedocs.org.

Quickstart
----------

Install hypnobox-django::

    pip install hypnobox-django

Include it on `INSTALLED_APPS`::

    'hypnobox',

And in your routes (`urls.py`)::

    url(r'^leads/', include('hypnobox.urls', namespace='hypnobox')),

Then use it in a template:

.. code-block:: django

    {% load hypnobox_tags  %}
    {% new_lead "your-product-code" "your-media-name" %}


It will render a link to a :ref:`LeadForm`, and on submiting this form, it
will persist a lead and redirect the user to Hypnobox chat.

Features
--------

* TODO

Running Tests
--------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install -r requirements_test.txt
    (myenv) $ python runtests.py




History
-------

0.1.0 (2016-09-08)
++++++++++++++++++

* First release on PyPI.