A collection of helpers to reduce boilerplate with Tableau APIs.
Project description
tableau_helpers
A wrapper for the tableau-server-client and hyper-api which abstracts away boilerplate and in some cases provides a CLI which works without admin privileges.
tableau_helpers.hyper
Create hyperfiles from one or more csvs by providing a source, destination, schema, and optional parameters.
Code integration
See test_hyper.py for some examples in action.
tableau_helpers.publish
Upload datasources from your machine to the tableau server by providing a hyperfile as a source and a project as a destination.
Code integration
See test_publish.py for an example.
Development
There are a few steps to set up the development environment.
- Make a copy of .env.sample and save it as .env
- Add your Personal Access Token to .env
- Set the tableau-server url in .env ex:
https://tableau-test.rki.local
- If your SSL cert is self signed, download a copy of your pem and provide the path in .env, otherwise delete the cert entry.
- Install pre-commit either in an environment or for your user.
- Setup pre-commit hooks
pre-commit install -t pre-commit
pre-commit install -t pre-push
- Install tox either in an environment or for your user.
- Test run tox for unit tests
tox
(note: some integration tests require a connection to your tableau server) - Test run tox to reformat files
tox -e lint
- Test run tox for unit tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tableau-helpers-2.0.5.dev4.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for tableau-helpers-2.0.5.dev4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f03035c3c3d398b99c6a5a25171724afc8e7fa5435b7df0aa3fd781b49d5ef |
|
MD5 | 4e884934c4ce657bcb2d6b9c99dc0277 |
|
BLAKE2b-256 | bf3841e5c64a95315a2c69d1829252423e1507e4b6c89fd4ddd306e59b9cc647 |
Close
Hashes for tableau_helpers-2.0.5.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf7cadc0a41423bbbfadc60e9311c6ef9a83ab1245a322826faf7870820b8cd |
|
MD5 | 11e562b0a19c0bb31cc460edebf49c51 |
|
BLAKE2b-256 | 6062a9244abffab9ef03451cf03fbdfb0b8449cc9a2898c888a4f1e08cc42971 |