Skip to main content

A small client for the WDC-Rest-API.

Project description

Description

This project includes a very small client to access data form the WebDataCollector-API. It is meant to provide a simple means of accessing the data in Json or as Panda-DataFrames.

Usage

from dss_wdc_client.client import WDCClient

# Somehow initialize environment variables for 
# "WDC_HOST" and "WDC_TOKEN". 
load_dotenv()

client = WDCClient.fromEnv()
df = client.loadAsDataFrame(
	'api/endpoint...', {'param1', 'value will be encoded'})

For more information about the client and usable endpoints, see the project homepage of WDC or directly consult the Documentation.

Changelog

  • 0.8.0 Added new methods for loading DomainGraphs.
  • 0.7.3 Fix README
  • 0.7.2 Include link for generated documentation
  • 0.7.1 Added generated documentation
  • 0.7.0 Added new method WDCClient.loadDomainGraph for loading a DomainGraph as NetworkX-Object
  • 0.6.0 WDCClient throws an WDCException if a request to the server fails
  • 0.5.0 New signatures and methods taking care of encodings and working on large results
  • 0.4.3 Add dependencies pandas["excel, plot"] as they are likely to be used.
  • 0.4.2 Enhance README with Changelog and code-example.
  • 0.4.1 Include a preferred variant for creating WDCClients from the Environment

Internal Notes for the Development Environment

Initialize

wdc-rest-api-python> poetry install --extras docs

Use cases

Create Documentation (Sphinx)

`poetry run make html` 	

Publish to PyPI

(https://python-poetry.org/docs/repositories/#publishable-repositories)

  1. Config token (once)

    poetry config pypi-token.pypi <my-token>

  2. Publish

    poetry publish --build

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

dss_wdc_client-0.8.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

dss_wdc_client-0.8.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file dss_wdc_client-0.8.0.tar.gz.

File metadata

  • Download URL: dss_wdc_client-0.8.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/5.15.0-91-generic

File hashes

Hashes for dss_wdc_client-0.8.0.tar.gz
Algorithm Hash digest
SHA256 5829a10f7939dcaf93dc23d27da669925894a461fdc70d563e7ad7f09ee67785
MD5 e115daf2068dcb011e4ede6f8e0bbd37
BLAKE2b-256 9a2bbbd0c13abc16f055cf70ac0545d4c1e06cd4f36052deadef025061057419

See more details on using hashes here.

File details

Details for the file dss_wdc_client-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: dss_wdc_client-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.12 Linux/5.15.0-91-generic

File hashes

Hashes for dss_wdc_client-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d8901d556750ac767d4df8347aee291f977fec3664ee045feb06a8c44829aed
MD5 17f091526f98fd9f57901d043bd12586
BLAKE2b-256 73d505af1c7940737536d304e4d63f7d5f72388acb79e0eb49a01ac852513425

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