Skip to main content

"This package can be used to control the Baby Brezza's Formula Pro Advanced WiFi."

Project description

pybabyfpa

This package can be used to control Baby Brezza's Formula Pro Advanced WiFi.

NOTE: This is an unofficial community project which is not affiliated with Baby Brezza.

Sample Usage

import asyncio
from pybabyfpa import Fpa

async def main():
    fpa = Fpa()
    
    await fpa.login("email@example.com", "password")
    # await fpa.refresh(refresh_token_from_previous_session)

    # Basic user information
    print(f"Name: {fpa.first_name} {fpa.last_name}")
    print(f"Email: {fpa.email}")

    for device in fpa.devices:
        print(f"Device: {device.device_id} '{device.title}'")

    # Device information
    details = await fpa.get_device_details(fpa.devices[0].device_id)

    for bottle in details.bottles:
        print(f"Bottle {bottle.id}: '{bottle.title}' {bottle.volume}{bottle.volume_unit} of {bottle.formula}")

    # Start a bottle
    await fpa.start_bottle(details.bottles[0].id)

    await fpa.close()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

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

pybabyfpa-0.0.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

pybabyfpa-0.0.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pybabyfpa-0.0.6.tar.gz.

File metadata

  • Download URL: pybabyfpa-0.0.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for pybabyfpa-0.0.6.tar.gz
Algorithm Hash digest
SHA256 5b38554627b4906bdf5c3f4ac5951f5c82a3838d3e90c323efbab9d17b045f4c
MD5 b475572b53561385b039ecfceb77b6f5
BLAKE2b-256 fc0c72f02bf367891ae82b33edbe18b12c0eea47441eaeade68c163b2a0e8c88

See more details on using hashes here.

File details

Details for the file pybabyfpa-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pybabyfpa-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for pybabyfpa-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d888c7f0e9e510bdb39da1e097459e7141a908c683c51bd61dfbdc1662a952
MD5 ec105f233a4773a17be1aa1a400274bb
BLAKE2b-256 0db7d868bb41a345bf388b23fc93d784a5701b2d1c00e99af92e9ecdf601955e

See more details on using hashes here.

Supported by

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