Skip to main content

This module provides a Python interface into various z/OS utilities

Project description

zos-util

This module provides a Python interface into various z/OS utilities

API

See here for the API

Example

import zos_util
import tempfile
f = tempfile.NamedTemporaryFile()
# To specify a file with IBM-1047 code set
fpath = f.name
zos_util.chtag(fpath, 1047)
 
# To specify a file with ISO8859-1 code set
zos_util.chtag(fpath)
tag_info = zos_util.get_tag_info(fpath)
print(f"CCSID:{tag_info[0]}, TXT_FLAG:{tag_info[1]}")
 
# set to tag_mixed mode
zos_util.tag_mixed(fpath)
tag_info = zos_util.get_tag_info(fpath)
print(f"CCSID:{tag_info[0]}, TXT_FLAG:{tag_info[1]}")
 
# remove the tag from the file
zos_util.untag(fpath)
tag_info = zos_util.get_tag_info(fpath)
print(f"CCSID:{tag_info[0]}, TXT_FLAG:{tag_info[1]}")

Build Instruction

python3 ./setup install

Test Instruction

cd test
python3 ./tag_test.py

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

zos_util-1.0.1.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file zos_util-1.0.1.tar.gz.

File metadata

  • Download URL: zos_util-1.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.5

File hashes

Hashes for zos_util-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22b76503da8d1bdc7a5ea6f2abf72064eff74d17369ab529270de41e0437a0b1
MD5 2e6dd9cba9a2647d80dfc6f618896775
BLAKE2b-256 f4ac50c67356165db4ae06a2b838a82c914923fc5919c193f9f4873a81ab7df9

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