Skip to main content

Extracts relevant meta information for cataloging.

Project description

RaRa Meta Extractor

Py3.10 Py3.11 Py3.12

rara-meta-extractor is a Python library for extracting relevant meta information for cataloging.


✨ Features

  • Coming soon

⚡ Quick Start

Get started with rara-meta-extractor in just a few steps:

  1. Install the Package
    Ensure you"re using Python 3.10 or above, then run:

    pip install rara-meta-extractor
    
  2. Import and Use
    Example usage to link entries with default configuration:

     from rara_meta_extractor.llama_extractor import LlamaExtractor
     from pprint import pprint
    
     text = """
        JUMALAL EI OLE AEGA
    
        Toimetanud Milvi Teesalu
        Kaane kujundanud Piret Tuur
        Autoriõigus: Marje Ernits ja OÜ Eesti Raamat, 2019
        ISBN 978-9949-683-96-3
        ISBN 978-9949-683-97-0 (epub)
     """
    
     fields = [
       "editor", "designer", "isbn", "author",
       "copyright year", "title"
     ]
    
     llama_extractor = LlamaExtractor(
         llama_host_url="http://local-llama:8080",
         fields=fields,
         temperature=0.3
     )
    
     extracted_info = llama_extractor.extract(text)
     pprint(extracted_info)
    

    Out:

    {
      "editor": ["Milvi Teesalu"],
      "designer": ["Piret Tuur"],
      "isbn": ["978-9949-683-96-3", "978-9949-683-97-0"],
      "author": ["Marje Ernits ja OÜ Eesti Raamat"],
      "copyright year": ["2019"],
      "title": ["JUMALAL EI OLE AEGA"]
    }
    

⚙️ Installation Guide

Follow the steps below to install the rara-meta-extractor package, either via pip or locally.


Installation via pip

Click to expand
  1. Set Up Your Python Environment
    Create or activate a Python environment using Python 3.10 or above.

  2. Install the Package
    Run the following command:

    pip install rara-meta-extractor
    

Local Installation

Follow these steps to install the rara-meta-extractor package locally:

Click to expand
  1. Clone the Repository
    Clone the repository and navigate into it:

    git clone <repository-url>
    cd <repository-directory>
    
  2. 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
    
  3. Install Build Package
    Install the build package to enable local builds:

    pip install build
    
  4. Build the Package
    Run the following command inside the repository:

    python -m build
    
  5. Install the Package
    Install the built package locally:

    pip install .
    

🚀 Testing Guide

Follow these steps to test the rara-meta-extractor package.

How to Test

Click to expand
  1. Clone the Repository
    Clone the repository and navigate into it:

    git clone <repository-url>
    cd <repository-directory>
    
  2. Set Up Python Environment
    Create or activate a Python environment using Python 3.10 or above.

  3. Install Build Package
    Install the build package:

    pip install build
    
  4. Build the Package
    Build the package inside the repository:

    python -m build
    
  5. Install with Testing Dependencies
    Install the package along with its testing dependencies:

    pip install .[testing]
    
  6. Run Tests
    Run the test suite from the repository root:

    python -m pytest -v tests
    

📝 Documentation

Coming soon

🔍 Usage Examples

Coming soon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rara_meta_extractor-1.0.0.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rara_meta_extractor-1.0.0-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

Details for the file rara_meta_extractor-1.0.0.tar.gz.

File metadata

  • Download URL: rara_meta_extractor-1.0.0.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for rara_meta_extractor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8374fc5c5b0857aaaec6156c35d91e4433a07f3b61e3aa6678e10c036c487565
MD5 babeeea35ceefd63cec3f8ff49a9ca69
BLAKE2b-256 5f0ccac350f5f0bcd34512530d773087f355aeef3a3710315a1ea756a15c640f

See more details on using hashes here.

File details

Details for the file rara_meta_extractor-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rara_meta_extractor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79c5a098343a943ee630c8ee2c1424d5d2e0a29a667f44f969513a02ece0138d
MD5 d784feecf9266be1c3d93e666bcbe156
BLAKE2b-256 295790262f47541d7a008a2a90facf6b1a87bdd2cc704425b8672ffc9daa8a1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page