Skip to main content

GeoCongo AI — Python SDK & Geospatial Utilities (v0.1.0)

Bibliothèque Python officielle pour GeoCongo AI : accès aux Edge Functions Supabase, traitements d'images satellites et modèles d'IA géospatiaux.


🚀 Modules principaux

  1. geocongoai.geoscientifique_database (ou GeoCongoClient) :
    • Client SDK officiel pour interagir avec les Edge Functions Supabase :
      • Agent RAG (/rag-agent) : synthèses et réponses documentées avec citations.
      • Recherche Documentaire (/search-documents) : recherche sémantique avec filtres (domaine, catégorie, province).
      • Recherche Géologique Multimodale (/search-geological) : recherche vectorielle (1536D) à travers roches, cartes, jeux de données et documents.
  2. geocongoai.vision :
    • generate_qr : génération de QR codes.
    • remove_background : détourage d'image via rembg.
    • pansharpen_brovey : fusion d'images multispectrales et panchromatiques (Brovey method).
  3. geocongoai.ia :
    • PrithviClient : wrapper pour les modèles d'IA géospatiaux Prithvi v2 via terratorch.
    • AlphaEarthClient : wrapper pour l'échantillonnage de pixels via Google Earth Engine (GEE).
  4. geocongoai.gundua_engine :
    • analyse_deterministe : calculs d'indices spectraux (NDVI, NDWI) et analyse par règles.
    • analyse_ia_fondation & traiter_image_satellite.

🛠️ Installation

# Installation de base avec le SDK Edge Functions
python -m pip install -e .

# Optionnel : support Vision (Pansharpening, QR, Rembg)
python -m pip install -e .[vision]

# Optionnel : support IA (Prithvi, PyTorch, Earth Engine)
python -m pip install -e .[ia]

💻 Exemple d'utilisation rapide du SDK

from geocongoai import GeoCongoClient
from geocongoai.exceptions import InsufficientBalanceError

# Initialisation du client avec la clé Supabase
client = GeoCongoClient(api_key="VOTRE_SUPABASE_ANON_KEY")

# 1. Poser une question à l'Agent RAG
try:
    response = client.ask_rag(
        query="Quels sont les indices de cobalt dans le Lualaba ?",
        user_id="123e4567-e89b-12d3-a456-426614174000"
    )
    print("Réponse :", response.answer)
    print("Sources :", response.sources)
except InsufficientBalanceError:
    print("Veuillez recharger votre solde unités.")

# 2. Recherche documentaire filtrée
docs = client.search_documents(
    query="cuivre et cobalt",
    domain="Mines",
    category="Thèse",
    province="Lualaba"
)
print(f"Trouvé {docs.total_found} documents.")

# 3. Rechercher des échantillons de roches ou cartes
results = client.search_geological(
    query="kimberlite diamant",
    type="rocks",
    province="Kasaï"
)
for item in results.results:
    print(f"[{item.item_type}] {item.title} (Score: {item.similarity})")

Voir les guides détaillés dans le dossier docs/.

Download files

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

Source Distribution

geocongoai-0.1.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

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

geocongoai-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file geocongoai-0.1.0.tar.gz.

File metadata

  • Download URL: geocongoai-0.1.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.13

File hashes

Hashes for geocongoai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fa30fd5478717335e28794fefab026f04d92341676080b05842583c2413d0639
MD5 1125bcf4467d1df7df975c26dc48101b
BLAKE2b-256 7ab67d17a383914775c32c674dbacea3b4df3b1d29c7b8e778ef14742febafbb

See more details on using hashes here.

File details

Details for the file geocongoai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: geocongoai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.13

File hashes

Hashes for geocongoai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08046a534833d51118a5519bb4d4a87aec05d0ab0f190260f1f1abaaac2c1b61
MD5 cd15287e64d961a2ef93849b4e960c82
BLAKE2b-256 647af4a43613f21dda4259f20dc24351c2de42cc12210ecc59c51c6ffbf13d7f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Supported by

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