bdbcar
Consulta de solo lectura a una base de datos CARIS Bathy DataBASE (BDB): exporta a CSV las ultimas features modificadas segun el journal de la base.
- Sin credenciales en el codigo. Host, base de datos, usuario y contrasena se piden
en un formulario HTML5 que se abre en tu navegador desde un servidor local
(
127.0.0.1, puerto aleatorio, token de un solo uso). Nada se guarda en disco. - Sin dependencias pip. Solo biblioteca estandar. El modulo
carisde Teledyne CARIS (5.6 / 6.1, Python 3.9) se importa de forma perezosa desde tu instalacion local de CARIS; indica su ruta con--caris-patho con la variableCARIS_PYTHON_PATH(por defectoC:\CARIS\BASE Editor\6.1\python\3.9).
Instalacion
pip install bdbcar
Uso en linea de comandos
bdbcar --limit 50 --output ultimos_50.csv
python -m bdbcar --no-browser # solo imprime la URL del formulario
Uso como libreria
import sys
import bdbcar
creds = bdbcar.ask_credentials() # abre el formulario web local
db = bdbcar.connect(creds)
rows = bdbcar.last_modified(db, limit=50)
bdbcar.write_csv(rows, sys.stdout)
Columnas del CSV: fecha_hora;operacion;usuario;fid;OBJNAM;planam;ihmsou;ModificationTime.
Nunca se hace commit ni se escribe en la base de datos.
Licencia
MIT
Metadata
Release files for bdbcar 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bdbcar-0.2.0-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
Release files / bdbcar-0.2.0-cp39-cp39-win_amd64.whl
| Download URL | bdbcar-0.2.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 517.5 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
62dc133f3b6b7ca94cfb6441baa7750cb9d00ac47dc076308293135724865635
|
|
BLAKE2b-256 checksum How to use checksums |
4c5380d217a74ab89dafa0a46dde4e69614e0a45af243e27118b02de33eab94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|