This is the monorepo containing all our common api code and FastAPI-based WSGI applications for the new policyengine api v2.
- libs - directory containing packages that are dependencies of other packages
- projects - directory containing packages that are intended to be deployed as applications.
All packages are managed via poetry. Tests are run via pytest.
- install poetry
- run
make install
either
- run
make test
to run all tests or - go into the target directory and run
source .venv/bin/activate
pytest
- /libraries - are common code that is intended to be build and consumed as packages
- /applications - applications which are intended to be built into and deploy as part of docker containers.
- /src - contains the actual code
- /policyengine - namespace for our package (no
__init__.py
)
- /policyengine - namespace for our package (no
- /tests - contains the tests
- conftest.py - automatically loaded test fixtures.
- /common - common code used by the other tests
- poetry.toml - poetry settings applied to this project alone
- pyproject.toml - definition of the package and dependencies.
Projects are intended to be run, not packaged and distributed.