Skip to main content

Generate Gold Rush key for pymarc records

Project description

goldrush

Note: This is alpha software. If you rely on this library you should do so with the understanding that you might find errors in the Gold Rush key that is generated. Lets make it better together!


Build status

goldrush is a Python implementation of the Gold Rush match key algorithm for identifying "duplicate" MARC records, or records that appear to be about the same book. It provides a function that you pass a pymarc Record and get back the Gold Rush key as a string.

goldrush was largely adapted from pymarc_dedupe, which included other functionality unrelated to Gold Rush, and was not available on PyPI as a dependency.

Usage

First install:

pip install goldrush

Then load a pymarc record and generate a key:

>>> from goldrush import goldrush
>>> from pymarc import MARCReader
>>> record = next(MARCReader(open('marc.dat', 'rb')))
>>> goldrush(record)
'pragmaticprogrammerfromjourneymantomaster_____________________________2000321____addisa_______________________________________________________hunt________________p'

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

goldrush-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

goldrush-0.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file goldrush-0.0.2.tar.gz.

File metadata

  • Download URL: goldrush-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for goldrush-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d867cb63d176d6a0d15f868b289141e73445e2468a2585c0b223d8b38869b240
MD5 351227f214baa2d73afdbe965a1ba860
BLAKE2b-256 84169afd09a7182c3ac96a08d82960052a059dbb763f4e2301d324ea1e886718

See more details on using hashes here.

File details

Details for the file goldrush-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: goldrush-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for goldrush-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b59aa3250e6eb570df926d746b314e5e9a8e7b161c8245a0d7ba19238ae90509
MD5 6b87ded2704aaa6f73bd86083410434d
BLAKE2b-256 a22c35f6e6bf96b4d64582986edfc19dd7f3ac5f7d1b04f2c9350a07ac94b560

See more details on using hashes here.

Supported by

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