Skip to main content

Fluid Topics API

Project description

Python Fluid-Topics API

The python Fluid-Topics API is an integrator kit for developing Fluid-Topics connectors.

Installation

We recommend using http://pypi.org to install the Fluid-Topics API for Python.

$ pip install fluidtopics

Getting started

We will see how to publish to Fluid-Topics. To do this, you should have a Fluid-Topics user with KHUB_ADMIN right, and an External source.

from fluidtopics.connector import LoginAuthentication, RemoteClient, PublicationBuilder

# First, create a RemoteClient
auth = LoginAuthentication('khub_admin_user@domain.com', 'user_password')
client = RemoteClient('https://my-fluidtopics.com', auth, 'external_source_id')

# Then create the Publication:
publication = PublicationBuilder().id('publication_id') \
                                  .title('My pretty publication') \
                                  .build()
# Finally, publish it
client.publish(publication)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fluidtopics, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size fluidtopics-0.2.0-py3-none-any.whl (56.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page