Skip to main content

AWS Glue Toolkit

A streamlined command-line utility designed to simplify the AWS Glue development lifecycle.

Disclaimer: This is an independent, community-maintained project. It is not affiliated with, endorsed by, or sponsored by Amazon Web Services (AWS). AWS, AWS Glue, and related marks are trademarks of Amazon.com, Inc. or its affiliates.

Installation

Requires Python 3.11+. Install Docker for run, test, and gtk build --mode container; the Glue image is pulled on first use. Default gtk build uses host pip (--mode host).

pip install aws-glue-toolkit

Example

A Glue job is a directory with a pyproject.toml and a source tree. Given this layout:

my-glue-job/
  pyproject.toml
  src/
    __main__.py
  tests/
    test_example.py

Configure the job in pyproject.toml:

[project]
name = "my-glue-job"
version = "0.1.0"
dependencies = ["pandas>=2"]

[tool.aws-glue-toolkit]
glue_version = "5.1"
source = "src"
script = "__main__.py"
tests = "tests"

Then run:

cd my-glue-job
gtk build .
gtk run .
gtk test .

Configuration

Each job is a directory containing pyproject.toml. gtk reads the [project] and [tool.aws-glue-toolkit] fields in the table below. Other keys in the file are skipped. The source directory and entry script must exist before gtk runs.

Field Required Default Description
project.name yes — Job name; used in artifact file names
project.version no 0.0.0 Job version; used in artifact file names
project.dependencies no [] Direct dependencies (PEP 508: PyPI, file:, Git)
tool.aws-glue-toolkit.glue_version yes — Glue release; bundled pins for 5.0, 5.1, and 6.0
tool.aws-glue-toolkit.source yes — Source directory, relative to the job root
tool.aws-glue-toolkit.script yes — Entry script, relative to source
tool.aws-glue-toolkit.tests no tests Test directory, relative to the job root
tool.aws-glue-toolkit.dependencies no [] Extra PEP 508 strings merged after project.dependencies; recommended for relative file: paths

Commands

[JOB-DIR] is the job directory (default .) on build, run, and test.

Command Usage
build gtk build [JOB-DIR] [--mode host|container]
run gtk run [JOB-DIR] [--platform native|worker] [args...]
test gtk test [JOB-DIR] [--platform native|worker] [pytest args...]

Run gtk COMMAND --help for flags and behavior (for example gtk build --help).

For build --mode container, run, and test, gtk snapshots the host pip configuration for pip inside the container.

Build artifacts

Use gtk build to verify dependencies against Glue runtime pins. It writes two zips under the job directory:

File Glue parameter Contents
{name}-{version}.dependencies.zip --extra-py-files .py files under source, except the entry script
{name}-{version}.gluewheels.zip --additional-python-modules (Glue 5.0+) wheels/requirements.txt and *.whl per AWS Glue Appendix A

Exit codes

Documented failure codes follow the Berkeley sysexits convention in the 64–78 band:

Code Meaning
65 Pip or dependency resolution failure (build, run, or test)
66 pyproject.toml missing or unreadable
69 Docker not available or could not be started
70 build only: zip or other packaging failure on the host
78 Invalid pyproject.toml, job layout (missing source, script, or tests directory), unsupported Glue version, or invalid dependency

Success is 0; unhandled errors are 1. build uses the codes above. run and test return the container command’s exit code when pip install and the main command succeed (pytest exit code 1 means failing tests).

License

This project is licensed under the MIT License — see the LICENSE file for details.

Metadata

Release files for aws-glue-toolkit 0.6.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 aws-glue-toolkit 0.6.0
File Size Uploaded Provenance Actions
aws_glue_toolkit-0.6.0.tar.gz 28.7 kB With provenance Details for aws_glue_toolkit-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-glue-toolkit 0.6.0
File Interpreter ABI Platform Actions
aws_glue_toolkit-0.6.0-py3-none-any.whl Python 3 none any Details for aws_glue_toolkit-0.6.0-py3-none-any.whl

Total release size: 64.0 kB

Release files / aws_glue_toolkit-0.6.0.tar.gz

Download URL aws_glue_toolkit-0.6.0.tar.gz
Size 28.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f20a33059b3f4e10157ad978b9436b39e758323ca03a336d69f06ba3198fcb17
BLAKE2b-256 checksum
How to use checksums
62c7ca7b85203afd38d780435cbb22126f967a66dcdb6b7130a58fbc5f1314c8
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 Nov 11, 2026.

Transparency log

Release files / aws_glue_toolkit-0.6.0-py3-none-any.whl

Download URL aws_glue_toolkit-0.6.0-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd8ff04c3fbfc9444a6bc7f76d4da7bfcb414b56e9bb15636aced680f0f17e44
BLAKE2b-256 checksum
How to use checksums
703c6fb72e00e3892f05d13be69426e49ccd93335acc35156c941f659abf5f5c
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 Nov 11, 2026.

Transparency log

Security for aws-glue-toolkit 0.6.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aws_glue_toolkit-0.6.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 Nov 11, 2026.

Transparency log

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