linearjeph: revenue forecasting, growth analytics and monitoring for Python apps
The official Python SDK for LINEARJEPH. One package, no runtime dependencies, Python 3.8+.
- Prophecy (growth intelligence): track signups, payments, subscriptions and feature use, scan your codebase locally, import your history, and get a 12-month MRR/ARR forecast with P10-P90 ranges, churn and cohort retention, LTV, feature impact (which features earn and which are dead weight), API health, security checks, an indicative valuation and a ranked 90-day plan. Statistics and simulation, not guesswork. See a sample report.
- Maintenance: error tracking, performance timing, logs, cron heartbeats and dependency reporting.
- Works with Django, Flask, FastAPI/Starlette and any WSGI or ASGI app.
pip install linearjeph
Prophecy quick start
from linearjeph import prophecy
prophecy.init(ingest_key="lj_app_YOUR_KEY", secret_key="ljp_sk_YOUR_SECRET") # secret: server side only
prophecy.signup(user.id, plan="free", channel="google")
prophecy.feature("export-pdf", user.id)
prophecy.payment(user.id, 49.00, "USD", plan="pro")
report = prophecy.report()["report"] # the latest projection
print(report["headline"]["verdict"])
Scan the codebase (sends a manifest of routes, dependencies and infrastructure, never your source code):
python -m linearjeph.prophecy scan . --send. Full guide: https://linearjeph.cc/docs/sdk/prophecy
Monitoring quick start
import linearjeph
linearjeph.init("lj_app_YOUR_KEY", release="1.4.2", environment="production")
linearjeph.capture_exception() # or let unhandled exceptions be captured automatically
Get the key from Dashboard > Maintenance > your application. The endpoint defaults to https://linearjeph.cc.
capture_message("text"),heartbeat("nightly-job", "ok", interval_s=3600),report_packages().- Cron:
@linearjeph.monitor("nightly", interval_s=86400)sends ok/error automatically. - Performance:
with linearjeph.start_transaction("checkout"): ... - Django: add
"linearjeph.integrations.django.LinearjephMiddleware"toMIDDLEWARE. - FastAPI/Starlette:
app.add_middleware(linearjeph.integrations.asgi.LinearjephASGIMiddleware). - Flask:
linearjeph.integrations.flask.init_app(app). - Options:
sample_rate,traces_sample_rate,before_send,scrub_keys,max_queue,retries,debug. - Events are sent from a background thread (bounded queue, retry with backoff, 401 stops sending) and flushed at exit. The SDK never raises into your code.
Full documentation: docs/sdk/python.md in the repository, or https://linearjeph.cc/docs/sdk/python. Tests: python -m pytest packages/sdk-python. MIT licensed.
Prophecy (growth intelligence, $500/month)
Tracks users, payments, feature use and API traffic, scans your codebase locally and returns a forecast report. Full guide: https://linearjeph.cc/docs/sdk/prophecy
from linearjeph import prophecy
prophecy.init(ingest_key=os.environ["LINEARJEPH_INGEST_KEY"], secret_key=os.environ.get("LINEARJEPH_SECRET_KEY"))
prophecy.signup(user.id, plan="free", channel="ads")
prophecy.payment(user.id, 29, "USD", plan="pro")
prophecy.feature("export-csv", user.id)
prophecy.send_manifest(prophecy.scan("."))
report = prophecy.report() # secret key, server side only
Requests: Django MIDDLEWARE += ["linearjeph.prophecy.django.ProphecyMiddleware"], Flask prophecy.middleware.init_flask(app), FastAPI/Starlette app.add_middleware(prophecy.middleware.ASGIMiddleware), any WSGI app prophecy.middleware.WSGIMiddleware(app). CLI: python -m linearjeph.prophecy scan [dir] [--send], python -m linearjeph.prophecy import events history.csv. User ids are SHA-256 hashed by default.
Metadata
Release files for linearjeph 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| linearjeph-1.2.0.tar.gz | 54.5 kB | Without provenance | Details for linearjeph-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| linearjeph-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for linearjeph-1.2.0-py3-none-any.whl |
Total release size: 98.1 kB
Release files / linearjeph-1.2.0.tar.gz
| Download URL | linearjeph-1.2.0.tar.gz |
|---|---|
| Size | 54.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
322c8e7963911b36167531d9b60856a2b8dfc09849b132d8ad28adb533083e51
|
|
BLAKE2b-256 checksum How to use checksums |
6a25be219ae5e1a071966144bae55e0981a71f178d738e900a4100368d2b6733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / linearjeph-1.2.0-py3-none-any.whl
| Download URL | linearjeph-1.2.0-py3-none-any.whl |
|---|---|
| Size | 43.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65f4290eb7c17524e0b5f6648725b5ac1feffc3f3df1bbd0e710ea78eaf84c22
|
|
BLAKE2b-256 checksum How to use checksums |
b5ad66bf121ad577d2c0b8b70a34f156303d2a16624af7c9ca75592dd2b122c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for linearjeph 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.