Skip to main content

awsglue

The awsglue Python package contains the Python portion of the AWS Glue library. This library extends PySpark to support serverless ETL on AWS.

Note that this package must be used in conjunction with the AWS Glue service and is not executable independently. Many of the classes and methods use the Py4J library to interface with code that is available on the Glue platform. This repository can be used as a reference and aid for writing Glue scripts.

While scripts using this library can only be run on the AWS Glue service, it is possible to import this library locally. This may be helpful to provide auto-completion in an IDE, for instance. To import the library successfully you will need to install PySpark, which can be done using pip:

  pip install pyspark

Content

This package contains Python interfaces to the key data structures and methods used in AWS Glue. The following are some important modules. More information can be found in the public documentation.

GlueContext

The file context.py contains the GlueContext class. GlueContext extends PySpark's SQLContext class to provide Glue-specific operations. Most Glue programs will start by instantiating a GlueContext and using it to construct a DynamicFrame.

DynamicFrame

The DynamicFrame, defined in dynamicframe.py, is the core data structure used in Glue scripts. DynamicFrames are similar to Spark SQL's DataFrames in that they represent distributed collections of data records, but DynamicFrames provide more flexible handling of data sets with inconsistent schemas. By representing records in a self-describing way, they can be used without specifying a schema up front or requiring a costly schema inference step.

DynamicFrames support many operations, but it is also possible to convert them to DataFrames using the toDF method to make use of existing Spark SQL operations.

Transforms

The transforms directory contains a variety of operations that can be performed on DynamicFrames. These include simple operations, such as DropFields, as well as more complex transformations like Relationalize, which flattens a nested data set into a collection of tables that can be loaded into a Relational Database. Once imported, transforms can be invoked using the following syntax:

    TransformClass.apply(args...)

Additional Resources

  • The aws-glue-samples repository contains sample scripts that make use of awsglue library and can be submitted directly to the AWS Glue service.

  • The public Glue Documentation contains information about the AWS Glue service as well as addditional information about the Python library.

Metadata

Release files for awsglue-local 1.0.2

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

Source distribution (sdist)

Source distribution for awsglue-local 1.0.2
File Size Uploaded Provenance Actions
awsglue-local-1.0.2.tar.gz 30.9 kB Without provenance Details for awsglue-local-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for awsglue-local 1.0.2
File Interpreter ABI Platform Actions
awsglue_local-1.0.2-py3-none-any.whl Python 3 none any Details for awsglue_local-1.0.2-py3-none-any.whl

Total release size: 80.7 kB

Release files / awsglue-local-1.0.2.tar.gz

Download URL awsglue-local-1.0.2.tar.gz
Size 30.9 kB
Tags Source
SHA-256 checksum
How to use checksums
219ae13756c8608ca89d5f17f834e698259d83e52f1daf23b481539ac55e6a79
BLAKE2b-256 checksum
How to use checksums
802f2c2e674114493e8d6db3dd8da012c287432ee642fc6345c8b25ed51de13b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.7 Darwin/19.5.0

Release files / awsglue_local-1.0.2-py3-none-any.whl

Download URL awsglue_local-1.0.2-py3-none-any.whl
Size 49.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
620ebb29d5aa3c36da0302a6e901e2d1d3e8ec07fc8d27fccfa9aa28582bb3b5
BLAKE2b-256 checksum
How to use checksums
6d7a3365a76d52bd0b82464bdb11ed842d412d6f75f04c99465218c1840ffab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.7 Darwin/19.5.0

Security for awsglue-local 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

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