Skip to main content

TVIP SDK — Transaction-to-Verified-Invoice Protocol. Beta fermee — Brevet en cours de depot.

Project description

tvip — Beta Fermee

BREVET EN COURS DE DEPOT — PATENT PENDING

Ce SDK est distribue en beta fermee. L'acces necessite une invitation et une cle API valide fournie par Missylia Systems.

SDK officiel Python pour le protocole TVIP (Transaction-to-Verified-Invoice Protocol).

Correle les autorisations de paiement avec les factures marchands detaillees en temps reel.

Acces Beta

Ce SDK n'est pas disponible publiquement. Pour demander l'acces :

Installation (participants beta uniquement)

pip install tvip

Quick Start

from tvip import TVIP

# Cle API fournie par VELA Protocol
client = TVIP(api_key="sk_beta_votre_cle")

# 1. Creer une session de correlation
session = client.create_session(
    amount=12450,  # centimes
    currency="EUR",
    merchant_order_id="ord_1001"
)

# 2. Envoyer la facture depuis le POS
client.send_invoice(
    correlation_token=session["correlation_token"],
    invoice_id="inv_1001",
    items=[
        {"name": "Tomates bio", "quantity": 4, "unit_price": 2500, "tax_rate": 0.055},
        {"name": "Pain complet", "quantity": 1, "unit_price": 2450, "tax_rate": 0.055},
    ],
    total=12450,
    currency="EUR"
)

# 3. TVIP cree automatiquement un evenement verifie :
#    -> Signe SHA-256
#    -> Ecritures comptables (PCG)
#    -> Rapprochement bancaire
#    -> Categorisation IA

AI Vision Scanner

import base64

with open("ticket.jpg", "rb") as f:
    image_b64 = base64.b64encode(f.read()).decode()

parsed = client.scan_image(image_b64)
# Retourne : {merchant, items, total, tax, ...}

Verification Webhook

from tvip import TVIP

is_valid = TVIP.verify_webhook(
    payload=request.body.decode(),
    signature=request.headers["X-TVIP-Signature"],
    secret=os.environ["TVIP_WEBHOOK_SECRET"]
)

Context Manager

with TVIP(api_key="sk_beta_xxx") as client:
    events = client.list_events(status="verified", limit=10)

API Reference

Methode Description
create_session(amount, currency, ...) Creer session de correlation
get_session(token) Obtenir session par token
send_invoice(...) Envoyer facture marchande
get_event(id) Obtenir evenement TVIP
list_events(status?, limit?, offset?) Lister evenements
ingest(source, data) Ingerer Factur-X/JSON/XML
scan_image(base64) Scanner ticket IA Vision
TVIP.verify_webhook(...) Verifier signature HMAC-SHA256

Licence

Licence proprietaire — Missylia Systems Brevet en cours de depot (Patent Pending) Voir fichier LICENSE pour les conditions d'utilisation.

(c) 2026 Missylia Systems. Tous droits reserves.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tvip-0.1.0b1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tvip-0.1.0b1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file tvip-0.1.0b1.tar.gz.

File metadata

  • Download URL: tvip-0.1.0b1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tvip-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 6c9ea4d1a10a7bda1ca88f2d4be056b88411c85ef76ffcd05f5bd7177a68468f
MD5 d4c7eb1f50d9d3e9e7d48058edc0b412
BLAKE2b-256 651d61b865d36ff32f2ab2de79a914a42a39e8d56df07ab5333d8d16f5f40a28

See more details on using hashes here.

File details

Details for the file tvip-0.1.0b1-py3-none-any.whl.

File metadata

  • Download URL: tvip-0.1.0b1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for tvip-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 662a0fec682036c2742ea5a1beebede1f06174896052193c804de61ec737c05c
MD5 c126f8695e1dbcbe0990df4b072ca68e
BLAKE2b-256 2ac4f9a10ee838f02dfc0efeecade774665be7792199945fe0f761e52d77d407

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page