semvec/pypi-packages huggingface dataset:
coco-assistant 0.4.0
Helper for dealing with MS-COCO annotations.
License: MIT
Requires Python: >=3.7.1,<4.0

# COCO-Assistant

![CircleCI](https://img.shields.io/circleci/build/github/ashnair1/COCO-Assistant?&label=Build&logo=CircleCI)
[![Codacy Badge](https://img.shields.io/codacy/grade/5299d18c95da4991b4f3a6ae6e8a0b7a/master?label=Code%20Quality&logo=Codacy)](https://app.codacy.com/gh/ashnair1/COCO-Assistant/dashboard)
[![Code style: black](https://img.shields.io/badge/Code%20Style-black-000000.svg)](https://github.com/psf/black)
[![PyPi License](https://img.shields.io/pypi/v/coco-assistant?branch=master&label=PyPi%20Version&logo=PyPi&logoColor=ffffff&labelColor=306998&color=FFD43B&style=flat)](https://pypi.org/project/coco-assistant/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://img.shields.io/github/license/ashnair1/COCO-Assistant?color=yellow&label=License&logo=MIT)

Helper for dealing with MS-COCO annotations.

## Overview

The MS COCO annotation format along with the pycocotools library is quite
popular among the computer vision community. Yet I for one found it difficult to
play around with the annotations. Deleting a specific category, combining
multiple mini datasets to generate a larger dataset, viewing distribution of
classes in the annotation file are things I would like to do without writing a
separate script for each scenario.

The COCO Assistant is designed (or being designed) to assist with this problem.
**Please note that currently, the Assistant can only help out with object
detection datasets**. Any contributions and/or suggestions are welcome.

## Package features

COCO-Assistant currently supports the following features:

-   Merge datasets.
-   Remove specfiic category from dataset.
-   Generate annotations statistics - distribution of object areas and category distribution.
-   Annotation visualiser for viewing the entire dataset.
trustlines-watch 0.5.6
monitor trustlines cluster with riemann
License: MIT

|Build Status| |Code style: black|

trustlines-watch
================

trustlines-watch helps monitoring the trustlines cluster. It watches a
running parity or geth client via the JSONRPC interface and pushes
information to a riemann instance.

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

trustlines watch requires python 3.6 or up. It also needs the postgresql development files. On a debian based system these can be installed with

::

   apt install libpq-dev

Please run the following command in a python 3 virtualenv:

::

    pip install . -c constraints.txt

This will install a 'tl-watch' executable.

Usage
-----

tl-watch etherscan
~~~~~~~~~~~~~~~~~~

Watches etherscan for the current blockNumber. Run
``tl-watch etherscan --help`` for available command line options.

tl-watch jsonrpc
~~~~~~~~~~~~~~~~

Watches a parity or geth client via the JSONRPC interface. Run
``tl-watch jsonrpc --help`` for available command line options.

tl-watch relay
~~~~~~~~~~~~~~~~

Watches a trustlines relay server via the REST API. Run ``tl-watch relay
--help`` for available command line options.

tl-watch psql
~~~~~~~~~~~~~~~~

Queries a postgres database. Run ``tl-watch psql --help`` for available command
line options.
The sql query to run is given via the command line option ``--sqlquery``. It
must return at least the ``service`` and ``metric`` fields.

Here's an example that would monitor the synchronization state of ethindex:

::

    tl-watch psql --sqlquery "select 'sync.' || syncid || '.last_block' service, last_block_number metric from sync"

tl-watch get-website-hash
~~~~~~~~~~~~~~~~~~~~~~~~~

Calculates the hash of the relevant sources from a specific URL (``--url``).
This is meant to be used in combination with ``tl-watch website`` to get the
initial origin hash value. Relevant are sources which can change the content of
the website. Therefore the hash gets calculated over the basic HTML and the
first parity JS scripts. Stylesheets are not relevant for the content. External
JavaScript can't be ensured to not change and must not affect the content on its
own. Run ``tl-watch get-website-hash --help`` for available command line
options.

tl-watch website
~~~~~~~~~~~~~~~~~~~~~~~~

Watches for changed code of a website. It continuously calculates the hash of
the relevant sources to ensure they haven't changed in comparison to an
initially provided origin hash. That origin hash can be calculated with
``tl-watch get-website-hash``. Run ``tl-watch website --help`` for available
command line options.


Change log
----------

See `CHANGELOG <https://github.com/trustlines-protocol/watch/blob/master/CHANGELOG.rst>`_.

.. |Build Status| image:: https://circleci.com/gh/trustlines-protocol/watch/tree/master.svg?style=svg
    :target: https://circleci.com/gh/trustlines-protocol/watch/tree/master
.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/psf/black