This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

MARC::MIR est une spécification de représentation mémoire (sous la forme de tableau de tableaux) de données bibliographiques cataloguée en MARC. elle permet d’établir des ponts simples entre les différents outils exitants de traitement, sérialisation, indexation, …

Install

Pyromarc is only working under Python 3.2 for the moment. To install the module, use pip

$> pip install pyromarc

Reading

ISO2709

Load MIRs from ISO2709

from pyromarc import reader

mirs = reader('/path/to/records.iso2709', 'ISO2709')
for mir in mirs:
    do_something_with(mir)

Or, with a filehandler

from pyromarc import readerb

with open('/path/to/records/example.iso2709', 'rb') as filehandler:
    mirs = readerb(filehandler, 'ISO2709')
    for mir in mirs:
        do_something_with(mir)

Msgpack

Load MIRs from stdin

import sys
from pyromarc import readerb

mirs = readerb(sys.stdin, 'MsgPack')
for mir in mirs:
    do_something_with(mir)

Writing

ISO2709

Write MIRs in file

from pyromarc import writer

[...]
writer('/path/to/records.iso2709', mirs, 'ISO2709')

Writing ISO2709 records in JSON

from pyromarc import reader, writer

mirs = reader('/path/to/records.iso2709', 'ISO2709')
writer('/path/to/records.json', mirs, 'Json')

MsgPack

Writing on stdout

import sys
from pyromarc import writerb

[...]
writerb(sys.stdout, mirs, 'MsgPack')
Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting