semvec/pypi-packages huggingface dataset:
iiif2annos 0.0.3
OCR a IIIF images in a manifest and generate annotations
License: MIT
Requires Python: >=3.6

# iiif2annos
Read a manifest, OCR the images, create AnnotationLists and add them to a copy of the manifest

This tool uses the [tesseract](https://tesseract-ocr.github.io/) OCR engine. Ensure you have this installed and on your $PATH before running the code below. 

```
usage: ocr.py [-h] [--base-output-uri OUTPUTURI] [--lang LANG] [-c] manifest output

Read a manifest, OCR all the pages then adds the results as annotation lists

positional arguments:
  manifest              URL to Manifest file
  output                Output directory for annotation lists

options:
  -h, --help            show this help message and exit
  --base-output-uri OUTPUTURI
                        Output URI for annotations and annotation list
  --lang LANG           Language to pass to the OCR engine see: https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html
  -c, --confidence      Include OCR confidence value in text of the annotation?
```

This should work with v2 manifests and v3 manifest. For v2 AnnotationLists are created for v3 AnnotationPages are created. 

## Example

```
python iiif2annos/ocr.py --lang frk --base-output-uri http://localhost:5500/newspaper https://preview.iiif.io/cookbook/update_newspaper/recipe/0068-newspaper/newspaper_issue_1-manifest.json  newspaper
```


Using these blogs as a guide:

 * https://nanonets.com/blog/ocr-with-tesseract/#ocr-with-pytesseract-and-opencv 
 * https://pypi.org/project/pytesseract/
viyu-cli 1.0.1
A custom Python CLI framework for managing server projects and apps
License: MIT
Requires Python: >=3.6


## How the Commands Work

### 1. `viyu create_project <project_name>`

- The `create_project` command accepts the name of the project to be created.
- The system ensures that the project name is a valid Python identifier and checks if a project with the same name already exists.
- Once the name is validated, the command creates the project directory and initializes basic files and folders necessary for a server project.

### 2. `viyu add_app <app_name>`

- The `add_app` command creates a new app within the existing project by adding a directory with the app name and initializing necessary files such as `models.py`, `views.py`, etc.
- The app is added under the `apps/` directory of the project, and the tool ensures that no duplicate apps are created.

## Development

### Installation

1. Clone the repository:
    ```bash
    git clone https://github.com/yourusername/viyu-cli.git
    cd viyu-cli
    ```

2. Install the dependencies:
    ```bash
    pip install -e .
    ```

3. You can now use the `viyu` command in your terminal to create projects and apps!

## Contributing

Feel free to submit issues and pull requests to improve the tool.
setux-repl 0.2507.6
System deployment
License: MIT
Keywords: utility

# Setux REPL

Rudimentary REPL / CLI for [Setux]

[PyPI] - [Repo] - [Doc]


[PyPI]: https://pypi.org/project/setux_repl
[Repo]: https://framagit.org/louis-riviere-xyz/setux_repl
[Doc]: https://setux-repl.readthedocs.io
[Setux]: https://setux.readthedocs.io