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
- Downloads XML files from a specified GCS bucket.
- Converts the XML data into CSV format.
- Uploads the resulting CSV file back to the specified GCS bucket.
Requirements
- Python 3.x
- 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:
- BUCKET_NAME (str): The name of the GCS bucket.
- XML_FILE_NAME (str): The name of the XML file in the GCS bucket.
- CSV_FILE_NAME (str): The name of the CSV file to be created in the GCS bucket.
Acknowledgements
- 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9574ed02df49f202c66f5773eac6c2f8cef3b19a0f8c246df34cf3ceee85deab |
|
MD5 | 839b975056a8f1cb638e90f89713622a |
|
BLAKE2b-256 | 1d514ecdd26b5c1bec44dcd6a37c7f3ab281d1228b1140bc85a37b41ea85c63e |
File details
Details for the file GCS_xml_csv_transformer-0.0-py3-none-any.whl
.
File metadata
- Download URL: GCS_xml_csv_transformer-0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fec9c3cf9d0cd972a6757b8c980e717630060b4f0123518d18816e6d321e5ef8 |
|
MD5 | e3b2a5565509ede4d5acf9d28150c527 |
|
BLAKE2b-256 | 91da52c3c6444d3e937406829dfc13e4a22f340a887116737cee33102d2d73d8 |