Skip to main content

A Collection of assorted Teradata Tools

Project description

PyPi License

tdtools is a collection of tools and utilities I developed for my personal use. I am making these tools open-source in the hope that someone else may find them useful as well.

NOTE: These tools are not endorsed by Teradata Inc.

Requirements

Since I always try to use latest Python, you may find that some of the features require pretty recent version of Python. As of this writing, my installation consists of Python 3.5. If there is a strong interest in supporting earlier version of Python that requires me making minimal changes, I’ll consider supporting earlier Python versions. However, I do suggest using the latest version of Python.

There is a dependency on teradata python package. However, it’ll be downloaded automatically if you install using standard python installer pip.

Installation

Use Python’s standard pip utility to install tdtools. Although tdtools doesn’t have too many dependecies, you may choose to install in an virtualenv.:

$ pip install tdtools

Configuration

No configuration is required except setting up the needed ODBC connections. All scripts that are part of tdtools accept arbitrary ODBC connection strings using --tdconn parameter.

If more flexibility is needed, for example, to use Teradata REST APIs, it can be done by providing sqlcsr_site.py in your PYTHONPATH. Have a look at sqlcsr.py module to get an idea about what can be overriden in sqlcsr_site.py.

Tools

All tools are command-line utilities that are automatically installed when tdtools is installed using pip. What follows is a brief description of each tool. Each tool support --help or -h command-line option that shows detailed description of options supported.

  • dbhr: Displays Teradata database hierarchy.

  • vwref: Display (or save) view hierarchy.

  • tptload: Load using and/or generate TPT script.

All show* utilities generate DDLs for different types of Teradata objects.

  • showdb: Teradata database or user

  • showgrant: Teradata grants to user/role

  • showprof: Teradata profile

  • showrole: Teradata role

  • showtvm: Wrapper around Teradata SHOW <object> command

  • showzone: Teradata zone

Support:

If you encounter an issue, report it using issue tracker. I’ll try to provide a fix as soon as I can. If you already have a fix, send me a pull request.

Contributions:

Feel free to fork this repository and enhance in a way that you see fit. If you think your changes will benefit more people, send me a pull request.

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

tdtools-0.3.3.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tdtools-0.3.3-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file tdtools-0.3.3.tar.gz.

File metadata

  • Download URL: tdtools-0.3.3.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tdtools-0.3.3.tar.gz
Algorithm Hash digest
SHA256 1b5961b90691635f2e5234a031c9129ecc28be5243b385bde7d5eef57ec462c4
MD5 61bb15ac9d949e6637c2c4fbcb8d8bcb
BLAKE2b-256 3cde1dcc17ee088385bab0baf3519bc1e701b88f200b574f1814e5a281a2b012

See more details on using hashes here.

File details

Details for the file tdtools-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tdtools-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 552de70c0daa09d4879ef7fe302ad52bd62840913189ef06d9c0da984ad87e48
MD5 665632ada2ccbbd72aa8773ecc322807
BLAKE2b-256 20c8f119280c82e92f7a39b0a1252e1e07a293f82a5dd1122b2f9bc30a98931c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page