Commit Graph

329 Commits

Author SHA1 Message Date
Thor77 89906d04c7 expect key as lambda in tsstats.utils.sort_clients
* kwarg renamed to key_l (from key)
* add possibility to modify attribute
2016-06-12 17:36:12 +02:00
Thor77 9d5197d813 use py2-compatible way to convert datetime.datetime to timestamp
* bump version to 0.6.8
2016-06-12 17:20:32 +02:00
Thor77 3fec44feaa bump version to 0.6.7 2016-06-12 17:03:09 +02:00
Thor77 276dce0074 give all *args and **kwargs given to tsstats.log.parse_logs directly to parse_log 2016-06-12 17:01:35 +02:00
Thor77 17d7552e8b set parse_log(online_dc=False) in all log-tests 2016-06-12 16:58:17 +02:00
Thor77 4e4eacd3af disconnect online clients after parsing to display correct onlinetime
* toggle by setting tsstats.log(online_dc=)
* fix #1
2016-06-12 16:54:49 +02:00
Thor77 a1c5f67c0c extract path to testlog into variable 2016-06-12 16:39:41 +02:00
Thor77 3972594787 add testcase for #1 2016-06-12 16:38:28 +02:00
Thor77 20cac026d5 bump version to 0.6.6 2016-06-10 16:49:37 +02:00
Thor77 be361e976c sort imports in tsstats/client.py 2016-06-10 16:48:49 +02:00
Thor77 fde3a921f9 refactor tsstats.tests.test_template.test_onlinetime
* check client-count in template
* take clients as base instead for comparisons
* dynamically check all included client-objects
TODO
====
* move nick_data-dict-generation into function or fixture
* split tsstats.client.Clients into id and uuid-clients to easily compare client- and template-data
2016-06-10 16:46:55 +02:00
Thor77 3e5c79fc05 add test for right identifier in debug-mode 2016-06-10 16:22:52 +02:00
Thor77 5d2e3e00a3 add id to sections and use unique id for client-items 2016-06-10 16:04:24 +02:00
Thor77 4ddc6bbf41 refactor tsstats.tests.test_template.test_data
* rename to test_onlinetime
* add soup-fixture (renders template + returns BeautifulSoup-instance)
2016-06-10 15:36:32 +02:00
Thor77 4acfe5bd0b fix references to identmap-doc from tsstats.client and tsstats.log
* use :doc: instead of :ref:
* bump version to 0.6.5
2016-06-08 22:36:26 +02:00
Thor77 f3517dcb99 add quickstart-guide to docs and placeholders for config and cli
* bump version to 0.6.4
2016-06-08 22:36:23 +02:00
Thor77 6074fe0d63 update cli-help and config-keys in README.md
* bump version to 0.6.3
2016-06-08 18:12:57 +02:00
Thor77 ea5d997b5a update bootstrap and hint.css in tsstats/template.html
* bump version to 0.6.2
* fix insecure-content warnings
2016-06-07 18:26:47 +02:00
Thor77 41fee91e63 add tsstats/template.html to setup.py:package_data
* fix TemplateNotFound on pip-installations
* bump version to 0.6.1
2016-06-07 17:59:02 +02:00
Thor77 fe29b6f050 refactor template-loading
* use ChoiceLoader([PackageLoader, FileSystemLoader]) instead of FileSystemLoader
* add PackageLoader to allow template-access on egg-installations
* use correct way to get filesystem-path to package (dirname(__file__))
* remove superflous template_name-arg from tsstats.template.render_template
* bump version to 0.6.0
2016-06-07 17:51:28 +02:00
Thor77 52a05acdab add source-encoding (utf-8) to all files 2016-06-07 17:42:53 +02:00
Thor77 c3cfad0a88 fix wrong regex for logs with unexpected spacing
* add "\ *" arround level, component, sid and message
2016-06-07 16:51:55 +02:00
Thor77 5c44f0ca47 fix missing requirements.txt for installation via pip
* copy deps to setup.py instead of reading requirements.txt
2016-06-07 15:46:10 +02:00
Thor77 8ca23e0115 add documentation to tsstats.{config,log,template,utils}.* 2016-05-30 20:23:03 +02:00
Thor77 b726a9fa79 divite api.rst into sections 2016-05-29 00:26:25 +02:00
Thor77 f7af9f9d39 add documentation for tsstats.exceptions.* 2016-05-29 00:25:21 +02:00
Thor77 f72521dc2c bump version to 0.5.3 2016-05-25 20:16:19 +02:00
Thor77 752e4f4c82 rename tsstats.exceptions.InvalidConfig to InvalidConfiguration
because there's no seperation between config and cli-values
2016-05-25 20:14:59 +02:00
Thor77 7186cd662b remove obsolete tsstats.exceptions.ConfigNotFound 2016-05-25 20:13:38 +02:00
Thor77 a1f25648a2 define log_format just once and rename to log_timestamp_format 2016-05-25 20:09:48 +02:00
Thor77 09ad45e9a6 cover tsstats.log.parse_logs 2016-05-25 20:06:17 +02:00
Thor77 da5683ede2 add tsstats.log.re_log_entry for log-line-matching
* don't evaluate invalid log-lines leading to unexpected results
* don't abort parsing just because of an invalid character at the beginning/end
* add debug-output if line doesn't match
2016-05-25 20:06:00 +02:00
Thor77 42d8c74f72 fix tsstats.log.parse_logs not returning clients 2016-05-24 22:29:49 +02:00
Thor77 53ffad3d81 refactor tsstats.log.parse_log(s)
* rename tsstats.log.parse_logs to tsstats.log.parse_log and remove glob-functionality
* create tsstats.log.parse_log to handle globbing
* fix tests to use tsstats.log.parse_log instead of tsstats.log.parse_logs
* bump version to 0.4.0
2016-05-23 21:50:10 +02:00
Thor77 1f5a6211b9 bump version to 0.3.0 2016-05-21 23:15:15 +02:00
Thor77 eb9d26cc1e duplicate debug-enable to get debug-output from parse_config 2016-05-21 23:15:15 +02:00
Thor77 c094edb6e9 refactor config.parse_config
* add debug-output
* return config-values as expected by __main__.main
* remove test_config_invalid
* fix tests
2016-05-21 23:14:52 +02:00
Thor77 ec62d4f439 refactor __main__.cli and __main__.main
* __main__.cli is now just used to setup argparse and pass arguments to __main__.main
* __main__.main is now used to validate the arguments and pass them to the right functions
2016-05-21 22:51:05 +02:00
Thor77 23145b476b remove cli-defaults for config and idmap 2016-05-21 22:06:32 +02:00
Thor77 b80be2b1c5 add short option-flags to cli 2016-05-21 22:03:26 +02:00
Thor77 2b9e9d0911 add log and output cli-args 2016-05-21 21:35:42 +02:00
Thor77 9c0ebc18ed add documentation for IdentMap 2016-05-20 23:58:23 +02:00
Thor77 af3ea48a2d re-add redundant client.nick= in tsstats.log.parse_logs to display nick-changes 2016-05-19 21:59:34 +02:00
Thor77 4bb7553f64 remove duplicate code in tsstats.log.parse_logs
* bump version to 0.2.4
2016-05-19 21:57:15 +02:00
Thor77 61421c588a use None as default for ident_map in tsstats.log.parse_logs 2016-05-19 21:46:22 +02:00
Thor77 2f0755c1fc bump version to 0.2.3 2016-05-19 21:40:37 +02:00
Thor77 abea9c0f89 remove test_general.py (testing __main__) to get clear coverage-results 2016-05-19 21:40:37 +02:00
Thor77 3bb5538b64 bump version to 0.2.2 2016-05-19 21:40:37 +02:00
Thor77 3112311f7e move invalid-log-test from test_general.py to test_log.py 2016-05-19 21:37:12 +02:00
Thor77 3f2ccd3ac6 cover tsstats.client.Clients.__del__ 2016-05-19 21:24:22 +02:00