semvec/pypi-packages huggingface dataset:
porfavor 0.6.0
Publishing static documentation the easy way
Requires Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*

Por favor
=========

[![PyPI](https://badge.fury.io/py/porfavor.svg)](https://pypi.python.org/pypi/porfavor)
[![Build Status](https://travis-ci.com/osherdp/porfavor.svg?branch=master)](https://travis-ci.com/osherdp/porfavor)

Publishing static documentation the easiest way possible!

Install
-------

```console
$ pip install porfavor
```

Use
---

On the server side, you should run the matching server-side implementation.
It listens to any client and puts the given documentation in its right place.

On the server, run:
```console
$ pip install porfavor
...
$ porfavor serve .  # replace '.' with the desired working directory
...
```

Now, to deploy documentation on the server, all you have to do is running
```porfavor publish``` with the right arguments:

```console
$ # porfavor publish <server's URL> \
>                    <project name> \
>                    <documentation root>
$ porfavor publish localhost:5000 my_amazing_project docs/_build/html/
Zipping content of folder 'docs/_build/html'... DONE!
Publishing content for project 'my_amazing_project'... DONE!
```

Alternatively, you can write the following script, to make deployment more
automatic:

```python
from porfavor import publish

if __name__ == '__main__':
    publish(host="localhost:5000",
            project="project_name",
            file_or_directory="root_dir")
```
stdget 1.1.2
A library to capture sys.stdout and -err
Keywords: sys std stdout stderr get stdget sys.stdout sys.stderr capture

﻿># StdGet
>StdGet is a small python 2 and 3 compatible library that doesn't require any modules to work.
>
>What does it do?
>
>StdGet's purpose is to be a way to capture the StdOut (Standard Output) and StdErr (Standard Error Output).
>
>Sounds great! How does it work and how do I use it?
>
>>How to use it:
>>
>>First, let's import StdGet:
> `import stdget` 
> Then, let's say we want to capture the StdOut:
> `stdget.startstdoutcapture()`
> And you're done!
> "But how do I get the information it captures?"
> `stdget.stdouthook` will give you a list.
> You can just do `stdget.stdouthook=[]` to empty it.
> 
> >How it works:
> >
> >What it does is it adds a layer on top of the original 'sys.stdout.write' that actually 'takes' the data and copies it into the 'stdget.stdouthook' list.
> It works outside of the module's layer because the sys.stdout / -in and -err are global all across the session.
> That's also why you can just do `import stdget` and you don't have to do `from stdget import *` (it doesn't matter).
bendercoder 1.2.1
Library for encoding and decoding bencode data.

## Bendercoder
[![Build Status](https://travis-ci.org/m19t12/bendercoder.svg?branch=master)](https://travis-ci.org/m19t12/bendercoder)
[![Coverage Status](https://coveralls.io/repos/github/m19t12/bencoder/badge.svg?branch=master)](https://coveralls.io/github/m19t12/bencoder?branch=master)

Library for encoding and decoding bencode data.

## Table of content
- [Introduction](#introduction)
- [Installing](#installing)
- [Usage](#usage)
- [Useful Links](#links)

## Introduction
Bencode (pronounced like B-encode) is the encoding used by the peer-to-peer file sharing system BitTorrent for storing and transmitting loosely structured data.
It supports four different types of values:
- byte strings,
- integers,
- lists,
- dictionaries (associative arrays).

Bencoding is most commonly used in torrent files. These metadata files are simply bencoded dictionaries.

Description from [wikipedia](https://en.wikipedia.org/wiki/Bencode).

## Installing
```
pip install bendercoder
```

## Usage
For decoding and encoding the integer number 10.
```python
# coding=utf-8
from decoder import Decoder
from encoder import Encoder

decoder = Decoder(payload=b'i10e')
decoded_value = decoder.decode()
print(decoded_value)

encoder = Encoder(payload=decoded_value)
encoded_value = encoder.encode()
print(encoded_value)
```
For decoding and encoding the string foo.
```python
# coding=utf-8
from decoder import Decoder
from encoder import Encoder

decoder = Decoder(payload=b'3:foo')
decoded_value = decoder.decode()
print(decoded_value)

encoder = Encoder(payload=decoded_value)
encoded_value = encoder.encode()
print(encoded_value)
```
For decoding and encoding the list [1, 2, 3, 'bar']
```python
# coding=utf-8
from decoder import Decoder
from encoder import Encoder

decoder = Decoder(payload=b'li1ei2ei3e3:bare')
decoded_value = decoder.decode()
print(decoded_value)

encoder = Encoder(payload=decoded_value)
encoded_value = encoder.encode()
print(encoded_value)
```
For decoding and encoding the dictionary {'test': 'foo', 'bar': 2}
```python
# coding=utf-8
from decoder import Decoder
from encoder import Encoder

decoder = Decoder(payload=b'd4:test3:foo3:bari2ee')
decoded_value = decoder.decode()
print(decoded_value)

encoder = Encoder(payload=decoded_value)
encoded_value = encoder.encode()
print(encoded_value)
```

## Links
- [Wikipedia](https://en.wikipedia.org/wiki/Bencode)
- [Theory.org](https://wiki.theory.org/index.php/BitTorrentSpecification)
- [bittorrent.org](http://www.bittorrent.org/beps/bep_0003.html)
math-fold 0.1.5
back math notaion in CLI
Keywords: math

# Math Fold

Bring **fold** in functional programming to CLI.

`pip3 install math-fold`

## Usage Example

```
$ cat r.txt | calculate 'lambda a, b: a+b+3'
82
$ cat r.txt | calculate 'min'
1
$ cat r.txt | calculate 'max'
10
$ cat r.txt | calculate 'mean'
9.001953125
```