Skip to main content

Manipulate cobol files from python

Project description

cobutils is a library to access data on files formated with COBOL from python programs.

The package includes ones executable to extract data from a COBOL file and another to create a file with COBOL formatted data:

$ ./cobextract.py
Usage: cobextract.py [OPTIONS] [FILE]
Extract cobol sequential data from FILE or standard input

cobextract.py: error: Record definition [-r|--reg] is required


$ ./cobcreate.py --help
Usage: cobcreate.py [OPTIONS] [CSVFILE]
Create a cobol sequential data from CSV FILE or standard input

Options:
  -h, --help           show this help message and exit
  -r FILE, --reg=FILE  read register from FILE
  -o FILE, --out=FILE  output FILE
  -q, --quiet          don't print status messages to stdout

The project code and bugtracker is hosted on Bitbucket.

Install

Using pip:

pip install cobutils

Os download and use setup

python setup.py install

Project details


Download files

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

Source Distribution

cobutils-0.2.7.tar.gz (7.4 kB view hashes)

Uploaded Source

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