Tools to support Kata's work.
Project description
RaRa Tools
rara-tools is a Python library containing various generic tools used by components of Kata.
✨ Features
- Elasticsearch index & document operations
- S3 file management operations
- Task reporting to Core API
- Converting SIERRA API responses to Pymarc compatible JSON
⚡ Quick Start
Get started with rara-tools in just a few steps:
-
Install the Package
Ensure you're using Python 3.10 or above, then run:pip install rara-tools
-
Import and Use
Example usage to download a folder from S3:from rara_tools.s3 import S3Files s3 = S3Files( url="your-s3-address", access_key = "xxx", secret_key = "yyy", bucket = "my-sad-bucket" ) s3.download("my-folder-in-s3")
⚙️ Installation Guide
Follow the steps below to install the rara-tools package, either via pip or locally.
Installation via pip
Click to expand
-
Set Up Your Python Environment
Create or activate a Python environment using Python 3.10 or above. -
Install the Package
Run the following command:pip install rara-tools
Local Installation
Follow these steps to install the rara-tools package locally:
Click to expand
-
Clone the Repository
Clone the repository and navigate into it:git clone <repository-url> cd <repository-directory>
-
Set Up Python Environment
Create or activate a Python environment using Python 3.10 or above. E.g:conda create -n py310 python==3.10 conda activate py310
-
Install Build Package
Install thebuildpackage to enable local builds:pip install build
-
Build the Package
Run the following command inside the repository:python -m build
-
Install the Package
Install the built package locally:pip install .
🚀 Testing Guide
Follow these steps to test the rara-tools package.
How to Test
Click to expand
-
Clone the Repository
Clone the repository and navigate into it:git clone <repository-url> cd <repository-directory>
-
Set Up Python Environment
Create or activate a Python environment using Python 3.10 or above. -
Install Build Package
Install thebuildpackage:pip install build
-
Build the Package
Build the package inside the repository:python -m build
-
Install with Testing Dependencies
Install the package along with its testing dependencies:pip install .[testing]
-
Run Tests
Run the test suite from the repository root:python -m pytest -v tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rara_tools-0.4.4.tar.gz.
File metadata
- Download URL: rara_tools-0.4.4.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abd35ba8e44cf796adfb885dec72204173954fb3f24efb7b1bd0a56cf8784244
|
|
| MD5 |
3f1889c22db9f348fb7df44cfa6799cd
|
|
| BLAKE2b-256 |
63236598dfc53c12f603016621412ce22b7e090232b30f2166c656061d6845bc
|
File details
Details for the file rara_tools-0.4.4-py3-none-any.whl.
File metadata
- Download URL: rara_tools-0.4.4-py3-none-any.whl
- Upload date:
- Size: 56.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3451d1999ed4e45cc337c4d0a15b4313f4dc5600b550676e93c4a30c11ebc64a
|
|
| MD5 |
d8b7eddfdc76c78187db849418b469a1
|
|
| BLAKE2b-256 |
ebd329264c21fb00b32652b3d3192efe4e37db7db0b140ee05103d97011ba4b8
|