lib-holdings
Command Line Interface (CLI) tool for retrieving holding counts for a list of OCNs and institutes. Uses the OCLC API: https://developer.api.oclc.org/
Installation
First of all, you will need to have Python installed on your computer and available on the command line. If this sounds scary, consider installing the Anaconda Navigator, an application that comes with Python and a command line.
Once installed, find and run the Anaconda Prompt which is the command line interface.
Again, knowing the command line is not a requirement. Simply copy the following into the window and press enter:
pip install lib-holdings
After the tool has been installed, continue below to learn how it works.
Usage
Preparation
Make sure you have the two input files ready:
- A text file (e.g. .txt) containing OCNs with 1 OCN per line
- A text file (e.g. .txt) containing institute symbols with 1 symbol per line
It is recommended to create a folder on your computer in which you place these input files.
Note down the path to this folder, e.g. C:/Users/username/myfolder (on Windows).
Execute the following command, replacing PATH with your path:
cd PATH
The command line now has access to that folder.
Create an empty folder (e.g. out) in which the results will be stored.
Also, keep your API key and secret handy.
Run the program
Copy and execute the following command, after replacing the indicated arguments.
(Description of the arguments can be found below)
holdings [OPTIONS] INFILE_OCNS INFILE_SYMB OUT_FOLDER
ARGUMENTS:
INFILE_OCNS: name of the text file containing OCNs (1 per line)
INFILE_SYMB: name of the text file containing institute symbols (1 per line)
OUT_FOLDER: output directory
OPTIONS:
--start INTEGER Position of OCN to start with.
--key TEXT OCLC API key.
--secret TEXT OCLC API secret.
Note:
The start option is handy when the program is interrupted or exits with an error. In that case, you can re-run the program, providing the start value shown.
Release files for lib-holdings 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lib_holdings-2.0.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lib_holdings-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / lib_holdings-2.0.0.tar.gz
| Download URL | lib_holdings-2.0.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b972b4b2da275b2bb3c87f1d9b74d679cfea9a17edde132114e420ac9c3f4884
|
|
BLAKE2b-256 checksum How to use checksums |
b86504599bdd70a422be4aa4231da827eb74cdb183369d02b5ad320c59376f21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-107-generic
|
Release files / lib_holdings-2.0.0-py3-none-any.whl
| Download URL | lib_holdings-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c7715da0f774a5778936d0349d11b531ec722cd7ad15186cea01eb8d281a3db
|
|
BLAKE2b-256 checksum How to use checksums |
29127e7c8c05c74e756fd705b85125b7e58461dc07704e7a906df7667c652180
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-107-generic
|