Metadata-Version: 2.4
Name: Pyntb
Version: 2025.0.1
Summary: A toolbox to factorize some code utilities across various projects.
Author-email: Mews Labs <emmanuel.cieren@mews-labs.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/eurobios-mews-labs/pyntb
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy<=1.26.4
Requires-Dist: scipy<=1.15.3
Provides-Extra: examples
Requires-Dist: matplotlib; extra == "examples"
Requires-Dist: scikit-learn; extra == "examples"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: scikit-learn; extra == "test"
Requires-Dist: pylint; extra == "test"
Provides-Extra: lint
Requires-Dist: black; extra == "lint"
Provides-Extra: dev
Requires-Dist: pyntb[examples,lint,test]; extra == "dev"
Dynamic: license-file

# Eurobios-Mews-Labs Toolbox

A toolbox to factorize some code utilities across various projects.

## Install

The package requires Python 3.9 or above and is available on PyPI:

```
python3 -m pip install pyntb
```

The optional dependencies used in the examples in the Github repository can be installed at the same time by typing
instead:

```
python3 -m pip install pyntb[examples]
```

## Content

- `geoutils`
    - implementation of haversine distance which works on numpy arrays with an option to change the sphere radius
- `optimize`
    - a bisection algorithm that work on numpy array inputs
    - a copy of `scipy.optimize.fixed_point` that deals with nan values
    - a 2D, quasi-newton algorithm that works with numpy array inputs
- `polynomial`
    - find roots of 2nd and 3rd order polymonials with numpy array inputs

## Examples

See `examples` directory for more details.
