Skip to main content
### BigSchema

This library is meant as a simple way to generate the big query boilerplate
given a simple yaml based schema.


#### CLI Tool

The library comes with a simple command line tool that takes a source file,
an optional destination directory default is ```./schema/``` and an output
format and transforms the given yaml specifications to BigQuery compliant
schema in the desired output format.

```bash
$ bigschema --help

Usage: bigschema [OPTIONS] SOURCE [DESTINATION]
Options:
-f, --output-format [java|json]
Which format to output the data in? Default
is JSON
-o, --overwrite BOOLEAN Should we overwrite the data in existing
file? Default is FALSE
--help Show this message and exit.

```


#### File Specification

```yaml
spec-mode: "compact" | "verbose"

---------------------------------------------------------------------------------
spec-mode: "verbose"
--------------------

table:
type: "table"
fields:
- name:
type: "integer" | "float" | "string" | "timestamp" | "boolean" | "bytes" | "record_name"
mode: "nullable" | "repeated" | "required"

record:
type: "record"
fields:
- name:
type: "integer" | "float" | "string" | "timestamp" | "boolean" | "bytes" | "record_name"
mode: "nullable" | "repeated" | "required"


----------------------------------------------------------------------------------
spec-mode: "compact"
--------------------

table:
type: table
fields:
- name_of_column, type_of_column, mode_of_column

record:
type: record
fields:
- name_of_column, type_of_column, mode_of_column
```

Metadata

Release files for bigschema 1.0.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 bigschema 1.0.1
File Size Uploaded Provenance Actions
bigschema-1.0.1.tar.gz 6.3 kB Without provenance Details for bigschema-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bigschema 1.0.1
File Interpreter ABI Platform Actions
bigschema-1.0.1-py3-none-any.whl Python 3 none any Details for bigschema-1.0.1-py3-none-any.whl

Total release size: 17.3 kB

Release files / bigschema-1.0.1.tar.gz

Download URL bigschema-1.0.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
866e6af83cb254b441c3fae0a93fa9361c580a2f6c3cd3776b1d4db6a2742f72
BLAKE2b-256 checksum
How to use checksums
d890ad1927cdfc97c97a7b26b5e40425e977b331e0af1483480e73b069929be5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bigschema-1.0.1-py3-none-any.whl

Download URL bigschema-1.0.1-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14d2bdd2e80ecae48842db6bd51a49371b79d978086ce79103db0faa6533fe76
BLAKE2b-256 checksum
How to use checksums
0e668ea91ac28d95b7ae341488f4719d59a77094ef96d8317e6e72fc664974e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for bigschema 1.0.1

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.

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