Skip to main content

GCS XML CSV Transformer is a Python library designed to convert XML files stored in Google Cloud Storage (GCS) into CSV files. This library leverages the Google Cloud Storage client to facilitate the download and upload processes.

Features

  1. Downloads XML files from a specified GCS bucket.
  2. Converts the XML data into CSV format.
  3. Uploads the resulting CSV file back to the specified GCS bucket.

Requirements

  1. Python 3.x
  2. Google Cloud Storage client library

Installation Install the package via pip:

pip install gcs_xml_csv_transformer

Dependencies

Make sure to have these installed using:

pip install google-cloud-storage

Example Usage:

from gcs_xml_csv_transformer import gcs_xml_csv_transformer

gcs_xml_csv_transformer(
    BUCKET_NAME='your-bucket-name',
    XML_FILE_NAME='path/to/your/file.xml',
    CSV_FILE_NAME='path/to/your/file.csv'
)

Parameters:

  1. BUCKET_NAME (str): The name of the GCS bucket.
  2. XML_FILE_NAME (str): The name of the XML file in the GCS bucket.
  3. CSV_FILE_NAME (str): The name of the CSV file to be created in the GCS bucket.

Acknowledgements

  1. Google Cloud Storage Python Client Library

For any issues or questions, please open an issue in this repository.S

Metadata

Release files for GCS-xml-csv-transformer 0.0

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

Source distribution (sdist)

Source distribution for GCS-xml-csv-transformer 0.0
File Size Uploaded
GCS_xml_csv_transformer-0.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GCS-xml-csv-transformer 0.0
File Interpreter ABI Platform
GCS_xml_csv_transformer-0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / GCS_xml_csv_transformer-0.0.tar.gz

Download URL GCS_xml_csv_transformer-0.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9574ed02df49f202c66f5773eac6c2f8cef3b19a0f8c246df34cf3ceee85deab
BLAKE2b-256 checksum
How to use checksums
1d514ecdd26b5c1bec44dcd6a37c7f3ab281d1228b1140bc85a37b41ea85c63e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / GCS_xml_csv_transformer-0.0-py3-none-any.whl

Download URL GCS_xml_csv_transformer-0.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fec9c3cf9d0cd972a6757b8c980e717630060b4f0123518d18816e6d321e5ef8
BLAKE2b-256 checksum
How to use checksums
91da52c3c6444d3e937406829dfc13e4a22f340a887116737cee33102d2d73d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0 This release

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