Python library for parsing and generating source maps
Project description
Python library for parsing and generating source maps.
Usage
Overview
Example:
>>> import sourcemaps >>> sourcemaps.discover('...') 'jquery.min.map' >>> sourcemap = sourcemaps.decode('...') >>> sourcemap.tokens[3] <Token: dst_line=10 dst_column=10 src='jquery.js' src_line=50 src_col=200 name='lol'> >>> sourcemaps.encode(sourcemap) '{version: 3, mappings: 'AAAA,...', ...}'
Compatibility
Python 2.7
Python 3.3
PyPy
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
python-sourcemaps-1.1.zip
(7.0 kB
view details)
File details
Details for the file python-sourcemaps-1.1.zip
.
File metadata
- Download URL: python-sourcemaps-1.1.zip
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b102a9c2c3e8302131448784be03f72fe9e10060d42306b70959b0c12daf0e10 |
|
MD5 | 27326a7533f4b446bf0f24dcd97cc282 |
|
BLAKE2b-256 | 84d567e53b324fb50beafce8226030bc4158f5fcee2671fc868e035d13a4c082 |