Skip to main content

Software Development Kit (SDK) client pour l'API Credit Risk

Project description

BANQUE SDK - bankingsdk

Un SDK Python simple pour interagir avec l’API REST de données d'un portefeuille client demandeur de ligne de crédit bancaire. Il est conçu pour les Data Analysts et Data Scientists, avec une prise en charge native de Pydantic, dictionnaires et DataFrames Pandas.

PyPI version License: MIT


Installation

pip install bankingsdk

Configuration

from bankingsdk import DemandeClient, BankConfig

# Configuration avec l’URL de votre API (Render ou locale)
config = BankConfig(movie_base_url="https://api-risk-credit.onrender.com")
client = DemandeClient(config=config)

Tester le SDK

1. Health check

client.health_check()
# Retourne : {"status": "ok"}

2. Récupérer un film

demande = client.get_demande(1)
print(demande.agence)

3. Liste des demandes au format DataFrame

df = client.list_demandes(limit=5, output_format="pandas")
print(df.head())

Modes de sortie disponibles

Toutes les méthodes de liste (list_demandes, list_agences, etc.) peuvent retourner :

  • des objets Pydantic (défaut)
  • des dictionnaires
  • des DataFrames Pandas

Exemple :

client.list_demandes(limit=10, output_format="dict")
client.list_agences(limit=10, output_format="pandas")

Tester en local

Vous pouvez aussi utiliser une API locale :

config = BankConfig(bank_base_url="http://localhost:8000")
client = DemandeClient(config=config)

Public cible

  • Data Analysts
  • Data Scientists
  • Étudiants et curieux en Data
  • Développeurs Python

Licence

MIT License


Liens utiles

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

bankingsdk-0.1.5.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

bankingsdk-0.1.5-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file bankingsdk-0.1.5.tar.gz.

File metadata

  • Download URL: bankingsdk-0.1.5.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for bankingsdk-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0c84fb435f2346a4b02787bef5e25285ec555d5ae777ec3cebb6df319cc4bb77
MD5 e73abdf37607a8f9596cc41f10163aae
BLAKE2b-256 ca275a3b0e660cee4310acb3698f429d6c4e71dc321a544f6d075c7a291d062e

See more details on using hashes here.

File details

Details for the file bankingsdk-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: bankingsdk-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for bankingsdk-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7b83e1c8fc31572e4936518efd512faae4e936fb2fb982d9dcc20c66fccc933d
MD5 1bbb36c11d1bfbb578dca6f66c71e420
BLAKE2b-256 ccccb66e4e405ee94faa3f62a656e98fce644e41a37a51e3b78c45f3d6239c6e

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