CluedIn Python SDK 2.6.0

In the latest release of the CluedIn Python SDK, version 2.6.0, I added a new method to simplify CluedIn context creation.

import os
import cluedin

ACCESS_TOKEN = os.getenv("ACCESS_TOKEN")

ctx = cluedin.Context.from_jwt(ACCESS_TOKEN)
ctx

# Output:
#  Context:
#     Domain: cluedin.com
#     Organization Name: foobar
#     User Email: None
#     User Password: None
#     Protocol: https
#     Access Token: **********
#     Organization URL: https://foobar.cluedin.com
#     Authentication URL: https://foobar.cluedin.com/auth
#     API URL: https://foobar.cluedin.com/api/api
#     GQL Organization URL: https://foobar.cluedin.com/graphql
#     GQL API URL: https://foobar.cluedin.com/api/api/graphql
#     Public API URL: https://foobar.cluedin.com/public/api
#     Verify TLS: True

First of all, now it's possible to create a context from an access token only: no need to provide domain, organization, or any other parameters.

Secondly, the 'cluedin.Context' class now implements __repr__ and __str__ methods, so you can see the context details by printing the context object.

What's Changed

  • #44 Implement __str__ and __repr__ for cluedin.Context
  • #45 Create cluedin.Context from JWT

Full Changelog: https://github.com/romaklimenko/cluedin/compare/2.5.0...2.6.0