Metadata-Version: 2.1
Name: pyacmi
Version: 1.2.2
Summary: ACMI flight record file parser
Home-page: https://github.com/wangtong2015/pyacmi
Author: Wang Tong
Author-email: astroboythu@gmail.com
License: MIT
Keywords: acmi tacview
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Games/Entertainment :: Simulation
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3 :: Only
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: sortedcontainers
Requires-Dist: tqdm

# pyacmi: TacView ACMI FileParser

[![PyPI Latest Release](https://img.shields.io/pypi/v/pyacmi.svg)](https://pypi.org/project/pyacmi/)
[![License](https://img.shields.io/pypi/l/pyacmi.svg)](https://github.com/wangtong2015/pyacmi)
[![Package Status](https://img.shields.io/pypi/status/pyacmi.svg)](https://pypi.org/project/pyacmi/)

`**.acmi` is a file used by tacview for creating flight recording from simulators or real world.

The source code is currently hosted on GitHub at: https://github.com/wangtong2015/pyacmi

ACMI file documentation: [Technical Reference - ACMI flight recordings 2.2](https://www.tacview.net/documentation/acmi/)

## Installation

You can install pyacmi via pip or pip3 for Python 3+:

```shell
$ pip3 install pyacmi
```

You can install a specific version of pyacmi by:

```shell
$ pip3 install pyacmi==1.2.0
```

You can upgrade pyacmi to the latest version by:

```shell
$ pip3 install --upgrade pyacmi
```

## Example

```python

from pyacmi import Acmi

acmi = Acmi('test.acmi')
print(acmi)

print(acmi.reference_latitude, acmi.reference_longitude, acmi.reference_time)

# 打印所有的object
for obj_id in acmi.objects:
    obj = acmi.objects[obj_id]
    print(obj)
    print(obj.id, obj.name, obj.country, obj.tags, obj.type)

# 导出成csv
acmi.export_csv('test.csv', remove_empty=True, export_obj_ids=None)
```

## Credits

- [https://github.com/rp-/acmi](https://github.com/rp-/acmi)
