Skip to main content

API for Sprinkl sprinkler controller

Project description

sprinkl-async: A Simple Python Library for Sprinkl™ Controllers

Travis CI PyPi Version License Code Coverage Maintainability

sprinkl-async is a Python library for interacting with Sprinkl™ Control SR-400

Python Versions

The python test suite requires Python 3.6 or higher; tests run on Python 3.5 will fail.

sprinkl-async is currently supported on:

  • Python 3.5
  • Python 3.6
  • Python 3.7

Installation

pip install sprinkl_async

Examples

Get controller and zones

import asyncio
from aiohttp import ClientSession
from sprinkl_async import Client

async def main() -> None:
    """Create client and login"""
    async with ClientSession() as session:
        # Create sprinkl-async client
        client = Client(session)

        # login
        auth = await client.login(email="email", password="secret")

asyncio.get_event_loop().run_until_complete(main())

Developing

  1. Install developer environment: make init
  2. Use virtual environment for development: pipenv shell
  3. Write code/tests and be happy
  4. Update README.MD with examples

Testing

  1. Write new tests for the functionality added
  2. Run tests and ensure 100% coverage: make coverage
  3. Ensure no lint errors: make lint
  4. Ensure no typing errors: make type

Contributing

Follow the developing/testing flows and follow CONTRIBUTING.MD for details.

License

Apache 2.0; see LICENSE for details.

Inspiration

The API for Sprinkl-async follow the same design principals as Regenmaschine Say Thanks

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

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

sprinkl_async-0.1.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

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

sprinkl_async-0.1.1-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file sprinkl_async-0.1.1.tar.gz.

File metadata

  • Download URL: sprinkl_async-0.1.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for sprinkl_async-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6bbf1a5a4190e5dcf1d4574a2988814735cb20e67be173a7dd47dbe5b42e13a7
MD5 6c0496b42fc9a04a510b5abe84f58403
BLAKE2b-256 b44ee7f41c9ce362e34c96912afe22768b32c0b1cc7ae9a18d4e7dc5106fb6c3

See more details on using hashes here.

File details

Details for the file sprinkl_async-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sprinkl_async-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for sprinkl_async-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05e67da6585fe13a5632d8ca591ba87f2e30473c81c8527fec4c0dd61940c091
MD5 077a3111ecc3a4e43bd99b6e54d7f195
BLAKE2b-256 f97f700d39ff49931aaacdab91a27bffa5e6298f1ee85f893cfc99522faa1f36

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