jcl-parser
Python library for parsing IBM z/OS JCL (Job Control Language) into structured Job, Step, and DD objects. Supports PROC expansion, validation, lint rules, SQL detection, and dataset lifecycle analysis.
Install
pip install -e ".[dev]"
Requires Python 3.10+. No runtime dependencies.
Quick Start
import jclparser
job = jclparser.parse_jcl(source)
print(job.name)
print(job.steps[0].program)
CLI:
jcl-parser FILE steps # list all steps
jcl-parser FILE --validate # validate JCL
jcl-parser FILE lint # run lint rules
jcl-parser FILE --json # full parse result as JSON
Commands
# Tests
pytest
pytest -m unit
# Lint / format / type-check
ruff check . && ruff format .
mypy jclparser/
# Vendor sync (after changes to jclparser/) — rm first: plain `cp -r` nests
# into dest/jclparser/jclparser/ and leaves stale files when dest exists
rm -rf ../backend/_vendor/jcl-parser/jclparser && cp -r jclparser/ ../backend/_vendor/jcl-parser/jclparser
Documentation
Full reference: .okf/index.md
License
GNU Affero General Public License v3.0 or later — Copyright © 2026 Samuel Dion. See LICENSE.
Metadata
Release files for jcl-parser 2.1.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 |
|---|---|---|---|---|
| jcl_parser-2.1.0.tar.gz | 200.5 kB | With provenance | Details for jcl_parser-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jcl_parser-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for jcl_parser-2.1.0-py3-none-any.whl |
Total release size: 434.4 kB
Release files / jcl_parser-2.1.0.tar.gz
| Download URL | jcl_parser-2.1.0.tar.gz |
|---|---|
| Size | 200.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b4eb2c76188ba0b9edc359145c5cf41e8d40170d7a5dc662373149dd9dba25d
|
|
BLAKE2b-256 checksum How to use checksums |
addfa73a68720337100d5afc88caeb86aed2bc44417610a23d5b920f88e5fc23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / jcl_parser-2.1.0-py3-none-any.whl
| Download URL | jcl_parser-2.1.0-py3-none-any.whl |
|---|---|
| Size | 233.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3e9db1d8919853fce3358b1e815f1f609aaf67cc14a6194d5375e376d788dcc
|
|
BLAKE2b-256 checksum How to use checksums |
dc199d3e6198cec04a021275579210197d3d27f48cfac39f709dc2ca877c6436
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for jcl-parser 2.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for jcl_parser-2.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA 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.