Skip to main content

Ark Python client

Basic usage:

from ark_client 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.read(ark_name)

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

try:
    api.read("doesnot/exist")
except ClientError as e:
    print(e.response.status_code)  # response contains a Python/Requests response object

Batch mode:

batch = api.batch()
batch.read(ark_name)
batch.create("http://somewhere.tld/some-resource/")
batch.update(anothe_ark_name,"http://somewhere.tld/some-other-resource/")
for item in batch.commit():
    print("{}: {}".format(item["ark_name"], item["ark_location"]))

In batch mode, method chaining is available:

api.batch()
   .read(some_ark_name)
   .read(some_other_ark_name)
   .update(yet_another_name, "http://somewhereelse.tld/")
   .commit()

Metadata

Release files for ark-client-certic 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ark-client-certic 0.2.0
File Size Uploaded Provenance Actions
ark_client_certic-0.2.0.tar.gz 3.9 kB Without provenance Details for ark_client_certic-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ark-client-certic 0.2.0
File Interpreter ABI Platform Actions
ark_client_certic-0.2.0-py3-none-any.whl Python 3 none any Details for ark_client_certic-0.2.0-py3-none-any.whl

Total release size: 8.3 kB

Release files / ark_client_certic-0.2.0.tar.gz

Download URL ark_client_certic-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e964defcda4406d4905b3dfb5d90d2fba616b125a2da5ef40845baffcb9f5a8
BLAKE2b-256 checksum
How to use checksums
4a1aba1070c7208365f4f9ca925dd9d37c96d0621e3ea407f80e8eb76d5e6a08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.9.4 Darwin/23.2.0

Release files / ark_client_certic-0.2.0-py3-none-any.whl

Download URL ark_client_certic-0.2.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36fd88fb2ee417c1c99d4766e0432e33278cb17646f532c6166da11fae316871
BLAKE2b-256 checksum
How to use checksums
6297478d2a3a5984161b82b1156f64d0df0ce74f4fe63f67dc3823871a68d335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.0 CPython/3.9.4 Darwin/23.2.0

Security for ark-client-certic 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page