# 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
```python
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
- https://github.com/nhorvath/Pyrebase4
## Licencia
Este proyecto está bajo la Licencia [MIT].
---
¡Puedes personalizarlo según las necesidades específicas de tu proyecto!
Raw data
{
"_id": null,
"home_page": "https://github.com/andresroh/pyfire",
"name": "pyfiredb",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, alegra, alegra.com",
"author": "Camilo Andr\u00e9s Rodr\u00edguez",
"author_email": "andres.roh@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/f3/55/114e1ee081bd1bda0f445eba1abb7577b63cc9cdf6ce0e7edab63fdbecb0/pyfiredb-0.0.7.tar.gz",
"platform": null,
"description": "# pyfiredb\n\nAgiliza las consultas a la base de datos utilizando la librer\u00eda \"Pyrebase\". Pyrebase es una biblioteca de Python que proporciona una interfaz para interactuar con Firebase, una plataforma de desarrollo de aplicaciones web y m\u00f3viles.\n\n## Caracter\u00edsticas\n\n- Permite actualizar, leer, buscar el m\u00e1ximo, buscar entre, buscar \n\n## Instalaci\u00f3n y uso\n\n### Instalaci\u00f3n\n\n```\npip install pyfiredb\n```\n\n### Uso\n\nUn ejemplo para usar este paquete, la configuraci\u00f3n de firebase y credenciales de acceso se han tomado desde las variables de entorno\n\n```python\nfrom pyfiredb import Credentials\nfrom pyfiredb import Database\nfrom pyfiredb import Session\n\n\ndef run():\n fire = Session(Credentials.user, Credentials.password)\n firebase = Database(fire)\n print(firebase.equal(\"alegra/products\", \"reference\", \"TP-19100\"))\n print(firebase.get(\"woocommerce/products\"))\n invoices = firebase.between(\"alegra/invoices\", \"date\",\n \"2023-05-01\", \"2023-05-1\")\n print(invoices[1])\n\n\nif __name__ == \"__main__\":\n\n run()\n```\n\n## Cr\u00e9ditos\n\n- Camilo Andr\u00e9s Rodriguez\n\n## referencias\n\n- https://github.com/nhorvath/Pyrebase4\n\n\n## Licencia\n\nEste proyecto est\u00e1 bajo la Licencia [MIT].\n\n---\n\n\u00a1Puedes personalizarlo seg\u00fan las necesidades espec\u00edficas de tu proyecto!\n\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "pyfire is a package that simplifies querying with Pyrebase, making interactions with Firebase databases effortless.",
"version": "0.0.7",
"project_urls": {
"Homepage": "https://github.com/andresroh/pyfire"
},
"split_keywords": [
"python",
" alegra",
" alegra.com"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f355114e1ee081bd1bda0f445eba1abb7577b63cc9cdf6ce0e7edab63fdbecb0",
"md5": "e1e6a22b829bdd39a2993d17beefe274",
"sha256": "939a98300ea0c24e7ef54ae4bb2f13835fd7c92feeeed644d79f527e125b0df6"
},
"downloads": -1,
"filename": "pyfiredb-0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "e1e6a22b829bdd39a2993d17beefe274",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3928,
"upload_time": "2024-06-25T22:44:26",
"upload_time_iso_8601": "2024-06-25T22:44:26.899869Z",
"url": "https://files.pythonhosted.org/packages/f3/55/114e1ee081bd1bda0f445eba1abb7577b63cc9cdf6ce0e7edab63fdbecb0/pyfiredb-0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-25 22:44:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "andresroh",
"github_project": "pyfire",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "certifi",
"specs": [
[
"==",
"2023.5.7"
]
]
},
{
"name": "cffi",
"specs": [
[
"==",
"1.15.1"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.1.0"
]
]
},
{
"name": "cryptography",
"specs": [
[
"==",
"41.0.1"
]
]
},
{
"name": "Deprecated",
"specs": [
[
"==",
"1.2.14"
]
]
},
{
"name": "environs",
"specs": [
[
"==",
"9.5.0"
]
]
},
{
"name": "gcloud",
"specs": [
[
"==",
"0.18.3"
]
]
},
{
"name": "googleapis-common-protos",
"specs": [
[
"==",
"1.59.0"
]
]
},
{
"name": "httplib2",
"specs": [
[
"==",
"0.22.0"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.4"
]
]
},
{
"name": "jwcrypto",
"specs": [
[
"==",
"1.5.0"
]
]
},
{
"name": "marshmallow",
"specs": [
[
"==",
"3.19.0"
]
]
},
{
"name": "oauth2client",
"specs": [
[
"==",
"4.1.3"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"23.1"
]
]
},
{
"name": "protobuf",
"specs": [
[
"==",
"4.23.2"
]
]
},
{
"name": "pyasn1",
"specs": [
[
"==",
"0.5.0"
]
]
},
{
"name": "pyasn1-modules",
"specs": [
[
"==",
"0.3.0"
]
]
},
{
"name": "pycparser",
"specs": [
[
"==",
"2.21"
]
]
},
{
"name": "pycryptodome",
"specs": [
[
"==",
"3.18.0"
]
]
},
{
"name": "pyparsing",
"specs": [
[
"==",
"3.0.9"
]
]
},
{
"name": "Pyrebase4",
"specs": [
[
"==",
"4.7.0"
]
]
},
{
"name": "python-dotenv",
"specs": [
[
"==",
"1.0.0"
]
]
},
{
"name": "python-jwt",
"specs": [
[
"==",
"4.0.0"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
},
{
"name": "requests-toolbelt",
"specs": [
[
"==",
"0.10.1"
]
]
},
{
"name": "rsa",
"specs": [
[
"==",
"4.9"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.16.0"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"1.26.15"
]
]
},
{
"name": "wrapt",
"specs": [
[
"==",
"1.15.0"
]
]
}
],
"lcname": "pyfiredb"
}