artpods56

artpods56 / ksef2

Public

Python SDK and Tools for Poland's KSeF (Krajowy System e-Faktur) v2.0 API.

58
2
100% credibility
Found Feb 19, 2026 at 37 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

A user-friendly Python toolkit for sending, managing, and querying electronic invoices in Poland's national e-invoicing system.

How It Works

1
🔍 Discover easy e-invoicing

You search for a simple way to send electronic invoices to Poland's tax system and find this friendly toolkit.

2
📦 Add to your project

You grab the toolkit with a quick install and set it up in your accounting software.

3
Pick your sign-in
📜
Digital certificate

Load your official business seal to prove who you are securely.

🔑
Access code

Enter your pre-made code for quick entry.

4
🚀 Start invoicing session

Open a secure channel and send your first invoice – it feels smooth and automatic.

5
📊 Track and grab reports

Check invoice statuses, download proofs of receipt, or pull lists of past invoices.

Fully compliant

Your invoices are officially accepted, proofs saved, and your business stays on track with tax rules.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 37 to 58 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ksef2?

ksef2 is a Python SDK for Poland's KSeF 2.0 API, the national e-invoicing system rolling out in 2026. It handles authentication via XAdES certificates or tokens, opens sessions for sending/querying/exporting invoices, and manages AES/RSA encryption transparently. Install via pip or uv on Python 3.12+, and get type-safe Pydantic models with context managers for sessions.

Why is it gaining traction?

Full 100% coverage of all 77 KSeF endpoints sets it apart from partial wrappers on ksef 2 github—send invoices, download UPOs, query metadata, even manage permissions and limits. Session resume via JSON serialization suits long-running exports in workers, plus test env helpers generate self-signed certs. Pythonic API with httpx and structlog logging feels native, beating raw REST calls.

Who should use this?

Polish ERP devs integrating KSeF for 2026 compliance, accounting SaaS builders automating invoice batches, or fintechs querying/exporting e-faktury. Ideal for backend teams handling high-volume invoicing in production, demo, or test environments.

Verdict

Solid pick for KSeF 2.0 integrations despite 24 stars and 1.0% credibility score—excellent docs, integration tests, and API coverage make it production-ready now. Grab it if you're in Poland's invoicing space; watch for community growth.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.