semvec/pypi-packages huggingface dataset:
gnu-screen 0.0.8
GNU-Screen session module handler for NodeJs
Requires Python: >=3

# What is this ?

This was build to handle and manage gnu-screen session. Actually work well.

# Table of Contents

* [Required](#required)
* [Installation](#installation)
* [Functions](#functions)
* [Screen](#screen)
* [Exemple](#exemple)

# Required

 * Python: 3.8
 * GNU-Screen: 4.08.00

# Installation

First make sure you have gnu-screen installed:
```
$ apt-get install screen
```

To run this project, use pip:
```
$ pip install gnu-screen
```

# Functions
  
- `getAll()` Return all available Screens.

# Screen

Create a representation of gnu-screen session : `Screen(id, mode="")`
If you want to save logs change mode to `'s'`.

Events:
- `close` When screen is closed.
- `stdout` `str` When something new is append in logFile.

Methods:
- `Screen.exist()` Check if screen's session is running.
- `Screen.setup()` Fetch self variable with running session.
- `Screen.setRule(*rules)` Rules to apply in screen session.
- `Screen.write(*stdins)` Write something in screen session.
- `Screen.setStdout(state)` Watch over logFile to call `stdout` Event.
- `Screen.logFile()` Return logFile.
- `Screen.on(call)` Set an event (`disconnect()`,`close()`,`stdout(log)`).
- `Screen.run(stdin=None)` Connect/create to screen session.
- `Screen.close()` Close screen session.
- `Screen.kill(signal=15)` Kill screen session.

Attributes:
- `Screen.id` `str or None` Screen session's id.
- `Screen.logFilePath` `str or None` Path of logFile is there one.
- `Screen.events` `dict` Screen session events.
- `Screen.pid` `int or None` Pid of screen session if is running.
- `Screen.date` `str or None` Date of screen session if is running.
- `Screen.state` `str or None` State of screen session if is running.

# Exemple

```py
import os
import gnu_screen as sc

# Generate 10 screens session
for n in range(10):
    scr = sc.Screen(id=f"test n°{n}")
    print(scr)
    scr.run()

# Find and close the 10 screens session
for scr in sc.getAll():
    print(scr)
    scr.close()

# Create a new screen session
test = sc.Screen(id="final test", mode="r")
test.run()
print(test)

# Allow "stdout" event
test.setStdout()


# Remove screen session
def close():
    test.close()
    if not test.pid:
        print("Closed final test's screen session")
    else:
        test.kill()
        print("Killed test's screen session")
    #self kill
    os.kill(os.getpid(), 15)


# Get stdout from screen session
@test.on
def stdout(log):
    print("stdout:", log)
    if "!close" in log:
        close()


# Pipe input to the screen session
while test.pid:
    try:
        test.write(input())
    except KeyboardInterrupt:
        # Capture Ctrl + C to close screen session
        close()
```
Flask-Redmail 0.3.0
Email sending for Flask
Requires Python: >=3.6.0


# Flask Red Mail: Email Sending for Flask
> Flask extension for Red Mail

---

[![Pypi version](https://badgen.net/pypi/v/flask_redmail)](https://pypi.org/project/flask_redmail/)
[![build](https://github.com/Miksus/flask-redmail/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/Miksus/flask-redmail/actions/workflows/main.yml)
[![codecov](https://codecov.io/gh/Miksus/flask-redmail/branch/master/graph/badge.svg?token=IMR1CQT9PY)](https://codecov.io/gh/Miksus/flask-redmail)
[![Documentation Status](https://readthedocs.org/projects/flask-redmail/badge/?version=latest)](https://red-mail.readthedocs.io/en/latest/)
[![PyPI pyversions](https://badgen.net/pypi/python/flask-redmail)](https://pypi.org/project/flask-redmail/)

## What is it?
Flask Red Mail is a Flask extension for [Red Mail](https://github.com/Miksus/red-mail).
Red Mail is a powerful email sender library capable of including
attachments from various formats, embedding images, parametrization
with Jinja etc. This library harness the power of Red Mail in order to 
make it trivial to:

- Send verification emails to users
- Create email based *forgot password* functionality
- Create Flask based email news letters
- Handle other needs for sending emails from a web application

Links:

- [Flask-Redmail's source code](https://github.com/Miksus/flask-redmail)
- [Flask-Redmail's documentation](https://flask-redmail.readthedocs.io/)
- [Flask-Redmail's releases (PyPI)](https://pypi.org/project/Flask-Redmail/)
- [Red Mail's source code](https://github.com/Miksus/red-mail)
- [Red Mail's documentation](https://red-mail.readthedocs.io/)
- [Red Mail's releases (PyPI)](https://pypi.org/project/redmail/)

## Installation

Install the extension from PyPI:

```console
pip install flask-redmail
```

## Example

Create a simple Flask application:

```python
import flask
from flask_redmail import RedMail

app = flask.Flask(__name__)
email = RedMail(app)

# Configure
app.config["EMAIL_HOST"] = "localhost"
app.config["EMAIL_PORT"] = 0

# Optional
app.config["EMAIL_USERNAME"] = "me@example.com"
app.config["EMAIL_PASSWORD"] = "<PASSWORD>"
app.config["EMAIL_SENDER"] = "no-reply@example.com"
```

Use the extension:

```python
@app.route("/send")
def send_email():
    email.send(
        subject="An example",
        receivers=["you@example.com"],
        html="<h1>An example email.</h1>"
    )
```

---

## Author

* **Mikael Koli** - [Miksus](https://github.com/Miksus) - koli.mikael@gmail.com
pystereogram 0.0.20
A library supporting efficient stereogram image computation.

## pystereogram: a python library to compute auto-stereogram

pystereogram is a library that can help you compute stereogram from depth image efficiently. 
The performance goal of this library is to support real-time stereogram computation on small devices like raspberry pi.

The algorithm implemented in this package is the abSIRD algorithm, which is then accelerated with cython.

### Usage

```
from autostereogram.converter import StereogramConverter
from skimage import color
import matplotlib.image as mpimg

source_image = mpimg.imread('cube.jpg')
image_data = np.array(source_image * 255, dtype=int)

converter = StereogramConverter()
result = converter.convert_depth_to_stereogram(image_data).astype(np.uint8)
```

### Reference

https://www.mathworks.com/matlabcentral/fileexchange/27649-absird-for-matlab

https://www.cs.waikato.ac.nz/~ihw/papers/94-HWT-SI-IHW-SIRDS-paper.pdf
pyrandtoys 1.0.0
Python Module for generating the result of probability based toys.
Keywords: python,random,probability,experiment

PyRandToys
==========

``pyrandtoys`` is a python module containing probability-based toys
functions. It works offline and is compatible with both Python 2 and 3.

Installation
~~~~~~~~~~~~

::

   pip install pyrandtoys

Usage
~~~~~

::

   import pyrandtoys

Dice:
^^^^^

+ **Optional:** Number of Dice ``<int>`` 
+ **Default:** Number of Dice = 1
+ **Return Type:** ``<tuple>``

::

   dice(number_of_dice)

Coin:
^^^^^

+ **Optional:** Number of Coins ``<int>`` 
+ **Default:** Number of Coins = 1
+ **Return Type:** ``<tuple>``

::

   coin(number_of_coins)

Card:
^^^^^

+ **Optional:** Number of Cards ``<int>`` 
+ **Default:** Number of Cards = 1
+ **Return Type:** ``<tuple>``

::

   card(number_of_cards)

Similar Toys:
^^^^^^^^^^^^^

+ **Optional:** Number of Items ``<int>`` 
+ **Default:** Number of Items = 1
+ **Return Type:** ``<tuple>``

::

   dreidel(number_of_dreis)
   cat(number_of_cats)
   switch(number_of_switches)

Spinner:
^^^^^^^^

+ **Required:** Lower & Upper Limits ``<int>`` 
+ **Default:** Lower Limit = 0 
+ **Return Type:** ``<int>``

::

   spinner(lowerLimit, upperLimit) 

Toy Combinations:
^^^^^^^^^^^^^^^^^

+ **Default:** Number of Toys = 0
+ **Return Type:** ``<tuple>`` 

**If you want to use a combination of toys then,**
   **Required:** names of toys as ``<tuple>, <list>, <str>``

::

   combi("coin", "switch")
   combi(("switch", "cat", "dice"))
   combi(["dreidel", "coin", "coin", "cat"])

**For combination of x random toys,**

::

   combi(x)

Project Links
~~~~~~~~~~~~~

-  PyPI
   `(https://pypi.org/project/pyrandtoys/) <https://pypi.org/project/pyrandtoys/>`__
-  GitHub
   `(https://github.com/thenithinbalaji/pyrandtoys) <https://github.com/thenithinbalaji/pyrandtoys>`__