Skip to main content

prozorro-cli

CLI.

🧭 Navigation

📦 Installation

pip install prozorro-cli
prozorro-cli --help

For an isolated global CLI installation, you can also use pipx install prozorro-cli.

Agent skill

Install the optional agent skill from this repository:

npx skills add radimbig2/prozorro-cli --skill prozorro-cli -g

For a non-interactive global Codex installation:

npx skills add radimbig2/prozorro-cli --skill prozorro-cli -g -a codex -y

The skill activates only when the user explicitly asks to retrieve or download a specific tender or its documents. It does not activate for general Prozorro questions, tender analysis, or tender search.

⌨️ Commands

# Print the full Public API JSON URL
prozorro-cli tender UA-2026-06-15-003439-a --link

# Print the tender HTML page URL
prozorro-cli tender UA-2026-06-15-003439-a --link-html

# Print and open the Public API JSON in a browser
prozorro-cli tender UA-2026-06-15-003439-a --link --open

# Print and open the HTML page in a browser
prozorro-cli tender UA-2026-06-15-003439-a --link-html --open

# Short alias for --link-html
prozorro-cli tender UA-2026-06-15-003439-a --linkhtml --open

# Internal Prozorro ID
prozorro-cli tender UA-2026-06-15-003439-a --guid

# The same ID in standard UUID format
prozorro-cli tender UA-2026-06-15-003439-a --guid-normal

# Full JSON from public-api.prozorro.gov.ua
prozorro-cli tender UA-2026-06-15-003439-a

# Full JSON by GUID without hyphens
prozorro-cli tender 5d2590ef8a1b455f8d09ceeae474b21f

# Full JSON by standard UUID
prozorro-cli tender 5d2590ef-8a1b-455f-8d09-ceeae474b21f

# Full JSON by tender page URL
prozorro-cli tender https://prozorro.gov.ua/tender/UA-2026-06-15-003439-a

# Full JSON by Public API URL
prozorro-cli tender https://public-api.prozorro.gov.ua/api/2.5/tenders/5d2590ef8a1b455f8d09ceeae474b21f

# Full contract JSON to stdout
prozorro-cli contracts a4264fee0db34423808f12f17d8e46ed

# Full contract JSON to a file
prozorro-cli contracts a4264fee0db34423808f12f17d8e46ed --output contract.json

# Download a tender and all full contract JSON objects
prozorro-cli contracts --tender UA-2026-06-15-003439-a --output ./contracts-download

# Download all files from data.documents using a Public API URL
prozorro-cli documents https://public-api.prozorro.gov.ua/api/2.5/tenders/5d2590ef8a1b455f8d09ceeae474b21f --output /temp

# Download the same files using a UA-ID
prozorro-cli documents UA-2026-06-15-003439-a --output /temp

# Download all top-level data.documents from a contract
prozorro-cli documents --contract a4264fee0db34423808f12f17d8e46ed --output /temp

For a UA-ID or tender page URL, the CLI first retrieves the internal id from the public https://prozorro.gov.ua/api/tenders/<UA-ID>/summary endpoint. This step is skipped for GUIDs, UUIDs, and Public API URLs. The full JSON is downloaded from https://public-api.prozorro.gov.ua/api/2.5/tenders/<id>.

The documents command creates the directory specified by --output if it does not exist, then downloads all files from data.documents. File names are taken from title; duplicate names are not overwritten and receive suffixes such as (2), (3), and so on.

Contracts

The contracts command accepts a compact internal GUID, a UUID with hyphens, or a Public API contract URL. A single contract is retrieved from https://public-api.prozorro.gov.ua/api/2.5/contracts/<id>.

With --tender, the CLI first retrieves the tender, reads its data.contracts list, and retrieves the full JSON for every contract. If the tender response does not contain a contracts list, it uses the tender contracts collection endpoint. The output directory contains the original tender.json and a contracts/<id>.json file for every contract, including cancelled versions.

The documents --contract form reads only the contract's top-level data.documents array. It downloads each document from the URL supplied by Prozorro. Documents from contract changes and previousVersions are not included in this form.

🛠️ Development

$env:PYTHONPATH = "$PWD\src"
python -m unittest discover -s tests -v
python -m prozorro_cli tender UA-2026-06-15-003439-a --guid

🚀 Release

  1. Update version in pyproject.toml and __version__ in src/prozorro_cli/__init__.py.
  2. Create and publish a GitHub Release with a tag matching the version, for example v0.1.0.
  3. GitHub Actions will run the tests, build the wheel and sdist, attach them to the Release, and publish the package to PyPI.

Publishing requires the PYPI_API_TOKEN GitHub Actions secret containing a PyPI API token. The publishing job runs in the pypi GitHub environment.

Metadata

Release files for prozorro-cli 0.2.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 prozorro-cli 0.2.0
File Size Uploaded Provenance Actions
prozorro_cli-0.2.0.tar.gz 16.5 kB Without provenance Details for prozorro_cli-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prozorro-cli 0.2.0
File Interpreter ABI Platform Actions
prozorro_cli-0.2.0-py3-none-any.whl Python 3 none any Details for prozorro_cli-0.2.0-py3-none-any.whl

Total release size: 32.3 kB

Release files / prozorro_cli-0.2.0.tar.gz

Download URL prozorro_cli-0.2.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc14c33154d9ff8e428b575fdaba408a811ab414fd9edc553e77d0f5b14a9bc
BLAKE2b-256 checksum
How to use checksums
f362c1e70833013eadc4b23c1cb6f8ebe36a74fd635026477116149c134d2e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / prozorro_cli-0.2.0-py3-none-any.whl

Download URL prozorro_cli-0.2.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d59e10bf38afbce92a8743074e9c9f43b38b5639d532c9753e8d12cc7a0dab9
BLAKE2b-256 checksum
How to use checksums
70074717405b0f9a078b8e7a583b5fd19ed59ed2e6cd754476b09d19738e7950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for prozorro-cli 0.2.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