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.dev0.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for tableau-helpers-2.0.5.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9e4ad844c014cad77e89a17dfa7ce72f6b5a1b68626fb78360c2f793f6d8fbd |
|
MD5 | 5448945c617ae17b0084e424e9b6c8fe |
|
BLAKE2b-256 | 86c2e42cb20b992cf76a7e6d95e4f53af5a0caed9859e620d65acf9c0336de6c |
Close
Hashes for tableau_helpers-2.0.5.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1d7dda882832a37db7d208db0d8de89059da3f72b4d1b8e9eab29c59ddd480c |
|
MD5 | 3618f09e137a80e2d7c3d01b16a4d6ba |
|
BLAKE2b-256 | d896d92be27667700d6ca8b431304e97d4428cc145e5cf0382dc01b302edebab |