Skip to main content

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


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)

Uploaded Source

File details

Details for the file python-sourcemaps-1.1.zip.

File metadata

File hashes

Hashes for python-sourcemaps-1.1.zip
Algorithm Hash digest
SHA256 b102a9c2c3e8302131448784be03f72fe9e10060d42306b70959b0c12daf0e10
MD5 27326a7533f4b446bf0f24dcd97cc282
BLAKE2b-256 84d567e53b324fb50beafce8226030bc4158f5fcee2671fc868e035d13a4c082

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page