semvec/pypi-packages huggingface dataset:
pymorph 0.96
Image Morphology Toolbox
License: BSD

========
PYMORPH
========


Summary
-------

This image morphology toolbox implements the basic binary and greyscale
morphology operations, working with numpy arrays representing images.

This is a pure Python package which is the companion package
to the book "Hands-on Morphological Image Processing." It has been
updated to work with numpy and the names and interfaces have been
Pythonised.


Includes basic operations such as
- erode
- dilate
- open
- tophat opening
- watershed
- ...

Links
-----

*Website*: `http://luispedro.org/software/pymorph
<http://luispedro.org/software/pymorph>`_

*API Documentation*: `http://packages.python.org/pymorph/
<http://packages.python.org/pymorph/>`__

*Mailing List*: Use the `pythonvision mailing list
<http://groups.google.com/group/pythonvision>`_ for questions, bug
submissions, etc.

Install
-------

One of

::

    pip install pymorph
    easy_install pymorph

or download and run

::

    python setup.py install

See Also
--------

The package `mahotas <http://luispedro.org/software/mahotas>`_ implements some
of the same functions in C++ and, so, it is much faster (even if it is not as
feature-full).

Status & Future Plans
---------------------

The package is actively maintained and any reported bug will be fixed fast.

Currently there are *no known bugs* (although testing coverage is not complete).

When all functions have a corresponding unit test and the whole of the
API documentation has been re-written into numpy rst format, I will release
version 1.0.

Authors, Copyright & License
----------------------------

Copyright 2003, Roberto A. Lotufo, UNICAMP-University of Campinas;
CenPRA-Renato Archer Research Center, Rubens C. Machado.

Copyright 2008-2010, Luis Pedro Coelho <lpc@cmu.edu>

The original package was written by RAF and RCM. Starting June 2008 (with
release 0.88), LPC updated the code to run on the more modern numpy base and
started fixing bugs and maintaining the package.

Pymorph is ruled by the **BSD License Terms**:
redis_simple_queue 1.0
Python queue implemented on top of Redis.
License: BSD
Keywords: redis queue

redis_simple_queue
---------------

redis_simple_queue implements a queue on top of Redis.

Requires:

* Redis 2.0+
* Newest version of redis-py http://github.com/andymccurdy/redis-py
* redis_wrap http://pypi.python.org/pypi/redis_wrap

Examples
----------

Example of using the queue::

    from redis_simple_queue import *

    delete_jobs('tasks')

    put('tasks', '42')

    assert 'tasks' in get_all_queues()
    assert queue_stats('tasks')['queue_size'] == 1

    assert reserve('tasks') == '42'
    assert queue_stats('tasks')['queue_size'] == 0

Copyright: 2010 by amix
License: BSD.
redis_triplestore 0.1
Implements a triplestore using Redis to store relations, in Python.
License: BSD
Keywords: redis triplestore

redis_triplestore
-----------------

Implements a triplestore using Redis to store relations, in Python.

Requires Redis 2.0+, newest version of redis-py and redis_wrap.

redis-py can be downloaded from here:
* http://github.com/andymccurdy/redis-py

Note that you can use the requirements.txt file to install dependencies with pip.

Examples
--------

Atribution::

    FOAF = Namespace('http://xmlns.com/foaf/0.1/')

    frodo = Resource('http://example.com/comte/frodo', **{
        FOAF.name: 'Frodo',
        FOAF.familyName: 'Baggins',
    })
    assert frodo[FOAF.name] == 'Frodo'
    
Persistence::

    frodo = Resource('http://example.com/comte/frodo')
    assert frodo[FOAF.name] == 'Frodo'
    
    gandalf = Resource('http://example.com/wizards/gandalf', **{
        FOAF.name: 'Gandalf',
        FOAF.familyName: 'the White',
    })
    saruman = Resource('http://example.com/wizards/saruman', **{
        FOAF.name: 'Saruman',
        FOAF.familyName: 'of Many Colors',
    })
    
Relations::

    frodo.add_relation(FOAF.knows, gandalf)
    assert frodo.relations(FOAF.knows) == [gandalf]
    gandalf.add_relation(FOAF.knows, saruman)
    assert gandalf.relations(FOAF.knows) == [saruman]
    assert gandalf.reversed_relations(FOAF.knows) == [frodo]
    frodo.add_relation(FOAF.knows, saruman)
    assert frodo.relations(FOAF.knows) == [gandalf, saruman]
    
Clean up::

    frodo.delete_relation(FOAF.knows, saruman)
    assert frodo.relations(FOAF.knows) == [gandalf]
    frodo.delete_relation(FOAF.knows, gandalf)
    gandalf.delete_relation(FOAF.knows, saruman)
    assert gandalf.relations(FOAF.knows) == []
    assert gandalf.reversed_relations(FOAF.knows) == []
    frodo.remove()
    gandalf.remove()
    saruman.remove()
    assert frodo[FOAF.name] == None

Copyright: 2010 by David Larlet
License: BSD.