Python Library to interact with LibLynx
Project description
liblynx
Python Library to interact with LibLynx https://www.liblynx.com/
Usage example:
import liblynx
CLIENT_ID = "< your ID >"
CLIENT_SECRET = "< your SECRET >"
ll = liblynx.Connect(CLIENT_ID, CLIENT_SECRET)
# or just,
ll = liblynx.Connect() # Then the ENV Variables LIBLYNX_CLIENT_ID and LIBLYNX_CLIENT_SECRET are used
print(ll.access_token)
print(ll.endpoint)
# Note how the .access_token and .endpoint attribute access results in a cached lookup
identification1 = ll.new_identification("127.0.0.127", "https://example.com/foo/", "Python-LibLynx-Testing/0.1")
ll.api("new account", c.endpoint["_links"]["@new_account"]["href"], "POST", {"account_name":"Some Account", "subscriptions":[{"title":"Foo", "start": "2020-11-01 10:56:58", "end": "2020-12-01 10:56:58"}]})
The environment variable LIBLYNX_BASE is checked for specifying a BASE URL, for example:
export LIBLYNX_BASE=https://connect.liblynx.com
if not found it uses: https://sandbox.liblynx.com
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 Distribution
LibLynx-0.8.tar.gz
(4.8 kB
view details)
File details
Details for the file LibLynx-0.8.tar.gz
.
File metadata
- Download URL: LibLynx-0.8.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65d22fc524a88b3a69f6c8a971e4b767d832e9e0fa80555b7f09aac72d4bf916 |
|
MD5 | 52c5118f72c57377b80512ba8cc01c0b |
|
BLAKE2b-256 | 633c363348da14439adf1cb4458f695942c50c648ce035de441e03d58096ea36 |