semvec/pypi-packages huggingface dataset:
gptel 0.3.0
Framework to build Telegram bots
Requires Python: >=3.9,<4.0

GPTel
=====

Framework to ease the writing of Telegram bots, using advance features like speach to text.

Example
-------

```python
from gptel import GPTelBot, BotContext, ReplyTyping, ReplyImage


bot = GPTelBot(
    name="TestBot",
    description="A bot to test GPTel framework",
    data_default={"flag": False},
)


@bot.command("start", "Starts the bot")
async def command_start(context: BotContext):
    yield rf"Hello {context.user_html}!"


@bot.command("help", "Print some help")
async def command_help(context: BotContext):
    yield r"Help!"


@bot.command("switch", "Switch flag")
async def command_switch(context: BotContext):
    # context.data is specific for current chat.
    context.data["flag"] = not context.data["flag"]
    yield r"Switch on!" if context.data["flag"] else r"Switch off!"


@bot.command("image", "Show an image")
async def command_image(context: BotContext):
    yield ReplyTyping()
    # ReplyImage only supports URL at the moment.
    yield ReplyImage("https://picsum.photos/300/300.jpg")


# This will handle both text chat and voice messages, that will be converted automatically
# to text using OpenAI's Whisper.
@bot.chat()
async def echo(context: BotContext, message: str):
    yield ReplyTyping()
    yield r"You said:"
    yield message


bot.run()
```

To run it:

```bash
# Set up name, description and button menu of the bot:
python main.py --setup

# Run the bot:
python main.py
```

Install
-------

```
pip install gptel
```

Setup
-----

You need to setup two environment variables: 

- `TELEGRAM_TOKEN`
- `OPENAI_API_KEY`: for the speech to text service.

To get a new Telegram token for your bot: 

- Open Telegram: Search for `@BotFather`.
- Start a Chat: Click "Start" to begin a conversation with BotFather.
- Create Bot: Send `/newbot` to BotFather.
- Choose Name: Enter a name for your bot when prompted.
- Set Username: Provide a unique username ending in "bot".
- Receive Token: BotFather will give you the bot's token. Keep it secure.

Authors
-------

- Cristobal Carnero Linan - ccarnerolinan@gmail.com
bom-analyzer 2.4
Bill of Materials outlier analysis using unsupervised machine learning.

# Bill of Materials Analyzer

Using unsupervised machine learning to find anomalies in a Cisco Bill of Materials.


## Getting Started

Install the bom_analyzer package from PyPI using:
> pip install bom_analyzer

After installing, import the library into your file using:
> from bom_analyzer import *


For full documentation visit https://bom-analyzer.readthedocs.io/en/latest/
python-licensing 0.1.1
License your python script and provide licenses via a licensing server.

# python-licensing

`python-licensing` is a Python package that provides functionality for licensing a Python script and providing licenses via a licensing server. It allows you to license individual functions via decorators or your entire script.

## Installation

You can install `python-licensing` using pip:

```sh
pip install python-licensing
```

## Usage
Here's an example of how to use ```python-licensing``` to license a function:

```python
from python_licensing import licensed

@licensed('https://my-licensing-server.example.com')
def my_licensed_function():
    pass
```

In this example, my_licensed_function is a licensed function. The @licensed decorator takes the URL of your licensing server as an argument.

## Licensing Server
The licensing server implementation is located in ./server. You can run it using Docker or Docker Compose. For more information, see the server README.

## Obfuscating Your Script
You can combine ```python-licensing``` with pyarmor to obfuscate your script and hide the licensing logic. For more information, see the pyarmor documentation.

## Contact
If you have any questions or issues, please contact:

info@kostelezky.com