From: Sergio Correia <sergio.correia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: panflute: a pythonic alternative to pandocfilters
Date: Mon, 25 Apr 2016 22:12:31 -0700 (PDT) [thread overview]
Message-ID: <b6a8c6cf-cae7-403a-99e9-4e170a150428@googlegroups.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1549 bytes --]
Dear all,
After being a heavy user of pandocfilters.py for a few years, I wrote an
alternative package (with a very similar API) that takes a more pythonic
approach:
- Elements are proper objects (with properties and methods) instead of
dicts and lists
- Elements can be created using named arguments: Header(Str('The'),
Space, Str('Title'), level=1)
- Batteries are included: I included functions that I ended up reusing
through my different filters\
The source and documentation is
here: https://github.com/sergiocorreia/panflute . It currently uses Python
3 but if there is demand from Python 2 users we could try a port.
Ports of some of the existing filters are
here: https://github.com/sergiocorreia/panflute/tree/master/examples/panflute
More examples will be placed
here: https://github.com/sergiocorreia/panflute-filters
Feel free to comment here or on github; any suggestions or pull requests
are more than welcome :)
Best,
Sergio
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b6a8c6cf-cae7-403a-99e9-4e170a150428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2268 bytes --]
next reply other threads:[~2016-04-26 5:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-26 5:12 Sergio Correia [this message]
[not found] ` <CAKGY2Pk8FYax5vwyh=Spzyi8gB9d95GkjV+5tNKLpenpC1Fgfw@mail.gmail.com>
[not found] ` <CAKGY2Pk8FYax5vwyh=Spzyi8gB9d95GkjV+5tNKLpenpC1Fgfw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-26 9:36 ` Wagner Macedo
[not found] ` <CAKGY2Pk1j4MJnxKHpT4YZZkooJ-Kd05it9iGHFY1eNw7dPyjog-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-26 15:00 ` Sergio Correia
[not found] ` <5ee6e6e1-8e2e-450d-b793-c0464e4be449-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-26 15:20 ` Wagner Macedo
[not found] ` <CAKGY2PmThM-67XiA9Yqy+KfY4MPJu9QN1dGpid3qS4zvz4=a+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-27 8:23 ` Samuel Coavoux
[not found] ` <bbc35e99-d664-45d4-b80a-a0847c298331-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-27 8:46 ` Sergio Correia
[not found] ` <6a0a11df-8825-4e0c-8582-948922e9f66b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-27 9:47 ` Samuel Coavoux
[not found] ` <CAFyE9YN5Hk0Enx02mzR2QtPoZ_7swo78KQoJMx+nUwmzksFnQg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-27 11:43 ` Sergio Correia
2016-04-27 11:49 ` Wagner Macedo
[not found] ` <b6a8c6cf-cae7-403a-99e9-4e170a150428-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-07 18:43 ` Sergio Correia
[not found] ` <22e266e0-843e-4a87-af41-df0cf37ab7ea-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-05-09 17:09 ` John MacFarlane
[not found] ` <20160509170931.GB3958-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2016-05-09 18:24 ` Sergio Correia
2016-11-29 13:34 ` Kolen Cheung
2016-12-01 12:23 ` Stefan Björk
[not found] ` <CABsBQU6JjXNC+8gWgVRg3w9zRZz7HTtVkrpDm7WUBU4EVOp3aQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-01 17:13 ` Sergio Correia
[not found] ` <CABsBQU75O171c=+LJNT=ZZHQUeXRRNVnmcng9tkNFSrVouPnYg@mail.gmail.com>
[not found] ` <CABsBQU75O171c=+LJNT=ZZHQUeXRRNVnmcng9tkNFSrVouPnYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-02 8:05 ` Stefan Björk
2016-12-14 4:47 ` Kolen Cheung
[not found] ` <5799849c-d315-48ac-8858-068f0d099dc1-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-12-14 5:33 ` Sergio Correia
[not found] ` <86c756a1-40d9-4616-8c6d-e5ca4b2fa706-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-12-18 2:13 ` Kolen Cheung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b6a8c6cf-cae7-403a-99e9-4e170a150428@googlegroups.com \
--to=sergio.correia-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).