Scanye Python Library and CLI
A Python library and CLI tool for interacting with the Scanye API.
Unofficial project. This library is not created, maintained, sponsored, or endorsed by Scanye. It's a community-built client for the unofficial Scanye API (
api.scanye.pl), reverse-engineered from the Scanye web app's network traffic. Use at your own risk.
Features
- Login and authentication
- List sales and purchase invoices
- Show a single invoice's details and history
- Filter invoices by KSeF status
- Send invoices to KSeF
- E-mail invoices to buyers
- Download invoices as PDF
- CLI for easy access
Installation
pip install scanye-py
CLI Usage
First, login to your account:
scanye login --email your@email.com
List your sales invoices:
scanye invoices list --type sales
List purchase invoices that are not yet sent to KSeF:
scanye invoices list --type purchase --unsent
Show a single invoice's details and history:
scanye invoices show <invoice-id>
Download all sales and purchase invoices from a given month as PDF (multiple invoices are downloaded as a single ZIP and extracted automatically):
scanye invoices download --type sales --month 2026-07 -o ./invoices/2026-07/sales
scanye invoices download --type purchase --month 2026-07 -o ./invoices/2026-07/purchase
Download a single invoice by ID:
scanye invoices download <invoice-id> -o ./invoices
E-mail an invoice to its buyer:
scanye invoices send-email <invoice-id> --to buyer@example.com
Shell completion
The CLI is built on click, which provides tab-completion of commands, options, and choice values (e.g. --type <TAB>) for free. To enable it in bash, add this to your ~/.bashrc:
eval "$(_SCANYE_COMPLETE=bash_source scanye)"
(zsh and fish are supported too — see click's shell completion docs for the equivalent line.) Open a new terminal afterwards for it to take effect.
Library Usage
from scanye.client import ScanyeClient
client = ScanyeClient()
client.login("your@email.com", "your_password")
invoices = client.fetch_invoices(is_sales=True)
for inv in invoices:
print(f"{inv.invoice_no}: {inv.ksef_status}")
Metadata
Release files for scanye-py 0.2.6
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 |
|---|---|---|---|---|
| scanye_py-0.2.6.tar.gz | 28.2 kB | With provenance | Details for scanye_py-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scanye_py-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for scanye_py-0.2.6-py3-none-any.whl |
Total release size: 48.6 kB
Release files / scanye_py-0.2.6.tar.gz
| Download URL | scanye_py-0.2.6.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69d8b3cb23823e684b552fec30f9aa97cff4a38ad4ffc1b84c00d6b40a46ee7e
|
|
BLAKE2b-256 checksum How to use checksums |
cde1669e11c47175c4219b28c10099f69a3e8974fc2e95751dc2417284f3faed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / scanye_py-0.2.6-py3-none-any.whl
| Download URL | scanye_py-0.2.6-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6442eedec5c111138f5770f4481a7b1eafcb5461c50dd238c4b2dec0f877040f
|
|
BLAKE2b-256 checksum How to use checksums |
c0d6c9314323b0d19fe0b0572958a9c049df1d49010e2dc2dfde83dd9b8fa9cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logSecurity for scanye-py 0.2.6
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for scanye_py-0.2.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logA 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.