Metadata-Version: 2.4
Name: coauthor
Version: 0.1.3
Summary: Coauthor Python Project
Author-email: Onno van der Straaten <onknows@c2platform.org>
Requires-Python: >=3.8.1
Description-Content-Type: text/markdown
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
License-File: LICENSE
Requires-Dist: inotify_simple==1.3.5
Requires-Dist: openai==1.58.1
Requires-Dist: PyYAML==6.0.2
Requires-Dist: Jinja2==3.1.4
Requires-Dist: requests==2.32.3
Requires-Dist: duckduckgo_search==7.2.0
Requires-Dist: markdownify==0.14.1
Requires-Dist: beautifulsoup4==4.12.3
Requires-Dist: nest_asyncio==1.6.0
Requires-Dist: scikit-learn==1.6.0
Requires-Dist: pandas==2.2.3
Requires-Dist: pyarrow==18.1.0
Requires-Dist: ipython==8.31.0
Requires-Dist: youtube-transcript-api==1.0.3
Requires-Dist: google-api-python-client==2.170.0
Requires-Dist: jira==3.8.0
Requires-Dist: notify2==0.3.1
Requires-Dist: pyspark>=3.0.0 ; extra == "spark"
Requires-Dist: bandit[toml]==1.7.5 ; extra == "test"
Requires-Dist: black==23.3.0 ; extra == "test"
Requires-Dist: check-manifest==0.49 ; extra == "test"
Requires-Dist: flake8-bugbear==23.5.9 ; extra == "test"
Requires-Dist: flake8-docstrings ; extra == "test"
Requires-Dist: flake8-formatter_junit_xml ; extra == "test"
Requires-Dist: flake8 ; extra == "test"
Requires-Dist: flake8-pyproject ; extra == "test"
Requires-Dist: pre-commit==3.3.1 ; extra == "test"
Requires-Dist: pylint==2.17.4 ; extra == "test"
Requires-Dist: pylint_junit ; extra == "test"
Requires-Dist: pytest-cov==4.0.0 ; extra == "test"
Requires-Dist: pytest-mock<3.10.1 ; extra == "test"
Requires-Dist: pytest-runner ; extra == "test"
Requires-Dist: pytest==7.3.1 ; extra == "test"
Requires-Dist: pytest-github-actions-annotate-failures ; extra == "test"
Requires-Dist: shellcheck-py==0.9.0.2 ; extra == "test"
Project-URL: Documentation, https://coauthor.readthedocs.io
Project-URL: Source, https://gitlab.com/c2platform/c2/coauthor/
Project-URL: Tracker, https://gitlab.com/c2platform/c2/coauthor/-/issues
Provides-Extra: spark
Provides-Extra: test

# Coauthor AI Agent

[![Documentation Status](https://readthedocs.org/projects/coauthor/badge/?version=latest)](https://coauthor.readthedocs.io/en/latest/?badge=latest)
[![pipeline status](https://gitlab.com/c2platform/c2/coauthor/badges/master/pipeline.svg)](https://gitlab.com/c2platform/c2/coauthor/-/commits/master)
[![coverage report](https://gitlab.com/c2platform/c2/coauthor/badges/master/coverage.svg)](https://gitlab.com/c2platform/c2/coauthor/-/commits/master)
[![PyPI version](https://img.shields.io/pypi/v/coauthor)](https://pypi.org/project/coauthor)
[![Pyversions](https://img.shields.io/pypi/pyversions/coauthor.svg?style=flat-square)](https://pypi.org/project/coauthor/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

<!-- start mini-description -->

Coauthor is a versatile AI agent designed to seamlessly integrate into any
project without being restricted to a particular tool or IDE. It functions as a
co-author, operating in the background to monitor files and respond to
instructions for collaboratively producing documentation, code, configuration,
and more.

The agent is powered by a simple task engine that allows you to define
workflows—collections of tasks that are executed in sequence when certain
conditions, such as file or directory changes, are met. This task engine is
enhanced by the Jinja templating engine, providing extensive control over system
and user prompts.

<!-- end mini-description -->

## Installing

:start-after: <!-- start installing -->

To install Coauthor run the following command:

```bash
pip install coauthor
```

<!-- end installing -->

## Configuration `.coauthor.yml`

To do anything meaningful with coauthor you have to create a configuration file
`.coauthor.yml`. For example in the root of a folder that contains Obsidian markdown
files. Refer to the
[documentation website](https://coauthor.readthedocs.io/en/latest/users/configuration_file.html)
for more information.

## Command line usage

Create a file `.coauthor.yml` in the root of your project, for example in a
Obsidian project where all my Obsidian vaults are in directory `vaults`:

<!-- start cli-usage -->

Start Coauthor run the following commands:

```bash
export OPENAI_API_KEY=<you api key>
export OPENAI_API_URL=https://openrouter.ai/api/v1
coauthor --watch
```

To see command line options, run `coauthor --help`.

<!-- end cli-usage -->

## Contributing

This project welcomes contributions and suggestions. For details, visit the
repository's
[Contributor Page](https://coauthor.readthedocs.io/en/latest/contributors/contributing.html).

