semvec/pypi-packages huggingface dataset:
django-informer 0.2.2
a pluggable app to monitoring your own infrastructure and third party services.
License: MIT
Keywords: django monitoring reporting

Django Informer
==============

.. image:: https://img.shields.io/travis/rodrigobraga/informer.svg
    :alt: Travis CI Status
    :target: https://travis-ci.org/rodrigobraga/informer

.. image:: https://coveralls.io/repos/rodrigobraga/informer/badge.svg?branch=master&service=github
    :alt: Coverage status
    :target: https://coveralls.io/github/rodrigobraga/informer?branch=master

.. image:: https://img.shields.io/pypi/v/django-informer.svg
   :alt: PyPi page
   :target: https://pypi.python.org/pypi/django-informer

.. image:: https://img.shields.io/pypi/l/django-informer.svg
   :alt: License MIT
   :target: https://github.com/rodrigobraga/informer/blob/master/LICENSE

A pluggable app to monitoring your own infrastructure and third party services.

Quick Start
-----------------

Below a quick guide to install and run, more detailed documentation is in the `docs <docs>`_ directory.

Install Django Informer
-----------------

::

    pip install django_informer


Add to your INSTALLED_APPS
-----------------

::

    INSTALLED_APPS = (
      ...
      'informer',
    )


Set informers on settings
-----------------

::

    DJANGO_INFORMERS = (
        ('informer.checker.database', 'DatabaseInformer'),
        ('informer.checker.database', 'PostgresInformer'),
        ('informer.checker.storage', 'StorageInformer'),
        ('informer.checker.celery', 'CeleryInformer'),
        ('informer.checker.cache', 'CacheInformer'),
    )


Set interval (in minutes) between the saved results
-----------------

::

    DJANGO_INFORMER_PREVENT_SAVE_UNTIL = 5 # default is None


Include the URLconf in your project urls.py
-----------------

::

    url(r'^informer/', include('informer.urls')),


Run migrate to create the informer models
-----------------

::

    python manage.py makemigrations
    python manage.py migrate

Copy static presentation files
-----------------

::

    python manage.py collectstatic


Tests
-----------------

::

    py.test tests


Run
-----------------

Start the development server and visit http://server:port/informer/ to view monitoring results.


.. _doc: https://github.com/rodrigobraga/informer/tree/master/docs
myr.base 0.1.0
Auto-announce Celery-based tasks
License: MIT
Keywords: rpc
amqp
announce

========
myr.base
========

.. image:: https://travis-ci.org/Vnet-as/myr-base.svg?branch=master
   :target: https://travis-ci.org/Vnet-as/myr-base

.. image:: https://codecov.io/gh/Vnet-as/myr-base/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/Vnet-as/myr-base


Base package for ``myr-stack`` tasks

Installation
============

Development
-----------

Create `virtualenv <https://virtualenv.pypa.io/en/stable/>`_ and activate it,
then proceed to install ``myr-base`` for development:

.. code-block:: bash

    $ git clone https://github.com/Vnet-as/myr-base.git
    $ cd myr-base
    $ pip install -e .

Usage
=====

.. code-block:: python

    from myr.base.app import MyrApp

    # just wrapper around Celery
    app = MyrApp()

    # create tasks as usual Celery tasks
    @app.task
    def sometask():
        do_something()


Do not forget to also run Celery beat, so the auto-announcing feature works.

.. code-block:: bash

    $ celery beat -A app
cpc_api 0.1.6
Python api for nosdeputes.fr and nossenateurs.fr
License: MIT
Keywords: api nosdeputes.fr nossenateurs.fr

[![Build Status](https://travis-ci.org/regardscitoyens/cpc-api.svg)](https://travis-ci.org/regardscitoyens/cpc-api)

# CPC-API
A python api for http://nosdeputes.fr and http://nossenateurs.fr

CPC is for *Controle Parlementaire Citoyens*.

See full API documentation here: https://github.com/regardscitoyens/nosdeputes.fr/blob/master/doc/api.md

## Examples

 * Députes
 
```python
from cpc_api import CPCApi
api = CPCApi(legislature='2012-2017')
# synthese of legislature
synthese = api.synthese()
# search for a depute
cope = api.search_parlementaires('Cope')[0][0]
# get all info of cope
all_info = api.parlementaire(cope['slug'])
```

 * Sénateurs & députés legislature 2007-2012...

```python
from cpc_api import CPCApi
# do the same with senateurs
api = CPCApi(ptype='senateur')
larcher = api.search_parlementaires('larcher')[0][0]
# 'or with legislature 2007-2012'
api = CPCApi(ptype='depute', legislature='2007-2012')
morano = api.search_parlementaires('morano')[0][0]
# ...
```