Skip to content

Commit

Permalink
We-write to use asyncio. Now supports async for all functions and syn…
Browse files Browse the repository at this point in the history
…chonous wrappers for all functions as well.

Merge branch 'release/2.0.0'
  • Loading branch information
mcclown committed Jun 10, 2019
2 parents d563f31 + 85739da commit a332436
Show file tree
Hide file tree
Showing 18 changed files with 1,220 additions and 730 deletions.
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
branch=True
concurrency=multiprocessing
source=aquaipy
omit=*test*

[report]
fail_under=100
show_missing=True
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,9 @@ venv.bak/

# mypy
.mypy_cache/

# vim cache files
*.swp

# pytest settings file, for integration tests.
pytest.ini
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Quickstart

Install aquaipy using `pip`: `$ pip install aquaipy`. Once that is complete you can import the AquaIPy class and connect to your lights.

In this guide synchronous calls are shown but v2.0.0 of AquaIPy was a we-write, to provide async support. Synchronous functions are still supported but they are just wrappers of the async functions.

```python
>>> from aquaipy import AquaIPy
>>> ai = AquaIPy()
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Quickstart
Install aquaipy using ``pip``: ``$ pip install aquaipy``. Once that is
complete you can import the AquaIPy class and connect to your lights.

In this guide synchronous calls are shown but v2.0.0 of AquaIPy was a
we-write, to provide async support. Synchronous functions are still
supported but they are just wrappers of the async functions.

.. code:: python
>>> from aquaipy import AquaIPy
Expand Down
2 changes: 1 addition & 1 deletion aquaipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

from .aquaipy import AquaIPy, Response # noqa: F401

_VERSION_ = "1.0.2"
_VERSION_ = "2.0.0"
Loading

0 comments on commit a332436

Please sign in to comment.