semvec/pypi-packages huggingface dataset:
smartphone-connector-lebalz 0.0.1
Talk to a socketio server
Requires Python: >=3.2

# Smartphone Connector

This simple package exposes methods to interact with smartphones connected to a [socket.io server](https://github.com/lebalz/socketio_server) instance.

## Socket Server

This package talks with a socket.io server, which defines the following interface:

### Events

- `device`
  ```py
  {
    'deviceId': str,
    'isController': bool,
    'deviceNr': int,
    'socketId': str
  }
  ```
- `devices``
  ```
  [
    {
        'deviceId': str,
        'isController': bool,
        'deviceNr': int,
        'socketId': str
    },
    ...
  ]
  ```
- `all_data`
  ```
  [
    {
        'deviceId': str,
        'timeStamp': int, # time (ms) since client loaded page,
        ...
    },
    ...
  ]
  ```
- `new_data`
  ```
  {
    'deviceId': str,
    'timeStamp': int, # time (ms) since client loaded page,
    ...
  }
  ```

### Actions (for emitting)

- `emit('clear_data', { 'deviceId': str })`
- `emit('new_device', { 'deviceId': str })`
- `emit('get_all_data', { 'deviceId': str })`
- `emit('get_devices', { 'deviceId': str })`
- `emit('new_data', { 'deviceId': str, timeStamp: int, ... })`
- `emit('new_data', { 'deviceNr': int, timeStamp: int, ... })`

A simple socket io server implementing this interface can be seen on [github.com/lebalz/socketio_server](https://github.com/lebalz/socketio_server). A running server is currently (August 2020) deployed under [io.lebalz.ch](https://io.lebalz.ch).


## Example

```py
from smartphone_connecter
connector = Connector('https://io.lebalz.ch', 'FooBar')

# draw a 3x3 checker board
connector.set_grid([
    ['black','white','black'],
    ['white','black','white'],
    ['black','white','black']
], broadcast=True)
```
results on all devices in the following screen.

When `broadcast` is set to `False` (default), only the `FooBar` devices display the checker board.

![checker board](checker_demo.png)
zebracorn 0.0.1
A Unicorn CPU emulator fork customized for the zelos binary emulator.

Zebracorn
==============

Zebracorn is a lightweight, multi-platform, multi-architecture CPU emulator framework
based on a fork of [Unicorn](http://www.unicorn-engine.org).

The API is identical to Unicorn, but Zebracorn offers a few additional features:

- Hooks:
  - RDTSC instruction
  - Block Translation
  - Callback after N blocks executed
- Execution Info:
  - Block count executed
  - Instruction count executed
- Instruction Meta:
  - Tiny Code Generator (TCG) representation of each instruction
- Unicorn AFL integration

These APIs are only supported through the Python bindings.


The Zebracorn engine is primarily made available to support functionality in the [zelos binary emulator](https://github.com/zeropointdynamics/zelos).

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

Zebracorn is distributed as a python `pip` package. Other bindings are not supported. To install the python package:

```bash
$ pip install zebracorn
```

Python packages are available for Windows, Linux and MacOS.

License
-------

Unicorn and Qemu are released under the [GPL license](COPYING).
pdfsearch 0.0.1
pdf - Search Tool, searches for a keyword in the filename            ,the n first pages of the file or in the keyword section of the metadata.
Requires Python: >=3.5.5

pdfsearch
=========

|python| |license|

pdfsearch is a command line tool tha searches a directory for pdf files containing a specified keyword in the filename, the n first pages of the file, or in the keyword section of the metadata.

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

pdfsearch can be installed via pip

.. code-block:: console

    $ pip install pdfsearch

Examples
--------
1)
To search a keyword in the filenames in a specific directory use the -d option.
The two following examples search '2020-04-06' in the filenames (default) in the directory '~/Documents/bills' and in the current directory (default):

.. code-block:: console

    $ pdfs.py -d ~/Documents/bills 2020-04-06 
    $ pdfs.py 2020-04-06                          

2)
To search in the n first pages of the pdfs for the keyword in the directory use the -n [number] option. If you don't specify a numer after -n make sure to put the option at the end of the line, in this case the default are the first 3 pages. Warning: if you choose [number] too big, the program gets slow. 
The first examples searchs the current folder for the keyword 'Python' in the first 2 pages of each pdf-file in the directory.
The second line searchs the first 3 pages (default) of each pdf for the word 'solidstate' in the folder '~/Documents/articles':

.. code-block:: console

    $ pdfs.py -n 2 Python
    $ pdfs.py -d ~/Documents/articles solidstate -n

3)
You can also search the keyword section of the meta data of the pdfs. To do that use the -k option. The next example searchs 'Physics' in the keyword metadata: 

.. code-block:: console

    $ pdfs.py -k Physics

4)
Finally you can combine every option. If you use one or more of the options -n or -k you have to specify -f if you also would like to search the filenames: 

.. code-block:: console

    $ pdfs.py -d ~/Documents/articles -k -f -n 2 python



.. |python| image:: https://img.shields.io/badge/Python-3.5.5-blue.svg
   :target: https://pypi.python.org

.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://gitlab.com/_HolgerW/pdfs/blob/master/LICENSE
pdfsearch-HolgerW 0.0.1
pdf - Search Tool, searches for a keyword in the filename            ,the n first pages of the file or in the keyword section of the metadata.
Requires Python: >=3.5.5

pdfsearch
=========

|python| |license|

pdfsearch is a command line tool tha searches a directory for pdf files containing a specified keyword in the filename, the n first pages of the file, or in the keyword section of the metadata.

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

pdfsearch can be installed via pip

.. code-block:: console

    $ pip install pdfsearch

Examples
--------
1)
To search a keyword in the filenames in a specific directory use the -d option.
The two following examples search '2020-04-06' in the filenames (default) in the directory '~/Documents/bills' and in the current directory (default):

.. code-block:: console

    $ pdfs.py -d ~/Documents/bills 2020-04-06 
    $ pdfs.py 2020-04-06                          

2)
To search in the n first pages of the pdfs for the keyword in the directory use the -n [number] option. If you don't specify a numer after -n make sure to put the option at the end of the line, in this case the default are the first 3 pages. Warning: if you choose [number] too big, the program gets slow. 
The first examples searchs the current folder for the keyword 'Python' in the first 2 pages of each pdf-file in the directory.
The second line searchs the first 3 pages (default) of each pdf for the word 'solidstate' in the folder '~/Documents/articles':

.. code-block:: console

    $ pdfs.py -n 2 Python
    $ pdfs.py -d ~/Documents/articles solidstate -n

3)
You can also search the keyword section of the meta data of the pdfs. To do that use the -k option. The next example searchs 'Physics' in the keyword metadata: 

.. code-block:: console

    $ pdfs.py -k Physics

4)
Finally you can combine every option. If you use one or more of the options -n or -k you have to specify -f if you also would like to search the filenames: 

.. code-block:: console

    $ pdfs.py -d ~/Documents/articles -k -f -n 2 python



.. |python| image:: https://img.shields.io/badge/Python-3.5.5-blue.svg
   :target: https://pypi.python.org

.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://gitlab.com/_HolgerW/pdfs/blob/master/LICENSE