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

>>> 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.1.tar.gz (4.9 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.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: goldrush-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 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.1.tar.gz
Algorithm Hash digest
SHA256 bec976342d198d2f3cb6878d58dddd481601807619ca1a40e3a398bd500f2979
MD5 550a153c5a7d36c3bf3ea2272608b8a9
BLAKE2b-256 7eea4b75cca3dc395cc2c61c319c461c53bcf3bddeabcce94052162f61ef6940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: goldrush-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 940f276b88fe7a0e75a82ba417cc00575a3b559489497e43848fc912f19e68ae
MD5 6c05bdc79828f5014db8bdfd36576d3c
BLAKE2b-256 823ad0f489acdfff1d5a9bc773de758df017453619715352717207855245f592

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