Skip to main content

tdtypes

PyPi MIT License Python3.7+

tdtypes is a Python library provides an abstraction layer for Teradata Database objects and utilities. By default It uses teradatasql, but generally, it should be possible to use any DB API compliant library.

NOTES:

  • This started as a personal project, but it is being made available as an open-source library in the hope that someone else might find it useful. This library does not come with any kind of warranty.
  • Python2 series is no longer supported.
  • Although no longer the default, but older teradata and pyodbc modules can still be used.
  • This library is not endorsed by Teradata Inc.

Installation

Use Python's pip utility to install tdtypes.

$ python -m pip install -U tdtypes

Customizations

It is possible to customize how tdtypes library obtains a raw database connection. This might be helpful, for example, to use DB API modules other than teradatasql, or get authentication information in ways other than the default implementation. This can be done by creating tdconn_site.py module and place it in your PYTHONPATH. Please consult tdconn_default.py module for guidance on creating your own custom module.

The default implementation allows applications to either pass connection information as a parameter or get connection information from TDCONN environment variable at run-time. Either way, connection information consists of a valid JSON string as expected by teradatasql module.

Another customization allows how tdtypes library searches for and obtains Table and View XML definitions. The default implementation uses DBC.TablesV for searching, and SHOW ... IN XML SQL statement to get XML definition. Placing tdfinder_site.py in PYTHONPATH will override the default search and instantiation behaviors. To create a custom tdfinder_site.py module, please consult tdfinder_default.py.

Support

Report bugs using issue tracker. I'll try to provide a fix as soon as I can. If you have already developed a fix, send me a pull request.

Contributions

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

Metadata

Release files for tdtypes 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for tdtypes 0.5.1
File Interpreter ABI Platform Actions
tdtypes-0.5.1-py3-none-any.whl Python 3 none any Details for tdtypes-0.5.1-py3-none-any.whl

Release files / tdtypes-0.5.1-py3-none-any.whl

Download URL tdtypes-0.5.1-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e29aeff1b24dde073788ac248db7b4fb5174f3f3e22668503d82921a2676e47
BLAKE2b-256 checksum
How to use checksums
dc6044a2b64a13a34cccfa61a90b6cdbd15752591a5dc03c4ca4a38f62857a26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Security for tdtypes 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page