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
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 cmsexport X509_USER_PROXY=$(voms-proxy-info --path)
Metadata
Release files for pdmv-http-client 2.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pdmv_http_client-2.3.1.tar.gz | 68.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pdmv_http_client-2.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 99.5 kB
Release files / pdmv_http_client-2.3.1.tar.gz
| Download URL | pdmv_http_client-2.3.1.tar.gz |
|---|---|
| Size | 68.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8839ca0f3ad09db3074125dbc1ea1a3cfa5ecbe8c7937959250c2fa32e6460c0
|
|
BLAKE2b-256 checksum How to use checksums |
9674e54e31ef9bae5f3f3c06089ed417c4d64e117e43cc9c9433e028b67689a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / pdmv_http_client-2.3.1-py3-none-any.whl
| Download URL | pdmv_http_client-2.3.1-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e7b8f3960b82897eac1e66830cecb24f2266ebc902105dac26028d90929e1eb
|
|
BLAKE2b-256 checksum How to use checksums |
724fe32758ebba2cb3ae5f01bd6edfacbc88c2e144c9beed50474c636ec301c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for pdmv-http-client 2.3.1
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.