semvec/pypi-packages huggingface dataset:
i2p.socket 0.4.0
I2P socket module
License: MIT
Keywords: i2p,socket

==========
i2p.socket
==========

Requirements:

* Python 2.7 or >= 3.4 

* Java I2P 0.9.14 and higher or i2pd 2.17.0 and higher

Installing:

pypi:

.. code:: bash
          
          pip install i2p.socket

git:

.. code:: bash

          git clone https://github.com/majestrate/i2p.socket/
          cd i2p.socket
          python setup.py install

Usage:

.. code:: python
          
          from i2p import socket 
    
          # i2p socket
          sock = socket.socket()
          sock.connect(("i2p-projekt.i2p", 80))
          sock.send(b"GET /\r\n\r\n")
          print (sock.recv(1024))
          sock.close()
          
          # also works as 'regular' socket
          sock = socket.socket(socket.AF_INET) 
          sock.connect(("geti2p.net", 80))
          sock.send(b"GET /\r\n\r\n")
          print (sock.recv(1024))
          sock.close()



Caveats:

* Probably contains bugs
spitslurp 0.4
Write text to a file with `spit` and read from a file with `slurp`.
License: MIT
Keywords: io

spit slurp
==========

Write text to a file with ``spit`` and read from a file with ``slurp``.

By default files are assumed to be encoded in ``UTF-8``. You can specify an
alternative encoding via the ``encoding`` keyword argument. For a full list of
encodings see `Standard Encodings`.

.. _Standard Encodings: https://docs.python.org/2/library/codecs.html#standard-encodings

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

.. code-block:: console

    pip install spitslurp

Usage
-----

.. code-block:: python

    from spitslurp import spit, slurp

    txt = u'Hello\nWorld'

    # Write a unicode string to a file, by default encoded as UTF-8 and
    # truncating the file prior to writing
    spit('path/to/file.txt', txt)

    txt = u'Hello\nLatin1'

    # Append to a file (if it exists) and specify encoding as Latin 1
    spit('path/to/file.txt', txt, append=True, encoding='latin1')

    # Read the entire contents of a file into a unicode string. Assumes the
    # file is in UTF-8 by default
    txt = slurp('path/to/file.txt')

    # Specify an encoding
    txt = slurp('path/to/file.txt', encoding='latin1')

TODO
----

* Moar tests
serverscope-benchmark 1.0.4
serverscope.io benchmark tool
License: MIT

serverscope.io benchmark tool
=============================

A benchmarking suite focused on processing speed, I/O performance and
network bandwidth.

Install
-------

    pip install serverscope-benchmark

Alternatively, go to [serverscope.io](https://serverscope.io/) and
generate a command line that will install all dependencies and run it.

Run
---

To run all benchmarks:

    python -m serverscope_benchmark -e "youremail@yourdomain.com" -p "Plan|Hosting provider"

To run only one or more benchmarks:

    python -m serverscope_benchmark -e "youremail@yourdomain.com" -p "Plan|Hosting provider" -i BENCHMARKS

where BENCHMARKS is comma separated list of possible benchmarks: speedtest,download,dd,fio,unixbench

For example, to run only dd and fio benchmarks, run it like this:

    python -m serverscope_benchmark -e "youremail@yourdomain.com" -p "Plan|Hosting provider" -i dd,fio

After running it, the results will be posted to
[serverscope.io](https://serverscope.io/) and you will get a link to
your report.

License
-------

MIT
stack.chat 3.1.0.dev1513065255
an unofficial Python 3 library and command-line tool for [Stack Exchange chat](https://chat.stackexchange.com/faq)
License: MIT

stack.chat
==========

stack.chat is an unofficial Python 3 library and command-line tool
for [Stack Exchange chat](https://chat.stackexchange.com/faq).

### Links ###

- [stack.chat](https://stack.chat)
- [github/jeremyBanks/stack.chat](https://github.com/jeremyBanks/stack.chat)
- [pypi/stack.chat](https://pypi.python.org/pypi/stack.chat)
- [stackapps.com/q/7710](https://stackapps.com/q/7710)



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

Using your Python 3 package manager of choice:

    pip3 install stack.chat

### For Contributors ###

Contributors who clone this repo can install our dev packages with pipenv:

    pip install pipenv
    pipenv install --dev



Usage
-----

There are no docs. You may want to look in `stackchat/cli/`.

### Python ###

    import stackchat

### CLI ###

    stack.chat help

or

    python3 -m stackchat help



License
-------

Licensed under either of

 - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))
 - MIT License ([LICENSE-MIT](LICENSE-MIT))

at your option.

### Contribution ###

Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache
License, Version 2.0, shall be dual licensed as above, without any
additional terms or conditions.

### Contributors ###

Please see the Git commit history or
[this list on GitHub](https://github.com/jeremyBanks/stack.chat/contributors).
django-mediumeditor 1.0.0
Medium Editor widget for Django
License: MIT

# Django Medium Editor
Adds [Medium Editor](https://yabwe.github.io/medium-editor/) to [Django](https://www.djangoproject.com/).

## Supported Environments

* Django 1.10+
* Python 3.6

## Installation

1. Install **django-mediumeditor**

    via PyPi:
    ```
    pip install django-mediumeditor
    ```
    via GIT:

    ```
pip install git+https://github.com/g3rd/django-mediumeditor.git
    ```

2. Install app
    ```
    INSTALLED_APPS = [
        ...
        'mediumeditor',
    ]
    ```

## Usage

### Django Admin

Add to Admin class

```
from mediumeditor.admin import MediumEditorAdmin

@admin.register(MyModel)
class MyModelAdmin(MediumEditorAdmin, admin.ModelAdmin):
    ...
    mediumeditor_fields = ('my_text_field', )
    ...
```

### Forms

1. Override the Widget for the field

    ```
    from mediumeditor.widgets import MediumEditorTextarea

    class MyForm(forms.ModelForm):
        ...
        class Meta:
            model = MyModel
            widgets = {
                'my_text_field': MediumEditorTextarea(),
            }
    ```

2. In the ```<head>``` of the template
    ```
    {{ form.media }}
    ```

### Settings
Optionaly change theme or change medium editor options in your settings.py
```
# Theme options `default`, `roman`, `mani`, `flat`, `bootstrap`, `tim`, `beagle`
MEDIUM_EDITOR_THEME = 'beagle' # `default` is defualt theme
MEDIUM_EDITOR_OPTIONS = {..}
```
[Available Options](https://github.com/yabwe/medium-editor/blob/master/OPTIONS.md)

Example:
```
MEDIUM_EDITOR_THEME = 'bootstrap'
MEDIUM_EDITOR_OPTIONS = {
    'toolbar': {
        'static': True,
        'buttons': [
            'bold',
            'italic',
            'underline',
            'strikethrough',
            'subscript',
            'superscript',
            'h1',
            'h2',
            'h3',
            'h4',
            'h5',
            'h6',
        ]
    },
    'paste': {
        'forcePlainText': True,
        'cleanPastedHTML': False,
        'cleanReplacements': [],
        'cleanAttrs': ['class', 'style', 'dir'],
        'cleanTags': ['meta']
    }
}
```

## Contributing

[Take out some bugs](https://github.com/g3rd/django-mediumeditor/issues)

[Report issues or feature requests](https://github.com/g3rd/django-mediumeditor/issues)


## License
MIT: https://github.com/g3rd/django-mediumeditor/blob/master/LICENSE
nmap_vscan 1.1.0
nmap service and application version detection (without nmap installation)
License: MIT
Keywords: nmap vscan fingerprint recognition security

==========
nmap_vscan
==========

**nmap_vscan** can finish Service and Application Version Detection without Nmap installation. It is not an official release from the Nmap Project.

Requirements
============

* Python 2.7
* Works on Linux, Windows, Mac OSX, BSD


Install
=======

The quick way::

    pip install nmap_vscan


Usage
=====

Please download https://svn.nmap.org/nmap/nmap-service-probes at first.

    >>> from nmap_vscan import vscan
    >>> nmap = vscan.ServiceScan('./nmap-service-probes')

Let's try to scan HTTP, MYSQL, SSH, REDIS and so on.

    >>> nmap.scan('www.apache.org', 80, "tcp")
    {'match': {'pattern': '^HTTP/1\\.[01] \\d\\d\\d .*\\r\\nServer: Apache[/ ](\\d[-.\\w]+) ([^\\r\\n]+)',
      'versioninfo': {'cpename': ['apache:http_server:2.4.7'],
       'devicetype': [' v'],
       'hostname': [],
       'info': ['(Ubuntu)'],
       'operatingsystem': [],
       'vendorproductname': ['Apache httpd'],
       'version': ['2.4.7']}},
     'probe': {'probename': 'GetRequest',
      'probestring': 'GET / HTTP/1.0\\r\\n\\r\\n'}}

    >>> nmap.scan('192.168.1.245', 3306, 'tcp')
    {'match': {'pattern': '^.\\0\\0\\0\\x0a(5\\.[-_~.+\\w]+)\\0',
      'versioninfo': {'cpename': ['mysql:mysql:5.5.28-log'],
       'hostname': [],
       'info': [],
       'operatingsystem': [],
       'vendorproductname': ['MySQL'],
       'version': ['5.5.28-log']}},
     'probe': {'probename': 'NULL', 'probestring': ''}}

    >>> nmap.scan('192.168.1.245', 6379, 'tcp')
    {'match': {'pattern': '^\\$\\d+\\r\\n(?:#[^\\r\\n]*\\r\\n)*redis_version:([.\\d]+)\\r\\n',
      'versioninfo': {'cpename': [],
       'hostname': [],
       'info': [],
       'operatingsystem': [],
       'vendorproductname': ['Redis key-value store'],
       'version': ['2.6.12']}},
     'probe': {'probename': 'redis-server',
      'probestring': '*1\\r\\n$4\\r\\ninfo\\r\\n'}}


References
==========

- https://nmap.org/
- https://nmap.org/book/vscan.html
- https://nmap.org/book/vscan-fileformat.html
- https://github.com/nmap/nmap/blob/master/service_scan.cc
- https://svn.nmap.org/nmap/nmap-service-probes
packermate 0.16.0
Generate and run Packer build configurations from a simple YAML definition
License: MIT

packermate
==========

.. image:: https://img.shields.io/pypi/v/packermate.svg
    :target: https://pypi.python.org/pypi/packermate

.. image:: https://travis-ci.org/wamonite/packermate.svg?branch=master
    :target: https://travis-ci.org/wamonite/packermate

.. image:: https://codecov.io/gh/wamonite/packermate/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/wamonite/packermate

.. image:: https://requires.io/github/wamonite/packermate/requirements.svg?branch=master
    :target: https://requires.io/github/wamonite/packermate/requirements/?branch=master

.. image:: https://codeclimate.com/github/wamonite/packermate/badges/gpa.svg
   :target: https://codeclimate.com/github/wamonite/packermate

Generate and run Packer_ build configurations from a simple YAML definition.

Currently supported features:-

- Ubuntu on VirtualBox preseed build from installation ISO image.
- VirtualBox build from existing OVF file.
- VirtualBox build from Vagrant box file.
- VirtualBox build from installed Vagrant box.
- VirtualBox build from Atlas Vagrant box name.
- VirtualBox build from Vagrant box URL.
- AWS AMI build from existing AMI.
- AWS AMI from Vagrant box file.
- AWS AMI from installed Vagrant box.
- AWS AMI build from Atlas Vagrant box name.
- AWS AMI build from Vagrant box URL.
- File, shell and Ansible provisioners.
- Export to Vagrant box file.
- Export Vagrant box version metadata to file.
- Specify command to run after Vagrant export.

To Do
-----

- Documentation.
- Tests.

License
-------

Copyright (c) 2016 Warren Moore

This software may be redistributed under the terms of the MIT License.
See the file LICENSE for details.

Contact
-------

::

          @wamonite     - twitter
           \_______.com - web
    warren____________/ - email

.. _packer: https://packer.io/
IST411Team1Conway 1.0.0
A Python project which retrieves a JSON via CURL and sends it along various Nodes to a final destination, performing various operations on the JSON along the way.
License: MIT
Keywords: IST411Team1 ProjectDiamond

The Project Diamond application passes a JSON payload from one node to the next, using different server
Every activity is logged to a MongoDB using node5's Node5 log method. P2P payload time is calculated 
using Team 1's p2p module; the total P2P time is also calculated in node1 since it is the last node to 
receive a payload.
flamespeed 1.0.1
Chemical kinetics library for Python
License: MIT
Requires Python: >=3

[![Build Status](https://travis-ci.org/flamespeed/cs207-FinalProject.svg?branch=master)](https://travis-ci.org/flamespeed/cs207-FinalProject.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/flamespeed/cs207-FinalProject/badge.svg?branch=master&maxAge=0)](https://coveralls.io/github/flamespeed/cs207-FinalProject?branch=master&maxAge=0)

# Flamespeed

## What is Flamespeed?

Flamespeed is the measured rate of expansion of the flame front in a combustion reaction.

It is also an open-source Python library with object-orientated methods for chemical kinetics with the following core functionality:

* API to import a database of elementary reactions in XML-format
* Efficiently calculate reaction rates for systems of irreversible elementary chemical reactions
* Output provided in format suitable for further analysis

Potential **applications** for Flamespeed includes:

* Validation of chemical phase input files
* Input for solving ODEs for system of reactions
* Input for machine learning methods (e.g. neural networks) that predict reaction types

## Installation

There are two ways to install Flamespeed:

* **Install Flamespeed from PyPI (recommended)**

```bash
pip3 install flamespeed
```

* **Alternatively: Install Flamespeed form Github source**

First, clone Flamespeed using `git`:

```sh
git clone https://github.com/flamespeed/cs207-FinalProject.git
```
Then, `cd` to the root folder and run the install command:
```sh
python setup.py install
```

The package **test suite** can be run as follows:

First, `cd` to the flamespeed folder and then run pytest:
```sh
cd flamespeed
pytest
```

**Requirements:**
* Python (>= 3.3)
* NumPy (>= 1.8.2)
* SciPy (>= 0.13.3)


## Getting started

Import the `chemkin` module in flamespeed, which is the main module to evaluate chemical reaction rates.

```python
from flamespeed import chemkin
```
Instantiate the reaction rates class and import reaction database in XML format. Example reaction files can be found in the `./data` directory within `flamespeed`.

```python
a = chemkin.ReactionRate()
a.read_XML('./flamespeed/data/rxns_reversible.xml')
print(a)
```
Next, set the initial concentrations for each of the species included in the reaction and the temperature.

```python
a.set_temp(750)
x = [2.0, 1.0, 0.5, 1.0, 1.0, 1.5, 0.5, 1]
```
Now that all the input parameters have been specified the reaction rates for each of the species in the system can be determined as follows:

```python
r = a.get_reaction_rate(x)
print(r)
```

## Documentation

Technical detail regarding the chemical theory underlying the reaction rate calculations and detailed documentation of the relevant classes and methods included in the Flamespeed package can be found in the `docs` directory:

https://github.com/flamespeed/cs207-FinalProject/tree/master/docs