# Accounting

Removes UPCs/ISRCs from originating contract terms and adds them to destination.

## Setup

1. Copy `.env.shadow` to `.env` and fill in any required secrets (if applicable):
   ```sh
   cp .env.shadow .env
   ```

2. Run locally — exposes the Lambda invocation endpoint on port 9000:
   ```sh
   docker compose up dev
   ```

   Invoke the function in a second terminal:
   ```sh
   curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
   ```

## Development

Run linting and tests:
```sh
docker compose run --rm --build unit-lint
```

Format code:
```sh
docker compose run --rm --build format
```

Update the lock file (required after changing `pyproject.toml`, or on first clone):
```sh
docker compose run --rm --build update-lockfile
```
