File: PKG-INFO

package info (click to toggle)
irclog2html 2.17.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,144 kB
  • sloc: python: 2,577; perl: 216; makefile: 65
file content (449 lines) | stat: -rw-r--r-- 15,518 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
Metadata-Version: 2.1
Name: irclog2html
Version: 2.17.2
Summary: Convert IRC logs to HTML
Home-page: https://mg.pov.lt/irclog2html/
Author: Marius Gedminas
Author-email: marius@gedmin.as
License: GPL v2 or later
Description: ===========
        irclog2html
        ===========
        
        Converts IRC log files to HTML with pretty colours.
        
        
        Quick start
        ===========
        
        Installation::
        
          pip install irclog2html
        
        Quick usage for a single log file::
        
          irclog2html --help
          irclog2html filename.log                  (produces filename.log.html)
        
        Mass-conversion of logs (one file per day, with YYYY-MM-DD in the filename)
        with next/prev links, with mtime checks, usable from cron::
        
          logs2html directory/     (looks for *.log and *.log.gz, produces *.log.html)
        
        
        Configuration files
        ===================
        
        Since you probably don't want to keep specifying the same options on the
        command line every time you run logs2html, you can create a config file.
        For example::
        
          -t 'IRC logs for #mychannel'
          -p 'IRC logs for #mychannel for '
          # the following needs some extra Apache setup to enable the CGI/WSGI script
          --searchbox
          # where we keep the logs
          /full/path/to/directory/
        
        Use it like this::
        
          logs2html -c /path/to/mychannel.conf
        
        Lines starting with a ``#`` are ignored.  Other lines are interpreted as 
        command-line options.
        
        The order matters: options on the command line before the ``-c FILE`` will
        be overriden by option in the config file.  Options specified after ``-c FILE``
        will override the options in the config file.
        
        You can include more than one config file by repeating ``-c FILE``.  You
        can include config files from other config files.  You can even create loops of
        config files and then watch and laugh manically as logs2html sits there burning
        your CPU.
        
        
        CGI script for log searching
        ============================
        
        .. warning::
           The script can be easily abused to cause a denial of service attack; it
           parses *all* log files every time you perform a search.
        
        You can generate search boxes on IRC log pages by passing the ``--searchbox``
        option to ``logs2html``.  Here's an example Apache config snippet that makes
        it work::
        
          RewriteRule ^/my-irclog/search/$ /my-irclog/search [R,L]
          ScriptAlias /my-irclog/search /usr/local/bin/irclogsearch
          <Location /my-irclog/search>
            SetEnv IRCLOG_LOCATION "/var/www/my-irclog/"
            # Uncomment the following if your log files use a different format
            #SetEnv IRCLOG_GLOB "*.log.????-??-??"
            # (this will also automatically handle *.log.????-??-??.gz)
          </Location>
        
        
        WSGI script for log serving
        ===========================
        
        .. warning::
           The script can be easily abused to cause a denial of service attack; it
           parses *all* log files every time you perform a search.
        
        There's now an experimental WSGI script that can generate HTML for the
        logs on the fly.  You can use it if you don't like cron scripts and CGI.
        
        Here's an example Apache config snippet::
        
          WSGIScriptAlias /irclogs /usr/local/bin/irclogserver
          <Location /irclogs>
            SetEnv IRCLOG_LOCATION "/var/www/my-irclog/"
            # Uncomment the following if your log files use a different format
            #SetEnv IRCLOG_GLOB "*.log.????-??-??"
            # (this will also automatically handle *.log.????-??-??.gz)
          </Location>
        
        Currently it has certain downsides:
        
        - configuration is very limited, e.g you cannot specify titles or styles
          or enable dircproxy mode
        - HTML files in the irc log directory will take precedence over
          dynamically-generated logs even if they're older than the corresponding
          log file (but on the plus side you can use that to have dynamic search
          via WSGI, but keep statically-generated HTML files with your own config
          tweaks)
        
        
        WSGI script for multi-channel log serving
        =========================================
        
        .. warning::
           The script can be easily abused to cause a denial of service attack; it
           parses *all* log files every time you perform a search.
        
        The experimental WSGI script can serve logs for multiple channels::
        
          WSGIScriptAlias /irclogs /usr/local/bin/irclogserver
          <Location /irclogs>
            SetEnv IRCLOG_CHAN_DIR "/var/www/my-irclog/"
            # Uncomment the following if your log files use a different format
            #SetEnv IRCLOG_GLOB "*.log.????-??-??"
            # (this will also automatically handle *.log.????-??-??.gz)
          </Location>
        
        Now ``/irclogs`` will show a list of channels (subdirectories under
        ``/var/www/my-irclog/``), and ``/irclogs/channel/`` will show the
        date index for that channel.
        
        
        Misc
        ====
        
        Website: https://mg.pov.lt/irclog2html/
        
        Bug tracker:
        https://github.com/mgedmin/irclog2html/issues
        
        Licence: GPL v2 or later (https://www.gnu.org/copyleft/gpl.html)
        
        |buildstatus|_ |appveyor|_ |coverage|_
        
        .. |buildstatus| image:: https://api.travis-ci.org/mgedmin/irclog2html.svg?branch=master
        .. _buildstatus: https://travis-ci.org/mgedmin/irclog2html
        
        .. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/mgedmin/irclog2html?branch=master&svg=true
        .. _appveyor: https://ci.appveyor.com/project/mgedmin/irclog2html
        
        .. |coverage| image:: https://coveralls.io/repos/mgedmin/irclog2html/badge.svg?branch=master
        .. _coverage: https://coveralls.io/r/mgedmin/irclog2html
        
        
        
        Changelog
        =========
        
        2.17.2 (2019-04-23)
        -------------------
        
        - Drop support for Python 3.4.
        
        
        2.17.1 (2018-11-25)
        -------------------
        
        - Add support for Python 3.7.
        
        - Drop support for Python 3.3.
        
        - Support ``python -m irclog2html`` as shortcut for
          ``python -m irclog2html.irclog2html``.
        
        - Make irclogserver ignore hidden directories (such as .git).
        
        
        2.17.0 (2018-02-21)
        -------------------
        
        - Support `ii <https://tools.suckless.org/ii/>`_ logs which use Unix
          timestamps (https://github.com/mgedmin/irclog2html/pull/21).
          Pull request by C├ędric Krier.
        
        
        2.16.0 (2017-12-20)
        -------------------
        
        - Support Python 3.6.
        
        - Fix for duplicated lines with the same time where the resulting HTML ``id``
          anchors would evolve into long form like "t22:24:49-2-3-4-5-6-7-8-9-10"
          instead of "t22:24:49-10" resulting in significant output file size growth
          in some cases.
        
        - Add --output-dir (-o) parameter to logs2html so you can place the generated
          HTML files in a directory different from the input directory.
        
        
        2.15.3 (2016-12-08)
        -------------------
        
        - In some circumstances parts of a message up to the last '>' could be lost
          (https://github.com/mgedmin/irclog2html/issues/19).
        
        
        2.15.2 (2016-10-07)
        -------------------
        
        - ``irclogserver`` channel list is now split into old channels and active
          channels, detected by checking whether the directory modification date
          is newer or older than 7 days.
        
        - 2nd-level headings now have the same color as 1st-level headings.
        
        - ``irclogserver`` no longer shows a 404 if you omit the trailing ``/``
          after a channel name in the URL.
        
        
        2.15.1 (2016-09-25)
        -------------------
        
        - Lines with the same timestamp now get different HTML anchors
          (https://github.com/mgedmin/irclog2html/issues/17).  Thanks
          to Bryan Bishop for the original pull request.
        
        
        2.15.0 (2016-09-25)
        -------------------
        
        - There's a new ``irclogserver`` script that can be used to serve
          dynamically-generated IRC logs and perform search.  It can also be
          deployed via WSGI.  Portions contributed by Albertas Agejevas
          (https://github.com/mgedmin/irclog2html/pull/9).
        
        - Index pages group the logs by month
          (https://github.com/mgedmin/irclog2html/issues/12).
        
        - Drop support for Python 2.6.
        
        
        2.14.0 (2014-12-12)
        -------------------
        
        - Add -o option to specify the output file name.  Patch by Moises Silva
          (https://github.com/mgedmin/irclog2html/pull/7).
        
        
        2.13.1 (2014-02-01)
        -------------------
        
        - Add support for Windows (e.g. refrain from creating latest.log.html
          symlinks).
        
        
        2.13.0 (2013-12-18)
        -------------------
        
        - Handle gzipped files transparently
          (https://github.com/mgedmin/irclog2html/issues/5).
        
        
        2.12.1 (2013-03-22)
        -------------------
        
        * Fix AttributeError in irclogsearch on Python 2.7
          (https://github.com/mgedmin/irclog2html/issues/1).
        
        
        2.12.0 (2013-03-18)
        -------------------
        
        * Moved to Github.
        
        * Add support for Python 3.3.
        
        * Drop support for Python 2.4 and 2.5.
        
        * Fix URL linkifier to not include trailing punctuation (LP#1155906).
        
        
        2.11.1 (2013-03-17)
        -------------------
        
        * logs2html also accepts filenames that contain YYYYMMDD dates (in addition to
          YYYY-MM-DD).  Patch by Holger Just.  Fixes LP#1031642.
        
        
        2.11.0 (2012-07-30)
        -------------------
        
        * irclogsearch can be told about the filename pattern of log files via an
          environment variable (IRCLOG_GLOB).  Patch by Jonathan Kinred.
        
        
        2.10.0 (2012-02-12)
        -------------------
        
        * New option: --glob-pattern.  Patch by Albertas Agejevas.
          Fixes LP#912310.
        
        * Links in logs are marked with rel="nofollow".  Patch by Matt Wheeler.
          Fixes LP#914553.
        
        * New option: --version.
        
        * New option: -c, --config=FILE.
        
        
        2.9.2 (2011-01-16)
        ------------------
        
        * Support XChat Latin/Unicode hybrid encoding (http://xchat.org/encoding/).
          Fixes LP#703622.
        
        * irclog2html copies irclog.css file into the destination directory.
          Fixes LP#608727.
        
        
        2.9.1 (2010-08-06)
        ------------------
        
        * Make sure irclog.css is installed in the right place; logs2html needs it.
        
        
        2.9 (2010-08-06)
        ----------------
        
        * Restructured source tree, made irclogs2html into a package, added setup.py,
          buildout.cfg, bootstrap.py, Makefile, HACKING.txt; moved old porting test
          suite into a subdirectory (porting).
        
        * logs2html copies irclog.css file into the destination directory.
        
        * Released into PyPI.
        
        
        2.8 (2010-07-22)
        ----------------
        
        * Added README.txt and CHANGES.txt.
        
        * Support dircproxy log files (new date format: "[15 Jan 08:42]",
          strip ident and IP address from nicknames).  Patch by Paul Frields.
        
        * New option: --dircproxy also makes irclog2html strip a single leading
          '+' or '-' from messages.
        
        
        2.7.1 (2009-04-30)
        ------------------
        
        * Bug in logs2html.py error reporting, reported by Ondrej Baudys.
        
        
        2.7 (2008-06-10)
        ----------------
        
        * New style: mediawiki.  Patch by Ian Weller.
        
        
        2.6 (2007-10-30)
        ----------------
        
        * Support another date format (Oct 17 10:53:26).  Patch by Matthew Barnes.
        
        
        2.5.1 (2007-03-22)
        ------------------
        
        * logs2html.py: add a stable link to the latest log file
          (suggested by Chris Foster).
        
        
        2.5 (2007-01-22)
        ----------------
        
        * New option: --searchbox.
        
        * Search CGI script improvements (e.g. put newest matches on top).
        
        
        2.4 (2006-12-11)
        ----------------
        
        * Added a sample CGI script for brute-force log searches.
        
        
        2.3 (2005-03-08)
        ----------------
        
        * Use xhtmltable style by default.
        
        * Added a copy of the navbar at the bottom.
        
        
        2.2 (2005-02-04)
        ----------------
        
        * Support supybot's ChannelLogger date format (e.g. 02-Feb-2004).
        
        * Fixed broken timestamp hyperlinks in xhtml/xhtmltable styles.
        
        * CSS tweaks.
        
        
        2.1mg (2005-01-09)
        ------------------
        
        * Ported irclog2html.pl version 2.1 by Jeff Waugh from Perl to Python.
        
        * New styles: xhtml, xhtmltable.
        
        * New options: --title, --{prev,index,next}-{url,title}
        
        * Removed hardcoded nick colour preferences for jdub, cantaker and chuckd
        
        * Bugfix: colours are preserver accross nick changes (irclog2html.pl tried to
          do that, but had a bug in a regex)
        
        * Added ISO8601 timestamp support (e.g. 2005-01-09T12:43:11).
        
        * More careful URL linkification (stop at ', ", ), >).
        
        * Added logs2html.py script for mass-conversion of logs.
        
        * Added support for xchat log files.
        
        * Added xchatlogsplit.py script for splitting xchat logs on day boundaries so they're suitable as input for logs2html.py.
        
Keywords: irc log colorizer html wsgi
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Provides-Extra: test