Metadata-Version: 2.1
Name: py-sourcemap
Version: 0.4.0
Summary: A tiny source-map-mappings bindings for python using PyO3
Home-page: https://github.com/LeetCode-OpenSource/py-sourcemap
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python
Classifier: Programming Language :: Rust
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: wheel

# py-sourcemap

[![CircleCI](https://circleci.com/gh/LeetCode-OpenSource/py-sourcemap.svg?style=svg)](https://circleci.com/gh/LeetCode-OpenSource/py-sourcemap)
[![Build Status](https://travis-ci.com/LeetCode-OpenSource/py-sourcemap.svg?branch=master)](https://travis-ci.com/LeetCode-OpenSource/py-sourcemap)
[![Build status](https://ci.appveyor.com/api/projects/status/ubn6tpgyryapy319/branch/master?svg=true)](https://ci.appveyor.com/project/Brooooooklyn/py-sourcemap/branch/master)

A tiny [source-map-mappings](https://github.com/fitzgen/source-map-mappings) bindings for python using [PyO3](https://github.com/PyO3/pyo3)

# Platform Support

### Operating Systems

| Linux | macOS | Windows x86 | Windows x64 |
| ----- | ----- | ----------- | ----------- |
| ✓     | ✓     | ✓           | ✓           |

### Python

| Python3.5 | Python3.6 | Python3.7 |
| --------- | --------- | --------- |
| ✓         | ✓         | ✓         |

# Usage

```python
from py_sourcemap import SourcemapParser

sourcemap_parser = SourcemapParser("./tests/index.js.map")
# pass line, column in, start from 1
sourcemap_parser.original_location_for(1, 195303) # (original_line, original_column, source_file_name, function_name_in_source) start from 1
```


