Skip to main content
https://travis-ci.org/AtheonAnalytics/trext.svg?branch=master https://badge.fury.io/py/TRExt.svg https://coveralls.io/repos/github/AtheonAnalytics/trext/badge.svg?branch=master Documentation Status

TRExt

TRExt is short for Tableau Refresh Extract (Externally).

TRExt is a means to refresh a Tableau Extract (.tde files) externally so the Tableau Server can serve visual content without having to compete for resources while refreshing extracts internally.

Dependencies

The main dependencies are:

The repo also supports

Installation

You need pip to install TRExt.

You can install the latest version of the package straight from PyPI using:

$ pip install trext

You can also directly install from GitHub directly using:

$ pip install git+git@github.com:AtheonAnalytics/trext.git

or

$ pip install git+https://github.com/AtheonAnalytics/trext.git

Usage

Create an extract

>>> import trext
>>> tde = trext.Extract()
>>> connection_string = "appropriate db connection string"
>>> tde.create("db.schema.table", conn_string=connection_string, dbtype='exasol')
Created!
>>> tde.location
/temp/extract.tde

Publish to Tableau Server (overwrites existing extract)

>>> tableau_auth_details = ("username", "password")
>>> publish_details = ("site_content_url", "project_name")
>>> tde.publish("tableau server address", auth=tableau_auth_details, params=publish_details)
Published!

Refreshing an extract is now replaced with creating and publishing an extract. You can use this is conjunction with TabAuto (not yet open source) or with Tableau’s server-client-python library to get the datasource names that need refreshing.


Documentation

More detailed documentation is available at http://trext.rtfd.io


Disclaimer

TRExt is still a Work-in-Progress

I wrote most of this codebase when Tableau SDK was released for Tableau 8 and never got around to moving it from a POC/local copy to open source, so this a rough-and-ready type of library.

This is fair warning to anyone who uses this library: there will be bugs, bad documentation and no tests for a short while till I fix it up. So please use with care and if you find issues submit a bug report or a PR.

If you want to contribute and add tests, better documentation, new connectors, cleaner interface etc, please do and submit a PR.

Oh and don’t forget to add yourself to AUTHORS

Note: I have tested TRExt only on a Linux distro, so if you find any issues on other Operating Systems please do create a bug report and I can try to fix it, but if you do know how to fix it please also submit a PR.

Download files

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

Source Distribution

TRExt-0.2.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

TRExt-0.2.1-py2-none-any.whl (11.3 kB view details)

Uploaded Python 2

File details

Details for the file TRExt-0.2.1.tar.gz.

File metadata

  • Download URL: TRExt-0.2.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TRExt-0.2.1.tar.gz
Algorithm Hash digest
SHA256 dacd2f28f13d4e2f451068e2437956ea49cc7222f9aae9872feb0f786fee110a
MD5 ac296c20e2149e0f029677347dfc0b4f
BLAKE2b-256 2040c8bfa2444cb223b37f7ecea78070a718bb913280751342df592540e4fcd3

See more details on using hashes here.

File details

Details for the file TRExt-0.2.1-py2-none-any.whl.

File metadata

File hashes

Hashes for TRExt-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 da1057078ad2b25e825d69629025bdd5f36ec57a74eaab82cc887da3d0ad7b46
MD5 0d160383e839e3f3b3b55c1e6659f7f3
BLAKE2b-256 b0f8a0d08f4f1c1160eaebd37ebbbc95c089c798d08b8cd03dbfa0ed3bf6e40c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

Supported by

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