semvec/pypi-packages huggingface dataset:
alt-discord-flags-v2 1.0.0
A Discord.py extension allowing you to pass flags as arguments.
License: MIT

# Disclaimer: this is a quick fix to get the library to work on Discord.py v2

The changes made have not been tested exclusively as I made this module to upgrade my Discord.py version and maintain flags. Use at your own risk (taking pull requests and issues though). Parts of the code were directly copy-pasted from the core Discord.py.

This is an alternative to CircuitSacul/Flag-Parsing, which is not maintained.

# Flag Parsing

A util for discord.py bots that allow passing flags into commands.

To install, run the following command:

```sh
pip install alt-discord-flags
```

**2.1.0 changes how signatures appear. If you wish to use
the legacy signatures, use `command.old_signature` instead.**

Basic example usage:

```python
import discord
from discord.ext import flags, commands

bot = commands.Bot("!")

# Invocation: !flags --count=5 --string "hello world" --user Xua --thing y

@flags.add_flag("--count", type=int, default=10)
@flags.add_flag("--string", default="hello!")
@flags.add_flag("--user", type=discord.User)
@flags.add_flag("--thing", type=bool)
@flags.command()
async def flags(ctx, **flags):
    await ctx.send("--count={count!r}, --string={string!r}, --user={user!r}, --thing={thing!r}".format(**flags))
bot.add_command(flags)
```

Important note that `@flags.command` MUST be under all `@flags.add_flag`
decorators.

`@flags.add_flag` takes the same arguments as `argparse.ArgumentParser.add_argument`
to keep things simple.

Subcommands are just as simple:

```python
@commands.group()
async def my_group(ctx):
    ...

@flags.add_flag("-n")
@my_group.command(cls=flags.FlagCommand)
async def my_subcommand(ctx, **flags):
    ...
```

Usage of discord.py's `consume rest` behaviour is not perfect with `discord-flags`,
meaning that you have to use a flag workaround:

```python
@flags.add_flag("message", nargs="+")
@flags.command()
async def my_command(ctx, arg1, **options):
    """ You can now access `message` via `options['message']` """
    message = ' '.join(options['message'])
```
deepl-scraper-pw 0.1.0a0
Scrape deepl using playwright
License: MIT
Requires Python: >=3.8.3,<4.0.0

# deepl-scraper-playwright
[![pytest](https://github.com/ffreemt/deepl-scraper-playwright/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/deepl-scraper-playwright/actions)[![python](https://img.shields.io/static/v1?label=python+&message=3.8%2B&color=blue)](https://www.python.org/downloads/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/deepl_scraper_pw.svg)](https://badge.fury.io/py/deepl_scraper_pw)

Scrape deepl using playwright

## Install it

```shell
pip install deepl-scraper-pw

# pip install git+https://github.com/ffreemt/deepl-scraper-playwright
# poetry add git+https://github.com/ffreemt/deepl-scraper-playwright
# git clone https://github.com/ffreemt/deepl-scraper-playwright && cd deepl-scraper-playwright
```

## Use it
```python
from pprint import pprint
from deepl_scraper_pw import deepl_tr

pprint(deepl_tr("Test me\n\nTest him"))
# '测试我\n\n测试他'

pprint(deepl_tr("Test me\n\nTest him", from_lang="en", to_lang="de"))
# 'Teste mich\n\nTesten Sie ihn'
```
## Debug
Should something go wrong, you can turn on HEADFUL (a firefox browser will show up). Place .env in the current work directory, with the following content:
```bash
PWBROWSER_HEADFUL=1
```

You can also set DEBUG env variable to turn on detailed debug messages, in Windows:
```
set DEBUG=1
```
In Linux and friends
```
export DEBUG=1
```
nonediag 0.1.0
NoneBot2 error diagnosing tool.
License: MIT
Requires Python: >=3.7

# nonediag

NoneBot2 error diagnosing tool.

NoneBot2 错误诊断工具。

## Installation | 安装

在 bot 环境中安装 nonediag

```console
pip install nonediag
```

## Usage | 使用

1. 在命令行中输入下列指令：

    ```console
    cd /path/to/bot
    nonediag
    ```

2. 输入你的错误信息；
3. 输入完成后敲入 3-4 个换行即可。
basencode 2.1.0
Convert numbers of any base back and forth.
License: MIT

# basencode [![Downloads](https://pepy.tech/badge/basencode)](https://pepy.tech/project/basencode) [![pytest testing](https://github.com/Python3-8/basencode/actions/workflows/automatic-pytest.yml/badge.svg)](https://github.com/Python3-8/basencode/actions/workflows/automatic-pytest.yml)

Convert numbers of any base back and forth.

## Getting Started

For information on how to get started, visit the [documentation](https://basencode.readthedocs.io).

## TODO

- Support converting floats to `Float` which have "e" in them