semvec/pypi-packages huggingface dataset:
pyhigh 0.0.6
Python library to get elevation data
License: MIT
Requires Python: >=3.7
Keywords: elevation

# pyhigh
[![Actions Status](https://github.com/sgherbst/pyhigh/workflows/Regression/badge.svg)](https://github.com/sgherbst/pyhigh/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI version](https://badge.fury.io/py/pyhigh.svg)](https://badge.fury.io/py/pyhigh)

``pyhigh`` is a Python package for accessing elevation data, which is retrieved from a [USGS dataset](https://dds.cr.usgs.gov/srtm/version2_1/SRTM3/North_America/).  The package uses caching to avoid unecessary downloads from the USGS dataset, but please respect their download policies.

## Installation

```shell
> pip install pyhigh
```

## Usage

### Command-line utility

The ``pyhigh`` Python package includes a command-line tool of the same name to retreive the elevation at a particular latitude and longitude:

```shell
> pyhigh --lat 36.52011 --lon -118.671
1884
```

As necessary, files will be download from a USGS dataset and cache in the folder ``pyhigh/pyhigh/.cache``.  To clear this cache, use the ``--clean`` argument:

```shell
> pyhigh --clean
```

### Python API

The ``get_elevation`` function returns the elevation, in meters, at the given latitude and longitude.

```python
>>> from pyhigh import get_elevation
>>> get_elevation(lat=36.52011, lon=-118.671)
1884
```

It is also possible to request a bunch elevations for a bunch of latitudes and longitudes at once.  The result returned is a NumPy array of elevations.

```python
>>> from pyhigh import get_elevation_batch
>>> get_elevation_batch([(36.52011, -118.671),
...                      (36.62011, -118.771)])
array([1884., 2438.])
```
This is more efficient than individual calls to ``get_elevation`` because elevation reads are pooled together to avoid reading the same ``*.hgt`` file multiple times.

Finally, the ``pyhigh`` cache of ``*.hgt`` files can be cleared with the API function ``clear_cache``:

```python
>>> from pyhigh import clear_cache
>>> clear_cache()
```
tire-codes 0.1.0
A lightweight, dependency-free Python tool to parse and validate tire codes
License: MIT
Requires Python: >=3.10
Keywords: tire, codes, automotive, validation, parser, size

# Tire Codes

## Description
Tire codes is a lightweight, easy-to-use Python tool designed to parse various tire specifications from tire codes.

## Features
- Parses tire specifications from various formats.
- Extractable specs include:
  - FORMAT
  - SERVICE_TYPE
  - WIDTH
  - ASPECT_RATIO
  - WHEEL_DIAMETER
  - CONSTRUCTION
  - OVERALL_DIAMETER
  - LOAD_INDEX
  - LOAD_INDEX_DUAL
  - SPEED_RATING

## Installation
Install directly with pip. No external dependencies.

```bash
pip install tire-codes
```

## Example
For a tire code like "215/70R16 100T" (metric) or "35X12.5R20 125S" (off-road), the parser will automatically detect the format and extract the details into a `TireSpecs` object.

## Usage
To parse a tire code, pass your tire code string to the `TireCodeParser` object:

```python
from tire_codes import TireCodeParser, TireCodeParsingError, TireCodeValidationError

try:
    parser = TireCodeParser("295/40R21 111Y")
    specs = parser.parse()
    print(specs)
except TireCodeParsingError as e:
    print(f"Parsing error: {e}")
except TireCodeValidationError as e:
    print(f"Validation error: {e}")
```

You can also access all spec values as a dictionary:

```python
print(specs.to_dict())
```

### Command-Line Interface

You can also run the parser from the command line:

```bash
python3 main.py "295/40R21 111Y"
```

## Contributing
Any suggestions or contributions are welcome! I hope you find this package useful.

## License
MIT License