Skip to main content

PdmV HTTP Client

This project provides an HTTP client based on requests to handle authenticated requests to CERN internal applications. Furthermore, it includes some clients to ease the interaction with the APIs of PdmV applications. This version is a refactor of the old McM Scripts project, and it is published at PyPI to be public available.

How to use this package

Prerequisite

Create an isolated virtual environment using a Python version >= 3.9 like, for instance:

python3.9 -m venv venv && source ./venv/bin/activate

Development version

If you want to set up a development environment to contribute to this project:

Install uv and the required dependencies.

pip install uv

Set the current venv to use with uv:

export UV_PROJECT_ENVIRONMENT="${VIRTUAL_ENV}"

Install the packages via: uv sync

Run the test suite via: uv run pytest -s -vv

[!IMPORTANT] Make sure your execution environment has a valid Kerberos ticket to consume CERN services!

Build package

If you just want to use this package in your own project, install it via:

pip install pdmv-http-client

Make sure to remove the sys.path.append(...) statement, if you have them in your script, to avoid overloading old versions from CERN AFS.

Examples

At the examples/ folder, you will find some scripts explaining how to use the clients and the HTTP client.

Priority change

  • If you want to use priority-changing scripts or do anything else related to cmsweb, you'll have to use voms-proxy:
    • voms-proxy-init -voms cms
    • export X509_USER_PROXY=$(voms-proxy-info --path)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pdmv_http_client-2.3.1.tar.gz (68.1 kB view details)

Uploaded Source

Built Distribution

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

pdmv_http_client-2.3.1-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file pdmv_http_client-2.3.1.tar.gz.

File metadata

  • Download URL: pdmv_http_client-2.3.1.tar.gz
  • Upload date:
  • Size: 68.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pdmv_http_client-2.3.1.tar.gz
Algorithm Hash digest
SHA256 8839ca0f3ad09db3074125dbc1ea1a3cfa5ecbe8c7937959250c2fa32e6460c0
MD5 9c0ffc8fa5ebb91876ff195483a65520
BLAKE2b-256 9674e54e31ef9bae5f3f3c06089ed417c4d64e117e43cc9c9433e028b67689a3

See more details on using hashes here.

File details

Details for the file pdmv_http_client-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: pdmv_http_client-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pdmv_http_client-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e7b8f3960b82897eac1e66830cecb24f2266ebc902105dac26028d90929e1eb
MD5 1424fcf8c0d911e0e6ee40173474996d
BLAKE2b-256 724fe32758ebba2cb3ae5f01bd6edfacbc88c2e144c9beed50474c636ec301c5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 files

2.3.0

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 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