An HTML formatter for IRC log files
Project description
An HTML formatter for IRC log files. Currently, only the format used by Omnipresence is supported; look in interstat.formats for an idea of how to add more.
Install it with:
$ pip install interstat
Then run:
$ interstat LOGFILE HTMLFILE
If you want to change the generated HTML or CSS, copy the files in the interstat/templates directory that you want to override, make your changes, and run:
$ interstat --template-dir my-templates/ LOGFILE HTMLFILE
For more options, try:
$ interstat --help
Interstat also provides a Python API, in case that’s more your thing:
>>> import interstat >>> # Convert an entire log file: >>> interstat.file_as_html(open('irc.log'), 'omnipresence') >>> # Or just some text with embedded mIRC formatting codes: >>> interstat.line_as_html('\x02Bold\x02 and \x1Funderlined\x1F, oh my!')
Report bugs and make feature requests on Interstat’s GitHub project page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
interstat-0.2.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for interstat-0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba54b5ee37ccebface36dcf85dbf4a24dd4c636e3e1e485d249cc7bd1257d1a4 |
|
MD5 | c5461f59ac53e10988e4eab919c1bc4d |
|
BLAKE2b-256 | a8328623ae17df64904af7f834f53cdae6bd87176b0a7abbf5a52ded907da5a3 |