semvec/pypi-packages huggingface dataset:
simple-imshow 1.0.post1
A simple tool to display (and read to np.ndarray) images from a url, file, image object, etc.
License: MIT
Keywords: image,images,display,read,imshow,imread

**simple-imshow**
#################


**What it does:**

Reads and displays an image from a url, local filename, PIL image object, `numpy.ndimage object`, or any object type scipy.misc.imread supports directly.
Also contains an `simread` function that will return the image as a `numpy.ndarray`.

I've had to look up how to display an image in this context or that too many
times.  This is an attempt to remedy that.


**Setup**

.. code:: bash

    $ pip install simple-imshow

**Usage**

.. code:: bash

    >> from simshow import simshow
    >> simshow('test-cats.jpg')  # display from local file
    >> simshow('http://mathandy.com/escher_sphere.png')  # display from url


**Request for Community Support:**

I'd love for others to help me make this a more
robust, more convenient tool -- so, as the FAA likes to say, "If you see something, say something." Or at least feel free to.


**TODO:**

* Add simple tool to take a list of images and display a random sample (or all) as a grid of thumbnails.

* Add support for plots.


**Some thoughts on guidelines for this project:**

* `simread` should be fast.

* I'd like to keep required dependencies limited to common ones available through pip (e.g. no requirement for opencv)

* It'd be nice if `simshow` could refresh quickly enough support video feeds.  In my experience matplotlib figures will not though (I do not know matplotlib well though).
important 0.1.4
Utility to find unused packages in requirements  and to constrain package usage
License: MIT
Keywords: import,requirement,unused

.. image:: https://travis-ci.org/cfournie/important.svg?branch=master
    :target: https://travis-ci.org/cfournie/important
.. image:: https://coveralls.io/repos/github/cfournie/important/badge.svg?branch=master
    :target: https://coveralls.io/github/cfournie/important?branch=master

Important
=========

A simple source code import checker that checks your project for whether you:

- Import and use everything in your `requirements.txt` file; and/or
- Import packages with specified frequencies using a constraint file (use to
  wean a project off of a dependency).

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

Install the latest stable version from PyPI using:

.. code:: bash

    pip install important

Otherwise, to grab the latest version on master, use:
    
.. code:: bash
          
    pip install git+https://github.com/cfournie/important.git

Requirements
------------

This works best when run from a virtualenv where your project's requirements
are installed (to translate requirements to module names).

This tool requires that it be installed with the same Python version as the
source code that it's analyzing and that the source code is syntactically correct.

Usage
-----

Check for unused requirements using:

.. code:: bash

    $ important -v --requirements requirements.txt .
    Parsed 52 imports in 8 files
    Error: Unused requirements or violated constraints found
    caniusepython3 (unused requirement)


Check for imports that are used too frequently (to prevent further usage of a
requirement while you phase it out) using:

.. code:: bash

    $ important -v --constraints constraints.txt .
    Parsed 52 imports in 8 files
    Error: Unused requirements or violated constraints found
    click<=1 (constraint violated by click==2)


Check for unused requirements but exclude test files using:

.. code:: bash

    $ important -v --requirements requirements.txt --exclude **/test_*.py .
    Parsed 52 imports in 8 files
    Error: Unused requirements or violated constraints found
    caniusepython3 (unused requirement)


Ignore errors related to some of your requirements using:

.. code:: bash

   $ important -v --requirements requirements.txt --ignore caniusepython3 .
   Parsed 52 imports in 8 files
   $ important -v --requirements requirements.txt --ignorefile ignored.txt .
   Parsed 52 imports in 8 files


Alternatively, you can configure ``important`` using a ``setup.cfg`` file in the current working directory, e.g.:

.. code:: ini

   [important]
   requirements=
       requirements.txt
   constraints=
       constraints.txt
   ignore=
       Sphinx
       flake8
   exclude=
       .git
   sourcecode=.

Then run using:

.. code:: bash

   $ important -v
   Parsed 52 imports in 8 files