semvec/pypi-packages huggingface dataset:
pylocated 2.0.1
python interface for locate command
License: MIT

## PyLocated

[![Build Status](https://travis-ci.org/sourcepirate/pylocated.svg?branch=master)](https://travis-ci.org/sourcepirate/pylocated)

A Locatedb interface for python

## Installing

```
  pip install pylocated

```

## Usage

```python
from pylocated import locatedb

#if you want to use default locatedb path you
#can use the class methods for it.

buffer = locatedb.find('sample.py', limit=20, ignore_case=False, regex=None)
files = buffer.getvalue()
print files

#if you want to setup you own path to locatedb

locate_db = locatedb(db_path='/var/lib/app.db')
buffers = locate_db.find("sample.py", limit=20, ignore_case=False, regex=None)
print buffers.getvalue()

```

## API

### locatedb.find or instance.find(): [name, limit=None, ignore_case=False, regex=None]
   used to find the particular files in system.
   where pattern inside regex find the matches of path.
   
### locatedb.count or instance.count: [name]
   used find the number of occurences for that particular word.
   equivalent to locate -c

### locatedb.statistics or instance.statistics : [name]
   used to give the disk statistics
   equivalent to locate -S
   
### locatedb.version: 
   return the version of locatedb you are using.
   
   
## License:
  <b>MIT</b>
  &copy; 2015 plasmashadow aka sourcepirate
  plasmashadowx@gmail.com
pySpacebroClient 0.0.3
Connect easily to a spacebro server
License: MIT
Requires Python: >=2.6, <3
Keywords: spacebro socket.io socketio client

pySpacebroClient
==================

�� Connect easily to a [spacebro server](https://github.com/spacebro/spacebro).

a port of nodejs `spacebro-client <https://github.com/spacebro/spacebro-client/>`_


Why
---

No more custom socket.io server.

Easily connect with socket.io to other clients.

Spacebro offers an API to connect clients input and output together.

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

.. code:: bash

  pip install pySpacebroClient

Usage
-----

1. Connect

.. code:: python

  from pySpacebroClient import SpacebroClient

  settings = {
      'host': 'spacebro.space',
      'port': 3333,
      'client': {
          'name': 'python-bro'
      },
      'channelName': 'mychannelname'
  }
  spacebroClient = SpacebroClient(settings)
  spacebroClient.wait()

2. Emit a message for an app called `node-bro`

.. code:: python

  from pySpacebroClient import SpacebroClient

  settings = {
      'host': 'spacebro.space',
      'port': 3333,
      'client': {
          'name': 'python-bro'
      },
      'channelName': 'mychannelname',
      'out': {
          'outMedia': {
              'eventName': 'outMedia',
              'description': 'Output media',
              'type': 'all'
          }
      },
      'connection': 'python-bro/outMedia => node-bro/inMedia'
  }
  spacebroClient = SpacebroClient(settings)
  spacebroClient.emit(settings.out.outMedia.eventName, {'value': 5})
  spacebroClient.wait()

3. Receive a message from an app called `chokibro`

.. code:: python

  from pySpacebroClient import SpacebroClient

  def on_inMedia(self, args):
      print('received', args)

  settings = {
      'host': 'spacebro.space',
      'port': 3333,
      'client': {
          'name': 'python-bro'
      },
      'channelName': 'mychannelname',
      'in': {
          'inMedia': {
              'eventName': 'inMedia',
              'description': 'Input media',
              'type': 'all'
          }
      },
      'connection': 'chokibro/outMedia => python-bro/inMedia'
  }
  spacebroClient = SpacebroClient(settings)
  spacebroClient.on(settings['in'].inMedia.eventName, self.on_inMedia)
  spacebroClient.wait()

test command
============

.. code:: bash

  python -m tests.test