AEMS Local Bridge Agent — local filesystem access for exam PDFs
Project description
AEMS Local Bridge Agent
A lightweight companion service that runs on localhost and provides REST API access to the local filesystem, enabling the AEMS web app to read/write exam PDFs to a user-chosen folder.
Installation
pip (recommended for development)
pip install aems-agent
Binary installers
Download pre-built installers from Releases:
| Platform | File | Notes |
|---|---|---|
| Windows | aems-agent-setup.exe |
Installs to %LOCALAPPDATA%\AEMS Agent |
| macOS | AEMS-Agent.dmg |
Drag to Applications |
| Linux | aems-agent-linux.tar.gz |
Extract and run ./aems-agent run |
Usage
# Start the agent (default: http://127.0.0.1:61234)
aems-agent run
# Start with system tray icon
aems-agent run --tray
# Custom port/host
aems-agent run --port 9000 --host 0.0.0.0
# Enforce runtime license policy
aems-agent run --license-policy warn
aems-agent run --license-policy soft-block
aems-agent run --license-policy hard-block
# Show auth token
aems-agent token
# Set exam storage directory
aems-agent set-path /path/to/exams
# Show config directory location
aems-agent config-dir
# Store a license JWT token
aems-agent license-store "<jwt-token>"
# Validate token signature + claims + heartbeat
aems-agent license-check \
--license-url https://license.domain.com \
--issuer https://license.domain.com \
--audience aems-agent
Configuration
Config files are stored in a platform-specific directory:
| Platform | Path |
|---|---|
| Windows | %APPDATA%\AEMS\agent\ |
| macOS | ~/.config/aems/agent/ |
| Linux | ~/.config/aems/agent/ (or $XDG_CONFIG_HOME/aems/agent/) |
Files:
config.json- storage path, port, allowed origins, license settingsauth_token- bearer token for API authenticationlicense.jwt- stored license tokenagent.log- rotating log file
Runtime license policy modes:
warn: agent starts and logs validation failures.soft-block: agent starts in limited mode when license is invalid. Write operations (PUT/DELETE /files/*,PUT /config/path) are blocked until license becomes valid again.hard-block: startup fails and exits non-zero when license is invalid/revoked/grace-expired; runtime checks also terminate the process non-zero on hard-block failures.
API Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /status |
No | Alive check |
| GET | /health |
Yes | Detailed health with disk info |
| GET/PUT | /config/path |
Yes | Get/set storage path |
| GET | /files/{assignment_id} |
Yes | List submissions |
| GET/PUT/DELETE | /files/{aid}/{sid} |
Yes | Manage submission PDFs |
| GET/PUT | /files/{aid}/{sid}/annotated |
Yes | Manage annotated PDFs |
| POST | /pair/initiate |
No | Start browser pairing |
| POST | /pair/complete |
No | Complete pairing |
Development
git clone https://github.com/artkula/aems-agent.git
cd aems-agent
python -m pip install -e ".[dev]"
python -m pytest -v
Release Trust and Verification
Release pipeline:
.github/workflows/build.yml- Windows tagged releases are Authenticode-signed.
- macOS tagged releases are code-signed, notarized, and stapled.
release-manifest.jsonandsha256sums.txtare signed with cosign as supplemental integrity proof.
Verification examples:
Windows:
Get-AuthenticodeSignature .\aems-agent-setup.exe | Format-List
macOS:
codesign --verify --deep --strict --verbose=2 "AEMS Agent.app"
spctl --assess --type open --context context:primary-signature --verbose=4 "AEMS-Agent.dmg"
Cosign manifest verification:
cosign verify-blob \
--certificate release-manifest.pem \
--signature release-manifest.sig \
release-manifest.json
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aems_agent-0.3.1.tar.gz.
File metadata
- Download URL: aems_agent-0.3.1.tar.gz
- Upload date:
- Size: 68.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bef85185b7f81b274558e2295f697b9ba09f887d5c7293492dc310ca3eb5c273
|
|
| MD5 |
89cc9da5c96fa8ac7cdc0b0347a662a7
|
|
| BLAKE2b-256 |
e0b9afa05578983e86acce4e3d85b68fc07e277ed2eeff8964f60e19890ec202
|
File details
Details for the file aems_agent-0.3.1-py3-none-any.whl.
File metadata
- Download URL: aems_agent-0.3.1-py3-none-any.whl
- Upload date:
- Size: 39.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15978fdf3dc933b586e7725bc0d283e21c6a33940bb5c7695ab76bf0763138c6
|
|
| MD5 |
29465af9da80165cfe036bb9e0e774ee
|
|
| BLAKE2b-256 |
2da9a3d048bf6b6a819844fa7dd5782da6e46d40544aab0d2bc84fc9fd109595
|