docat-upload
Tool for uploading HTML documentation to a docat server, as an alternative to docatl.
- Git repository: https://github.com/palto42/docat-upload/
- Documentation https://palto42.github.io/docat-upload/
The tool packages a specified folder with HTML documentation content (e.g. created with mkdocs) and uploads it to the specified docat server.
Extra features:
- For Python documentation the script can extract the document version from the Python module with the same name as
project. - Limit the number of published version with
-max-versions- The script will automatically delete older versions if the number of versions is exceeded
- Delete all current versions of a project with
--delete-project - Specify custom SSL certificate path if an in-house CA is used.
- Use the system CA bundle instead of requests' default certifi bundle with
--system-cert. - Support insecure SSL for use with self signed certificates
Usage
usage: docat_upload [-h] -p PROJECT [-f FOLDER] [-r RELEASE] [-t TAG] -s SERVER [-a API_KEY] [-m NUM] [-d] [-V] [-i] [-c SSL_CERT]
options:
-h, --help show this help message and exit
-p PROJECT, --project PROJECT
Project name
-f FOLDER, --folder FOLDER
Documentation folder to be uploaded, e.g. `docs/_build/html`
-r RELEASE, --release RELEASE
Release version for the upload, by default retrieved from the module.__version__
-t TAG, --tag TAG Tag this version, e.g. 'latest'
-s SERVER, --server SERVER
URL of the docat server
-a API_KEY, --api-key API_KEY
API key for docat server, required for delete and overwrite
-m NUM, --max-versions NUM
Cut number of versions to max. NUM
-d, --delete Delete the specified version
--delete-project Delete the entire project by removing all versions
-V, --version show program's version number and exit
-i, --insecure Don't check SSL cert
-c SSL_CERT, --ssl-cert SSL_CERT
Path to SSL cert or cert bundle, e.g. /etc/ssl/certs/ca-certificates.crt
--system-cert Use the system CA bundle instead of requests default certifi bundle
-v, --verbose Verbose output
Example
Upload a new documentation version to a project:
uv run python -m docat_upload.docat_upload \
-p my-project \
-s https://docat.example.com \
-a YOUR_API_KEY \
-f docs/_build/html \
-r 1.2.0 \
-t latest \
-m 5
Delete all versions of a project from the docat server:
uv run python -m docat_upload.docat_upload \
-p my-project \
-s https://docat.example.com \
-a YOUR_API_KEY \
--delete-project
.env settings
Instead of passing the options via CLI, they can be provided in an .env file.
DOCAT_PROJECT=docat_upload
DOCAT_SOURCE=docs/_build/html
DOCAT_SERVER=https://my.docat.server:8443/
DOCAT_API_KEY=abc123
DOCAT_MAX_VERSIONS=10
CERT_PATH=/etc/ssl/certs/ca-certificates.crt
Metadata
Release files for docat-upload 0.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 | Actions |
|---|---|---|---|---|
| docat_upload-0.3.1.tar.gz | 84.5 kB | Without provenance | Details for docat_upload-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docat_upload-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for docat_upload-0.3.1-py3-none-any.whl |
Total release size: 92.5 kB
Release files / docat_upload-0.3.1.tar.gz
| Download URL | docat_upload-0.3.1.tar.gz |
|---|---|
| Size | 84.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bfbdaeece077b19385a9b36964d55654eb09a185258decf6eaf234f0a059bd6
|
|
BLAKE2b-256 checksum How to use checksums |
c691ad957220e76a1852e99e3cc28bdbc8cdf4d1f14dca5dc83abdcb66a6a836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / docat_upload-0.3.1-py3-none-any.whl
| Download URL | docat_upload-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54d862d579ab639bb72e42653afb9da659d5c78ac99f35729e3127f43abdc1bb
|
|
BLAKE2b-256 checksum How to use checksums |
406e2d8c28c787cce5f351c540990a1f21e88c01fa5fb76a78fb792cf0868133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for docat-upload 0.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.