GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Creating workbooks and data source files · Issue #68 · tableau/document-api-python

Creating workbooks and data source files #68

New issue
Copy link
New issue
Copy link
Open
Open
Creating workbooks and data source files#68
Copy link
Labels
enhancement

Description

@henridwyer
henridwyer
opened on Jul 28, 2016
Issue body actions

It would be very useful to be able to create a workbook or data source files, not only modify existing ones.

Activity

  1. benlower commented on Jul 28, 2016

    @benlower
    benlower
    on Jul 28, 2016
    Contributor
    More actions

    Thanks, @henridwyer! Creation is definitely on our radar. Do you have any suggested starting points? How would you want to create something? Totally from scratch? Would love any more info you could provide about how you'd like to use it.

  2. benlower
    added
    enhancement
    on Jul 28, 2016
  3. henridwyer commented on Jul 28, 2016

    @henridwyer
    henridwyer
    on Jul 28, 2016
    Author
    More actions

    It would be nice to create a TDS for any arbitrary connection, something like:

    connection = Connection.create(dbname, server, username, authentication)
    Datasource.create(output_file_name, connections=[connection]).save()
  4. benlower commented on Jul 28, 2016

    @benlower
    benlower
    on Jul 28, 2016
    Contributor
    More actions

    OK cool thanks for the additional feedback.

    From: Henri Dwyer [email protected]
    Reply-To: tableau/document-api-python [email protected]
    Date: Thursday, July 28, 2016 at 14:41
    To: tableau/document-api-python [email protected]
    Cc: Ben Lower [email protected], Comment [email protected]
    Subject: Re: [tableau/document-api-python] Creating workbooks and data source files (#68)

    It would be nice to create a TDS for any arbitrary connection, something like:

    connection = Connection.create(dbname, server, username, authentication)
    Datasource.create(output_file_name, connections=[connection]).save()
    —
    You are receiving this because you commented.
    Reply to this email directly, view it on GitHub, or mute the thread.

  5. t8y8 commented on Jul 30, 2016

    @t8y8
    t8y8
    on Jul 30, 2016
    Contributor
    More actions

    Creating a connection (with the subset of elements we support today) would be pretty simple: Add a new class method that builds an empty Connection ElementTree-tree and then pass that into the existing Constructor and fill out all the attributes.

    Making a datasource is a little trickier... Making the skeleton for the XML is easy enough, but we don't have any logic to build out columns and such yet -- I think an empty datasource would still load in Desktop/Server but I'd have to check to see if anything is broken.

    I like the api recommended by @henridwyer -- connections=[c1, c2, c3]

  6. t8y8
    added a commit that references this issue on Aug 15, 2016

    Create New Connections per #68 (#69)

    8b8f351
  7. rishabh-90 commented on Sep 27, 2017

    @rishabh-90
    rishabh-90
    on Sep 27, 2017
    More actions

    Any update on this I am also trying to create empty Workbooks with DataSource in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.