Wrapper to ease data management into Tableau Hyper format from CSV files
Project description
Tableau-Hyper-Management
What is this repository for?
Based on Tableau Hyper API this repository is intended to manage importing any CSV file into Tableau-Hyper format (to be used with Tableau Desktop/Server) with minimal configuration (as column detection, content type detection and reinterpretation of content are part of the included logic), therefore speed up the process of building extract.
Even better, can be used in conjunction with Tableau Server Client to take resulted Tableau Hyper file and publish it to a Tableau Server, therefore automating the tedious task to refresh data on the server side (of course, only relevant in case no direct connection from Tableau Server to data source is possible or nature of content is not supported directly by data source: one real-life example can be daily snapshot of a dynamically changing content to capture big variations in time).
Who do I talk to?
Repository owner is: Daniel Popiniuc
Installation
Installation is very easy. Either install it from PyPI:
$ pip3|pip3(.exe) install -U tableau-hyper-management
$ pip3|pip3(.exe) install -U git+https://github.com/danielgp/tableau-hyper-management
or directly from GitHub:
$ git clone https://github.com/danielgp/tableau-hyper-management
$ python3|python(.exe) setup.py install
Usage
$ python3|python.exe <local_path_of_this_package>main.py --input-file <full_path_and_file_base_name_to_file_having_content_as_CSV>(.txt|.csv) --csv-field-separator ,|; --output-file <full_path_and_file_base_name_to_generated_file>(.hyper)
- conventions used:
- (content_within_round_parenthesis) = optional
- <content_within_html_tags> = variables to be replaced with user values relevant strings
- single vertical pipeline = separator for alternative options
Implemented features
- dynamic fields detection based ont 1st line content and provided field separator (strategic advantage);
- dynamic advanced content type detection:
- integer,
- float-USA,
- date-iso8601,
- date-USA,
- time-24,
- time-24-micro-sec,
- time-USA,
- time-USA-micro-sec,
- datetime-iso8601,
- datetime-iso8601-micro-sec,
- string;
- support for empty field content for any data type (required re-interpreting CSV to be accepted by Hyper Inserter to ensure INT or DOUBLE data types are considered);
- use Panda package to benefit of Data Frames speed and flexibility (since 2019-11-24)
Planned features to add (of course, when time will permit / help would be appreciated / votes|feedback is welcomed)
- additional formats to be recognized, like:
- date-USA-medium;
- date-USA-long;
- float-USA-thousand-separator,
- float-EU,
- float-EU-thousand-separator;
- geographical identifiers (Country, US - Zip Codes)
- feedback localization;
- CSV file internationalization;
switch to lambda function to optimize run-time for millions of rows on data reprocessing
Features to request template
Required software/drivers/configurations
Used references
Code quality analysis
Build Status
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
Hashes for tableau-hyper-management-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838c3879ec428bb6b907dabf861297b5f9f9ee87a32a012662706b8847825285 |
|
MD5 | b56f26f5138bb39a6f50edb72c1a5782 |
|
BLAKE2b-256 | b2f49134968a269c656c909b80938b6a7efb88874b1eefc936d7ed3cebd225e3 |