semvec/pypi-packages huggingface dataset:
simple-reload 0.1.0
Simple library to automatically restart Python scripts on source changes
License: MIT
Requires Python: >=3.10

# Simple Reload

*Simple library to automatically restart Python scripts on source changes*

A lightweight utility that monitors Python files for changes and automatically restarts your script when changes are detected. Perfect for development workflows where you want to see immediate results without manually restarting your application.

```python
import mymodule
from simple_reload import run_simple_reload


def main():
    run_simple_reload([mymodule])
    print('Hello, running my CLI.')

    # Main logic
    from time import sleep
    try:
        while True: sleep(1)
    except KeyboardInterrupt:
        print('Exiting program (potentially due to file change)')


if __name__ == "__main__":
    main()
```

## Installation

```bash
pip install simple-reload
```

## Detailed Usage

`run_simple_reload` takes two main parameters:

1. `modules`: A list of modules to watch for changes. The function will monitor all Python files in the directories containing these modules.
2. `on_change`: Optional callback function that gets called when files change. It receives a set of tuples with the change type and file path.

You can conditionally call `run_simple_reload` if you'd like to only enable it in debug mode. You can also the auto-reload feature by setting the environment variable `SIMPLE_RELOAD_DISABLE=1`.

Detailed example:

```python
import myapp
from simple_reload import run_simple_reload, Change
from contextlib import suppress


def main():
    if myapp.is_debug_enabled():
        run_simple_reload([myapp], on_change=print)
    
    with supress(KeyboardInterrupt):
        myapp.start()


if __name__ == "__main__":
    main()
```

When a file changes, the child process is cleanly shutdown (via SIGINT) and a new child is spawned with the same command line arguments that were used to start it originally.

## Development

Simple Reload uses Rye for dependency management and the development workflow. To get started with development, ensure you have [Rye](https://github.com/astral-sh/rye) installed and then clone the repository and set up the environment:

```sh
git clone https://github.com/MatthewScholefield/simple-reload.git
cd simple-reload
rye sync
rye run pre-commit install

# Run tests
rye test
```
atai-gemma3-tool 0.0.3
CLI tool for generating text from images using the Gemma 3 model.
License: MIT
Requires Python: >=3.7
Keywords: google, gemma3, image-extraction, document-processing

# atai-gemma3-tool

atai-gemma3-tool is a command-line interface (CLI) tool that uses Google's Gemma 3 model to generate descriptive text from local image files. It leverages the power of a state-of-the-art multimodal model to process images and stream textual outputs in real time.

## Features

- **Multimodal Processing:** Accepts image input and produces text output.
- **Real-Time Streaming:** Generates and streams tokens as they are produced.
- **Customizable Prompt:** Allows users to define a custom prompt.
- **Easy Installation:** Installable via pip with all dependencies handled.
- **Asynchronous Generation:** Utilizes asynchronous token streaming for quick response times.

## Installation

Clone the repository and install the package in editable mode:

```bash
pip install git+https://github.com/huggingface/transformers@v4.49.0-Gemma-3

pip install atai-gemma3-tool
```

## Usage

Run the CLI tool from your terminal by specifying the path to your image file and an optional custom prompt:

```bash
atai-gemma3-tool "path/to/your/local_image.jpg" --prompt "Describe this image in detail."

atai-gemma3-tool https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG
```

### Command Line Arguments

- **image_path**: The path to your local image file or a image url.
- **--prompt**: *(Optional)* Custom prompt for text generation.  
  Default: `"Describe this image in detail."`

The tool will load the image, process it using the Gemma 3 model, and output the generated text to your console in real time.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Acknowledgements

- **Google DeepMind:** For the Gemma 3 model.
- **Hugging Face:** For the Transformers library and supporting tools.
vrv-mygmap 1.0.7
A small wrapper around google maps api
License: MIT
Keywords: maps location address


mygmap
======

A simple python wrapper for Google Maps API.
Use it to get the formatted address or co-ordinates of any location.

The code is Python 2, but Python 3 compatible.

Installation
------------

Fast install:

::

    pip install vrv-mygmap

For a manual install get this package:

::

    wget https://github.com/nikhilkumarsingh/mygmap/archive/master.zip
    unzip master.zip
    rm master.zip
    cd mygmap-master

Install the package:

::

    python setup.py install    

Example
--------

.. code:: python

    from geo import locator

    # get formatted address of any location
    print locator.get_address("rohini, delhi")

    # get co-ordinates of location
    print locator.get_coordinates("delhi")

    

Here is the output:

Rohini, New Delhi, Delhi, India
(28.7040592, 77.10249019999999)