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.7.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybabyfpa-0.0.7.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pybabyfpa-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c7189259895b27a1caa0909ccffc7645807ef0d5c2ba8c6c040b53aa3b6914c7
MD5 5686dbbf5ea4e60ac9d544bfb0aabc5c
BLAKE2b-256 74a79becc694501e0dffff35594e05b29d0d66d88081f2fe991b605ce4b79c76

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybabyfpa-0.0.7.tar.gz:

Publisher: publish.yaml on joncar/pybabyfpa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pybabyfpa-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pybabyfpa-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 54a1aef1cbd47f61fa12cc0833c8f47d7548da7e19dcaa8790db3b9102c10c44
MD5 adfed350c959ae95b29ffe7494dd3d93
BLAKE2b-256 76c711f1bedf957923c6113f4223a7c24817f3b45a881df4750d91a90b520f3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybabyfpa-0.0.7-py3-none-any.whl:

Publisher: publish.yaml on joncar/pybabyfpa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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