Skip to main content

A orjson wrapper for use in Apache Airflow

Project description

airflow-orjson-serialization

A fast and simple drop-in JSON serialization module for Apache Airflow, using orjson.

🚀 Features

  • Drop-in replacement for Airflow's JSON handling
  • Based on orjson for maximum performance
  • Easy integration via airflow_local_settings.py

🔧 Installation

pip install airflow-orjson-serialization

⚙️ Usage

After installing, run the following command to generate your airflow_local_settings.py:

airflow-orjson init

Optionally specify a custom home directory:

airflow-orjson init -H /path/to/your/airflow/home

This will create a file like:

from airflow_orjson_serialization.json import ORJson
json = ORJson()

Make sure this file is located in $AIRFLOW_HOME/airflow_local_settings.py or set via:

export AIRFLOW__CORE__AIRFLOW_LOCAL_SETTINGS=/your/path/airflow_local_settings.py

Then restart your Airflow components

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow_orjson_serialization-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflow_orjson_serialization-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file airflow_orjson_serialization-0.1.0.tar.gz.

File metadata

File hashes

Hashes for airflow_orjson_serialization-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77c6f9403f4bd31ba2b6e86abf59f8f60859430ab9edb447bb6014f9cdfb2dae
MD5 81d1806184dfc80e993d9e4ba03a956f
BLAKE2b-256 a17c0eed3224787620b16f1d4bc6a8a3604b7b6c24915b80e344997c3bde2f8f

See more details on using hashes here.

File details

Details for the file airflow_orjson_serialization-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_orjson_serialization-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d920698dda5b2f11c06d0bb80feca64fc15a9302d7547858e249247e18975ee0
MD5 c9da9dc8c892f90ffcae28ea6e68e566
BLAKE2b-256 207aa37456ddb89b8c0ffb6e3d394007178c416ad5e8ae74320f60a4ee14acd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page