Yesterday I released easyblogger 2.0 - it’s available on PYPI as usual - so to get it just do
pip install easyblogger
Major changes warranting a 2.0 version bump as follows
Post download now defaults to generating a TOML frontmatter header that is compatible with Hugo.
Post download will also include an alias to the permalink so that if you move your blog, old urls continue to work.Example of a TOML frontmatter header
+++ lastmod = "2013-08-21T17:14:35+05:30" aliases = [ "/2011/12/a-new-look.html",] publishdate = "2011-12-29T01:41:00+05:30" date = "2011-12-29T01:41:00+05:30" title = "A new look" id = "2801636621209170956" tags = [ "blogging"] +++
geventlibrary to download posts in parallel and transform them with pandoc. Earlier, this was completely sequential where each post would be downloaded one by one. Downloading all posts on my blog with 180 odd posts went from a couple of minutes to 25 seconds!
fileparameter can now be given a wildcard - each file is processed in parallel thanks to
gevent- like so
# process each asciidoc file in folder easyblogger file *.adoc
File upload now looks for a TOML frontmatter header - but if that isn’t found, it will look for old style metadata patterns for backward compatibility
-vverbosity parameter now takes INFO/DEBUG/WARNING/ERROR/CRITICAL as the log level. This I feel is much more clearer than the earlier method of specifying multiple
-vargs to increase log level.
Log messages are colored now by default thanks to
Silenced cache related warnings and errors thrown by
google-api-python-client. this used to add noise to log outputs which was distracting.
Added more tests