pyarrow-unity
This library provides functions to convert Pyarrow schema to Unity Catalog schema.
Installation
pip install pyarrow-unity
Functions
model_unity_schema(schema) Converts a Pyarrow schema to a list of Unity Catalog columns.
Parameters:
- schema: The Pyarrow schema to convert.
Returns: A list of Column objects representing the Unity Catalog schema.
Example:
import pyarrow as pa
from pyarrow_unity.model import model_unity_schema
schema = pa.schema([
pa.field('col1', pa.int32(), nullable=True),
pa.field('col2', pa.string(), nullable=False),
pa.field('col3', pa.decimal128(10, 2), nullable=True)
])
columns = model_unity_schema(schema)
for column in columns:
print(f"Name: {column.name}, Type: {column.type_name}, Nullable: {column.nullable}")
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for pyarrow-unity 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyarrow_unity-0.1.0.tar.gz | 2.9 kB | Without provenance | Details for pyarrow_unity-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyarrow_unity-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyarrow_unity-0.1.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / pyarrow_unity-0.1.0.tar.gz
| Download URL | pyarrow_unity-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa9488391c3f5a85cc1426ff4c500bb42ce9d2a849af1094a78bbf2b6be80769
|
|
BLAKE2b-256 checksum How to use checksums |
f9d753315546fb8fe198288ca101dbf432e7c53c2e87173baa9f688e707f73a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / pyarrow_unity-0.1.0-py3-none-any.whl
| Download URL | pyarrow_unity-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1140d8abaea4d7d11830ec0a885ea5e018dedb06c50fb154fcf6145c1c80bbe1
|
|
BLAKE2b-256 checksum How to use checksums |
5d953af01122bb56edae78a10839f1d2625e66a188c8dbc031c94f5f9b1568fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for pyarrow-unity 0.1.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.
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.