Skip to main content

Shelve It CLI

Assigning containers to locations in ArchivesSpace.

Requirements

This module requires the shelve_it plugin to be enabled for ArchivesSpace.

Shelve It CLI is a Python module and can be installed using pip:

pip3 install shelve_it_cli

Usage

Create a basic configuration file with these settings:

base_url: http://localhost:4567 # update to your api url
username: admin
password: admin

Do not use admin with a production system. The user must be able to:

  • view repository
  • update containers
  • update locations

Test the connection to ArchivesSpace:

shelve_it_cli ping --config=/path/to/config.yml
# test config for devs running the backend locally
shelve_it_cli ping --config=config.test.yml

Create a CSV containing two columns with data to import. For example:

repo_code,container_barcode,location_barcode
test,123456,987654

Run the command to import it:

shelve_it_cli process --config=/path/to/config.yml --data=/path/to/import.csv --output=/path/to/result.csv

Developer setup

# install system wide for editors (optional)
pip3 install ArchivesSnake fire
# install within virtualenv
virtualenv venv --python=python3
source venv/bin/activate
pip3 install -r requirements.txt

# commands
python shelve_it_cli.py ping --config config.test.yml
python shelve_it_cli.py process --config config.test.yml --data barcodes.csv --output result.csv

# test install
python -m unittest discover
pip3 install .
pip3 uninstall shelve_it_cli

Publishing

pip3 install twine

Metadata

Release files for shelve-it-cli 0.1

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

Source distribution (sdist)

Source distribution for shelve-it-cli 0.1
File Size Uploaded
shelve_it_cli-0.1.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shelve-it-cli 0.1
File Interpreter ABI Platform
shelve_it_cli-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / shelve_it_cli-0.1.tar.gz

Download URL shelve_it_cli-0.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bb360eb8b87adcf1146c7200577921de88bfe735bcd542a1ba614630ff5940c8
BLAKE2b-256 checksum
How to use checksums
3f4565f6d8315d118083e6e9b555f409ba04b3d198a48fd01f31e798bb52b1b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release files / shelve_it_cli-0.1-py3-none-any.whl

Download URL shelve_it_cli-0.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2059b68d6578fce5a1d5ae62504b551a289593710d2f10f8966ef7ebfde04647
BLAKE2b-256 checksum
How to use checksums
e75eb97ef2ede211350e391f2cc8099f7db4149096942a6e163bec50a9d78937
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.1 This release

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