Skip to main content

A wrapper for the Glif API

Project description

GLIF client

Supports

  • api
  • async api
  • status
  • streaming
from glif_api_wrapper.client import GlifAPI

api_token = "your_api_token_here"
glif_api = GlifAPI(api_token)

# option 1
simple_args = ["a happy horse", "living on a farm", "in France"]
response = glif_api.run_glif("clgh1vxtu0011mo081dplq3xs", simple_args)
print(response)

# option 2
named_args = {
    "subject": "a happy horse",
    "actionName": "living on a farm",
    "location": "in France"
  }
response = glif_api.run_glif("clgh1vxtu0011mo081dplq3xs", named_args)
print(response)

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

glif_client-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glif_client-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file glif_client-0.1.0.tar.gz.

File metadata

  • Download URL: glif_client-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for glif_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ab40b6feac2245988283b0dcdf95f6e8f3a59e15a961719e7f1cd44af3b6670
MD5 d14363099f0ebc2d0f6fd8eee0149514
BLAKE2b-256 0543598db3d3efed261cc01f36bf501912ce0b7072d163f684fb9accdb0b3e26

See more details on using hashes here.

File details

Details for the file glif_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: glif_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for glif_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5629f87a8a3a79165b33da314ae2b0307f3df68ad9e41f9884bc2e7023bbaea
MD5 a8e52ce6a6d42d78b9e06f2d6589eccf
BLAKE2b-256 b50708e9b5ef6df00f4addbd0e0b34a1e1b11b0f9defc013035cb28f6b51e7f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page