Skip to main content

A Skybell Gen5 API Python library running on Python 3.

Project description

aioskybellgen

Asynchronous python communication driver for Skybell Cloud APIs

python version PyPI

Installation

python3 -m pip install aioskybellgen

Example usage

More examples can be found in the tests directory.

    """Provide an example usage of aioskybellgen."""
    # Sign on to Skybell API
    async with Skybell(
        username=USER_NAME, password=PASSWORD, get_devices=True
    ) as client:
        # Update the user and session cache
        await client.async_update_cache({CONST.ACCESS_TOKEN: ""})
        # Get the initial set of devices without events and activities
        devices = await client.async_initialize()
        for device in devices:
            # Update/refresh the activities and events
            await device.async_update()
            print(f"Device: {device.device_id}, Status: {device.status}")


loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
try:
    loop.run_until_complete(async_example())
except KeyboardInterrupt:
    pass

Contribute

All contributions are welcome!

  1. Fork the repository
  2. Clone the repository locally and open the devcontainer or use GitHub codespaces
  3. Do your changes
  4. Lint the files with make lint
  5. Ensure all tests passes with make test
  6. Ensure 100% coverage with make coverage
  7. Commit your work, and push it to GitHub
  8. Create a PR against the develop branch

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

aioskybellgen-0.1.5.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

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

aioskybellgen-0.1.5-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file aioskybellgen-0.1.5.tar.gz.

File metadata

  • Download URL: aioskybellgen-0.1.5.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioskybellgen-0.1.5.tar.gz
Algorithm Hash digest
SHA256 264b56e1610cf4f9958de847c31abb50aef40945d4adc35dd04a981111f03de1
MD5 8d8c23b23f05c80923428591fbb40ad0
BLAKE2b-256 5e29b1f48f26a5943e267011d39b832455d25fe3baa8eac7e2ebd47c20f78629

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioskybellgen-0.1.5.tar.gz:

Publisher: python-publish.yml on tcareyintx/aioskybellgen

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

File details

Details for the file aioskybellgen-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: aioskybellgen-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioskybellgen-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 860892e485b41cf89ae3b2dab526d4195e92dc20ffd08423294d4e9be500fe82
MD5 b2dce8f123ea47c618169fae91219994
BLAKE2b-256 c114fd3604831aae6499da862c4081442989c3f12abdca690fde1f3ad5d5a5f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioskybellgen-0.1.5-py3-none-any.whl:

Publisher: python-publish.yml on tcareyintx/aioskybellgen

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