Skip to content

Commit 22b7985

Browse files
authored
Enhancement/reuse session (#5)
1 parent 8b44455 commit 22b7985

7 files changed

Lines changed: 241 additions & 158 deletions

File tree

README.md

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,34 @@ Somfy TaHoma has an official API, which can be consumed via the [Somfy-open-api]
1111

1212
This package is written for the Home Assistant [ha-tahoma](https://github.com/iMicknl/ha-tahoma) integration, but could be used by any Python project interacting with Somfy TaHoma devices.
1313

14-
# Development
15-
1614
## Installation
1715

18-
* For Linux, install [pyenv](https://github.com/pyenv/pyenv) using [pyenv-installer](https://github.com/pyenv/pyenv-installer)
19-
* For MacOS, run `brew install pyenv`
20-
* Don't forget to update your `.bashrc` file (or similar):
21-
```
22-
export PATH="~/.pyenv/bin:$PATH"
23-
eval "$(pyenv init -)"
24-
eval "$(pyenv virtualenv-init -)"
25-
```
26-
* Install the required [dependencies](https://github.com/pyenv/pyenv/wiki#suggested-build-environment)
27-
* Install [poetry](https://python-poetry.org): `curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python`
28-
* Clone this repository
29-
* `cd python-tahoma-api`
30-
* Install the required Python version: `pyenv install`
31-
* Init the project: `poetry install`
32-
* Run `poetry run pre-commit install`
16+
```bash
17+
pip install git+https://github.com/iMicknl/python-tahoma-api.git@master#tahoma_api
18+
```
19+
20+
## Development
21+
22+
### Installation
23+
24+
- For Linux, install [pyenv](https://github.com/pyenv/pyenv) using [pyenv-installer](https://github.com/pyenv/pyenv-installer)
25+
- For MacOS, run `brew install pyenv`
26+
- Don't forget to update your `.bashrc` file (or similar):
27+
```
28+
export PATH="~/.pyenv/bin:$PATH"
29+
eval "$(pyenv init -)"
30+
eval "$(pyenv virtualenv-init -)"
31+
```
32+
- Install the required [dependencies](https://github.com/pyenv/pyenv/wiki#suggested-build-environment)
33+
- Install [poetry](https://python-poetry.org): `curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python`
34+
- Clone this repository
35+
- `cd python-tahoma-api`
36+
- Install the required Python version: `pyenv install`
37+
- Init the project: `poetry install`
38+
- Run `poetry run pre-commit install`
3339

3440
## PyCharm
41+
3542
As IDE you can use [PyCharm](https://www.jetbrains.com/pycharm/).
3643

3744
Using snap, run `snap install pycharm --classic` to install it.
@@ -40,4 +47,4 @@ For MacOS, run `brew cask install pycharm-ce`
4047

4148
Once launched, don't create a new project, but open an existing one and select the **python-tahoma-api** folder.
4249

43-
Go to *File | Settings | Project: nre-tag | Project Interpreter*. Your interpreter must look like `<whatever>/python-tahoma-api/.venv/bin/python`
50+
Go to _File | Settings | Project: nre-tag | Project Interpreter_. Your interpreter must look like `<whatever>/python-tahoma-api/.venv/bin/python`

poetry.lock

Lines changed: 50 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ license = "MIT"
77
readme = "README.md"
88
homepage = "https://github.com/iMicknl/python-tahoma-api"
99
repository = "https://github.com/iMicknl/python-tahoma-api"
10+
packages = [
11+
{ include = "tahoma_api" },
12+
{ include = "tahoma_api/**/*.py" },
13+
]
1014

1115
[tool.poetry.dependencies]
1216
python = ">=3.6"
13-
aiohttp = "^3.6.2"
17+
aiohttp = "3.6.1"
1418
pyhumps = "^1.3.1"
1519

1620
[tool.poetry.dev-dependencies]

0 commit comments

Comments
 (0)