SDK oficial para Geo-Engine: Rastreo y Geofencing
Project description
🐍 Geo-Engine Python SDK
Cliente oficial en Python para interactuar con la plataforma Geo-Engine. Permite enviar ubicaciones en tiempo real, gestionar geocercas y consumir la API de Geo-Engine desde aplicaciones Django, Flask, scripts o entornos de Data Science.
Diseñado para ser simple, rápido y fácil de integrar.
🚀 Instalación
Instala el SDK usando pip:
pip install geo-engine-python
⚡ Uso Rápido
Envía la ubicación de un dispositivo en pocos pasos:
from geo_engine import GeoEngine
# 1. Inicializar el cliente
# Por defecto se conecta al entorno de producción
client = GeoEngine(api_key="sk_live_123456")
# 2. Enviar ubicación
try:
res = client.send_location(
device_id="camion-01",
lat=19.4326,
lng=-99.1332
)
print(f"✅ Enviado: {res}")
except Exception as e:
print(f"❌ Error: {e}")
🔧 Configuración Avanzada
Puedes personalizar la configuración para conectarte a otros entornos (por ejemplo, local o staging) o modificar URLs internas:
client = GeoEngine(
api_key="sk_test_...",
ingest_url="http://localhost:8080",
management_url="http://localhost:8081"
)
🧩 Casos de Uso Comunes
- 📍 Tracking en tiempo real de vehículos o dispositivos IoT
- 🚚 Logística y última milla
- 🗺️ Geocercas y eventos por entrada/salida
- 📊 Análisis de datos geoespaciales en notebooks o pipelines
🔐 Autenticación
El SDK utiliza API Keys para autenticarse. Asegúrate de mantenerlas seguras y no exponerlas en el frontend.
GeoEngine(api_key="sk_live_...")
🧪 Compatibilidad
-
Python 3.8+
-
Funciona con:
- Django
- Flask
- FastAPI
- Scripts CLI
- Jupyter / Data Science
📄 Licencia
MIT © Geo-Engine
🤝 Soporte
¿Tienes dudas o sugerencias? Abre un issue o contáctanos en support@geoengine.dev
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
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 geo_engine_python-0.1.3.tar.gz.
File metadata
- Download URL: geo_engine_python-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e010b9a268006ea07b5712915f2ed374a755628e20e53c7184ddf1617380226a
|
|
| MD5 |
78812998ba1bb9260a128fe7ef50ebca
|
|
| BLAKE2b-256 |
0f1bb67a70adc33377e086864e6eec7a27bff5ae251788aa37e0d487d1c2b363
|
File details
Details for the file geo_engine_python-0.1.3-py3-none-any.whl.
File metadata
- Download URL: geo_engine_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d11703174480b945676c1a6f3611fd7ae6b6226bc157891d31f84d149c4b69e
|
|
| MD5 |
5f625ab124885293c35d5a17afb6aa11
|
|
| BLAKE2b-256 |
129be3bc9b093cc6d75f369a429d8f1aa321983d6846460b768f238b164de5b2
|