semvec/pypi-packages huggingface dataset:
plato-client 1.0.0
Plato Client
Requires Python: >=3.10,<4.0

# Plato Client
Plato Client is a Python library that provides an interface to interact with the Plato Core API. It allows users to manage documents, generate content, and train models.

## Features
### Current
- Make calls to OpenAi Text Creation, Chat, and Image geenration endpoints without needing to manage API keys

### Coming Soon...
- Authentication with the Plato Core using the Oauth2 Client Credentials flow
- Document management abstraction (upload, download, find, and delete)
- User Management (via a Fastapi router you can add)
- Session Management (via a Fastapi router you can add)
- Content generation abstraction with various options (e.g., image generation, multihop, cache, moderation)
- Model training abstraction
- Centralized logging (routes to Datadog)

Please see https://bainco.atlassian.net/wiki/spaces/aagplato/pages/16918315581/Plato+Core#%F0%9F%92%80-Code-Skeletons for additonal information.

## Usage

Here are some examples of what you can do with the Plato Client:


```python
from plato_client.client import PlatoClient
client = PlatoClient(endpoint="http://127.0.0.1:8080")

# Generate text
print(client.text_completion("Roses are blue", model="gpt-4"))

# Chat
pprint(client.chat_completion(messages=[{"role": "user", "content": "Hello!"}]))

# Generate Image
print( client.create_images(prompt="Draw image of a dog playing by the pool", n=2, size="512x512"))
````

## Requirements
- Python 3.10.10 or later
- Poetry (Python Package Manager)
- Pip


## Installation
To install the Plato Client, you can run

```bash
make install
```

After installing the venv, source it (with source .venv/bin/activate) and the initialize pre-commit with pre-commit install. This will add pre-commits locally, such that code quality checks are run before each commit. To disable it, just add --no-verify after the commit (example: git commit -a -m "<commit-message>" --no-verify)
easy-async 0.1.0
Please forget you are using asyncio
Requires Python: >=3.6,<4.0
Keywords: asyncio,async,easy,easy-async

# easy_async

请你忘记 `asyncio` 的存在。

这是一个对 `asyncio` 进行高度封装的库，让你可以像写同步代码一样写异步代码，支持多线程，多进程。

## 功能

| 功能     | 支援 |
|--------|----|
| 多线程    | ✅  |
| 多进程    | ✅  |
| 简单易用   | ✅  |
| 全局退出管理 | ✅  |

## 安装

```bash
pip install easy-async
```

## 使用

```python
import asyncio
import multiprocessing
import threading

from easy_async import EasyAsync, MISSION

# scheduler will initial when every process start,
# so different process will have different scheduler
#                                                Maximum 4k concurrent mission-task
scheduler = EasyAsync(task_default_type=MISSION, complicating_limit=4096)


# if you don't create scheduler before get_scheduler, it will create a scheduler with default params
# scheduler = get_scheduler()

# when you decorate a function with scheduler.as_mission,
# it will be use `scheduler.create_task` when you call it
@scheduler.as_mission
async def sleep(n):
    print(f'mission_task: sleep {n}')
    await asyncio.sleep(n)
    print(f'wake up: {n}')

    # 在此处不要触发循环，stop之后函数需要返回。

    if n == 5:
        print('sys stop')
        scheduler.stop()
        # scheduler.stop(force=True)


# assign it is a daemon task, the scheduler will stop when all daemon-task finish.
# when you call a non-args `scheduler.run` all registered daemon-task will be called.
@scheduler.daemon()
async def assist():
    print('assist1 start')
    print('new_pid: ', multiprocessing.current_process().pid)
    print('new_tid: ', threading.current_thread().native_id)
    await sleep(1)

    print('assist1 end')


@scheduler.daemon()
async def main():
    print('main start')
    print('mian scheduler', scheduler)

    # start_by_process
    scheduler.new(assist, method='process')

    # start mission-task manually
    await scheduler.add_mission(sleep(5))

    # start_by_thread
    # scheduler.new(assist, method='thread')

    # just use `scheduler.new` like `Process` or `Thread`

    await asyncio.sleep(3)
    print('main end')


if __name__ == '__main__':
    # run all daemon_task
    # scheduler.run()

    # just run main()
    scheduler.run(main())

```
MaryamBoneh 77.11.28
MaryamBoneh is not only a girl or a Python package, MaryamBoneh is a way of life in love and love in life. 💚

# MaryamBoneh

[![Python package](https://github.com/SajjadAemmi/maryamboneh/actions/workflows/python-package.yml/badge.svg)](https://github.com/SajjadAemmi/maryamboneh/actions/workflows/python-package.yml)
[![Upload Python Package](https://github.com/SajjadAemmi/maryamboneh/actions/workflows/python-publish.yml/badge.svg)](https://github.com/SajjadAemmi/maryamboneh/actions/workflows/python-publish.yml)

MaryamBoneh is not only a girl or a Python package, MaryamBoneh is a way of life in love and love in life. 💚

## Installation

```bash
pip install maryamboneh
```

## Usage

MaryamBoneh may be used directly in the Command Line Interface (CLI):

```bash
maryamboneh
```

You can also use `--speed` argument to change the speed of running:

```bash
maryamboneh --speed 100
```