Skip to main content

Ark client library

Project description

Ark Python client

Basic usage:

from ark import Client, ClientError
api = Client(YOUR_APP_ID, YOUR_SECRET_KEY, "https://ark.provider.tld/api/v1/")

ark_name = api.create(
    "http://somewhere.tld/some-resource/", {
        "who": "someone", 
        "what": "something", 
        "where": "somewhere" 

ark_infos =

api.update(ark_name, "http://somewhereelse.tld/some-resource/")

except CLientError as e:
    print(e.response.status_code)  # response contains a Python/Requests response object

Batch mode:

batch = api.batch()
for item in batch.commit():
    print("{}: {}".format(item["ark_name"], item["ark_location"]))

In batch mode, method chaining is available:

   .update(yet_another_name, "http://somewhereelse.tld/")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ark-client-CERTIC, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size ark-client-CERTIC-0.0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page