office-to-pdf-client
This is a client for office-to-pdf-serve.
Usage
1. Installation
pip install office-to-pdf-client
2. Prerequisites
Start the server of office-to-pdf-serve using docker compose. (In the case of docker compose, the server will start at "http://127.0.0.1:8000")
3. Client Usage Example
from pathlib import Path
from office_to_pdf_client import OfficeToPdfClient
office_to_pdf_url = "http://127.0.0.1:8000"
office_file_path = Path("./examples/test.xlsx")
output_file_path = Path("./examples/test.pdf")
client = OfficeToPdfClient(office_to_pdf_url)
client.convert_to_pdf(office_file_path, output_file_path)
※The endpoint ("/convert_to_pdf") is internally combined with the URL and sent to the backend as "http://127.0.0.1:8000/convert_to_pdf".
Metadata
Release files for office-to-pdf-client 0.1.4
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 |
|---|---|---|---|---|
| office_to_pdf_client-0.1.4.tar.gz | 15.7 kB | Without provenance | Details for office_to_pdf_client-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| office_to_pdf_client-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for office_to_pdf_client-0.1.4-py3-none-any.whl |
Total release size: 19.8 kB
Release files / office_to_pdf_client-0.1.4.tar.gz
| Download URL | office_to_pdf_client-0.1.4.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f14568b38991de0d08824ea07c233ff608a3c4e55e781f49a146e2adbde528e1
|
|
BLAKE2b-256 checksum How to use checksums |
0d686490cb1b889287de93713de97df734ed1540290ca252268dfddf24e00770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.13
|
Release files / office_to_pdf_client-0.1.4-py3-none-any.whl
| Download URL | office_to_pdf_client-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b893d5c42c6951ab61df3b7f6a4da19afd3b1cc7ec8a36dd09df63df12a2b29d
|
|
BLAKE2b-256 checksum How to use checksums |
f971b80344ca05549daf6c4fa3a0d5e6ca245f059d504e92e1850a0673b4d200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.13
|
Security for office-to-pdf-client 0.1.4
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.