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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| GCS_xml_csv_transformer-0.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|