README.md 500 Bytes
Newer Older
Bram Daams's avatar
Bram Daams committed
1
2
# sch

Bram Daams's avatar
Bram Daams committed
3
4
SmartCronHelper

Bram Daams's avatar
Bram Daams committed
5
6
7
8
## Install
``` console
$ python -m venv venv
$ . venv/bin/activate
Bram Daams's avatar
Bram Daams committed
9
$ pip install .
Bram Daams's avatar
Bram Daams committed
10
11
12
13
```

## Test
For now, create a file `test.py`
Bram Daams's avatar
Bram Daams committed
14
15
16
17
18
19
20
21
22
23
``` python
from hc import hc, hcCred, hcRegistry

cred = hcCred('https://hc.example.com/api/v1/', 'mysecretapikey')

registry = hcRegistry(cred, '/var/lib/hcregistry.json')

h = hc(cred)
h.print_status()
```
Bram Daams's avatar
Bram Daams committed
24
25
26
27
28
29
30
31
32
33

And run it within the virtual environment

## Syntax check
In the virtual environment:
``` console
$ pip install flake8
$ flake8 *py
```