Skip to main content

kestra-ion

The kestra-ion package provides an easy-to-use interface for reading and writing Amazon Ion data files to integrate this data format into Python applications, particularly for analysis with libraries like pandas or polars.

Features

  • Read Amazon Ion files: Convert Ion data into Python data structures.
  • Pandas Integration: Easily convert Ion data into pandas DataFrames for further analysis.
  • Simple API: A minimalistic and easy-to-understand API.

Installation

To install kestra-ion, you can use pip:

pip install kestra-ion

Ensure that you have Python 3.6 or later installed. This package depends on amazon.ion library, which will be installed during the installation process.

Usage Example

Here's a quick example to get you started with reading Amazon Ion data and converting it into a pandas DataFrame:

from kestra_ion import read_ion
import pandas as pd
import requests

file_path = "employees.ion"
url = "https://huggingface.co/datasets/kestra/datasets/resolve/main/ion/employees.ion"
response = requests.get(url)
if response.status_code == 200:
    with open(file_path, "wb") as file:
        file.write(response.content)
else:
    print(f"Failed to download the file. Status code: {response.status_code}")


data = read_ion(file_path)
df = pd.DataFrame(data)
print(df.info())

This example reads data from an Ion file, converts it into a list of dictionaries, and then creates a pandas DataFrame from this list. The output includes details about the types of columns and general information about the DataFrame.

Contributing

Contributions to kestra-ion are welcome! Here are a few ways you can help:

  • Report bugs and issues.
  • Suggest new features or enhancements.
  • Improve documentation.
  • Submit pull requests to address known issues.

License

kestra-ion is distributed under Apache 2.0. See the LICENSE file in the GitHub repository for more details.

Contact

If you have specific questions about the kestra-ion package, feel free to reach out via GitHub issues.

Metadata

Release files for kestra-ion 0.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 kestra-ion 0.0.2
File Size Uploaded Provenance Actions
kestra_ion-0.0.2.tar.gz 7.4 kB Without provenance Details for kestra_ion-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kestra-ion 0.0.2
File Interpreter ABI Platform Actions
kestra_ion-0.0.2-py3-none-any.whl Python 3 none any Details for kestra_ion-0.0.2-py3-none-any.whl

Total release size: 15.6 kB

Release files / kestra_ion-0.0.2.tar.gz

Download URL kestra_ion-0.0.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
47437d484c896379edd223013ffd8933be4ce22fd3f21485736a9fa0a4478957
BLAKE2b-256 checksum
How to use checksums
208161f176fd3f73b84f0b39eadffb2a11bae5185294629997388bb8ce729e07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / kestra_ion-0.0.2-py3-none-any.whl

Download URL kestra_ion-0.0.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6a133afad264cbca2bf4aa9c0eb8dc0fe70abfdbb61ed8c41aed8588d65103d
BLAKE2b-256 checksum
How to use checksums
99d1cbe37d6d94894fd9b49da700cdb40ff8cb1ed74a06f09ec5380a3f6de56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for kestra-ion 0.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

0.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