Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/minshug/pyusmap

.usmap parser
https://github.com/minshug/pyusmap

Last synced: 25 days ago
JSON representation

.usmap parser

Awesome Lists containing this project

README

        

# pyUsmap
.usmap reader

[![pypi](https://img.shields.io/pypi/v/pyusmap.svg)](https://pypi.python.org/pypi/pyusmap/)
[![Downloads](https://pepy.tech/badge/pyusmap)](https://pepy.tech/project/pyusmap)

# Installation
`pip install pyUsmap`

# Usages
```py
from Usmap import Usmap
import json

with open("xyz.usmap", "rb") as f:
data = Usmap(f).read()

# from bytes or byte array
import io

data = Usmap(io.BytesIO(b'')).read()

# writing to json
jsondict = data.GetValue() # get json serializable dict
with open("Mappings.json", "w") as f:
json.dump(jsondict, f, indent=4)

```
# Requirements

* Python 3
* Brotli