semvec/pypi-packages huggingface dataset:
rasvec 0.1.5
A Geospatial data handling library.
Requires Python: >=3.9
Keywords: geospatial, geopython, raster, vector, machine-learning

<img src= "https://raw.githubusercontent.com/davnish/rasvec/refs/heads/main/docs/img/rasvec.png" width = "100%">

# Rasvec

This is a Python library designed to streamline the handling of geospatial data, particularly for machine learning applications. Working with geospatial datasets often involves challenges like rasterization, vectorization, and grid creation—this library provides efficient and easy-to-use functions to simplify these processes.

- Documentation : https://rasvec.readthedocs.io

## Features

### vectors

- `clip_vector_by_raster`
- `create_grid_on_vector`
- `rasterize`

### rasters

- `patchify` (divides the raster into geotagged patches)
- `vectorization`

### satellite imagery

- `tms_to_geotiff` 

### view

- `view_rasters`

## Example

Here's an example of a feature: Generating a grid over a vector file.


```python
import geopandas as gpd
import matplotlib.pyplot as plt
from rasvec import create_grid_on_vector

gdf = gpd.read_file(r"sample_data/vector/vec/vec.shp")

# 
grid_cells = create_grid_on_vector("sample_data/vector/vec/vec.shp", 1000, "grid.shp")

fig, ax = plt.subplots(1,2, figsize=(10, 10))
gdf.plot(ax=ax[0])
ax[0].set_title("Original Vector Data")
gdf.plot(ax=ax[1])
grid_cells.plot(ax=ax[1], facecolor="none", edgecolor="red")
ax[1].set_title("Vector Data with Grid Overlay")
ax[0].axis("off")
ax[1].axis("off")
plt.tight_layout()

```
The output:

<img src= "https://raw.githubusercontent.com/davnish/rasvec/refs/heads/main/docs/img/grid.png" width = "100%">

## Installation

### install from PyPi

To install the library from PyPi run the below command in your terminal.

```bash
pip install rasvec
```

### install from GitHub

To install the development version from GitHub using Git, run the following command in your terminal.

```bash
pip install git+https://github.com/davnish/rasvec.git
```

## acknowledgements

This package was made possible due to the following open source projects.

-   [segment-geospatial](https://github.com/opengeos/segment-geospatial)
-   [tms2geotiff](https://github.com/gumblex/tms2geotiff)
django-a2a 0.1.1
Django app for handling a2a communication protocol
Requires Python: >=3.9

# django-a2a

![Django 5.0](https://github.com/ppak10/django-a2a/actions/workflows/django_5.yml/badge.svg)
![Django 4.0](https://github.com/ppak10/django-a2a/actions/workflows/django_4.yml/badge.svg)

## Installation
### 1. Install `django-a2a` via pip
```bash
pip install django-a2a
```
### 2. Add `django_a2a` in `INSTALLED_APP` within `settings.py`
```python
# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # Django A2A
    'django_a2a',
]
```

### 3. Migrate database.
```bash
python manage.py migrate
```

## Contributing

## Testing
### Using Act to run GitHub Actions locally
#### Ubuntu
```bash
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash && ./bin/act
```
image-processing-danilo 0.0.1
image Processing Package using Skimage
Requires Python: >=3.8

# image_processing_danilo

Description. 
The package image_processing_danilo is used to:
	Processing:
		- Histogran matching
		- Structural similarity
		- Resize image
	Utils:
		- Read image
		- Save image
		- Plot image
		- Plot result
		- Plot histogram 

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install package_name

```bash
pip install image_processing_danilo
```

## Author
Danilo

## License
[MIT](https://choosealicense.com/licenses/mit/)
cloai 1.1.0
A generic interface for AI models.
Requires Python: >3.10

# Cloai

Cloai is a generic interface to large language models. It enables the usage of
various prompting techniques (currently: chain of verification, chain of density,
instructor) across a wide variety of models, whilst using an identical interface.

## Installation

To install cloai, you can use the following command:

```sh
pip install cloai
```

## Usage

First, instantiate a client with a large language model provider. Cloai currently
supports OpenAI, Azure OpenAI, AWS Bedrock (Anthropic only), and Ollama:

#### OpenAI Client

```python
import cloai

client = cloai.OpenAiLlm(api_key="your_key", model="gpt-4o")
```

#### Ollama Client

```python
import cloai

client = cloai.OllamaLlm(
  model="llama3.2",
  base_url="http://localhost:11434/v1",
)
```

#### Azure OpenAI Client
```python
import cloai

client = cloai.AzureLlm(
  api_key="your_key",
  endpoint="your_endpoint",
  api_version="version_number",
  deployment="your_deployment"
)
```

#### AWS Bedrock (Anthropic)
```python
import cloai

client = cloai.AnthropicBedrockLlm(
  model="anthropic.claude-3-5-sonnet-20241022-v2:0",
  aws_access_key="YOUR_ACCESS_KEY",
  aws_secret_key="YOUR_SECRET_KEY",
  region="REGION",
)
```

Once your client is created, you can construct the generic interface and make use of
all the methods, regardless of which LLM you are using. Please be aware that cloai
uses asynchronous clients so you will have to await the promises. If you are in a
synchronous environment, see `asyncio.run()`.

```python
import cloai
import pydantic

model = cloai.LargeLanguageModel(client=client)

# Standard prompt
result = await model.run(system_prompt, user_prompt)

# Instructor
class Response(pydantic.BaseModel):
    is_scary: bool

result = await model.call_instructor(
  response_model=Response,
  system_prompt="Tell the user if a movie is scary.",
  user_prompt="Scary movie 3."
)

# Chain of verification
result = model.chain_of_verification(system_prompt, user_prompt)

# Chain of density
result = model.chain_of_density(text)
```



## Contributing

Contributions are welcome! Please see the [contributing guidelines](CONTRIBUTING.md) for more information.

## License

cloai is licensed under the terms of the [L-GPLv2.1 license](LICENSE).

## Support

If you encounter any issues or have any questions, please report them on our [issues page](https://github.com/childmindresearch/cloai/issues).