geo-engine-python 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,117 @@
1
+ Metadata-Version: 2.4
2
+ Name: geo-engine-python
3
+ Version: 0.1.2
4
+ Summary: SDK oficial para Geo-Engine: Rastreo y Geofencing
5
+ Author-email: AlexG <alexg695845@gmail.com>
6
+ Project-URL: Homepage, https://app.geoengine.dev
7
+ Project-URL: Bug Tracker, https://github.com/AlexG695/geo-engine/issues
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/markdown
13
+ Requires-Dist: requests>=2.25.0
14
+
15
+ # 🐍 Geo-Engine Python SDK
16
+
17
+ Cliente oficial en **Python** para interactuar con la plataforma **Geo-Engine**.
18
+ 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**.
19
+
20
+ Diseñado para ser **simple**, **rápido** y **fácil de integrar**.
21
+
22
+ ---
23
+
24
+ ## 🚀 Instalación
25
+
26
+ Instala el SDK usando `pip`:
27
+
28
+ ```bash
29
+ pip install geo-engine-python
30
+ ```
31
+
32
+ ---
33
+
34
+ ## ⚡ Uso Rápido
35
+
36
+ Envía la ubicación de un dispositivo en pocos pasos:
37
+
38
+ ```python
39
+ from geo_engine import GeoEngine
40
+
41
+ # 1. Inicializar el cliente
42
+ # Por defecto se conecta al entorno de producción
43
+ client = GeoEngine(api_key="sk_live_123456")
44
+
45
+ # 2. Enviar ubicación
46
+ try:
47
+ res = client.send_location(
48
+ device_id="camion-01",
49
+ lat=19.4326,
50
+ lng=-99.1332
51
+ )
52
+ print(f"✅ Enviado: {res}")
53
+ except Exception as e:
54
+ print(f"❌ Error: {e}")
55
+ ```
56
+
57
+ ---
58
+
59
+ ## 🔧 Configuración Avanzada
60
+
61
+ Puedes personalizar la configuración para conectarte a otros entornos (por ejemplo, local o staging) o modificar URLs internas:
62
+
63
+ ```python
64
+ client = GeoEngine(
65
+ api_key="sk_test_...",
66
+ ingest_url="http://localhost:8080",
67
+ management_url="http://localhost:8081"
68
+ )
69
+ ```
70
+
71
+ ---
72
+
73
+ ## 🧩 Casos de Uso Comunes
74
+
75
+ * 📍 **Tracking en tiempo real** de vehículos o dispositivos IoT
76
+ * 🚚 **Logística y última milla**
77
+ * 🗺️ **Geocercas** y eventos por entrada/salida
78
+ * 📊 **Análisis de datos geoespaciales** en notebooks o pipelines
79
+
80
+ ---
81
+
82
+ ## 🔐 Autenticación
83
+
84
+ El SDK utiliza **API Keys** para autenticarse.
85
+ Asegúrate de mantenerlas seguras y **no exponerlas en el frontend**.
86
+
87
+ ```python
88
+ GeoEngine(api_key="sk_live_...")
89
+ ```
90
+
91
+ ---
92
+
93
+ ## 🧪 Compatibilidad
94
+
95
+ * Python **3.8+**
96
+ * Funciona con:
97
+
98
+ * Django
99
+ * Flask
100
+ * FastAPI
101
+ * Scripts CLI
102
+ * Jupyter / Data Science
103
+
104
+ ---
105
+
106
+ ## 📄 Licencia
107
+
108
+ MIT © Geo-Engine
109
+
110
+ ---
111
+
112
+ ## 🤝 Soporte
113
+
114
+ ¿Tienes dudas o sugerencias?
115
+ Abre un issue o contáctanos en **[support@geoengine.dev](mailto:support@geoengine.dev)**
116
+
117
+ ---
@@ -0,0 +1,5 @@
1
+ geoengine.py,sha256=EvdP--5NJOFvjn-A0QVEqufzTSWIOhCnO_xWMLqopiE,2693
2
+ geo_engine_python-0.1.2.dist-info/METADATA,sha256=9Y7o40PKbVf87KnHcowtVpLSNi7wDN_Pu6j9zePtfs0,2569
3
+ geo_engine_python-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ geo_engine_python-0.1.2.dist-info/top_level.txt,sha256=bqE5zIDfI6saPEFHhCIwqCBOhsiQ998LGjP_srSIg9E,10
5
+ geo_engine_python-0.1.2.dist-info/RECORD,,
geoengine.py CHANGED
@@ -4,7 +4,7 @@ import json
4
4
 
5
5
  class GeoEngine:
6
6
  DEFAULT_MANAGEMENT_URL = "https://api.geoengine.dev"
7
- DEFAULT_INGEST_URL = "http://ingest.geoengine.dev"
7
+ DEFAULT_INGEST_URL = "https://ingest.geoengine.dev"
8
8
 
9
9
  def __init__(self, api_key, management_url=None, ingest_url=None):
10
10
  """
@@ -1,13 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: geo-engine-python
3
- Version: 0.1.0
4
- Summary: SDK oficial para Geo-Engine: Rastreo y Geofencing
5
- Author-email: AlexG <alexg695845@gmail.com>
6
- Project-URL: Homepage, https://geoengine.dev
7
- Project-URL: Bug Tracker, https://github.com/AlexG695/geo-engine/issues
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.7
12
- Description-Content-Type: text/markdown
13
- Requires-Dist: requests>=2.25.0
@@ -1,5 +0,0 @@
1
- geoengine.py,sha256=xoRIyzAGs5PaYIn9NgNYNe3KR1HqMgdT45bfJ5R5cfk,2692
2
- geo_engine_python-0.1.0.dist-info/METADATA,sha256=6mHIWITI8Y8hpvmmaaY4FhVyM5QUHVV52rC2Au03Eso,522
3
- geo_engine_python-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- geo_engine_python-0.1.0.dist-info/top_level.txt,sha256=bqE5zIDfI6saPEFHhCIwqCBOhsiQ998LGjP_srSIg9E,10
5
- geo_engine_python-0.1.0.dist-info/RECORD,,