semvec/pypi-packages huggingface dataset:
pyxtf 1.4.2
eXtended Triton Format (XTF) file interface
License: MIT

### pyxtf
A python library for reading eXtended Triton Format (XTF) files ([revision 42](https://www.ecagroup.com/en/xtf-file-format)]

##### Installation from pypi

```bash
pip3 install pyxtf
```

##### Installation from source
Clone or download the repository and run the following command. This requires setuptools to be installed.

```bash
python3 setup.py install
```

###### Dependencies
The project depends on setuptools and numpy. Matplotlib is used for plotting, but is not required for basic functionality.

##### Usage

```python
import pyxtf

input_file = 'yourfile.xtf'
(file_header, packets) = pyxtf.xtf_read(input_file, verbose=True)
```

The file_header is of type XTFFileHeader, which is a c-structure that starts off every XTF file. The packets object is a dictionary of the packets that follow the file header. The key is of type XTFHeaderType, which is an enumerated class. The value is a list of objects that belong to that type of header type. E.g usage might look as the following.

```python
...
# Retrieve a list of all sonar packets
sonar_packets = packets[pyxtf.XTFHeaderType.sonar]

# Print the first sonar packet (ping)
print(sonar_packets[0])
```

Examples can be found in the [examples directory](https://github.com/oysstu/pyxtf/tree/master/examples) on github.

##### Contribution
 If you find an XTF-file that does not work, either submit a patch or new packet type, or be prepared to send an example XTF-file when submitting the bug-report.
python-diver 1.0
Pydiver: ecological diversity analysis in Python
License: MIT


# PyDiver: ecological diversity analysis in Python

PyDiver is a lightweight software package for calculating Simpson diversity with error bars.

It provides a reference implementation of the unbiased variance estimates proposed in [Tiffeau-Mayer 2024](https://doi.org/10.1103/PhysRevE.109.064411).

## Installation

The quickest way to install Pyrepseq is via pip:

`pip install python-diver`

Note that this package is called python-diver on PyPI.

## Documentation and examples

You can find API documentation on [readthedocs](https://pydiver.readthedocs.io/en/latest/?badge=latest).
You can also create a local copy of the API documentation by running:

```bash
make html
```

in the docs folder.

You can find usage examples by looking at the code in the [pub_simpsonvar](https://github.com/andim/pydiver/tree/main/pub_simpsonvar) directory.