microtron: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(drafted)
 
(updated to v0.16, now available from Pypi, value-class-pattern support)
 
(6 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 13: Line 13:
The following folks have contributed code to Microtron:
The following folks have contributed code to Microtron:
* Andrew McCollum
* Andrew McCollum
* Mark Ng
* Christophe Benz
* [[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 ==
* [[hatom]]
* [[haudio]]
* [[hcalendar]]
* [[hcard]]
** [[adr]]
** [[geo]]
* [[hlisting]]
* [[hnews]]
* [[hresume]]
* [[hreview]]
* [[votelinks]]
* [[xfn]]
* [[xfolk]]
* [[rel-license]]
* [[rel-nofollow]]
* [[rel-principles]]
* [[rel-tag]]


== supported microformats ==
and patterns:
* [[hCard]]
* [[value-class-pattern]] - value-title in particular
* [[geo]]
* [[adr]]
* ...
* ... more is supported, needs to be filled in ...


== installation ==
== installation ==
* ...
 
With setuptools' easy_install:
    easy_install microtron
 
With pip:
  pip install microtron


=== documentation ===
=== documentation ===

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