bbdd-utils 0.2.0__py3-none-any.whl → 0.2.1__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 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
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bbdd_utils
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: libreria para la gestion de bases de datos
5
5
  Author: Luis_J_Domingo
6
6
  Description-Content-Type: text/markdown
@@ -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.1.dist-info/licenses/LICENSE,sha256=D4uqg6QX0fapLNcdUznOuGaRIUPnypOdeE2zIyYq7xY,217
4
+ bbdd_utils-0.2.1.dist-info/METADATA,sha256=sv9uraT1jNwGNpgB8d2FeqBjdNF5kfVB6NEK404NvJw,291
5
+ bbdd_utils-0.2.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
6
+ bbdd_utils-0.2.1.dist-info/top_level.txt,sha256=bBGkVkxnOw7tZ2zRcyCM3lgVgYo1hFbcmwkGdKAj9Gk,11
7
+ bbdd_utils-0.2.1.dist-info/RECORD,,
@@ -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,,