microtron: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(no longer a stub, sort supported formats)
(updated to v0.16, now available from Pypi, value-class-pattern support)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[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 ==
Microtron was originally written by Andrew McCollum and Christophe Benz at [[events/2009-07-25-dev-camp|microformatsDevCamp 2009]].
Microtron was originally written by Andrew McCollum at [[events/2009-07-25-dev-camp|microformatsDevCamp 2009]].


The following folks have contributed code to Microtron:
The following folks have contributed code to Microtron:
Line 13: Line 15:
* Christophe Benz
* Christophe Benz
* [[User:MarkNg|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 ==
Line 41: Line 42:
* [[rel-principles]]
* [[rel-principles]]
* [[rel-tag]]
* [[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