Skip to main content

jevgram

jevgram is a small command-line tool that estimates whether a document was primarily written by AI or by a human using JEV. It is intended as a lightweight, scriptable alternative for occasional authorship checks.

Supported inputs

  • Plain text and source-like text files, such as .txt, .md, .tex, and similar files
  • PDF files
  • DOCX files

PDF extraction uses pypdf. DOCX extraction is handled directly from the Word XML contained in the .docx file.

Install

With pipx:

pipx install jevgram

With uvx:

uvx jevgram --help

API key

jevgram calls the TypeSafe JEV API. Set one of these environment variables before running it:

export TYPESAFE_API_KEY="your-key"
# or
export JEV_API_KEY="your-key"

You can also pass a key directly with --api-key, but environment variables are safer for shell history and scripts.

Usage

jevgram document.txt
jevgram paper.pdf
jevgram manuscript.docx --json

By default, long files are sampled down to 32,000 characters using the beginning, middle, and end of the extracted text. To send the whole extracted document, use:

jevgram document.txt --max-chars 0

To inspect extraction without calling JEV:

jevgram document.pdf --extract-only

To inspect the request body without calling JEV:

jevgram document.txt --dump-request

Output

Human-readable output includes the predicted class, AI probability, human probability, confidence when provided by JEV, and whether the input was truncated. --json produces machine-readable output for scripts.

Notes

Authorship detection is probabilistic. Treat the result as one signal, not as proof. Results can vary with document length, extraction quality, formatting, and how much of the document is sent to JEV.

Metadata

Release files for jevgram 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jevgram 0.1.0
File Size Uploaded Provenance
jevgram-0.1.0.tar.gz 7.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jevgram 0.1.0
File Interpreter ABI Platform
jevgram-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / jevgram-0.1.0.tar.gz

Download URL jevgram-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
96e0049ed24cc948cb38027fc5292087b6d8ada142ed52bf1dbeee72c06f069a
BLAKE2b-256 checksum
How to use checksums
b65b1f35b4db5f631a69a79954e82e296d254ed74530d79fb7a311e459300d3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / jevgram-0.1.0-py3-none-any.whl

Download URL jevgram-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7560b8b5473a36289d452099aa0ebb8233eaea4b9642e6d92a4f8c6a4f10eeac
BLAKE2b-256 checksum
How to use checksums
3e9802453eea9b8241cda194d195038341d6c0ab3ab7b58eb2173607fda2423e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Security for jevgram 0.1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page