Skip to content

Make eg_crypto pip-installable without the API server - #31

Merged
GoDeskio merged 1 commit into
mainfrom
cursor/python-eg-crypto-package-fa6f
Nov 14, 2026
Merged

GoDeskio merged 1 commit into
mainfrom
cursor/python-eg-crypto-package-fa6f

Conversation

@GoDeskio

Copy link
Copy Markdown
Owner

Summary

api/eg_crypto installs on its own for WatchTower-Core and any other Python service.

  • api/pyproject.toml is project eg-crypto 0.2.0 with a setuptools build. Dependencies are cryptography==50.0.2 and PyNaCl==1.6.2.
  • pip install of the api directory packages eg_crypto only. FastAPI and uvicorn are an optional api extra and remain in requirements.txt for the container.
  • The README now matches api/Dockerfile: the image copies eg_crypto.
  • eg_crypto/pg.py describes the column ciphertext as a version-3 envelope. Version 2 still opens (min_version is version 2).

Local tests

Clean virtualenv, pip install /path/to/api (no extras):

installed eg-crypto vectors OK
fastapi absent, eg_api absent

That process decrypted testvectors/envelope.json v1, v2, and v3, resealed the v3 known answer, and matched the blind index.

Existing suite, from api/ with requirements-dev.txt:

61 passed, 1 warning in 0.93s

ruff check api passed. scripts/check-license-metadata.py passed.

GitHub Actions is budget-blocked. A failure that only says the Actions budget is not a failure of this package.

Open in Web Open in Cursor 

The api project is now eg-crypto 0.2.0. pip install of that directory
installs the envelope package and not FastAPI. The README no longer
says the API image skips the package.

Co-authored-by: Admin <GoDeskio@users.noreply.github.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​setuptools@​84.2.17410010010070

View full report

@GoDeskio
GoDeskio merged commit 0357399 into main Nov 14, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants