semvec/pypi-packages huggingface dataset:
redis-hash 1.0.1
Hash interface for redis-py
License: MIT

==========
redis-hash
==========

.. image:: https://badge.fury.io/py/redis-hash.svg
    :target: https://badge.fury.io/py/redis-hash

.. image:: https://travis-ci.org/lamenezes/redis-hash.svg?branch=master
    :target: https://travis-ci.org/lamenezes/redis-hash

.. image:: https://coveralls.io/repos/github/lamenezes/redis-hash/badge.svg?branch=master
    :target: https://coveralls.io/github/lamenezes/redis-hash?branch=master


Simple python interface for redis hash type

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

.. code:: bash

    pip install redis redis_hash


Usage
=====

First you need to instantiate the redis client from the ``redis`` package:


.. code:: python

    >> from redis import StrictRedis
    >> redis_client = StrictRedis(host='localhost', port=6379, db=0)

Then create your hash passing the client and the hash key:

.. code:: python

    >> from redis_hash import RedisHash
    >> redis_hash = RedisHash(redis_client, 'hash_name')

Now your can handle your hash like a ``dict``:

.. code:: python

    >> redis_hash['foo'] = 'bar'
    >> len(redis_hash)
    1
    >> 'foo' in redis_hash
    True
    >>> for k, v in redis_hash:
    ...     print(k, v)
    ...
    foo bar
    >>> redis_hash['foo']
    b'bar'
    >>> list(redis_hash)
    [(b'foo', b'bar')]
    >> del redis_hash['foo']
    >> len(redis_hash)
    0
    >> 'foo' in redis_hash
    False
slice-aggregator 0.1.1
A library for aggregating values assigned to indices by slices and the other way around
License: MIT
Requires Python: >=3.5

slice-aggregator
================

.. image:: https://travis-ci.org/bm371613/slice-aggregator.svg?branch=master
    :target: https://travis-ci.org/bm371613/slice-aggregator
.. image:: https://readthedocs.org/projects/slice-aggregator/badge/?version=latest
    :target: http://slice-aggregator.readthedocs.io/en/latest/?badge=latest

A library for aggregating values assigned to indices by slices

.. code-block:: pycon

    >>> import slice_aggregator
    >>> a = slice_aggregator.ixs_by_slices()
    >>> a[-5] += 1
    >>> a[10] -= 2.5
    >>> a[-10:]
    -1.5

and the other way around

.. code-block:: pycon

    >>> import slice_aggregator
    >>> a = slice_aggregator.slices_by_ixs()
    >>> a[:-5] += 1
    >>> a[-10:10] -= 2.5
    >>> a[-10]
    -1.5

`Read the docs <https://slice-aggregator.readthedocs.io/>`_ to find out more!

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

.. code-block:: shell

    pip install slice-aggregator
instagram-explore 0.3.0
instagram scrapping module
License: MIT
Keywords: instagram

=================
instagram-explore
=================

.. image:: https://travis-ci.org/midnightSuyama/instagram-explore.svg?branch=master
    :target: https://travis-ci.org/midnightSuyama/instagram-explore

.. image:: https://badge.fury.io/py/instagram-explore.svg
    :target: https://badge.fury.io/py/instagram-explore

instagram scrapping module

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

::

    $ pip install instagram-explore

-----
Usage
-----

User
====

.. code-block:: python

   import instagram_explore as ie

   # Search user name
   res = ie.user('instagram')
   print(res.data)

   # Next page
   data, cursor = ie.user('instagram', res.cursor)

   # Image only
   images = ie.user_images('instagram').data

Tag
===

.. code-block:: python

   import instagram_explore as ie

   # Search tag name
   res = ie.tag('cat')
   print(res.data)

   # Next page
   data, cursor = ie.tag('cat', res.cursor)

   # Image only
   images = ie.tag_images('cat').data

Location
========

.. code-block:: python

   import instagram_explore as ie

   # Search location id
   res = ie.location('7226110')
   print(res.data)

   # Next page
   data, cursor = ie.location('7226110', res.cursor)

   # Image only
   images = ie.location_images('7226110').data

Media
=====

.. code-block:: python

   import instagram_explore as ie

   # Search media code
   res = ie.media('BFRO_5WBQfc')
   print(res.data)

   # Image only
   image = ie.media_image('BFRO_5WBQfc').data