semvec/pypi-packages huggingface dataset:
DiscoNet 0.3.0
A tool for automating network discovery.
License: MIT
Keywords: net network discovery excel xlsx scan scanner tool subnet ip

DiscoNet Package
################

DiscoNet scans specified subnets and IPs for SSH servers that can be accessed with the
provided credentials and executes an arbitrary list of commands.

The process of scanning networks and collecting command output is built on a multiprocess
architecture, so DiscoNet can rapidly scan through management and loopback subnets,
populating an xlsx workbook with the output.

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

Install DiscoNet using the latest version of setuptools and pip::

    $ pip install --upgrade setuptools pip
    $ pip install DiscoNet

You can also opt to install the DiscoNet GUI which uses to Kivy library. To install it,
you will first need to follow the `Kivy Installation Instructions <https://kivy.readthedocs.io/en/latest/installation/installation.html>`_ for your platform.
Then install DiscoNet with the GUI marker::

    $ pip install DiscoNet[kivy]

Binary distributions for OS X and Windows are available `here <https://github.com/jasmas/DiscoNet/releases>`_.

Usage
-----

The GUI and command line application take several input parameters:
    * workbook: Path to output xlsx file
    * subnets: Comma delimited list of networks and IP addresses to scan
    * username: SSH username
    * password: SSH password
    * commands: One per line in the GUI or passed as parameters from the command line

Examples:
    To open the GUI application::

        $ python -m DiscoNet

    To scan and create a discovery workbook from the command line::

        $ python -m DiscoNet.discoveryscan workbook subnets username password commands

    A convenience script is included so that the GUI and command line utility can each be
    run using the following commands accordingly::

        $ DiscoNet
        $ discoveryscan workbook subnets username password commands ...

    Use double quotes for each command and include as many as required, e.g.::

        $ discoveryscan out.xlsx 172.16.0.0/24 admin password "show ver" "show run"

API
---

To use the module in your own projects, please reference the `API Documentation <https://disconet.readthedocs.io>`_.

Examples:
    Initiate a discovery scan from python::

        from DiscoNet.discoveryscan import DiscoveryScan

        d = DiscoveryScan(workbook, subnets, username, password, [commands, ...])
        d.start()

    The commands parameter should be a list of command strings. The start method will
    block until the scan is complete. Optionally, the start method can be non-blocking
    when supplied with a callback function::

        from DiscoNet.discoveryscan import DiscoveryScan

        def cb()
            #callback function
            return

        d = DiscoveryScan(workbook, subnets, username, password, [commands, ...])
        d.start(cb)
python-automata 0.0.1
A personal assistant with pluggable modules
License: MIT
Keywords: automata,personal assistant,ML

Automata
========

Automata is a customized personal assistant module which can be integrated with your python scripts. You can easily plug your own modules with it and that's not even the best part :)


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

```
pip install python-automata
```


Usage
-----

### Example

```python
from automata import automata

ob = automata.Automata()
res = ob.execute('What is the meaning of life?')

print res
```

### Output

```bash
The answer to the ultimate question of life, the universe and everything is 42.
```


It has some pre defined modules like:

1. Telling day, date and time
2. Finding meaning of words
3. Telling meaning of life for the lost souls

To develop your own module, follow the module development guide below.


Module dev guide
----------------


Below are some general guidelines for developing your own module:

* The name of the python script should always start from ```mod_```. Example ```mod_time.py```
* It should have a global list named **KEYWORDS** containing some keywords which will trigger this module. Example for the ```mod_time.py```, the list is something like this ```KEYWORDS = ['what', 'time']```
* Every module should contain a method named ```run(query='')``` which will receive the input query. Example:
```python
from datetime import datetime

KEYWORDS = ['what', 'date']

def run(query=''):
	return datetime.now().strftime("%Y:%m:%d")
``` 
* The ```run(query='')``` should return the response generated by it which could be used for further processing.
* Any processing of the input query should be done in the ```run(query='')``` method.
* These modules should be places in a single folder and you need to give the path to that module while instantiating the **Automata class**. Example;
```python
from automata import automata

ob = automata.Automata('/Users/testuser/modules')
res = ob.execute('What is the meaning of life?')

print res
```


Note: Contributions and suggestions are always invited
Flask-Hooker 1.0.3
Receive and manage webhooks of several services at the same time
License: MIT

Flask-Hooker
============

Receive and manage webhooks of several services at the same time

|PyPI version| |Build Status| |Code Health| |contributions welcome|

Simple usage
~~~~~~~~~~~~

.. code:: python

    from flask import Flask
    from flask_hooker import Hooker

    def github_issue(json):
        print 'new issue at:', json['issue']['url']
        
    def gitlab_push(json):
        print 'the user %s push change into %s' % (json['user_name'], json['project']['name'])

    app = Flask(__name__)

    hooker = Hooker(app=app, url_prefix='/webhook')

    # with fabrics
    # hooker = Hooker()
    # hooker.init_app(app)

    hooker.add_handler(event='issues', func=github_issue, event_type='X-Github-Event')
    hooker.add_handler('Push Hook', gitlab_push, 'X-Gitlab-Event')

    ...

.. |PyPI version| image:: https://badge.fury.io/py/Flask-Hooker.svg
   :target: https://badge.fury.io/py/Flask-Hooker
.. |Build Status| image:: https://travis-ci.org/doblel/Flask-Hooker.svg?branch=master
   :target: https://travis-ci.org/doblel/Flask-Hooker
.. |Code Health| image:: https://landscape.io/github/doblel/Flask-Hooker/master/landscape.svg?style=flat
   :target: https://landscape.io/github/doblel/Flask-Hooker/master
.. |contributions welcome| image:: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat
   :target: https://github.com/doblel/Flask-Hooker/issues