Commit Graph

348 Commits

Author SHA1 Message Date
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
Thor77 8af2b761a3 refactor tsstats.client.Client.__getitem__ 2016-05-19 21:09:27 +02:00
Thor77 a3397d6367 bump version to 0.2.0 2016-05-19 15:47:04 +02:00
Thor77 3729ecf9c0 add tests for Clients-getter 2016-05-19 15:47:04 +02:00
Thor77 d9f46e1b33 test refactored tsstats.client.Clients correctly in test_ident_map.py 2016-05-19 15:47:01 +02:00
Thor77 36790e3863 modify test_log_client_count to use tsstats.client.Clients.__len__ 2016-05-19 15:41:19 +02:00
Thor77 cb6d433dca add usage of ident_map for tsstats.client.Clients.__setitem__ 2016-05-19 15:40:28 +02:00
Thor77 55277a2c75 use optional-nick-arg instead of explicit assignment 2016-05-19 15:39:36 +02:00
Thor77 cb94560a2f add optional nick-arg to tsstats.client.Client.__init__ 2016-05-19 15:24:18 +02:00
Thor77 c9895c6c5a allow legacy tsstats.client.Client += 2016-05-19 15:23:11 +02:00
Thor77 ac305b3873 reimplement usage of IdentMap 2016-05-19 15:22:16 +02:00
Thor77 216bedc38f refactor tsstats.client.Clients
* use collections.MutableMapping as base
* use one dict to store all types of Clients
* don't use implicit += but explicit .setdefault in tsstats.log for client-adding
* give all clients to sort_clients in tsstats.template
* remove now unneccessary clients-assignment in tsstats.utils.sort_clients
2016-05-18 22:50:23 +02:00
Thor77 89dc96dc99 bump version to 0.1.1 2016-05-18 22:40:50 +02:00
Thor77 a7cfa6967f split client and parse-tests into test_client.py and test_log.py 2016-05-18 22:08:09 +02:00
Thor77 bab20d0848 add readthedocs-badge 2016-05-18 21:40:21 +02:00
Thor77 9e3a5f1bcf add sphinx-documentation
* basic index
* api-documentation for tsstats.client.Client and tsstats.client.Clients
2016-05-18 21:36:09 +02:00
Thor77 538ecc0098 limit pyflakes and isort-check to tsstats-package 2016-05-18 21:35:06 +02:00
Thor77 0990644128 add documentation to tsstats.client.Client and tsstats.client.Clients 2016-05-18 21:27:18 +02:00
Thor77 6cb6167363 remove requires.io-badge 2016-05-11 21:12:09 +02:00
Thor77 432e89bfbe add setup.py 2016-05-11 21:09:45 +02:00
Thor77 6d40ebc563 add PyPi-badge 2016-05-11 21:09:39 +02:00
Thor77 e7cf036971 use new-style class-definition 2016-05-11 20:53:17 +02:00
Thor77 e7fc91229e use % formatting in logging-functions 2016-05-11 20:45:42 +02:00
Thor77 c25db473ec advertise installation via pypi and usage of entry-point 2016-05-11 20:40:23 +02:00
Thor77 4ebdf891c0 add screenshot to README.md 2016-05-11 20:39:45 +02:00
Thor77 b0a2f9a5f7 add 'except ImportError' and 'def cli' to coverage-excludes 2016-05-11 20:22:20 +02:00
Thor77 d820c99ece move argparse-setup into cli() 2016-05-11 20:21:09 +02:00
Thor77 8f95645e14 update README.md to current state
* add term `supported` to install-python step (give versions)
* add config-creation to usage
* update run-command
* update test-command
* remove version from pip in test-requirement-installation-step
* update cmd-arg help-output
* move configuration-docs into section-sub-headers and tables
* update example to fit new names
2016-05-10 23:05:12 +02:00
Thor77 cbb44fcb85 [config] rename logfile to log and outputpath to output 2016-05-10 22:56:48 +02:00
Thor77 d836b807be move logging-setup into __init__.py and use one central logger-object 2016-05-10 22:50:34 +02:00
Thor77 1bc8d80d1d add landscape.io and requires.io badge 2016-05-09 20:13:48 +02:00
Thor77 9891b1d785 use py.test instead of nose for testing 2016-05-09 20:09:16 +02:00