semvec/pypi-packages huggingface dataset:
nt-pygrambot 0.1.0
Python Telegram Bot
Requires Python: >=3.9

# nt_pygrambot

A lightweight and easy-to-use Python Telegram Bot wrapper library.

## Features

- Simple polling-based Telegram bot
- Easy message handling
- Structured and modular code
- Clean API to extend your bot's functionality

## Installation

You can install the library via pip:

```bash
pip install nt_pygrambot
````

## Quick Start

Here's a basic example of how to use `nt_pygrambot`:

```python
# Echo Bot Example With nt_pygrambot

from nt_pygrambot.updater import Updater
from nt_pygrambot.handlers import MessageHandler
from nt_pygrambot.types import Update


def handle_message(update: Update):
    if update.message.text:
        update.message.reply_text(update.message.text)


updater = Updater("TOKEN")
updater.dispatcher.add_handler(MessageHandler(handle_message))

updater.start_polling()
```

## Requirements

* Python >= 3.9

## Documentation

More documentation and usage examples will be available soon.

For now, you can explore the source code and basic examples in the [GitHub repository](https://github.com/ziyocamp/py-gram-bot/pygrambot).

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

This project is licensed under the MIT License.

```
fastapi-spam 0.0.4
FastAPI middleware to redirect spam requests to a random 10 hours of video
Requires Python: >=3.9
Keywords: Python, package, packaging, FastAPI, Spam, Middleware

<p align="center">
    <a href="https://github.com/nickatnight/fastapi-spam/actions">
        <img alt="GitHub Actions status" src="https://github.com/nickatnight/fastapi-spam/actions/workflows/main.yaml/badge.svg">
    </a>
    <a href="https://codecov.io/gh/nickatnight/fastapi-spam">
        <img alt="Coverage" src="https://codecov.io/gh/nickatnight/fastapi-spam/branch/main/graph/badge.svg?token=FUZyqlCbbl"/>
    </a>
    <a href="https://pypi.org/project/fastapi-spam/">
        <img alt="PyPi Shield" src="https://img.shields.io/pypi/v/fastapi-spam">
    </a>
    <a href="https://docs.astral.sh/uv/">
        <img alt="uv version" src="https://img.shields.io/badge/uv-0.7.18+-purple">
    </a>
    <a href="https://www.python.org/downloads/">
        <img alt="Python Versions Shield" src="https://img.shields.io/badge/Python-3.9+-blue?logo=python&logoColor=white">
    </a>
    <a href="https://github.com/nickatnight/fastapi-spam/blob/master/LICENSE">
        <img alt="License Shield" src="https://img.shields.io/github/license/nickatnight/fastapi-spam">
    </a>
</p>

# 🍔 fastapi-spam

FastAPI middleware to redirect spam requests to a random 10 hours of video. Ported from [django-spam](https://github.com/Tivix/django-spam) (I'm the creator), which was inspired by this [Nick Craver Tweet](https://twitter.com/nick_craver/status/720062942960623616) from 2018.

## Installation

```bash
pip install fastapi-spam
```

## Usage

Add the `TenHoursOfRedirect` middleware to your FastAPI app (or Starlette).

```python
from fastapi import FastAPI

from fastapi_spam.middleware import TenHoursOfRedirect


app = FastAPI()

...

app.add_middleware(TenHoursOfRedirect)
```

Now, any time an intruder tries to access an endpoint in `SPAM_ROUTES`, they will be redirected to a random 10 hours of video...take that bots!
types-PyScreeze 1.0.1.20250801
Typing stubs for PyScreeze
Requires Python: >=3.9

## Typing stubs for PyScreeze

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the [`PyScreeze`](https://github.com/asweigart/pyscreeze) package. It can be used by type checkers
to check code that uses `PyScreeze`. This version of
`types-PyScreeze` aims to provide accurate annotations for
`PyScreeze==1.0.1`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/PyScreeze`](https://github.com/python/typeshed/tree/main/stubs/PyScreeze)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`8edafa8029b48c2bb877dde68a572dc4a4349557`](https://github.com/python/typeshed/commit/8edafa8029b48c2bb877dde68a572dc4a4349557).
types-pyaudio 0.2.16.20250801
Typing stubs for pyaudio
Requires Python: >=3.9

## Typing stubs for pyaudio

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the `pyaudio` package. It can be used by type checkers
to check code that uses `pyaudio`. This version of
`types-pyaudio` aims to provide accurate annotations for
`pyaudio==0.2.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/pyaudio`](https://github.com/python/typeshed/tree/main/stubs/pyaudio)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`8edafa8029b48c2bb877dde68a572dc4a4349557`](https://github.com/python/typeshed/commit/8edafa8029b48c2bb877dde68a572dc4a4349557).
types-keyboard 0.13.2.20250801
Typing stubs for keyboard
Requires Python: >=3.9

## Typing stubs for keyboard

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the [`keyboard`](https://github.com/boppreh/keyboard) package. It can be used by type checkers
to check code that uses `keyboard`. This version of
`types-keyboard` aims to provide accurate annotations for
`keyboard==0.13.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/keyboard`](https://github.com/python/typeshed/tree/main/stubs/keyboard)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`8edafa8029b48c2bb877dde68a572dc4a4349557`](https://github.com/python/typeshed/commit/8edafa8029b48c2bb877dde68a572dc4a4349557).
types-colorama 0.4.15.20250801
Typing stubs for colorama
Requires Python: >=3.9

## Typing stubs for colorama

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the [`colorama`](https://github.com/tartley/colorama) package. It can be used by type checkers
to check code that uses `colorama`. This version of
`types-colorama` aims to provide accurate annotations for
`colorama==0.4.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/colorama`](https://github.com/python/typeshed/tree/main/stubs/colorama)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`8edafa8029b48c2bb877dde68a572dc4a4349557`](https://github.com/python/typeshed/commit/8edafa8029b48c2bb877dde68a572dc4a4349557).
types-waitress 3.0.1.20250801
Typing stubs for waitress
Requires Python: >=3.9

## Typing stubs for waitress

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the [`waitress`](https://github.com/Pylons/waitress) package. It can be used by type checkers
to check code that uses `waitress`. This version of
`types-waitress` aims to provide accurate annotations for
`waitress~=3.0.1`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/waitress`](https://github.com/python/typeshed/tree/main/stubs/waitress)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`8edafa8029b48c2bb877dde68a572dc4a4349557`](https://github.com/python/typeshed/commit/8edafa8029b48c2bb877dde68a572dc4a4349557).
types-RPi.GPIO 0.7.0.20250801
Typing stubs for RPi.GPIO
Requires Python: >=3.9

## Typing stubs for RPi.GPIO

This is a [PEP 561](https://peps.python.org/pep-0561/) type stub package for
the [`RPi.GPIO`](https://sourceforge.net/p/raspberry-gpio-python/code/) package. It can be used by type checkers
to check code that uses `RPi.GPIO`. This version of
`types-RPi.GPIO` aims to provide accurate annotations for
`RPi.GPIO==0.7.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/RPi.GPIO`](https://github.com/python/typeshed/tree/main/stubs/RPi.GPIO)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.16.1
* [pyright](https://github.com/microsoft/pyright) 1.1.403
It was generated from typeshed commit
[`8edafa8029b48c2bb877dde68a572dc4a4349557`](https://github.com/python/typeshed/commit/8edafa8029b48c2bb877dde68a572dc4a4349557).