bbdd-utils 0.2.0__py3-none-any.whl → 0.2.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.
- bbdd_utils/utils.py +8 -0
- bbdd_utils-0.2.2.dist-info/METADATA +24 -0
- bbdd_utils-0.2.2.dist-info/RECORD +7 -0
- bbdd_utils-0.2.0.dist-info/METADATA +0 -11
- bbdd_utils-0.2.0.dist-info/RECORD +0 -7
- {bbdd_utils-0.2.0.dist-info → bbdd_utils-0.2.2.dist-info}/WHEEL +0 -0
- {bbdd_utils-0.2.0.dist-info → bbdd_utils-0.2.2.dist-info}/licenses/LICENSE +0 -0
- {bbdd_utils-0.2.0.dist-info → bbdd_utils-0.2.2.dist-info}/top_level.txt +0 -0
bbdd_utils/utils.py
CHANGED
@@ -2,6 +2,14 @@ def saludar(nombre):
|
|
2
2
|
return f"Hola, {nombre}! Esta es tu librería personalizada."
|
3
3
|
|
4
4
|
|
5
|
+
def mongo_bbdd_conection(base_datos):
|
6
|
+
from pymongo import MongoClient
|
7
|
+
# Conectar a MongoDB
|
8
|
+
cliente = MongoClient('localhost', 27017)
|
9
|
+
|
10
|
+
db=cliente.base_datos
|
11
|
+
|
12
|
+
|
5
13
|
|
6
14
|
def Conector_bbdd(tipo='sqlite', nombre='mi_base_de_datos', host='localhost', puerto=None, usuario=None, contraseña=None):
|
7
15
|
"""
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: bbdd_utils
|
3
|
+
Version: 0.2.2
|
4
|
+
Summary: libreria para la gestion de bases de datos
|
5
|
+
Author: Luis_J_Domingo
|
6
|
+
Description-Content-Type: text/markdown
|
7
|
+
License-File: LICENSE
|
8
|
+
Dynamic: author
|
9
|
+
Dynamic: description
|
10
|
+
Dynamic: description-content-type
|
11
|
+
Dynamic: license-file
|
12
|
+
Dynamic: summary
|
13
|
+
|
14
|
+
|
15
|
+
# bbdd_utils
|
16
|
+
|
17
|
+
**bbdd_utils** es una librerÃa en Python diseñada para facilitar la gestión de bases de datos SQL y NoSQL. Ofrece funciones para conectar a bases de datos SQLite, MySQL y MongoDB, asà como para cerrar conexiones de manera sencilla.
|
18
|
+
|
19
|
+
## Instalación
|
20
|
+
|
21
|
+
Puedes instalar la librerÃa localmente utilizando `pip`:
|
22
|
+
|
23
|
+
```bash
|
24
|
+
pip install .
|
@@ -0,0 +1,7 @@
|
|
1
|
+
bbdd_utils/__init__.py,sha256=mfT9j4sXdmNbWKXnuAaL1YNWtqmDiUp_C3SepMIqf-4,90
|
2
|
+
bbdd_utils/utils.py,sha256=BUqLIaZQTIh7CKBYGNMSe8xLjNxGV2zL__l8V5SCnUc,2168
|
3
|
+
bbdd_utils-0.2.2.dist-info/licenses/LICENSE,sha256=D4uqg6QX0fapLNcdUznOuGaRIUPnypOdeE2zIyYq7xY,217
|
4
|
+
bbdd_utils-0.2.2.dist-info/METADATA,sha256=W_tpJKcHNG2709ZpWPIYNLWRVrXpUeaiPuaiVP36BeA,688
|
5
|
+
bbdd_utils-0.2.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
6
|
+
bbdd_utils-0.2.2.dist-info/top_level.txt,sha256=bBGkVkxnOw7tZ2zRcyCM3lgVgYo1hFbcmwkGdKAj9Gk,11
|
7
|
+
bbdd_utils-0.2.2.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: bbdd_utils
|
3
|
-
Version: 0.2.0
|
4
|
-
Summary: libreria para la gestion de bases de datos
|
5
|
-
Author: Luis_J_Domingo
|
6
|
-
Description-Content-Type: text/markdown
|
7
|
-
License-File: LICENSE
|
8
|
-
Dynamic: author
|
9
|
-
Dynamic: description-content-type
|
10
|
-
Dynamic: license-file
|
11
|
-
Dynamic: summary
|
@@ -1,7 +0,0 @@
|
|
1
|
-
bbdd_utils/__init__.py,sha256=mfT9j4sXdmNbWKXnuAaL1YNWtqmDiUp_C3SepMIqf-4,90
|
2
|
-
bbdd_utils/utils.py,sha256=ry_puN5vEjE6zpMvTjxF7DOpVJu5lbBkydHQwnSgcwk,1978
|
3
|
-
bbdd_utils-0.2.0.dist-info/licenses/LICENSE,sha256=D4uqg6QX0fapLNcdUznOuGaRIUPnypOdeE2zIyYq7xY,217
|
4
|
-
bbdd_utils-0.2.0.dist-info/METADATA,sha256=OA5mDudArgvO0JAScm1sA1FjOwYqpJQm2w8-OeZJLUg,291
|
5
|
-
bbdd_utils-0.2.0.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
6
|
-
bbdd_utils-0.2.0.dist-info/top_level.txt,sha256=bBGkVkxnOw7tZ2zRcyCM3lgVgYo1hFbcmwkGdKAj9Gk,11
|
7
|
-
bbdd_utils-0.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|