autogen/python
Jack Gerrits ed50ba4548
Use sha256 for hashing (#3829)
Co-authored-by: Ryan Sweet <rysweet@microsoft.com>
2024-10-17 10:33:18 -07:00
..
packages Use sha256 for hashing (#3829) 2024-10-17 10:33:18 -07:00
templates/new-package Include license file in package (#3703) 2024-10-09 15:01:09 -04:00
.gitignore Add proto files (#378) 2024-08-19 20:32:34 +00:00
README.md Lspinheiro/chore/migrate azure executor autogen ext (#3652) 2024-10-08 15:05:44 -07:00
pyproject.toml Move from tomllib to tomli (#3714) 2024-10-09 16:42:30 -04:00
run_task_in_pkgs_if_exist.py Move from tomllib to tomli (#3714) 2024-10-09 16:42:30 -04:00
shared_tasks.toml Remove static subscription restriction (#439) 2024-08-30 14:00:11 -04:00
uv.lock Magentic one example (#3802) 2024-10-17 10:09:14 -07:00

README.md

AutoGen Python packages

See autogen-core package for main functionality.

Development

TL;DR, run all checks with:

uv sync  --all-extras
source .venv/bin/activate
poe check

Setup

Virtual environment

To get a shell with the package available (virtual environment), in the current directory, run:

uv sync  --all-extras
source .venv/bin/activate

Common tasks

  • Format: poe format
  • Lint: poe lint
  • Test: poe test
  • Mypy: poe mypy
  • Pyright: poe pyright
  • Build docs: poe --directory ./packages/autogen-core/ docs-build
  • Auto rebuild+serve docs: poe --directory ./packages/autogen-core/ docs-serve

[!NOTE] These need to be run in the virtual environment.

Create new package

To create a new package, run:

uv sync
source .venv/bin/activate
cookiecutter ./templates/new-package/