semvec/pypi-packages huggingface dataset:
ecapy 1.0.1
Evolutionary Centers Algorithm: Module for Python coded in C
License: MIT
Keywords: optimization evolutionary metaheuristic

# Evolutionary Centers Algorithm

ECA is a physics-inspired algorithm based on the center of mass concept on 
a D-dimensional space for real-parameter single-objective optimization. The 
general idea is to promote the creation of an irregular body using K mass points
in the current population, then the center of mass is calculated to get a new direction 
for the next population... [read more.](https://www.dropbox.com/s/kqc22ki2edjtt0y/ECA-optimization.pdf)

## Parameters
- Parameters (suggested):
    - Objective function: `fobj`
    - Dimension: `D`
    - K-value:
           `K = 7`
    - Population size:
           `N = K*D`
    - stepsize:
           `eta_max = 2.0`
    - binomial probability:
           `P_bin = 0.03`
    - Exploit parameter:
           `P_exploit = 0.95`
     - Max. number of evaluations:
           `max_evals = 10000*D`

- Bounds:
     - Lower: `low_bound`
     - Upper: `up_bound`

- Search Type:
    - Maximize:
        - `minimize = True`
    - minimize:
        - `minimize = False`


## Example

You can write Python code to use ECA in your project:

```python
from ecapy import eca

# D-dimensional sphere function
def sphere(x):
    s = 0.0
    for xi in x:
        s += xi**2
    return s

x, fx = eca(sphere, D = 10, minimize=True)

```
ECS_demo 0.0.dev0
ECS_demo: Pythonic analysis demo
License: MIT



ECS Demo
========
Pythonic package development demo for the Seattle 2018 Electro Chemical
Society Conference. For more
info, please go to the repository README_.

.. _README: https://github.com/wesleybeckner/ECS_demo/blob/master/README.md

License
=======
``ECS_demo`` is licensed under the terms of the MIT license. See the file
"LICENSE" for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.

All trademarks referenced herein are property of their respective holders.

Copyright (c) 2018--, Wesley Beckner, The University of Washington
Department of Chemical Engineering.
rcpy 0.5.0
Python Library for Robotics Cape on Beaglebone Black and Beaglebone Blue
License: MIT
Keywords: Robotics Cape

rcpy: Python 3 Interface for the Robotics Cape on the Beaglebone Black and the Beaglebone Blue
==============================================================================================

**Release 0.5**

This is a Python library with bindings for some of the functionality of
the `Robotics Cape
library <https://github.com/StrawsonDesign/Robotics_Cape_Installer>`__.

We only support Python 3, and are not interested in Python 2 at all.

Not all functions are supported. Currently supported functions are:

1. MPU9250
2. PWM motors
3. Servos and ESCs
4. Encoders
5. LEDs
6. Buttons
7. GPIO inputs
8. ADCs

You might also be interested in the ``pyctrl`` package
(`github <https://github.com/mcdeoliveira/pyctrl>`__,
`PyPI <https://pypi.python.org/pypi?:action=display&name=pyctrl>`__).

Preliminaries
-------------

You will need the `Robotics Cape
library <https://github.com/StrawsonDesign/Robotics_Cape_Installer>`__
version 0.3.4 or higher. Depending on the image you have on your
Beaglebone Black or Blue it might already be installed! You can check if
it is installed and the current version by running

::

    rc_version

on your Beaglebone. If the command ``rc_version`` is not found type

::

    sudo apt-get update
    sudo apt-get install roboticscape

to install or

::

    sudo apt-get update
    sudo apt-get upgrade roboticscape

to upgrade from an older version. For more details see these
`instructions <http://strawsondesign.com/#!manual-install>`__.

You must also have python3 installed. If you have not installed python3
yet type

::

    sudo apt install python3 python3-pip

to install python3 and pip3.

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

Starting with version 0.5, `rcpy` relies on `libgpiod
<https://github.com/brgl/libgpiod>`__ for its gpio access. As of now,
you have to manually install this library as follows.

Install some dependencies used by autoconf
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    sudo apt install autoconf-archive

Clone repo, build and make
^^^^^^^^^^^^^^^^^^^^^^^^^^

::
   
    git clone https://github.com/brgl/libgpiod
    cd libgpiod
    ./autogen.sh --enable-tools=yes --enable-bindings-python --prefix=/usr/local
    make
    sudo make install

Move packages to /usr/local/lib/python3.5/dist-packages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::
   
    sudo mv /usr/local/lib/python3.5/site-packages/* /usr/local/lib/python3.5/dist-packages/.

Install from PyPI
^^^^^^^^^^^^^^^^^

Starting with version 0.3, ``rcpy`` is available from
`PyPI <https://pypi.python.org/pypi?:action=display&name=rcpy>`__. Just
type

::

    sudo pip3 install rcpy

to download and complete installation.

Documentation:
--------------

-  `HTML <http://guitar.ucsd.edu/rcpy/html/index.html>`__

-  `PDF <http://guitar.ucsd.edu/rcpy/rcpy.pdf>`__

Author:
-------

`Mauricio C. de Oliveira <http://control.ucsd.edu/mauricio>`__
despike 0.1.0
Python package to remove spike in 2D images
License: MIT
Keywords: despiking,spike,image processing

===============================
Despike
===============================
|Build| |Coverage| |PyPI| |Status| |Version| |Python| |License|

.. |Build| image:: https://travis-ci.org/seignovert/despike.svg?branch=master
        :target: https://travis-ci.org/seignovert/despike
.. |Coverage| image:: https://coveralls.io/repos/github/seignovert/despike/badge.svg?branch=master
        :target: https://coveralls.io/github/seignovert/despike?branch=master
.. |PyPI| image:: https://img.shields.io/badge/PyPI-despike-blue.svg
        :target: https://pypi.python.org/project/despike
.. |Status| image:: https://img.shields.io/pypi/status/despike.svg?label=Status
.. |Version| image:: https://img.shields.io/pypi/v/despike.svg?label=Version
.. |Python| image:: https://img.shields.io/pypi/pyversions/despike.svg?label=Python
.. |License| image:: https://img.shields.io/pypi/l/despike.svg?label=License

*Python package to remove spikes in 2D images*

Desciption
----------
The spikes in 2D-images correspond to high-energy pixels generated
by cosmic rays, sensor noise or dead pixels. They use to have values
very different from the rest of their neighboor.

To find them, we use a moving box (5×5 pixels by default) on the
image and we compare the mean/median of this sub-image to the central
pixel. If the value is n (3 by default) times larger than the observed
standard deviation we use the median value a the surrounding pixels
(8 pixels by default) to replace the spike.

Install
-------
With ``pip``:

.. code:: bash

    $ pip install despike

With the ``source files``:

.. code:: bash

    $ git clone https://github.com/seignovert/despike.git
    $ cd despike ; python setup.py install

Usage
------

.. code:: python

    >>> import despike

    >>> despike.spikes(img) # Search the location of spikes in the image

    >>> despike.clean(img) # Clean the image from spikes


An example can be find in this `Jupyter NoteBook <https://nbviewer.jupyter.org/github/seignovert/despike/blob/master/example.ipynb>`_.
banner-snatcher 1.0
Program for retrieving banners on open ports
License: MIT

## banner-snatcher

```
❯ ./banner-snatcher.py --help
usage: banner-snatcher.py [-h] --host HOST [HOST ...] -p PORT [PORT ...]
                          [-o FILE] [--debug] [-q]

Python program that snatches banners of accessible ports

optional arguments:
  -h, --help            show this help message and exit
  --host HOST [HOST ...]
                        host(s) to scan
  -p PORT [PORT ...], --port PORT [PORT ...]
                        port(s) to scan
  -o FILE, --outfile FILE
                        output to file
  --debug               print error messages
  -q, --quiet           suppress all output
```
sanic-sentry 0.1.7
Sentry integration to sanic web server
License: MIT
Keywords: sanic

Sanic-Sentry
============

Sanic-Sentry -- Sentry integration to sanic web server.

.. image:: https://badge.fury.io/py/sanic-sentry.svg
    :target: https://badge.fury.io/py/sanic-sentry

.. image:: https://travis-ci.org/serathius/sanic-sentry.svg?branch=master
    :target: https://travis-ci.org/serathius/sanic-sentry``

.. image:: https://codecov.io/gh/serathius/sanic-sentry/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/serathius/sanic-sentry

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

- python >= 3.5

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

**Sanic-Sentry** should be installed using pip: ::

    pip install sanic-sentry

Usage
-----


To initialize plugin you can pass 'app' to __init__:

.. code:: python

  >>> from sanic import Sanic
  >>> from sanic_sentry import SanicSentry
  >>> app = Sanic(__name__)
  >>> plugin = SanicSentry(app)

Or use `init_app` to reverse dependency:

.. code:: python

  >>> plugin = SanicSentry()
  >>> plugin.init_app(app)

*Optional parameters:*

**SENTRY_DSN**  - Sentry DSN for your application:

If not set raven will fallback to SENTRY_DSN environment variable. Not setting either will disable raven.

.. code:: python

  >>> app.config['SENTRY_DSN'] = 'http://public:secret@example.com/1'

**SENTRY_PARAMS**  - Configure advanced parameters for sentry:

Explained in https://docs.sentry.io/clients/python/advanced/

.. code:: python

  >>> app.config['SENTRY_PARAMS'] = {
  ...     "release": "myapp_v0.4",
  ...     "environment": "production",
  ... }