semvec/pypi-packages huggingface dataset:
pastep 1.0.9
Pastep API module
License: MIT

# Pastep Api [![Downloads](https://pepy.tech/badge/pastep)](https://pepy.tech/project/pastep)
## _Code Easily_

Pastep is a code sharing website
- Import the module
- User one of functions
- ? Magic ?

## Features

- Search
- Trending
- Paste info
- Account info

## Quick Tutorial
> We made this module for our users to be more comfortable while using our API


### Simple usage:
![alt text](https://i.postimg.cc/cHJhf12y/code.png)

## License
MIT

Contact me at Discord: https://discord.gg/mRnF6ypYyu
**Free Software, Hell Yeah!**
discord-ext-levenshtein 0.3.0
A discord.py extension for command name suggestion
License: MIT
Requires Python: >=3.6.0

discord-ext-levenshtein
#######################

A discord.py extension for command name suggestion

.. image:: https://readthedocs.org/projects/discord-ext-levenshtein/badge/?version=latest
    :target: https://discord-ext-levenshtein.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

Installation
============

.. code-block:: sh

    # Windows
    py -3 -m pip install --upgrade discord-ext-levenshtein

    # Linux
    python3 -m pip install --upgrade discord-ext-levenshtein

Usage
=====

The extension will be enabled by creating ``levenshtein.Levenshtein``
when ``on_ready`` is called.

.. code-block:: python

    import os
    import discord
    from discord.ext import commands, levenshtein


    class MyBot(commands.Bot):
        def __init__(self, *args, **kwargs):
            super().__init__(*args, **kwargs)

        async def on_ready(self):
            print('Bot is ready')
            levenshtein.Levenshtein(self, max_length=3)

        async def on_command_suggest(self, ctx, suggested_commands):
            body = 'suggested commands: ' + ' '.join([f'`{command}`' for command in suggested_commands])
            await ctx.send(body)


    bot = MyBot(command_prefix='+', intents=discord.Intents.all())


    @bot.command()
    async def ping(ctx):
        await ctx.send('pong')


    @bot.group(invoke_without_command=True)
    async def math(ctx):
        await ctx.send('this is a math cog')


    @math.command()
    async def add(ctx, a: int, b: int):
        await ctx.send(a + b)

    bot.run(os.environ['BOT_TOKEN'])

For more usage, refer to `the examples directory <https://github.com/shirataki2/discord-ext-levenshtein/tree/master/examples>`_
twemoji-parser 0.5.1
A python module made on top of PIL that draws emoji from text to image.
License: MIT
Requires Python: >=3.7
Keywords: Emoji,Twemoji,PIL,Image,Parser

# twemoji_parser
A python module made on top of PIL that draws twemoji from text to image.<br>
```sh
$ python3 -m pip install twemoji-parser
```

## Examples
### Basic example
```py
from twemoji_parser import TwemojiParser
from PIL import Image, ImageFont

async def main():
    im = Image.new("RGB", (500, 500), color=(255, 255, 255))
    font = ImageFont.truetype("/path/to/font.ttf", 30)
    parser = TwemojiParser(im)
    
    await parser.draw_text((5, 5), "I 💖 Python!", font=font, fill=(0, 0, 0))
    await parser.close()
    im.show()
```

### Basic example with Discord custom emoji
```py
from twemoji_parser import TwemojiParser
from PIL import Image, ImageFont

async def main():
    im = Image.new("RGB", (500, 500), color=(255, 255, 255))
    font = ImageFont.truetype("/path/to/font.ttf", 30)
    parser = TwemojiParser(im, parse_discord_emoji=True)
    
    await parser.draw_text((5, 5), "I 💖 Python! <:love_emoji:772448930448670723>", font=font, fill=(0, 0, 0))
    await parser.close()
    im.show()
```

### Get a twemoji URL from emoji:
```py
from twemoji_parser import emoji_to_url

async def main():
    url = await emoji_to_url("❤️")
    print(url)
```
ssh-pymongo 1.0.4
Simple shortcut for PyMongo over ssh.
License: MIT

ssh-pymongo
-----------

Just for convenience. Note: `uri` parameter is assumed as local, after ssh.

``pip install ssh-pymongo``

Example 1
---------

.. code:: python

    from ssh_pymongo import MongoSession

    session = MongoSession('db.example.com')

    db = session.connection['db-name']

Example 2
---------

.. code:: python

    session = MongoSession(
        host='db.example.com',
        uri='mongodb://user:password@127.0.0.1/?authSource=admin&authMechanism=SCRAM-SHA-256'
    )
    ...
    session.stop()

Example 3
---------

.. code:: python

    session = MongoSession(
        host='db.example.com',
        user='myuser',
        password='mypassword',
    )
    ...
    session.stop()

Example 4
---------

.. code:: python

    session = MongoSession(
        host='db.example.com',
        port='21',
        user='myuser',
        key='/home/myplace/.ssh/id_rsa2',
        to_port='37017',
        to_host='0.0.0.0'
    )
    ...
    session.stop()