semvec/pypi-packages huggingface dataset:
sosilogikk 2.0.2
A library for handling and processing SOSI geospatial data.
Requires Python: >=3.10



<div align="center">
  <img src="./images/sosilogikk.jpg" alt="Project Logo" width="400"/>
</div>

---

sosilogikk is a small utility to read Norwegian SOSI vector files (FKB 5.x) into GeoPandas, and write them back out. It handles the SOSI header, encoding, ENHET scaling, KOORDSYS→EPSG mapping, and assembles geometries (points, curves, polygons).

## Install

```bash
pip install sosilogikk
```

## Minimal example: SOSI → GeoJSON

```python
from sosilogikk import read_sosi

# Path to a single .sos file
sosi_path = "sample/roads.sos"

# Parse to GeoDataFrame (includes CRS when KOORDSYS is present)
gdf, metadata = read_sosi(sosi_path, return_metadata=True)

# Write to GeoJSON
gdf.to_file("sample/roads.geojson", driver="GeoJSON")
```

You’ll get a CRS-aware GeoDataFrame: KOORDSYS 22/23/25 map to EPSG 25832/25833/25835, ENHET scales coordinates, and mixed 2D/3D geometries are flattened to 2D.
inline-prompts 1.0.0
A Python package for writing inline prompts in Python
Requires Python: >=3.9
Keywords: inline, prompts

# Inline Prompts

`Inline Prompts` allows you to write better inline prompts in your python programs.

## Installation

## Examples

```python3
from inline_prompts import inline_prompt as ip

def get_system_prompt():
    prompt = ip("""
        Without the Inline Prompts package,
        prompts written like this would
        have a leading newline,
        and spacing at the start of each newline.
        Inline prompts abstracts that behavior away.
    """)

    return prompt

print(get_system_prompt())
```

Results in
```bash
Without the Inline Prompts package,
prompts written like this would
have a leading newline,
and spacing at the start of each newline.
Inline prompts abstracts that behavior away.
```

Without inline prompts, you would get
```python3

        Without the Inline Prompts package,
        prompts written like this would
        have a leading newline,
        and spacing at the start of each newline.
        Inline prompts abstracts that behavior away.
```
emeraldtriangles 0.1.7
Triangle mesh transforms
Requires Python: >=3.9
Keywords: triangles, mesh, geospatial, landxml, delaunay

<img src="example.png" align="right"></image>

# EmeraldTriangles

This library provides transformations for 2d triangle meshes built on top
of
[scipy.spatial.Delaunay](https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.Delaunay.html)
and [Triangle](https://rufat.be/triangle/):

  * Insert points (nodes) in an existing mesh, splitting any triangles
    that points fall into.
    * Meshes created this way might not be Delaunay, but any new
      connected set of triangles added will be Delaunay if viewed in
      isolation (without the pre-existing mesh).
  * Extend a mesh outwards to include new points.
    * The extension to the mesh will be a constrained delaunay.
  * Calculate the boundary polygon of a mesh.
  
This library uses a similar data structure to the Triangles library
above, but replaces numpy arrays with pandas dataframes, preserving
any extra columns across operations. It also contains a plotting
function similar to the one in the Triangle library, that supports
color attributes for vertices as well as triangle faces.

In addition, EmeraldTriangles provides import and export functionality
for

  * LandXML (import and export, no extra columns)
  * SQL (import and export, same supported databases as pandas)
  * [PyVista](https://docs.pyvista.org/) (Only export)
    * VTK (only export)

as well as some data transforms

  * Reprojection of coordinates using [pyproj](https://pyproj4.github.io/pyproj/stable/)
  * Spatial interpolation (Kriging) of data using [scikit-gstat](https://scikit-gstat.readthedocs.io/)
  * Sampling of data from a raster to triangulation vertices using [RasterIO](https://rasterio.readthedocs.io/en/latest/)
  * Sampling of data from a triangulation to new point locations (linear interpolation between vertices of the surrounding triangle)

# Documentation

Documentation is provided in the form of a [jupyter notebook with
example
usages](https://github.com/EMeraldGeo/EmeraldTriangles/blob/master/Example%20usage.ipynb)
as well as in docstrings accesible with the python help() function.

# Installation tips

Users have experience issues with using the `setup.py develop` option due to some strange behaviour from cython. Using `pip` instead seems to do this trick.