Skip to main content

Singer tap for extracting data from the Tableau API

Project description

tap-tableau

This is a Singer tap that produces JSON-formatted data from the Tableau REST API following the Singer spec.
Although it currently relies on this API, the intention will be to move over to the Metadata API.

Stream Replication Key Replication Strategy
Connections id FULL
Datasources id INCREMENTAL
Groups id FULL
Permissions id FULL
Projects id FULL
Schedules id FULL
Tasks id FULL
Users id FULL
Workbooks id INCREMENTAL

Quick start

  1. Install

    > virtualenv -p python3 venv
    > source venv/bin/activate
    > pip install tap-tableau
    
  2. Create the config file, either (token, token_name) or (username, password) must be specified for authentication.

    {
       "token_name": "My Tableau API access token",
       "token": "abcdefg12345==",
       "site_id": "my_tableau_site",
       "host": "https://my_tableau_site.com",
       "start_date": "2021-01-01T00:00:00Z"
    }
    
  3. Run discovery to generate the catalog

    tap-tableau --config config.json --discover > catalog.json
    
  4. In the catalog.json file, select the streams to sync

    Each stream in the catalog.json file has a "schema" entry. To select a stream to sync, add "selected": true to that stream's "schema" entry. For example, to sync the datasources stream:

    ...
    "tap_stream_id": "datasources",
    "schema": {
      "selected": true,
      "schema": {
        "updated_at": {
          "format": "date-time",
          "type": [
            "null",
            "string"
          ]
        }
    ...
    
  5. Run the application

    tap-tableau can be run with:

    tap-tableau --config config.json --catalog catalog.json
    

    To include a state file:

    tap-tableau --config config.json --catalog catalog.json > state.json
    tail -1 state.json > state.json.tmp && mv state.json.tmp state.json
    

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

tap-tableau-0.0.3.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

tap_tableau-0.0.3-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file tap-tableau-0.0.3.tar.gz.

File metadata

  • Download URL: tap-tableau-0.0.3.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for tap-tableau-0.0.3.tar.gz
Algorithm Hash digest
SHA256 63f6b82b5242aaaba1e24af4a36734d10984e0bb2649a69378e5fd3d0e8aa5e6
MD5 291f742f8270bb2f8bb85156b3b8a7a3
BLAKE2b-256 0156998193e8c3e267afb27202bf6ade9c9d6927075c051c99857549d955d332

See more details on using hashes here.

File details

Details for the file tap_tableau-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: tap_tableau-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for tap_tableau-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a441a79c0bb1fecd0a903038b9b3df3c3e43067e31bff24c975e18ab2047a63f
MD5 f2e1478ad1a5c5ae5dc281bf38ea21fa
BLAKE2b-256 e566a967df36a91ed2dd93cb11dd0bda209a2549fd6ec9808a953bd934b36d78

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