Skip to main content

pyfire is a package that simplifies querying with Pyrebase, making interactions with Firebase databases effortless.

Project description

pyfiredb

Agiliza las consultas a la base de datos utilizando la librería "Pyrebase". Pyrebase es una biblioteca de Python que proporciona una interfaz para interactuar con Firebase, una plataforma de desarrollo de aplicaciones web y móviles.

Características

  • Permite actualizar, leer, buscar el máximo, buscar entre, buscar

Instalación y uso

Instalación

pip install pyfiredb

Uso

Un ejemplo para usar este paquete, la configuración de firebase y credenciales de acceso se han tomado desde las variables de entorno

from pyfiredb import Credentials
from pyfiredb import Database
from pyfiredb import Session


def run():
    fire = Session(Credentials.user, Credentials.password)
    firebase = Database(fire)
    print(firebase.equal("alegra/products", "reference", "TP-19100"))
    print(firebase.get("woocommerce/products"))
    invoices = firebase.between("alegra/invoices", "date",
                                "2023-05-01", "2023-05-1")
    print(invoices[1])


if __name__ == "__main__":

    run()

Créditos

  • Camilo Andrés Rodriguez

referencias

Licencia

Este proyecto está bajo la Licencia [MIT].


¡Puedes personalizarlo según las necesidades específicas de tu proyecto!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfiredb-0.0.8.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file pyfiredb-0.0.8.tar.gz.

File metadata

  • Download URL: pyfiredb-0.0.8.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pyfiredb-0.0.8.tar.gz
Algorithm Hash digest
SHA256 133dd747033f349ff0108db68de4041d43762fc9c79072fa341fba91247a30b2
MD5 bb8e60ba8067dfee6cd3115cde1e762f
BLAKE2b-256 4e1967594e94d4896cfd39b91190149753a21a3087e38a59aaca35c86a560b5c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page