yarn.lock file parser
Project description
yarnlock
Quickly parse yarn dependencies information into a Python dictionary. The output is typed using a TypedDict class, making it more convenient to work with.
Installation
The recommended installation method is through the PyPI package manager. The project is implemented in Rust and several pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.
pip install yarnlock
Basic usage
from pathlib import Path
from yarnlock import yarnlock_parse
yarnlock_parse(Path('yarn.lock').read_text())
# ->
# {
# '@babel/cli': {
# 'matches': ['^7.24.8'],
# 'dependencies': {
# 'glob': '^7.2.0',
# 'slash': '^2.0.0',
# 'make-dir': '^2.1.0',
# 'commander': '^6.2.0',
# 'convert-source-map': '^2.0.0',
# 'fs-readdir-recursive': '^1.1.0',
# '@jridgewell/trace-mapping': '^0.3.25',
# },
# 'optionalDependencies': {
# 'chokidar': '^3.4.0',
# '@nicolo-ribaudo/chokidar-2': '2.1.8-no-fsevents.3',
# },
# 'version': '7.24.8',
# 'resolved': 'https://registry.npmjs.org/@babel/cli/-/cli-7.24.8.tgz',
# 'integrity': 'sha512-isdp+G6DpRyKc+3Gqxy2rjzgF7Zj9K0mzLNnxz+E/fgeag8qT3vVulX4gY9dGO1q0y+0lUv6V3a+uhUzMzrwXg==',
# },
# ...
# }
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
yarnlock-1.0.0.tar.gz
(134.0 kB
view hashes)
Built Distributions
Close
Hashes for yarnlock-1.0.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01fe6905f37511d701aec438c90cfae55287d5921e2f1a27355f5a1cfbddf2d0 |
|
MD5 | b218cf9b209bdf755cea445536ef326e |
|
BLAKE2b-256 | 4f9098dcd37bf5b67255c6a432f24b8abe3edf2aa179afc7e4b027396be988bb |
Close
Hashes for yarnlock-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94ed3b025fe200139890a5e63a5f981607a63fafbc5b8490d28e9d7135c52e13 |
|
MD5 | 26412ddb243a7ee50f7a8640ec2b98b1 |
|
BLAKE2b-256 | 8070c25e33d63ce7d0dab078c6a5694801d45bfaffa5feda082fac51a6dd75eb |
Close
Hashes for yarnlock-1.0.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f976e77c677ad58b042c806335421c23ec6b7cfebaa591467dfe5da85951e01a |
|
MD5 | 5712343ced7f735f6c77582616addf49 |
|
BLAKE2b-256 | 6e8246a671d0105be4204be5f01dfc1a6b0e93b150970d54e33b82303dc1c8d5 |
Close
Hashes for yarnlock-1.0.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6767ef416755cb77a16b8295b3c01fd94751fce332b41513381440caf979cbe |
|
MD5 | 7787d31ed01985123fe7ee4912ea2d94 |
|
BLAKE2b-256 | 51bfdde7911176b7cfbf08e50cd0f709ec9ae8456d4600749eef88e1b8fd52e2 |
Close
Hashes for yarnlock-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0856b87be037626e41b4f692887a72e7e7bc6954b0a3ae3a707030cc203f08fc |
|
MD5 | b861f870947bbbd518d3dab175a9f00e |
|
BLAKE2b-256 | ac1eba5e4ef445e797a0b09e6df24edde3ac77b374efb991eb8bd486c86db481 |
Close
Hashes for yarnlock-1.0.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bc179027c30969d35acd85d025d9878c953abd867866c811c921475821e99ba |
|
MD5 | 220f4b9f2e530fdab80d15512b63fe7c |
|
BLAKE2b-256 | c77d3a9aaaa97a02db85a000a065ca2d7230d1957f170eedadb2a9557d7275aa |
Close
Hashes for yarnlock-1.0.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0de4819b0479cff02c75b055f59440f2f3a445b7bf1daf7a0fc595beb48e5e7c |
|
MD5 | ab28331e596159b14b6fb9a71debd04a |
|
BLAKE2b-256 | e153797e393e0bf7beca2969fe5827695591e86fd3bbf2ea4c21e57518d043b3 |