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 details)

Uploaded Source

File details

Details for the file cobutils-0.2.7.tar.gz.

File metadata

  • Download URL: cobutils-0.2.7.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for cobutils-0.2.7.tar.gz
Algorithm Hash digest
SHA256 54cd98b9f946597500448ad7c5740a90ab5126037bba3b9421c688160276b074
MD5 6966342313bffa4d5878bef89c655965
BLAKE2b-256 7950afeadf7f878f69297285da9f10ff10c8b558c9e7ecd8cbae7123b92287f4

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