semvec/pypi-packages huggingface dataset:
promptfile 0.8.0
promptfile: language support for .prompt files
Requires Python: >=3.8.10
Keywords: .prompt, prompt, prompt file, llm

<div align="center">
    <a href="https://www.weavel.ai">
        <img src="https://i.imgur.com/uQ7ulX3.png" title="Logo" style="" />
    </a>
    <h1>Promptfile</h1>
    <h3>Language support for <code>.prompt</code> files</h3>
    <div>
        <a href="https://pypi.org/project/promptfile" target="_blank">
            <img src="https://img.shields.io/pypi/v/promptfile.svg" alt="PyPI Version"/>
        </a>
    </div>
</div>

## Installation

```bash
pip install promptfile
```
geobuffers 0.1.2
geobuffers - a minipackage for computing areas around points
Requires Python: >=3

# geobuffers

This repository contains code that allows simple definitions of polygons defined around a coordinate of interest using geodesic distances. Some of the functionality can be reproduced with [geopandas buffer](https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoSeries.buffer.html) functionality.

Instead, all methods here rely on [pyproj.Geod](https://pyproj4.github.io/pyproj/stable/api/geod.html) geodetic computations using Clarke 1866 Ellipsoid.

## Available shapes

|          | Name    | Parameters | Description |
| -------- | ------- | :--------  | :---------- |
| ![square](https://github.com/user-attachments/assets/e0253ee4-ecd4-4344-90aa-833c82c248c0)     |  square   | `radius`, `azimuth_angle`             | Square with a distance center-to-corner `radius` and rotated by `azimuth_angle`  |
| ![triangle](https://github.com/user-attachments/assets/57c0cf0b-c6d5-42b6-a2bf-b3d85109bbab)   |  triangle | `radius`, `azimuth_angle`             | Square with a distance center-to-corner `radius` and rotated by `azimuth_angle`  |
| ![hex](https://github.com/user-attachments/assets/185172e1-10e2-4b30-b70c-7efe2a12b68e)        | hexagon   | `radius`, `azimuth_angle`             | Hexagon with a distance center-to-vertex `radius` and rotated by `azimuth_angle` |
| ![13-gon](https://github.com/user-attachments/assets/7dc35c41-cc9d-425c-aa28-36680a804b42)     | regpol    | `n`, `radius`, `azimuth_angle`        | Regular polygon with `n` vertices `radius` metres away from the center, with first vertex at azimuth of `azimuth_angle` degrees |
| ![fov](https://github.com/user-attachments/assets/3a41efe8-14ce-4ba6-ad15-cca5b708bbec)        | fov       | `radius`, `azimuth_angle`, `fov_angle`| Field of view traingle at distance `radius`, pointing towards angle `azimuth_angle` with angular width of `fov_angle` degrees |

## Installation

```bash
pip install geobuffers
```

## Example Usage
```python
import geobuffers as gbf
from shapely import Point

my_point = Point([1.0, -1.0])

gbf.regpol(my_point,3)
```
![triangle](https://github.com/user-attachments/assets/8d116299-cfc5-4b4b-abfa-9739e8691fac)<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100.0" height="100.0" viewBox="0.9991596809433139 -1.0005144579984315 0.001680638113372268 0.001481128328698178" preserveAspectRatio="xMinYMin meet"><g transform="matrix(1,0,0,-1,0,-1.9995477876681649)"><path fill-rule="evenodd" fill="#66cc99" stroke="#555555" stroke-width="3.361276226744536e-05" opacity="0.6" d="M 1.0,-0.9990955755257842 L 1.0007780732006353,-1.0004522121423807 L 0.9992219267993647,-1.0004522121423807 L 1.0,-0.9990955755257842 z" /></g></svg>

The key feature here is that you get to define the `radius` in metres and the functions return a polygon with known coordinates, without need to worry about reprojecting.