Skip to main content

Avro to Bigquery

CI pipeline status Contributor Covenant

About The Project

Avro to bigquery is a simple project to create a bigquery schema from an avro schema.

Getting Started

Installation`

pip install avro-to-bigquery

Usage

With avro_schema.avsc:

{
    "type": "record",
    "name": "User",
    "namespace": "example.avro",
    "fields": [
        {"name": "favorite_number", "type": "int", "doc": "Favorite number"}
    ]
}
>>> import json
>>> from pathlib import Path
>>> from avro_to_bigquery import convert_schema
>>> schema = json.loads(Path("avro_schema.avsc").read_text())
>>> print(convert_schema(schema))
(SchemaField('favorite_number', 'INTEGER', 'NULLABLE', 'Favorite number', (), ()),)

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. For detailed contributing guidelines, please see https://github.com/wayfair-incubator/avro-to-bigquery/blob/main/CONTRIBUTING.md

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/wayfair-incubator/avro-to-bigquery/

Release files for avro-to-bigquery 0.3.1

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

Source distribution (sdist)

Source distribution for avro-to-bigquery 0.3.1
File Size Uploaded
avro-to-bigquery-0.3.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avro-to-bigquery 0.3.1
File Interpreter ABI Platform
avro_to_bigquery-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / avro-to-bigquery-0.3.1.tar.gz

Download URL avro-to-bigquery-0.3.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3d520362d356cce2c277cfe7f0a29ddebab710a8f5d19b6079a4c858d4b23d1d
BLAKE2b-256 checksum
How to use checksums
f7dfafb0030000433e8634932ef86b300b6ed132e8341eeaaca74b434c5beb2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / avro_to_bigquery-0.3.1-py3-none-any.whl

Download URL avro_to_bigquery-0.3.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4852033dac92d25accbd0de4d01f2a3bef8f8b8edb9a51d17126f9e62800e347
BLAKE2b-256 checksum
How to use checksums
50888568d4c55b1ad25192911eb99d80cf6363938cb13bd43cb1b8c28fe29f64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.2.0

2 release files

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