{ "info": { "author": "Mark Cooper", "author_email": "mark.cooper@lyrasis.org", "bugtrack_url": null, "classifiers": [], "description": "# Shelve It CLI\n\nAssigning containers to locations in ArchivesSpace.\n\n## Requirements\n\nThis module requires the [shelve_it](https://github.com/lyrasis/shelve_it.git) plugin to be enabled\nfor ArchivesSpace.\n\nShelve It CLI is a Python module and can be installed using pip:\n\n```bash\npip3 install shelve_it_cli\n```\n\n## Usage\n\nCreate a basic configuration file with these settings:\n\n```yml\nbase_url: http://localhost:4567 # update to your api url\nusername: admin\npassword: admin\n```\n\nDo not use `admin` with a production system. The user must be able to:\n\n- view repository\n- update containers\n- update locations\n\nTest the connection to ArchivesSpace:\n\n```bash\nshelve_it_cli ping --config=/path/to/config.yml\n# test config for devs running the backend locally\nshelve_it_cli ping --config=config.test.yml\n```\n\nCreate a CSV containing two columns with data to import. For example:\n\n```txt\nrepo_code,container_barcode,location_barcode\ntest,123456,987654\n```\n\nRun the command to import it:\n\n```bash\nshelve_it_cli process --config=/path/to/config.yml --data=/path/to/import.csv --output=/path/to/result.csv\n```\n\n## Developer setup\n\n```txt\n# install system wide for editors (optional)\npip3 install ArchivesSnake fire\n# install within virtualenv\nvirtualenv venv --python=python3\nsource venv/bin/activate\npip3 install -r requirements.txt\n\n# commands\npython shelve_it_cli.py ping --config config.test.yml\npython shelve_it_cli.py process --config config.test.yml --data barcodes.csv --output result.csv\n\n# test install\npython -m unittest discover\npip3 install .\npip3 uninstall shelve_it_cli\n```\n\n## Publishing\n\n```txt\npip3 install twine\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lyrasis/shelve_it_cli", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "shelve-it-cli", "package_url": "https://pypi.org/project/shelve-it-cli/", "platform": "", "project_url": "https://pypi.org/project/shelve-it-cli/", "project_urls": { "Homepage": "https://github.com/lyrasis/shelve_it_cli" }, "release_url": "https://pypi.org/project/shelve-it-cli/0.1/", "requires_dist": [ "ArchivesSnake (==0.7.3)", "fire (==0.1.3)" ], "requires_python": "", "summary": "Assigning containers to locations in ArchivesSpace", "version": "0.1" }, "last_serial": 5421896, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "cb7e2b29aa7133315d362a9d3474e7c2", "sha256": "2059b68d6578fce5a1d5ae62504b551a289593710d2f10f8966ef7ebfde04647" }, "downloads": -1, "filename": "shelve_it_cli-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cb7e2b29aa7133315d362a9d3474e7c2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4288, "upload_time": "2019-06-19T17:52:00", "url": "https://files.pythonhosted.org/packages/e7/5e/b97ef2ede211350e391f2cc8099f7db4149096942a6e163bec50a9d78937/shelve_it_cli-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0aa8787135f387c1428d582475ced992", "sha256": "bb360eb8b87adcf1146c7200577921de88bfe735bcd542a1ba614630ff5940c8" }, "downloads": -1, "filename": "shelve_it_cli-0.1.tar.gz", "has_sig": false, "md5_digest": "0aa8787135f387c1428d582475ced992", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3853, "upload_time": "2019-06-19T17:52:02", "url": "https://files.pythonhosted.org/packages/3f/45/65f6d8315d118083e6e9b555f409ba04b3d198a48fd01f31e798bb52b1b4/shelve_it_cli-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cb7e2b29aa7133315d362a9d3474e7c2", "sha256": "2059b68d6578fce5a1d5ae62504b551a289593710d2f10f8966ef7ebfde04647" }, "downloads": -1, "filename": "shelve_it_cli-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cb7e2b29aa7133315d362a9d3474e7c2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4288, "upload_time": "2019-06-19T17:52:00", "url": "https://files.pythonhosted.org/packages/e7/5e/b97ef2ede211350e391f2cc8099f7db4149096942a6e163bec50a9d78937/shelve_it_cli-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0aa8787135f387c1428d582475ced992", "sha256": "bb360eb8b87adcf1146c7200577921de88bfe735bcd542a1ba614630ff5940c8" }, "downloads": -1, "filename": "shelve_it_cli-0.1.tar.gz", "has_sig": false, "md5_digest": "0aa8787135f387c1428d582475ced992", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3853, "upload_time": "2019-06-19T17:52:02", "url": "https://files.pythonhosted.org/packages/3f/45/65f6d8315d118083e6e9b555f409ba04b3d198a48fd01f31e798bb52b1b4/shelve_it_cli-0.1.tar.gz" } ] }