A tiny source-map-mappings bindings for python using PyO3
Project description
# 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 x32 | Windows x64 |
| ------ | ----- | ----------- | ----------- |
| ✓ | ✓ | ✓ | ✓ |
### Python
| Python3.5 | Python3.6 | Python3.7 |
| --------- | --------- | --------- |
| ✓ | ✓ | ✓ |
# Usage
```python
from py_sourcemap import SourcemapParser
sourcemap_parser = SourcemapParser("./tests/index.js.map")
sourcemap_parser.original_location_for(0, 195302) # (original_line, original_column, source_file_name, function_name_in_source)
```
[![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 x32 | Windows x64 |
| ------ | ----- | ----------- | ----------- |
| ✓ | ✓ | ✓ | ✓ |
### Python
| Python3.5 | Python3.6 | Python3.7 |
| --------- | --------- | --------- |
| ✓ | ✓ | ✓ |
# Usage
```python
from py_sourcemap import SourcemapParser
sourcemap_parser = SourcemapParser("./tests/index.js.map")
sourcemap_parser.original_location_for(0, 195302) # (original_line, original_column, source_file_name, function_name_in_source)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-sourcemap-0.3.6.tar.gz
(2.4 kB
view hashes)
Built Distribution
py_sourcemap-0.3.6-py3-none-any.whl
(809.1 kB
view hashes)
Close
Hashes for py_sourcemap-0.3.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f403001bde5cbff8b1f4c2cb0929cd3e73e1bfcf56bd4e8aa0654ff4fb9d72 |
|
MD5 | e010cdb9e912afb714696456d6c440c1 |
|
BLAKE2b-256 | c8a17d3cabdbbece5999aad54bdbd856608fed2ada8c9aa4013383a77f3642cd |