A small Python billing service that is deliberately out of date. It exists so dependency analysers have something with a known answer to run against.
Nothing here is meant to be deployed. The code compiles and reads like a real
service, but the API keys are environment placeholders and the HTTP endpoints
are .test domains that do not resolve.
Analysing a real repository tells you what the tool found. It does not tell you what the tool missed, because nobody knows the true answer. This repository inverts that: every dependency is pinned to a version chosen on purpose, so a run can be graded rather than eyeballed.
See CASES.md for the case-by-case expected output.
requirements.txt root manifest - the bulk of the cases
requirements-dev.txt development dependencies, separate manifest
app/
payments.py stripe, incl. a deprecated Charges call site
assistant.py openai 0.x module-level helpers
assistant_anthropic.py anthropic, declared with no version constraint
http_client.py requests
notifications.py twilio
settings.py Django 3.2-era settings
services/worker/
pyproject.toml second manifest, same libraries pinned differently
worker/tasks.py stripe + celery + redis in the worker
services/notifier/
Pipfile third manifest, and the only typed dev-packages
notifier.py twilio + requests, pinned differently again
Four manifests in three formats, on purpose. requirements.txt and
requirements-dev.txt cover the pip convention, pyproject.toml covers PEP
621 plus optional dependencies, and Pipfile is the only one of the three that
can mark a dependency as development rather than merely putting it in a
differently-named file.
app/payments.py calls stripe.Charge.create. app/assistant.py calls
openai.ChatCompletion.create and openai.Completion.create. All three are
module-level helpers that the vendors have since replaced — Charges by
PaymentIntents, the 0.x module helpers by a client object in openai 1.0.
These are the cases where the manifest alone is not enough. A tool that only
reads requirements.txt reports "stripe is behind". A tool that reads the
source reports "and here is the line that will not survive the upgrade".
stripe appears twice: ==5.4.0 in the root manifest and ==9.12.0 in
services/worker/pyproject.toml. requests and twilio appear twice too, in
the root and in services/notifier/Pipfile, with requests carrying a
different constraint style in each. All of them are outdated, by different
amounts. Findings should stay attached to the manifest they came from.
Worth knowing: call sites are matched to dependencies by package name across
the whole repository, not per manifest, so both stripe findings see both
stripe call sites. That is the right answer for "where is this library used"
and the wrong one for "what breaks if I upgrade this manifest".
The "current" pins in CASES.md drift as upstream ships releases. The control dependency in particular will eventually stop being current. That is expected; re-pin it when it drifts.
MIT licensed. See LICENSE.