Skip to main content

Converts exported data from Minuteman Library Network reading history.

Project description

Minuteman Library Network (MLN) Record Converter

Historical loan records exported via the MLN website are in a semi-human readable format, making them difficult to use in analyses. This utility converts each record into a Record object that can be inspected in multiple ways.

Dev install

Prerequisites

Installation

Clone the git repository locally and run poetry install from the main directory. On Ubuntu:

git clone git@gitlab.com:woodforsheep/mln-to-csv.git
cd mln-to-csv
poetry install

Command Line Use

poetry run mln-to-csv --help
Using python3 (3.11.4)
usage: mln-to-csv [-h] files [files ...]

Converts exported MLN records to CSV

positional arguments:
  files       The list of files to convert

options:
  -h, --help  show this help message and exit

Library use

The main utility in the library is lines_to_records and can be used as follows:

from mln_converter import lines_to_records

with open(records_file) as fp:
    lines = fp.readlines()
records = lines_to_records(lines)

for record in records:
    print(f"{record.titles[0]} ({record.authors[0]})")

Convert icons created by iconsax - Flaticon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mln_converter-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

mln_converter-0.2.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file mln_converter-0.2.0.tar.gz.

File metadata

  • Download URL: mln_converter-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-50-generic

File hashes

Hashes for mln_converter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5fe7f04b4bc4c9e4399beccf79d510e416e76bf2f14931c22fde4c19438cc915
MD5 3bacd486a05e425b321bc6a35fa93543
BLAKE2b-256 21d12e6820da615c1a67dddfa08f6cfd7ccb0cc40e5eb2be65aa19433639e3af

See more details on using hashes here.

File details

Details for the file mln_converter-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mln_converter-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-50-generic

File hashes

Hashes for mln_converter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd178411047bc5855eb67f7757a36aef69513671954f1014c64290af61fbb1de
MD5 d199b7ae62cfbb8a4d871f24e05c8d86
BLAKE2b-256 64f01cec13d5d9cd94c0905c30aaa148aadc13daab0fa72a2c494c4ad61539fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page