使用pyo3的python的小型源映射绑定
py-sourcemap的Python项目详细描述
py源映射
使用PyO3
python的一个小型source-map-mappings绑定平台支架
操作系统
Linux | macOS | Windows x86 | Windows x64 |
---|---|---|---|
✓ | ✓ | ✓ | ✓ |
Python
Python3.5 | Python3.6 | Python3.7 |
---|---|---|
✓ | ✓ | ✓ |
用法
frompy_sourcemapimportSourcemapParsersourcemap_parser=SourcemapParser("./tests/index.js.map")# pass line, column in, start from 1sourcemap_parser.original_location_for(1,195303)# (original_line, original_column, source_file_name, function_name_in_source) start from 1