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
- 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
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
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}")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scanye_py-0.2.0.tar.gz.
File metadata
- Download URL: scanye_py-0.2.0.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
980e1b45128734db387b4852e5be4bad97eb6e341c1edec37a3be58d4bdb1052
|
|
| MD5 |
9addab11ce63922d107dc79506aa1d74
|
|
| BLAKE2b-256 |
c743227370ffaeeb5f0a925eb76a38ae724823d971f6ba2bb16c42ded39d8490
|
Provenance
The following attestation bundles were made for scanye_py-0.2.0.tar.gz:
Publisher:
ci.yml on theundefined/scanye-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scanye_py-0.2.0.tar.gz -
Subject digest:
980e1b45128734db387b4852e5be4bad97eb6e341c1edec37a3be58d4bdb1052 - Sigstore transparency entry: 2731353643
- Sigstore integration time:
-
Permalink:
theundefined/scanye-py@576a72ddb01efd21422d1e7504ed504863114ded -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/theundefined
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@576a72ddb01efd21422d1e7504ed504863114ded -
Trigger Event:
push
-
Statement type:
File details
Details for the file scanye_py-0.2.0-py3-none-any.whl.
File metadata
- Download URL: scanye_py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26227386fb3ad8fb829346724f0f0c4d4de834e40774f624182daf5e0a62c48d
|
|
| MD5 |
1a44e7f51b4c6faef30fd54dac0a5df5
|
|
| BLAKE2b-256 |
339ba626394152cf55cd44952f0d36a0df7254c4ef794e4bfd7a4f86656d56e5
|
Provenance
The following attestation bundles were made for scanye_py-0.2.0-py3-none-any.whl:
Publisher:
ci.yml on theundefined/scanye-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scanye_py-0.2.0-py3-none-any.whl -
Subject digest:
26227386fb3ad8fb829346724f0f0c4d4de834e40774f624182daf5e0a62c48d - Sigstore transparency entry: 2731353662
- Sigstore integration time:
-
Permalink:
theundefined/scanye-py@576a72ddb01efd21422d1e7504ed504863114ded -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/theundefined
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@576a72ddb01efd21422d1e7504ed504863114ded -
Trigger Event:
push
-
Statement type: