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
geocongoai.geoscientifique_database(ouGeoCongoClient) :- 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.
- Agent RAG (
- Client SDK officiel pour interagir avec les Edge Functions Supabase :
geocongoai.vision:generate_qr: génération de QR codes.remove_background: détourage d'image viarembg.pansharpen_brovey: fusion d'images multispectrales et panchromatiques (Brovey method).
geocongoai.ia:PrithviClient: wrapper pour les modèles d'IA géospatiaux Prithvi v2 viaterratorch.AlphaEarthClient: wrapper pour l'échantillonnage de pixels via Google Earth Engine (GEE).
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa30fd5478717335e28794fefab026f04d92341676080b05842583c2413d0639
|
|
| MD5 |
1125bcf4467d1df7df975c26dc48101b
|
|
| BLAKE2b-256 |
7ab67d17a383914775c32c674dbacea3b4df3b1d29c7b8e778ef14742febafbb
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08046a534833d51118a5519bb4d4a87aec05d0ab0f190260f1f1abaaac2c1b61
|
|
| MD5 |
cd15287e64d961a2ef93849b4e960c82
|
|
| BLAKE2b-256 |
647af4a43613f21dda4259f20dc24351c2de42cc12210ecc59c51c6ffbf13d7f
|