ssube
4e9216e0d5
fix(docs): readme badges
2019-12-25 14:37:52 -06:00
ssube
313960d4fe
artifact coverage db and xml
2019-12-25 14:17:24 -06:00
ssube
496b97473a
fix(build): generate xml coverage report for codeclimate
2019-12-25 14:11:53 -06:00
ssube
4303d1bc97
feat(build): add climate/codecov targets to make
2019-12-25 13:59:17 -06:00
ssube
29e50279e0
feat(scripts): add github status script
2019-12-25 07:48:25 -06:00
ssube
f80f1af9c1
fix build
2019-12-25 07:46:43 -06:00
ssube
0d9af01d1b
feat(build): add commit status and coverage upload jobs
2019-12-25 07:45:51 -06:00
ssube
f0f5bc8a8f
fix(test): cover label and registry render more
2019-12-25 07:41:29 -06:00
ssube
176541fff3
fix(test): sort values before checking
2019-12-25 07:27:08 -06:00
ssube
7d153bfce1
feat(build): emit and artifact html coverage report
2019-12-25 06:58:48 -06:00
ssube
011f9cfac8
correct include key
2019-12-25 06:55:14 -06:00
ssube
1c90ae4a8c
use python job template
2019-12-25 06:53:46 -06:00
ssube
1cc66572bc
add project path script
2019-12-25 06:52:41 -06:00
ssube
2d2eada013
include build templates
2019-12-25 06:51:33 -06:00
ssube
578e76459a
add git and CI variables to make
2019-12-25 06:47:30 -06:00
ssube
6d8ade4f61
feat(build): add a build, run tests with coverage
2019-12-25 06:43:52 -06:00
ssube
5bd18ee52d
fix: pc example, deploy script
2019-12-24 04:00:58 -06:00
ssube
1bf14b1424
feat(scripts): add rudimentary deploy script for lib+example
2019-12-23 18:38:06 -06:00
ssube
f6057e596f
feat(metric): validate metric and label names ( fixes #2 )
...
BREAKING CHANGE: validate names according to Prometheus data model rules.
ValueError will be raised for invalid names that would have previously been accepted.
2019-12-23 17:29:17 -06:00
ssube
f89c09fa2c
fix(test): cover registering metrics, utils
2019-12-23 17:01:44 -06:00
ssube
173168c70f
feat(utils): supported limited number of i2c lock tries
2019-12-23 17:01:25 -06:00
ssube
2e87fcac26
fix(examples): update with render calls
2019-12-23 17:00:41 -06:00
ssube
4eb9e928fc
feat: add package structure
2019-12-23 16:23:11 -06:00
ssube
a1dcc99903
fix: rename print methods to render
...
BREAKING CHANGE: rename all print/print_* methods to render/render_*
to be more compatible with Python 3
2019-12-23 15:24:52 -06:00
ssube
21564fa852
fix(metric): reset labels after receiving a value
2019-12-23 15:24:40 -06:00
ssube
76fb95d122
docs: add example output
2019-08-19 19:32:14 -05:00
ssube
e768fb7b56
remove(utils): unused bind helper
2019-08-19 08:11:48 -05:00
ssube
9b983f959b
feat(server): make depth and timeout parameters, get request body from parse method
2019-08-18 18:35:42 -05:00
ssube
ec0b275694
fix(examples): use lambda handlers
2019-08-18 13:34:14 -05:00
ssube
81c591e901
feat(utils): move i2c scan into utils
2019-08-18 13:31:47 -05:00
ssube
2fe23d9013
fix(examples): poll for IP more slowly, print any errors after accept
2019-08-18 13:18:54 -05:00
ssube
30e217f362
fix(server): include error message in settimeout attempt, remove unused params
2019-08-18 13:18:29 -05:00
ssube
39887bbeb0
fix(metric): omit label brackets when no labels are present
2019-08-18 12:58:10 -05:00
ssube
57c2938b34
feat(examples): use labels in i2c example ( fixes #1 )
2019-08-18 12:58:10 -05:00
ssube
1cec4a212d
feat(metric): naive implementation of labels for all types
2019-08-18 12:58:10 -05:00
ssube
2b5dba6b9f
feat(metrics): add summary metric type
2019-08-18 09:18:59 -05:00
ssube
3498c2a378
fix(server): block with timeout on cpython
2019-08-18 09:15:25 -05:00
ssube
1f1f8624ca
feat(utils): add bind helper
2019-08-18 09:13:28 -05:00
ssube
479171876d
feat(examples): add example parser, clean up bind
2019-08-18 09:13:04 -05:00
ssube
f098c6bcd6
fix(examples): clean up networking
2019-08-18 01:13:12 -05:00
ssube
52b9ec71a7
lint: move check_network to utils, pythonic falsey checks
2019-08-18 01:07:45 -05:00
ssube
f10a1247bc
fix(examples): working cpython/linux example
2019-08-18 00:55:30 -05:00
ssube
c66b2fe2f5
feat(examples): add bme680 sensor to i2c example
2019-08-18 00:06:49 -05:00
ssube
d8caeeb330
fix(server): refactor into class
...
BREAKING CHANGE: server.await_http_request renamed to Server.accept
2019-08-18 00:05:49 -05:00
ssube
46f632e0ef
feat(server): set socket timeout if possible
2019-08-17 17:32:46 -05:00
ssube
f9ea0e4515
feat(examples): add example with i2c sensor (si7021 temperature/humidity)
2019-08-17 16:15:39 -05:00
ssube
ce967b7dec
feat(router): implement (method, path) routing
...
BREAKING CHANGE: http file renamed to server, route to router
2019-08-17 16:10:08 -05:00
ssube
db3fd98b6e
feat: add example for normal python too
2019-08-17 11:11:25 -05:00
ssube
42d923d7d5
docs: note routing
2019-08-17 10:44:11 -05:00
ssube
51f7d2d2d7
docs: typos
2019-08-17 10:42:52 -05:00