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.

More information about is availaible on its project homepage.

Usage

from dss_wdc_client.client import WDCClient

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

client = WDCClient.fromEnv()
json = client.loadAsJson('api/endpoint...'

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

Changelog

  • 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

Use cases

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.4.3.tar.gz (2.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.4.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dss_wdc_client-0.4.3.tar.gz
  • Upload date:
  • Size: 2.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.4.3.tar.gz
Algorithm Hash digest
SHA256 0bc52c627577e3b52951f606099aba99875b63e4c02845eb83fe89acf89a33dd
MD5 5ed78bc219d5f3b71f197250821ee91e
BLAKE2b-256 e6dbc9c30d148af5927b5c9d6e9cc867c40052e13ffb89f66410b13699912a53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dss_wdc_client-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 2.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.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 41dcc019a78f4191a4f8d00309efde1fdb4c0f0688e9b53b20e932207d02c8b7
MD5 77d37914b83fd2a4ca9eb3d040bfc833
BLAKE2b-256 60f6d90650ea95030d1790b0d297cf6c64eb372f361b39cd67e7e2d777b91899

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