semvec/pypi-packages huggingface dataset:
emojibase 0.0.2
Encode any data to emojis
Requires Python: >=3.6

# BaseEmoji

BaseEmoji is a python module for encoding any ASCII string or byte object into emoticons and back. It can be used to hide information in text conversations, e.g. chat or twitter or to display hashes in a graphica/more comparable way.  
It supports two codecs: anybase and group256. This module is also the reference implementation of these two codecs.

Made with ❤️ at 36c3!

## Install
```bash
pip install emojibase
```
View on PyPi via [https://pypi.org/project/emojibase/](https://pypi.org/project/emojibase/)

## Usage

### anybase
anybase is a BaseEmoji codec which works by converting the input to the base of the amount of emojis, set by the filter. 

```python
import BaseEmoji

e = BaseEmoji.anybase()
e.encode('giv mee emojiiis'.encode())
# ✴️����⛈️����‭⚕️������������

e.decode('✴️����⛈️����‭⚕️������������').decode('ascii')
# giv mee emojiiis

```

### group256
This codec distributes all (filtered) emojis to 256 groups. With this, it can encode any ASCII string to emojis.

```python
import BaseEmoji

e = BaseEmoji.group256()
e.encode('giv mee emojiiis')
# ��������������������������������

e.decode('��������������������������������')
# giv mee emojiiis

```

### Filters
There are currently three filter options for changing the emojis for en/decoding:
- Groups (e.g. flags)
- Skin Tone Support
- Unicode Version

```python
e.set_filter(['Symbols'], False, 12.0)
e.encode('giv mee symbol emojiiis'.encode())
# ��⭕✳️⬅️✖️⚜️⚜️⬅️➰‼️✖️⚕️❎✔️⬅️⚜️✖️❎✅⭕⭕⭕➰

e.get_groups()
# {'Smileys & Emotion', 'Travel & Places', 'Activities', 'Flags', 'Animals & Nature', 'Symbols', 'People & Body', 'Objects', 'Food & Drink'}
```

## Roadmap
- Add filter options to encoded data for automatic decoding

## Credits
- Inspired by [CuteUID](https://github.com/alexdredmon/cuteuid)
- Emoji data from [muan](https://github.com/muan/unicode-emoji-json)
- [Jonas](https://github.com/jonas-koeritz)
ttchat 0.1.1
RSA-encrypted chat software written in Python.
Requires Python: >=3.6

# TTChat
Peer-to-peer chat software written in Python.

## What is it for?
TTChat is designed to be a safe chat system that will generate new keys for each session.
It's not intended to be used as WhatsApp or a similar chat program, it's for throwaway chats that don't need to/shouldn't be kept.

## How is it secured?
TTChat uses 4096-bit long RSA keys for every message, other than for the public key exchange, which cannot be encrypted.  
This should not be a problem, as no computer can get the private key from the public key, and the keys are recreated for every new chat session.

### How does it work?
Each machine will set up a server socket, and a client socket. The client will try to connect to a specified target, while the server accepts connections and checks if the origin is the target. If it's not, it'll kill the connection and wait for the target to connect. Once both peers have confirmed the targets, they will exchange public keys and be ready to chat.

## Requirements
**Python v3.6+**  
If you don't already have it, download it [here](https://www.python.org/downloads/).  
**cryptography>=2.8**  
Download it using `pip install "cryptography>=2.8"`, or download the wheel [here](https://pypi.org/project/cryptography/2.8/#files) and use `pip install (.whl file)`.

## Usage
To get the module through PyPi: `pip install ttchat`.  
While TTChat comes with a fully functional `__main__.py` file, it is mainly meant to demonstrate how TTChat works. You can get the module to build your own UI that will work with any other program that uses TTChat, including the example one.

### The `__main__.py` file
Run it as any other python script, using `python` or `python3 __main__.py`. It's a very short piece of code, as it just uses functions from `ttchat.p2p`. Simply give it a target machine and it'll start trying to connect.  
Once you see `Ready to receive messages.` and/or `Ready to send messages.`, the connection has been completed and messaging is ready.

# Documentation
To see how to use the TTChat module yourself, check out the [Documentation](https://github.com/MysteryBlokHed/ttchat/wiki).
photo-org 0.1.0
A tool that sorts photos in a dated folder structure.

Image Sorter
-----------------
Over the past year's, I've ended up with a collection of images scattered around a few folders in my file system. 
This became a problem when I wanted to start organising these photos which could have similar names due to the way the 
cameras format the image names when it captures a photo. This could overwrite images if I were to copy the images to 
 one folder.

An image sorting function that can be used to consolidate photos to a specific folder format <year/month/day_of_month>. 
This also preserves the name of the image that the image was given.

This uses the EXIF data found in the file and if the EXIF data is not available then it will revert to the created date.

### Command to call
Find and move all images in a folder

- `photo_sorter -f <folder> -o <outputfolder>`

Find and move all images in a folder and its sub folders

- `photo_sorter -f <folder> -o <outputfolder> -r`

File types supported:

- jpeg
grpc-route 0.1.2.20010521
Python gRPC 回调方式实现CS通讯（类flask）
Requires Python: >=3.4

grpc_route
==========

Documentation
-------------

The documentation is hosted at https://github.com/BingerYang/grpc_route


Installation
------------

.. code:: shell

     pip install grpc_route

Usage
-----

server run:

::


    from grpc_route.server import Router

    app = Router()


    @app.route("index")
    def test(n):
        # n / 0
        print("-> to index: ", n)
        return "server back ->"


    if __name__ == "__main__":
        app.run_forever("0.0.0.0", port=5656)

client run:

::

    from grpc_route.client import RouteClient
    from grpc_route import AddrConf

    addr1 = AddrConf("127.0.0.1", 5656)
    app = RouteClient(addr1)
    app.connect()


    @app.register(handler="index", to_addr=addr1)
    def run_index(n):
        pass