Skip to main content

No project description provided

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GCS_xml_csv_transformer-0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

GCS_xml_csv_transformer-0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file GCS_xml_csv_transformer-0.0.tar.gz.

File metadata

  • Download URL: GCS_xml_csv_transformer-0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for GCS_xml_csv_transformer-0.0.tar.gz
Algorithm Hash digest
SHA256 9574ed02df49f202c66f5773eac6c2f8cef3b19a0f8c246df34cf3ceee85deab
MD5 839b975056a8f1cb638e90f89713622a
BLAKE2b-256 1d514ecdd26b5c1bec44dcd6a37c7f3ab281d1228b1140bc85a37b41ea85c63e

See more details on using hashes here.

File details

Details for the file GCS_xml_csv_transformer-0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for GCS_xml_csv_transformer-0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fec9c3cf9d0cd972a6757b8c980e717630060b4f0123518d18816e6d321e5ef8
MD5 e3b2a5565509ede4d5acf9d28150c527
BLAKE2b-256 91da52c3c6444d3e937406829dfc13e4a22f340a887116737cee33102d2d73d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page