microtron: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(→‎installation: add some installation notes.)
(updated to v0.16, now available from Pypi, value-class-pattern support)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{stub}}
'''[http://github.com/amccollum/microtron Microtron]''' is a microformats [[parser]] and library for the Python
 
[http://github.com/amccollum/microtron Microtron] is a microformats [[parser]] and library for the Python
programming language.
programming language.


http://github.com/amccollum/microtron
Available from Pypi and github:
* http://pypi.python.org/pypi/Microtron/0.16
* http://github.com/amccollum/microtron


current version: 0.13
current version: 0.16


== authors and contributors ==
== authors and contributors ==
Line 14: Line 14:
* Andrew McCollum
* Andrew McCollum
* Christophe Benz
* Christophe Benz
* Mark Ng
* [[User:MarkNg|Mark Ng]]
* Ben Campbell


== summary ==
== summary ==
Microtron is intended to be a general-purpose microformat parser/transformer.
Microtron is a general-purpose microformat parser/transformer.


It can operate on the definition file included in [[Optimus]], making it a close replacement for certain tasks, and can easily be extended with new formats without modifying the source.  The primary advantages are speed (> 100x faster that [[Optimus]] for some operations), simplicity (single file) and small code size (currently < 150 lines).
It can operate on the definition file included in [[Optimus]], making it a close replacement for certain tasks, and can easily be extended with new formats without modifying the source.  The primary advantages are speed (> 100x faster that [[Optimus]] for some operations), simplicity (single file) and small code size (currently < 200 lines).


* Requires [http://codespeak.net/lxml/ lxml] and [http://pypi.python.org/pypi/isodate/ isodate]
* Requires [http://codespeak.net/lxml/ lxml] and [http://pypi.python.org/pypi/isodate/ isodate]
Right now it supports:


== supported microformats ==
== supported microformats ==
* [[geo]]
* [[hatom]]
* [[adr]]
* [[haudio]]
* [[hcalendar]]
* [[hcard]]
* [[hcard]]
* [[hcalendar]]
** [[adr]]
* [[hatom]]
** [[geo]]
* [[hlisting]]
* [[hnews]]
* [[hnews]]
* [[hresume]]
* [[hreview]]
* [[hreview]]
* [[hlisting]]
* [[votelinks]]
* [[haudio]]
* [[xfn]]
* [[xfolk]]
* [[xfolk]]
* [[hresume]]
* [[rel-license]]
* [[xfn]]
* [[votelinks]]
* [[rel-tag]]
* [[rel-nofollow]]
* [[rel-nofollow]]
* [[rel-license]]
* [[rel-principles]]
* [[rel-principles]]
* [[rel-tag]]
and patterns:
* [[value-class-pattern]] - value-title in particular


== installation ==
== installation ==

Latest revision as of 21:07, 2 October 2011

Microtron is a microformats parser and library for the Python programming language.

Available from Pypi and github:

current version: 0.16

authors and contributors

Microtron was originally written by Andrew McCollum at microformatsDevCamp 2009.

The following folks have contributed code to Microtron:

  • Andrew McCollum
  • Christophe Benz
  • Mark Ng
  • Ben Campbell

summary

Microtron is a general-purpose microformat parser/transformer.

It can operate on the definition file included in Optimus, making it a close replacement for certain tasks, and can easily be extended with new formats without modifying the source. The primary advantages are speed (> 100x faster that Optimus for some operations), simplicity (single file) and small code size (currently < 200 lines).

supported microformats

and patterns:

installation

With setuptools' easy_install:

   easy_install microtron

With pip:

  pip install microtron

documentation

  • ...

feedback and issues

  • ...

future plans

  • ...

see also