semvec/pypi-packages huggingface dataset:
botpie 0.0.1
A Python framework for managing chatbots
License: MIT

# BotPie

A Python framework for managing chatbots - 0.0.1 (alpha)

## Install and Run

```
git clone https://github.com/gwilkes/botpie.git
cd botpie/
python setup.py install
```

## Features

#### Argument Parsing

BotPie handles command parsing by using the Python [argparse][] module to do
most of the work.

[argparse]: https://docs.python.org/3/library/argparse.html

## Basic Script

```
import botpie
import random

message = botpie.utils.argvstr()
bot = botpie.Bot("ImportantBot")

@bot.command("tracer")
def tracer():
    greets = ["hiya!", "heya!", "hi!", "hoiya!"]
    return random.choice(greets)

result = bot.inspectstr(message)

if result:
    print(result)
```
>   The above example was tested by running `python examples/basic.py tracer`

## Work In Progress

This is a lightweight initial release which does not include several of the desired features yet. Here are some of the plans for future releases:
*   Asynchronous support
*   Optional storage solution for Bot data

Other todos:
*   Fix docstrings
*   Include a better example for above (show off decorators, use discord connection, etc)

## Requirements

Python 3.7+ (this *may* change down the road to support older versions)
r2d2 3.0.0
some handy functions
License: MIT
Requires Python: >=3.6.0


# r2d2

some handy functions

## APIS:

### `goto(directroy: str)`

进入目标目录 `directroy` -> 操作 -> 返回之前目录。

用于临时进入目标目录进行操作，如果目标目录不存在，则会被创建。

```py
os.getcwd()
# /current/directory

with goto('/my/directory'):
    os.getcwd()
    # /my/directory

    process()

os.getcwd()
# /current/directory
```