Mindsay python client
Project description
mindsay-sdk
The mindsay-sdk is a python client that makes it easy to interact with the Mindsay's chatbot platform. A Mindsay account is required.
Installation
pip install -e git+https://github.com/Destygo/mindsay-sdk#egg=mindsay_sdk
Usage
from mindsay_sdk import Client
# Create mindsay client. This line will ask for your password and email code.
client = Client('your.name@mindsay.com')
# Define current environment for next operations
client.set_current_instance(1)
client.set_current_experiment(1)
client.set_current_language('fr_FR')
user_nodes = client.get_user_nodes()
print(user_nodes)
[{'name': 'Main',
'record_id': 1,
'service_record_id': None,
'exploring': None,
'display_name': '/Main',
'resource_url': '/user_nodes/1'},
{'name': 'After Itineraire',
'record_id': 2,
'service_record_id': 1,
'exploring': None,
'display_name': 'Itineraire/After Itineraire',
'resource_url': '/user_nodes/2'},
{'name': 'After Orientation',
'record_id': 3,
'service_record_id': 2,
'exploring': None,
'display_name': 'Orientation/After Orientation',
'resource_url': '/user_nodes/3'}]
More examples can be found in the examples/
folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file mindsay_sdk-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: mindsay_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b915915bd64683c958826db18ac4313814b62d0edd0742586d34baa15b90cfe |
|
MD5 | 3f4b7733390322a5056af812c5fa3034 |
|
BLAKE2b-256 | 4da3e02af1ecb011ad7ea5548bd7d6e12bc095d40b37c86d4e5a0522d221e116 |