Metadata-Version: 2.1
Name: tcp-sdk
Version: 1.0.19
Summary: Python SDK to query The Cross Product API.
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
Requires-Dist: requests
Requires-Dist: slumber
Requires-Dist: requests_oauthlib
Requires-Dist: prettytable

TCP python SDK 
==============

tcp-sdk is a Python module that provides a convenient object-oriented interface to TCP API. It acts as a wrapper around `slumber <https://github.com/samgiles/slumber>`_.

QuickStart
----------

* Install tcp-sdk

.. code-block:: bash

  $ virtualenv my_virtualenv
  $ source my_virtualenv/bin/activate
  $ pip install tcp-sdk

* Connect to your TCP account

.. code-block:: python

  import tcp
  client = tcp.client (usermail="user@domain.org", passwd="passwd")
  print(client.token)
  
Save this token to the environment variable $TCP_API_TOKEN.
Latter calls to ``tcp.client()`` will automatically connect to TCP API using this environment variable.

* Start using tcp-sdk

.. code-block:: python

  import tcp
  client = tcp.client ()
  print (client.query().auth.get())

Requirements
------------

tcp-sdk requires the following modules.

 * requests
 * slumber
 * requests-oauthlib

