semvec/pypi-packages huggingface dataset:
pkrfilesorter 1.4.1
A package to sort poker files in adapted directories
Requires Python: >=3.10

# PokerFileSorter


[![Documentation Status](https://readthedocs.org/projects/pkrfilesorter/badge/?version=latest)](https://pkrfilesorter.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/pkrfilesorter.svg)](https://badge.fury.io/py/pkrfilesorter)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Description
A package to sort poker files in adapted directories

PokerFileSorter is a simple tool to sort poker files in adapted directories.

## Table of Contents

- [Description](#description)
- [Getting Started](#getting-started)
- [Usage](#usage)
- [Documentation](#documentation)
- [License](#license)

## Getting Started

To install the package, use the following command:

```sh
pip install pkrfilesorter
```

If you want to download the source code, you can do so by cloning the repository:

```sh
git clone https://github.com/Manggy94/PokerFileSorter.git
```

## Usage

### Base Examples

Here are some simple examples of using PokerFileSorter:

Sort a poker file to a directory with custom directories:

```python
from pkrfilesorter.file_sorter import FileSorter

sorter = FileSorter("path/to/poker/history/dir", "path/to/sorted/dir")
sorter.copy_files()
```

Setting source directories and destination directories from a .env file:

.env:
```env
SOURCE_DIR="path/to/poker/history/dir"
DESTINATION_DIR="path/to/sorted/dir"
```

Then, in the command line:
```sh
python -m pkrfilesorter.main
```

## Documentation

Read the doc on [ReadTheDocs](https://pkrfilesorter.readthedocs.io/en/latest/)

## License

This project is licensed under the *MIT* license. See the [LICENSE](LICENSE.txt) file for more details.
resizewin 0.1.1
`resizewin` detects the terminal size.
Requires Python: >=3.8

# resizewin: Detect and configure terminal size

## Usage

### From a terminal shell

```shell
eval `resizewin`
```

It works with VT100-compatible terminals, including all modern terminal emulators.

### From Python code

```python
import sys
import termios

import resizewin

fd = sys.stdin.fileno()
rows, cols = resizewin.get_terminal_size(fd)
termios.tcsetwinsize(fd, (rows, cols))
```

## How it works

In order to detect the terminal size,
`resizewin` first tells the terminal to move the cursor to as far as possible,
then asks the terminal for the current cursor's position.
It uses the fact that terminals move the cursor to the bottom right corner
when told to move the cursor to a row/column position that exceeds screen size.
sendgrid-email 0.0.5
Simple utility for sending emails via SendGrid.
Requires Python: >=3.9

# sendgrid-email

This is a Python package that provides the function `send_email`:

    def send_email(service_name, recipient, subject, html, attachments=[]):
        sender = f"{service_name} <{SENDER_EMAIL_ADDRESS>"

        msg = MIMEMultipart()
        msg['From'] = sender
        msg['To'] = recipient
        msg['Date'] = formatdate(localtime=True)
        msg['Subject'] = subject
        msg.attach(MIMEText(html, 'html'))
        for attachment in attachments:
            msg.attach(attachment)
        # Send it off via smtp.sendgrid.net
        with SMTP_SSL("smtp.sendgrid.net", 465) as smtp:
            smtp.login("apikey", SENDGRID_API_KEY)
            smtp.sendmail(sender, recipient, msg.as_string())

## Installation

    pip install sendgrid-email

## Usage

    from email.mime.application import MIMEApplication
    from sendgrid_email import send_email

    attachment = MIMEApplication(b"File contents", name="filename.txt")
    attachment['Content-Disposition'] = 'attachment; filename="filename.txt"'

    send_email(
        "Example Service",
        "recipient@example.org",
        "Re: Example Subject",
        "<h1>This is an example email</h1>",
        [attachment],
    )