Metadata-Version: 2.1
Name: iotrans
Version: 0.0.1
Summary: A package to easily convert structured data into various file formats
Home-page: https://github.com/open-data-toronto/iotrans
Author: Open Data Toronto
Author-email: opendata@toronto.ca
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Requires-Dist: geopandas (>=0.4.0)
Requires-Dist: xmltodict (>=0.12.0)

# iotrans

A package to easily convert structured data into various file formats

## Requirements
* Python 3.6
* geopandas>=0.4.0
* xmltodict>=0.12.0

## Installation
    git clone https://github.com/open-data-toronto/iotrans
    cd iotrans
    python setup.py install

## Usage

```python
import geopandas as gpd
import iotrans
```

### Geospatial data to XML

```python
df = gpd.read_file([data_path])
iotrans.to_file(df, './data.xml')
```
```
'./data.xml'
```

### Output as a zip file

```python
df = gpd.read_file([data_path])
iotrans.to_file(df, './data.shp')
```
```
'./data.zip'
```

## Supported Formats
### Tabular Formats
* CSV
* JSON
* XML

### Geospatial Formats
* CSV
* GeoJSON
* GeoPackage
* Shapefile

## Contribution
All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.

### Reporting issues
Please report issues [here](https://github.com/open-data-toronto/iotrans/issues).

### Contributing
Please develop in your own branch and create Pull Requests into the `dev` branch when ready for review and merge.

## License

* [MIT License](https://github.com/open-data-toronto/iotrans/blob/master/LICENSE)


