semvec/pypi-packages huggingface dataset:
eve-healthcheck 0.3.1
Python eve-healthcheck project
License: MIT
Keywords: healthcheck eve_healthcheck

eve-healthcheck |Latest Version|
--------------------------------

|Build Status| |Requirements Status| |Coverage Status|
    
`eve-healthcheck`_ is project that servers healthcheck urls used to
monitor your application `Eve`_ powered RESTful API.

Usage
-----

.. code:: python

    from eve_healthcheck import EveHealthCheck
    ...

    app = Eve()
    hc = EveHealthCheck(app, '/healthcheck')
    ...

This will add an url ``/healthcheck`` that will check database
connection like:

.. code:: json

    {
      "hostname":"localhost",
      "results":[
        {
          "checker":"database_check",
          "expires":1487655119.5796409,
          "output":"Database OK",
          "passed":true,
          "timestamp":1487655092.5796409
        }
      ],
      "status":"success",
      "timestamp":1487655092.5820687
    }

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

::

    $ pip install eve-healthcheck

Running tests with ``tox``
--------------------------

Install ``tox``

* Need a mongodb server running on localhost

::

    $ docker run --rm -p 27017:27017 mongo


::

    $ pip install tox

Run tests

::

    tox

.. _eve-healthcheck: https://pypi.python.org/pypi/eve-healthcheck
.. _Eve: http://python-eve.org/


.. |Latest Version| image:: https://badge.fury.io/py/eve-healthcheck.svg
    :target: https://badge.fury.io/py/eve-healthcheck
    
.. |Build Status| image:: https://travis-ci.org/ateliedocodigo/eve-healthcheck.svg?branch=master
   :target: https://travis-ci.org/ateliedocodigo/eve-healthcheck
.. |Requirements Status| image:: https://requires.io/github/ateliedocodigo/eve-healthcheck/requirements.svg?branch=master
   :target: https://requires.io/github/ateliedocodigo/eve-healthcheck/requirements/?branch=master
.. |Coverage Status| image:: https://coveralls.io/repos/github/ateliedocodigo/eve-healthcheck/badge.svg?branch=master
   :target: https://coveralls.io/github/ateliedocodigo/eve-healthcheck?branch=master
gitsnapshot 0.1.2
Python module to simplify loading of snapshot of git repository
License: MIT
Keywords: git snapshot load download delivery config

# gitsnapshot

[![Build Status](https://travis-ci.org/kirillsulim/gitsnapshot.svg?branch=master)](https://travis-ci.org/kirillsulim/gitsnapshot)
[![PyPI version](https://badge.fury.io/py/gitsnapshot.svg)](https://badge.fury.io/py/gitsnapshot)

A simple library to load snapshots of git repository.

## Usage

To load git repository call `load_repo` as follows:

```python
from gitsnapshot import load_repo

load_repo('~/target/directory', 'git@github.com/test/repo')
```

This code creates folder `~/target/directory` if this folder doesn't exists, and then
clone shallow copy of repository `git@github.com/test/repo`. 
By default this function loads current `master` branch.

To load another branch (i.e. `develop`) pass branch name in `branch` parameter:

```python
from gitsnapshot import load_repo

load_repo('~/target/directory', 'git@github.com/test/repo', branch='develop')
``` 

Also you can load snapshot by tag:

```python
from gitsnapshot import load_repo

load_repo('~/target/directory', 'git@github.com/test/repo', tag='v0.1.2')
```

Or by commit hash:

```python
from gitsnapshot import load_repo

load_repo('~/target/directory', 'git@github.com/test/repo', commit='abcdef')
```

## Errors

`load_repo` function return optional string with error description.
If `load_repo` returned `None` then no errors was happened.

## Reusing of directory

If you try to load repository snapshot into existing directory with another snapshot 
of the same repository, `load_repo` will return error. 
To avoid this behavior pass `use_existing=True` as argument.

```python
from gitsnapshot import load_repo

load_repo('~/target/directory', 'git@github.com/test/repo', use_existing=True)
```

In this case `load_repo` will load repository index and will checkout to specified 
branch, tag or commit.