geo-engine-python 0.1.0__tar.gz → 0.1.2__tar.gz
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.
- geo_engine_python-0.1.2/PKG-INFO +117 -0
- geo_engine_python-0.1.2/README.md +103 -0
- geo_engine_python-0.1.2/geo_engine_python.egg-info/PKG-INFO +117 -0
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geo_engine_python.egg-info/SOURCES.txt +1 -0
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geoengine.py +1 -1
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/pyproject.toml +2 -2
- geo_engine_python-0.1.0/PKG-INFO +0 -13
- geo_engine_python-0.1.0/geo_engine_python.egg-info/PKG-INFO +0 -13
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geo_engine_python.egg-info/dependency_links.txt +0 -0
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geo_engine_python.egg-info/requires.txt +0 -0
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geo_engine_python.egg-info/top_level.txt +0 -0
- {geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/setup.cfg +0 -0
|
@@ -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,103 @@
|
|
|
1
|
+
# 🐍 Geo-Engine Python SDK
|
|
2
|
+
|
|
3
|
+
Cliente oficial en **Python** para interactuar con la plataforma **Geo-Engine**.
|
|
4
|
+
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**.
|
|
5
|
+
|
|
6
|
+
Diseñado para ser **simple**, **rápido** y **fácil de integrar**.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🚀 Instalación
|
|
11
|
+
|
|
12
|
+
Instala el SDK usando `pip`:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pip install geo-engine-python
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## ⚡ Uso Rápido
|
|
21
|
+
|
|
22
|
+
Envía la ubicación de un dispositivo en pocos pasos:
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
from geo_engine import GeoEngine
|
|
26
|
+
|
|
27
|
+
# 1. Inicializar el cliente
|
|
28
|
+
# Por defecto se conecta al entorno de producción
|
|
29
|
+
client = GeoEngine(api_key="sk_live_123456")
|
|
30
|
+
|
|
31
|
+
# 2. Enviar ubicación
|
|
32
|
+
try:
|
|
33
|
+
res = client.send_location(
|
|
34
|
+
device_id="camion-01",
|
|
35
|
+
lat=19.4326,
|
|
36
|
+
lng=-99.1332
|
|
37
|
+
)
|
|
38
|
+
print(f"✅ Enviado: {res}")
|
|
39
|
+
except Exception as e:
|
|
40
|
+
print(f"❌ Error: {e}")
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 🔧 Configuración Avanzada
|
|
46
|
+
|
|
47
|
+
Puedes personalizar la configuración para conectarte a otros entornos (por ejemplo, local o staging) o modificar URLs internas:
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
client = GeoEngine(
|
|
51
|
+
api_key="sk_test_...",
|
|
52
|
+
ingest_url="http://localhost:8080",
|
|
53
|
+
management_url="http://localhost:8081"
|
|
54
|
+
)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🧩 Casos de Uso Comunes
|
|
60
|
+
|
|
61
|
+
* 📍 **Tracking en tiempo real** de vehículos o dispositivos IoT
|
|
62
|
+
* 🚚 **Logística y última milla**
|
|
63
|
+
* 🗺️ **Geocercas** y eventos por entrada/salida
|
|
64
|
+
* 📊 **Análisis de datos geoespaciales** en notebooks o pipelines
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🔐 Autenticación
|
|
69
|
+
|
|
70
|
+
El SDK utiliza **API Keys** para autenticarse.
|
|
71
|
+
Asegúrate de mantenerlas seguras y **no exponerlas en el frontend**.
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
GeoEngine(api_key="sk_live_...")
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🧪 Compatibilidad
|
|
80
|
+
|
|
81
|
+
* Python **3.8+**
|
|
82
|
+
* Funciona con:
|
|
83
|
+
|
|
84
|
+
* Django
|
|
85
|
+
* Flask
|
|
86
|
+
* FastAPI
|
|
87
|
+
* Scripts CLI
|
|
88
|
+
* Jupyter / Data Science
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 📄 Licencia
|
|
93
|
+
|
|
94
|
+
MIT © Geo-Engine
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 🤝 Soporte
|
|
99
|
+
|
|
100
|
+
¿Tienes dudas o sugerencias?
|
|
101
|
+
Abre un issue o contáctanos en **[support@geoengine.dev](mailto:support@geoengine.dev)**
|
|
102
|
+
|
|
103
|
+
---
|
|
@@ -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
|
+
---
|
|
@@ -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 = "
|
|
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
|
"""
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "geo-engine-python"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="AlexG", email="alexg695845@gmail.com" },
|
|
10
10
|
]
|
|
@@ -21,5 +21,5 @@ dependencies = [
|
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
[project.urls]
|
|
24
|
-
"Homepage" = "https://geoengine.dev"
|
|
24
|
+
"Homepage" = "https://app.geoengine.dev"
|
|
25
25
|
"Bug Tracker" = "https://github.com/AlexG695/geo-engine/issues"
|
geo_engine_python-0.1.0/PKG-INFO
DELETED
|
@@ -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,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
|
{geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geo_engine_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{geo_engine_python-0.1.0 → geo_engine_python-0.1.2}/geo_engine_python.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|