Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
tdw-catalog / README.md
Size: Mime:

Installing tdw_catalog SDK

requires python version 3.10 or greater

To install the package with pip:

pip install --extra-index-url https://pypi.fury.io/thinkdataworks/ tdw-catalog==3.0.0rc10

Using the client

(Make sure you're using a Catalog api_key)

import asyncio
from tdw_catalog import Catalog

async def main():
  c = Catalog(
      api_key='YOUR-CATALOG-API-KEY',
  )

  org = c.get_organization('YOUR-ORGANIZATION-ID')
  ex = await org.get_dataset('DATASET-ID').export_csv()
  csv_data = await ex.to_str()

asyncio.run(main())