Skip to main content

PDP GraphQL client Python

https://img.shields.io/pypi/v/srgssr-publication-data-api.svg

API Client to access PDP’s GraphQL API through python

USAGE

from sgqlc.types import Variable, non_null
from srgssr_publication_data_api import PublicationDataApi

# replace url, username, password with real values
client = PublicationDataApi(url, username, password)

op = client.query_op()

# to restrict fields to just title and cursor (for pagination):
selector = op.faro_items(first=5)
selector.edges().title()
selector.cursor()

# if you just want to see the schema, just remove the selector.

result = client.run_query(op)
print(result)
  1. for more details about building the queries, see also sgqlc usage docs (https://github.com/profusion/sgqlc#usage)

Development

For development check the documentation under docs/installation.rst.

Credits

This package was created with Cookiecutter and the elgertam/cookiecutter-pipenv project template, based on audreyr/cookiecutter-pypackage.

History

0.4.4 (2021-04-14)

  • Cleanup of Github Actions Round

0.4.3 (2021-04-14)

  • Cleanup of Github Actions

0.4.2 (2021-04-14)

  • added docker image for Jupyter Notebooks (not yet public)

0.4.1 (2021-03-24)

  • fixed the old links in the README.rst

0.4.0 (2021-03-24)

  • Removed the dependency on environment variables.

  • Moved to class design.

0.3.3 (2021-03-24)

  • Nothing changed, just testing the release pipeline.

0.3.2 (2021-03-24)

  • Removed the dependency on Click

0.3.1 (2021-03-24)

  • Fixed typo in README.rst

  • Added missing dependency to sgqlc

0.3.0 (2021-03-23)

  • First release on PyPI.

Metadata

Release files for srgssr-publication-data-api 0.4.4

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

Source distribution (sdist)

Source distribution for srgssr-publication-data-api 0.4.4
File Size Uploaded
srgssr-publication-data-api-0.4.4.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for srgssr-publication-data-api 0.4.4
File Interpreter ABI Platform
srgssr_publication_data_api-0.4.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 18.7 kB

Release files / srgssr-publication-data-api-0.4.4.tar.gz

Download URL srgssr-publication-data-api-0.4.4.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
617c835ebea4e654956923bf48de3da968e88bbea5694a863c76973a0e3e5859
BLAKE2b-256 checksum
How to use checksums
9a2937be2a9d2f96822c008601e2294623a2d2a21bf3a68e2e967e237a2d6b42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / srgssr_publication_data_api-0.4.4-py2.py3-none-any.whl

Download URL srgssr_publication_data_api-0.4.4-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3716b72bfceef933c7455486541fa9637553db239be26d8de336cf9b655324e8
BLAKE2b-256 checksum
How to use checksums
713c04732db97629d385b71d6a90c5bbb0fe82698de6742494ed4181e05ff54a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

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