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

marc2bib is a Python package that allows to convert bibliographic records from MARC format to BibTeX entries. Requires Python 3.

It uses pymarc to read MARC data files.

Installation

As always, use pip to install the latest release from PyPI:

$ pip install marc2bib

Or for development:

$ git clone https://github.com/mstolyarchuk/marc2bib
$ pip install -e marc2bib

Quickstart

If you have not used pymarc before, nothing to worry about.

Now we are going to read some data from a MARC file and easily convert it to a BibTeX entry:

>>> from pymarc import MARCReader
>>> from marc2bib import convert

# Open a MARC file as you usually do this with pymarc.
>>> with open('file.mrc', 'rb') as f:
...     reader = MARCReader(f)
...     record = next(reader)  # Read the first record
...     print(convert(record)) # and, ta-da, convert it to a BibTeX entry.
...
@book{Hargittai2009,
 author = {I. Hargittai, M. Hargittai},
 . . .
}

And that is it!

Contributing

This project is hosted on GitHub. There you can create a new issue or submit pull requests for review.

Running the tests

For testing our package we use pytest. In order to run all tests, execute the following commands (you probably want to set up a virtualenv first):

$ pip install pytest
$ py.test tests

Acknowledgments

Thanks go to all the authors and contributors of the pymarc package. This project would not have been possible without their work.

Release History

Release History

0.1.4

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.3

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.2

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.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

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
marc2bib-0.1.4.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Aug 6, 2015

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