Skip to main content

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.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scanye-py 0.2.7
File Size Uploaded Provenance Actions
scanye_py-0.2.7.tar.gz 29.2 kB With provenance Details for scanye_py-0.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scanye-py 0.2.7
File Interpreter ABI Platform Actions
scanye_py-0.2.7-py3-none-any.whl Python 3 none any Details for scanye_py-0.2.7-py3-none-any.whl

Total release size: 50.2 kB

Release files / scanye_py-0.2.7.tar.gz

Download URL scanye_py-0.2.7.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dbe8f8287840bf79fa10097b69872fc93212348b57d4795eb50a3524b15c1cd2
BLAKE2b-256 checksum
How to use checksums
cffee1ec7cdcb3b49d5276b627392b2fd7d879b814ff4bb2510c21ac67b86e46
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 Oct 17, 2026.

Transparency log

Release files / scanye_py-0.2.7-py3-none-any.whl

Download URL scanye_py-0.2.7-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ce67b459770761f3a07c5542a2bc07cf412cfed979a9165657c3d4b293dd33
BLAKE2b-256 checksum
How to use checksums
25ce1ceb8081322003320a41d2ef43779ef3a877345cb73debb91d0f2d9aba9e
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 Oct 17, 2026.

Transparency log

Security for scanye-py 0.2.7

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.

Select from 2 files

Attestation for scanye_py-0.2.7.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 Oct 17, 2026.

Transparency log

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