semvec/pypi-packages huggingface dataset:
pyaiml21 1.0.1.post2
Simple interpreter for AIML 2.1
License: MIT
Requires Python: >=3.7
Keywords: aiml,interpreter,chatbots

# pyaiml21

AIML [^AIML] 2.1 Chatbot Design Language Interpreter in Python 3.

The AIML language is a (simple) XML-derived language for description of chatbots
and the communication with the user based on the pattern-matching the user's
query and evaluating (human-coded) response.

**pyaiml21** is an AIML interpreter, supporting the latest AIML specification.
It was created as a bachelor thesis and should be fully compatible with
its predecessor, **PyAiml** [^pyaiml].



## Installation

Install the project from *PYPI*:

    $ python -m pip install pyaiml21


## Quick Example

This example demonstrates how to quickly set-up and run a basic chatbot with
publicly available source files from ALICE [^ALICE].


### Running via console script

`pyaiml21` comes with a simple script to run your chatbots, if you unpacked
the contents of your bot into `alice/` folder (so that the structure
is `alice/aiml/..`, `alice/aimlif/..`, `alice/sets/..` ..), then running
the following will start your bot:

    $ aiml --bot alice


### Running from Python

It is still possible to start your bot directly from python[^example], e.g.

    >>> from pyaiml21 import Bot
    >>> my_bot = Bot()
    >>> my_bot.learn_aiml("path to .aiml file")
    >>> # more loading stuff, see `pyaiml21.utils` for helpers
    >>> my_bot.respond("Hello", "USER_1")
    Hi! How are you doing?


For examples of simple bots, checkout `/examples` folder.


## Motivation

This project was created to support the AIML 2.1 in Python while preserving
the simplicity of user interface from **pyaiml**. Note that for Python,
there exists an AIML interpreter, **program-y** [^program-y], but it does
come with the full chatbot platform, the simple interface is missing.


## Documentation

Please visit the
[official documentation](https://pyaiml21.readthedocs.io/en/latest/).


## License

MIT.

---

[^ALICE]: [alice source code](https://code.google.com/archive/p/aiml-en-us-foundation-alice/)

[^AIML]: Artificial Intelligence Markup Language (Dr. Wallace, 2001); see
the official [specification of version 2.1](http://www.aiml.foundation/doc.html)

[^example]: The actual response depends on your AIML file, to load .aimlif,
    substitutions.., see methods of `pyaiml21.Bot`

[^pyaiml]: [original interpreter in python for AIML 1.0](https://github.com/cdwfs/pyaiml)

[^program-y]: [AIML Interpreter in Python3]((https://github.com/keiffster/program-y))
ChessComLibraryExport 0.5.0
Download your whole Chess.com Library (chess.com/library)
License: MIT

# Chess.com Library Exporter

A command line utility that uses Selenium (Chess.com please improve API support!) to help you download your entire archive of games in `chess.com/library`.


## Usage

**Directly as a script:**

```bash
$ git clone https://github.com/manuelpepe/ChessComLibraryExporter
$ cd ChessComLibraryExporter
$ pip install -r requirements.txt
$ python chess_library_exporter.py
Username: manuelpepe
Password: 

Found 6 collections
...
```

**From the Pip-installed entrypoint:**

```bash
$ pip install ChessComLibraryExport
$ chess_library_exporter
Username: manuelpepe
Password: 

Found 6 collections
...
```


By default, your library will be exported to a `library/` directory in your current working directory.
You can change it with the `-o path/to/directory` parameter. 

## Support

Firefox and Chrome are supported (use `-b firefox` or `-b chrome`, defaults to firefox). Headless mode can also be activated with the `-H` flag (Only seems to work on firefox).