The beginning tm

main
Jef Roosens 2022-05-31 08:47:25 +02:00
parent 8682fc9110
commit 9023d9ccbb
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
5 changed files with 25 additions and 0 deletions

2
.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
.venv/
__pycache__/

13
Makefile 100644
View File

@ -0,0 +1,13 @@
PYTHON ?= python3
VENV ?= .venv
.PHONY: venv
venv: $(VENV)/bin/activate
$(VENV)/bin/activate: requirements.txt
rm -rf '$(VENV)'
'$(PYTHON)' -m venv '$(VENV)'
'$(VENV)'/bin/pip install -r requirements.txt
.PHONY: shell
shell: venv
@ '$(VENV)'/bin/python

0
requirements.txt 100644
View File

View File

@ -0,0 +1,3 @@
from .vieter import Vieter
__all__ = ('Vieter')

7
vieter/vieter.py 100644
View File

@ -0,0 +1,7 @@
class Vieter:
def __init__(self, address: str, api_key: str) -> None:
self._address = address
self._api_key = api_key
def _do_req(self, path: str, method: str, params: dict):
pass