A community wrapper for the Tulip API
Project description
community-tulip-api
This package wraps the Tulip API. This is not an official Tulip package.
If you are just getting started with the Tulip API I recommend reading this support article.
Authenticating
This package provides 3 methods of authenticating with Tulip.
- Environment Variable
- API Key & Secret
- base64 encoded auth string
Environment Variable
Set an environment variable TULIP_AUTH
with base64 encoded {username}.{password}
value of your bot user.
After creating a bot this value can be found under Auth Header
and will look like Basic {credential}
.
export TULIP_AUTH=YXBpa2V5LjJfQzU5a0w4YWdMNndBSDZOM3Y6UmlsS1V3a3pIZ0ZPc19MUkczWFQ3djdaN0tZVEZpZVVscG1WTmR5QllLaQ==
from tulip_api import TulipAPI
api = TulipAPI("abc.tulip.co")
API Key & Secret
Pass in the API Key name and Secret to the TulipAPI
class.
Example:
from tulip_api import TulipAPI
api = TulipAPI(
"abc.tulip.co",
api_key="apikey.2_C59kL8agL6wAH6N3v",
api_key_secret="RilKUwkzHgFOs_LRG3XT7v7Z7KYTFieUlpmVNdyBYKi",
)
Base64 encoded auth string
Pass in the base64 encoded auth string. This would be the same value that the environment variables expects.
Example:
from tulip_api import TulipAPI
api = TulipAPI(
"abc.tulip.co",
auth="YXBpa2V5LjJfQzU5a0w4YWdMNndBSDZOM3Y6UmlsS1V3a3pIZ0ZPc19MUkczWFQ3djdaN0tZVEZpZVVscG1WTmR5QllLaQ=="
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for community-tulip-api-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a5c6d9d0e0abd38b4308571b6ec5c46cb091cf342ca19a258107846d1a6826 |
|
MD5 | 9e61e3bed27f9ee8444adc306543cf33 |
|
BLAKE2b-256 | f8d09ad5510dab402aa087ce6cdee932b1ec5e1d11adedaab4435b0cdac5b1f3 |
Hashes for community_tulip_api-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112b90e44d4a585ef5eb0c86d471690bb52bc6ed712e60152f331fa9f22d8fdd |
|
MD5 | 448dfc2012f169023d00b6758b5bc960 |
|
BLAKE2b-256 | 6ba63702aeb709c55a4791e45e019af3f8a6ceb72bb4f400c72667e7b4827bdd |