Skip to main content

ContentGrid Application Client

This ContentGrid Client is a Python library designed to interact with ContentGrid API endpoints, specifically in the HAL response type. For ContentGrid Applications, it provides a convenient interface for performing various operations such as fetching profiles, creating entities, fetching related entities, handling content attributes, and more.

Features

  • Profile Handling: Fetch profiles to retrieve HAL-forms specification about available entities and their attributes.
  • Entity Operations: Create, fetch, update, and delete entities using a simple functions without needing to worry about headers and authentication.
  • Content Handling: Upload and download content on content-attributes of entities.
  • Error Handling: Provides basic error handling for network requests.
  • Attribute validation: Provides attribute type checks for creating and updating entities. Checks wether attributes have the correct type and if all required attributes are present.

Installation

To install the ContentGrid API Client, you can use pip:

pip install contentgrid-application-client

Usage

ContentGridApplicationClient

from contentgrid-application-client import ContentGridApplicationClient

# Initialize the client with service account
client = ContentGridApplicationClient(
    client_endpoint="https://b93ccecf-3466-44c0-995e-2620a8c66ac3.eu-west-1.contentgrid.cloud",
    auth_uri="https://auth.eu-west-1.contentgrid.cloud/realms/cg-eade54da-3903-4554-aa5e-2982cd4126f1/protocol/openid-connect/token",
    client_id="your_client_id",
    client_secret="your_client_secret"
)

# Initialize the client with token
client = ContentGridApplicationClient(
    client_endpoint="https://b93ccecf-3466-44c0-995e-2620a8c66ac3.eu-west-1.contentgrid.cloud",
    token="your_token"
)

# Fetch profile
profile = client.get_profile()

# Create entity
attributes = {
    "name": "Example Entity",
    "description": "This is an example entity"
}
entity = client.create_entity("entity-name", attributes)

Testing

Installing requirements:

    pip install -r requirements.txt

Running tests:

    python -m pytest

Running tests with coverage:

    coverage run -m pytest && coverage report -m

Metadata

Release files for contentgrid-application-client 0.2.9

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

Source distribution (sdist)

Source distribution for contentgrid-application-client 0.2.9
File Size Uploaded
contentgrid_application_client-0.2.9.tar.gz 82.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for contentgrid-application-client 0.2.9
File Interpreter ABI Platform
contentgrid_application_client-0.2.9-py3-none-any.whl Python 3 none any Details

Total release size: 97.5 kB

Release files / contentgrid_application_client-0.2.9.tar.gz

Download URL contentgrid_application_client-0.2.9.tar.gz
Size 82.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ef82879bf25d9caea4f0bd95c02a570756ce2de0deeaed5cceed9b7e2a5755bf
BLAKE2b-256 checksum
How to use checksums
4fee8dd248b2c70cce46f44223ad12974fe9d22dcf2cab6c9eac98e546929022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / contentgrid_application_client-0.2.9-py3-none-any.whl

Download URL contentgrid_application_client-0.2.9-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18ea49269a4bb88b162ec6d9a33ed2993bb90f2a464081a69d536108ee33dd27
BLAKE2b-256 checksum
How to use checksums
873b6e029f9444bf6ea8e88b53bd7a4c37890786762ef45701d1dd4adb351ae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.10

2 release files

This release

0.2.9 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.13

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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