Skip to main content

vupysolr allows to access Solr stored VuFind records. For more information on VuFind, see https://vufind.org.

Installation

pip install vupysolr

Usage Examples

Command Line

$ vupysolr --id 123456789
usage: vupysolr [-h] [--url URL] [--core CORE] [--id ID] [--marc [MARC]]
                [--decode [DECODE]] [--pretty [PRETTY]]

optional arguments:
  -h, --help         show this help message and exit
  --url URL          URL of VuFind Solr server (default:
                     http://localhost:8983/solr)
  --core CORE        Name of VuFind Solr core (default: biblio)
  --id ID            ID of record to fetch (default: None)
  --marc [MARC]      Get MARC data only (default: False)
  --decode [DECODE]  Decode MARC data (default: False)
  --pretty [PRETTY]  Pretty print output (default: False)

Interpreter

import vupysolr

Create VuFind Solr index client

url = "https://vufind.example.com/solr"
core = "collection"
index = vupysolr.index(url, core=core, marc=True)

Retrieve VuFind Solr document from index

doc_id = "123456789"
doc = index.get(doc_id)

Inspect fields of VuFind Solr document

# print document title
print(doc.title)
# print timestamp of last indexation
print(doc.last_indexed)
# print timestamp of latest transaction (MARC)
print(doc.marc_latest_transaction)

Metadata

Release files for vupysolr 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vupysolr 0.2.2
File Size Uploaded
vupysolr-0.2.2.tar.gz 19.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vupysolr 0.2.2
File Interpreter ABI Platform
vupysolr-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 39.4 kB

Release files / vupysolr-0.2.2.tar.gz

Download URL vupysolr-0.2.2.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9618fdf4f11bcfc1068cbfb57949806a1fa0c7ff0a14e3e187cfc3951d786e2e
BLAKE2b-256 checksum
How to use checksums
11e05c16c7ace0852dfef6ab3c458175fcb94fbd6e5770f5e4f19997bc42cd04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / vupysolr-0.2.2-py3-none-any.whl

Download URL vupysolr-0.2.2-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66914bbd5b94e04b928e28defa687b9b9af70608d58f65f94baad395b7a75bb4
BLAKE2b-256 checksum
How to use checksums
e8ddd373cc4dad84a2f300c86bc0d9251beee15e93b978e5c2b5b74f151c8b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page