semvec/pypi-packages huggingface dataset:
python-messytable-handler 0.2.3
Parse messy tabular data in various formats. Updated clone of okfn/messytables.
License: MIT
Requires Python: >=3.10

# Parsing for messy tables

[![Build Status](https://travis-ci.org/okfn/messytables.png?branch=master)](https://travis-ci.org/okfn/messytables)
[![Coverage Status](https://coveralls.io/repos/okfn/messytables/badge.png?branch=master)](https://coveralls.io/r/okfn/messytables?branch=master)
[![Latest Version](https://img.shields.io/pypi/v/messytables.svg)](https://pypi.python.org/pypi/messytables/)

A library for dealing with messy tabular data in several formats, guessing types and detecting headers.

See the documentation at: https://messytables.readthedocs.io

Find the package at: https://pypi.python.org/pypi/messytables

See CONTRIBUTING.md for how to send patches, run tests.

**Contact**: Open Knowledge Labs - http://okfnlabs.org/contact/. We especially recommend the forum: http://discuss.okfn.org/category/open-knowledge-labs/
python-flexpolyline-pbapi 0.2.1
Flexible Polyline encoding (PBAPI extension)
License: MIT

![workflow](https://github.com/decitre/python-flexpolyline-pbapi/actions/workflows/test.yml/badge.svg)

# This project is deprecated. Please check [here-polyline-converter](https://github.com/heremaps/here-polyline-converter)

## FlexPolyline and HERE Polyline

This is Python extension of the [Flexible Polyline](https://github.com/heremaps/flexible-polyline) 
codec library to support the HERE polyline format used by 
[HERE Places (Search) API](https://developer.here.com/documentation/places/dev_guide/topics/guide.html)
for the [`compressedRoute`](https://developer.here.com/documentation/places/dev_guide/topics/location-contexts.html#location-contexts__here-polyline-encoding) requests parameter.

Note that the HERE Places (Search) API is in maintenance. This Python package can be used to test applications being migrated to 
the newer [HERE Geocoding & Search API](https://developer.here.com/documentation/geocoding-search-api/dev_guide/index.html).


### Install

```shell
$ pip install python-flexpolyline-pbapi
```

## Usage


```
>>> reencode_pbapi_to_flex(here_polyline_string)
```

Transforms a HERE polyline string into a flexible polyline string. 
The HERE Polyline segments width changes are ignored: The resulting corridor will be of constant width, expressed
in HERE geocoding & Search API as a specific request 
parameter [`width`](https://developer.here.com/documentation/geocoding-search-api/migration_guide/migration-places/topics/location-context.html#route-and-compressed-route).

```
>>> encode_pbapi(iterable)
```

Encodes a list (or iterator) of coordinates to the corresponding HERE polyline string representation. 
Coordinate order is `(lat, lng[, width])`. 

```
>>> decode_pbapi(here_polyline_string)
```

Decodes a HERE polyline string into an array of coordinates `(lat, lng[, width])`.

```
>>> encode_pbapi(iterable)
```

Note that `width` is expected to be one of `DW`, `HW`, `CW`.

##### Examples

```python
>>> import flexpolyline_pbapi as fp
>>> here_polyline = "oz5xJ67i1B1B7PzIhaxL7Y"
>>> flexible_polyline = fp.reencode_pbapi_to_flex(here_polyline)
>>> flexible_polyline
'BFoz5xJ67i1B1B7PzIhaxL7Y'

>>> points = [ (50.1022829, 8.6982122), (50.1020076, 8.6956695), (50.1006313, 8.6914960), (50.0987800, 8.6875156) ]
>>> fp.encode_pbapi(points)
'oz5xJ67i1B1B7PzIhaxL7Y'

>>> here_polyline = "oz5xJ67i1B.C1B7PzIha.DxL7Y"
>>> fp.decode_pbapi(here_polyline)
[(50.10228, 8.69821, 'CW'), (50.10201, 8.69567), (50.10063, 8.6915, 'DW'), (50.09878, 8.68752)]
```

<!-- to release:
python setup.py sdist bdist_wheel
ls -l dist/*
git tag v0.2.0
git remote add origin git@github.com:decitre/python-flexpolyline-pbapi.git`
git push -u origin master v0.2.0
python sdist bdist_wheel
twine upload --skip-existing dist/*
-->

### License

Copyright (C) 2019 HERE Europe B.V.

See the [LICENSE](./LICENSE) file in the root of this project for license details.