Skip to main content

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 dsslab.wdc_client import *

# make sure file ~/.wdc exists. Content:
# WDC_HOST=${the_host_you_are_using}
# WDC_TOKEN=${your_token}
# Alternative ways to initialize: see docs of WDCClient
client = WDCClient.fromEnv(dataframeLib = 'polars') 
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.20.0 Add possibility to choose the DataFrameLibrary: Pandas or Polars
  • 0.17.0 Add streaming method WDCClient#streamForEach
  • 0.16.1 Add docs
  • 0.16.0 Send parameter "body" as BODY
  • 0.15.0 WDC.fromEnv uses ~/.wdc file if WDC_HOST has not been previously initialized
  • 0.14.0 Added possiblity to pass native dicts and lists to loadAsXXX-methods
  • 0.13.0 Add method WDCClient.loadAsDF(endpoint: str, **params) for brevity
  • 0.12.0 Fix minor bug for Rate-Limiting.
  • 0.11.0 Transparently handle Rate-Limiting from server.
  • 0.10.0 Moved to new package structure with the namespace dsslab.

Old changelog

  • 0.9.1 Make package obsolete.
  • 0.9.0 Add method WDCClient#put to create PUT-Requests
  • 0.8.2 Fix for duplicate parameters when paging.
  • 0.8.1 Simplify new methods for loading a DomainGraph.
  • 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

Metadata

Release files for dsslab-wdc-client 0.20.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 dsslab-wdc-client 0.20.0
File Size Uploaded Provenance Actions
dsslab_wdc_client-0.20.0.tar.gz 6.3 kB Without provenance Details for dsslab_wdc_client-0.20.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dsslab-wdc-client 0.20.0
File Interpreter ABI Platform Actions
dsslab_wdc_client-0.20.0-py3-none-any.whl Python 3 none any Details for dsslab_wdc_client-0.20.0-py3-none-any.whl

Total release size: 13.2 kB

Release files / dsslab_wdc_client-0.20.0.tar.gz

Download URL dsslab_wdc_client-0.20.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e64655803580a5ab4ac2b7df19b8a18d9e78cbdbce35758e215991d89938a0ea
BLAKE2b-256 checksum
How to use checksums
777a6c9d585406c8c25eb598974b37c307ac638c43f47dfdda88c375190cd266
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.10.12 Linux/5.15.0-144-generic

Release files / dsslab_wdc_client-0.20.0-py3-none-any.whl

Download URL dsslab_wdc_client-0.20.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a7778502ac805be8f20e2b49b37f13ebf29dd21bbbf782fa3e479460ba66f4b
BLAKE2b-256 checksum
How to use checksums
a251602d8791dd44ce21b6ac34ffea39bf2864e8cf712ffede167ed030b183d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.10.12 Linux/5.15.0-144-generic

Security for dsslab-wdc-client 0.20.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.

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