semvec/pypi-packages huggingface dataset:
lazarus-ai 1.0.1
Lazarus AI Python Library
License: MIT

# Lazarus Forms API Python Library

## Installation
To install
```
pip install lazarus_ai
```
To upgrade
```
pip install lazarus_ai --upgrade
```

## Usage

We recommend storing your Lazarus auth credentials as environment variables.
```
# example .env file
ORG_ID=ORG_ID_HERE
AUTH_KEY=AUTH_KEY_HERE
```

### LazarusAuth
Before using Lazarus Forms or RikAI, you must authenticate using the LazarusAuth class. This auth object will be passed to Forms and RikAI class instantiations.

```
auth = LazarusAuth("ORG_ID_HERE", "AUTH_KEY_HERE")
```


### Forms
Upload a document using a file URL, a base64 encoded string, or a local file path. Run the standard OCR model on that document.
```
forms = Forms(auth)
forms.run_ocr("URL", "FILE_URL_HERE")
forms.run_ocr("BASE64", "BASE_64_STRING_HERE")
forms.run_ocr("FILE_PATH", "FILE_PATH_HERE")
```

Run a custom OCR model. 

```
forms = Forms(auth, "CUSTOM_MODEL_ID_HERE")
forms.run_ocr("URL", "FILE_URL_HERE")
forms.run_ocr("BASE64", "BASE_64_STRING_HERE")
forms.run_ocr("FILE_PATH", "FILE_PATH_HERE")
```

### RikAI
Upload a document using a file URL, a base64 encoded string, or a local file path. Run RikAI on that document.
```
rikai = RikAI(auth)
question = "QUESTION_HERE"
rikai.ask_question("URL", "FILE_URL_HERE", question)
rikai.ask_question("BASE64", "BASE_64_STRING_HERE", question)
rikai.ask_question("FILE_PATH", "FILE_PATH_HERE", question)
```

Run a custom RikAI model on that document.
```
rikai = RikAI(auth, "CUSTOM_MODEL_ID_HERE")
question = "QUESTION_HERE"
rikai.ask_question("URL", "FILE_URL_HERE", question)
rikai.ask_question("BASE64", "BASE_64_STRING_HERE", question)
rikai.ask_question("FILE_PATH", "FILE_PATH_HERE", question)
```

Run the RikAI summarizer on the document.
```
rikai = RikAI(auth, "CUSTOM_MODEL_ID_HERE")
fields = {"document_type": "TYPE_HERE", "summary_description": "DESCRIPTION_HERE"}
rikai.summarize("URL", "FILE_URL_HERE", fields)
rikai.summarize("BASE64", "BASE_64_STRING_HERE", fields)
rikai.summarize("FILE_PATH", "FILE_PATH_HERE", fields)
```
django-post-fetch-hook 0.0.3
Modify data fetched from a database after it has been fetched but before it has been cached in django's result cache.
License: MIT
Requires Python: >=3.9,<4
Keywords: django,post,fetch,hook,database

# Django Post-fetch Hook

[![Coverage Status][coverage-badge]][coverage]
[![GitHub Workflow Status][status-badge]][status]
[![PyPI][pypi-badge]][pypi]
[![GitHub][licence-badge]][licence]
[![GitHub Last Commit][repo-badge]][repo]
[![GitHub Issues][issues-badge]][issues]
[![Downloads][downloads-badge]][pypi]
[![Python Version][version-badge]][pypi]

```shell
pip install django-post-fetch-hook
```

---

**Documentation**: [https://mrthearman.github.io/django-post-fetch-hook/](https://mrthearman.github.io/django-post-fetch-hook/)

**Source Code**: [https://github.com/MrThearMan/django-post-fetch-hook/](https://github.com/MrThearMan/django-post-fetch-hook/)

**Contributing**: [https://github.com/MrThearMan/django-post-fetch-hook/blob/main/CONTRIBUTING.md](https://github.com/MrThearMan/django-post-fetch-hook/blob/main/CONTRIBUTING.md)

---

Adds a post-fetch hook to Django models, which can be used to modify data fetched from database via the Django ORM.

[coverage-badge]: https://coveralls.io/repos/github/MrThearMan/django-post-fetch-hook/badge.svg?branch=main
[status-badge]: https://img.shields.io/github/actions/workflow/status/MrThearMan/django-post-fetch-hook/test.yml?branch=main
[pypi-badge]: https://img.shields.io/pypi/v/django-post-fetch-hook
[licence-badge]: https://img.shields.io/github/license/MrThearMan/django-post-fetch-hook
[repo-badge]: https://img.shields.io/github/last-commit/MrThearMan/django-post-fetch-hook
[issues-badge]: https://img.shields.io/github/issues-raw/MrThearMan/django-post-fetch-hook
[version-badge]: https://img.shields.io/pypi/pyversions/django-post-fetch-hook
[downloads-badge]: https://img.shields.io/pypi/dm/django-post-fetch-hook

[coverage]: https://coveralls.io/github/MrThearMan/django-post-fetch-hook?branch=main
[status]: https://github.com/MrThearMan/django-post-fetch-hook/actions/workflows/test.yml
[pypi]: https://pypi.org/project/django-post-fetch-hook
[licence]: https://github.com/MrThearMan/django-post-fetch-hook/blob/main/LICENSE
[repo]: https://github.com/MrThearMan/django-post-fetch-hook/commits/main
[issues]: https://github.com/MrThearMan/django-post-fetch-hook/issues