A Python library to convert COBOL ebcdic file to CSV format
Project description
pycobol2csv
pycobol2csv is a Python library to convert COBOL ebcdic file to CSV format. The package is built to cater for advanced features in COBOL copybooks such as OCCURES x TIMES.
The CSV file is RDBMS friendly and all headers are ready to be used as database column names. CSV conversion is controlled by config file in csv_config.json
Install the python module:
pip install pycobol2csv
To use the module:
from pycobol2csv import convert_cobol_file
convert_cobol_file(copybook_file, data_file, output_file, config_file, codepage)
- copybook_file: copybook filename
- data_file: data filename
- output_file: output csv filename
- config_file: csv configuration filename, refer to csv_config.json
- codepage: codepage for edibic, refer to https://docs.python.org/3.7/library/codecs.html#standard-encodings for details
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycobol2csv-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pycobol2csv-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb17dfc13c8e04cf9a4eed5cac2759c4e0c09e2115da51782d3a8b502e7d4a69
|
|
| MD5 |
509d5c10ee2deeb694223f9c7312f69c
|
|
| BLAKE2b-256 |
8f54400980fc1f2d6907e225212edab4733856686cc90097b59db0fa9c43ae4e
|