Skip to main content

yarn.lock file parser

Project description

yarnlock

PyPI - Python Version Liberapay Patrons GitHub Sponsors

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


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.2.0.tar.gz (154.6 kB view details)

Uploaded Source

Built Distributions

yarnlock-1.2.0-cp39-abi3-win_amd64.whl (109.4 kB view details)

Uploaded CPython 3.9+Windows x86-64

yarnlock-1.2.0-cp39-abi3-musllinux_1_2_x86_64.whl (410.5 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ x86-64

yarnlock-1.2.0-cp39-abi3-musllinux_1_2_aarch64.whl (420.2 kB view details)

Uploaded CPython 3.9+musllinux: musl 1.2+ ARM64

yarnlock-1.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (224.4 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

yarnlock-1.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (217.6 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

yarnlock-1.2.0-cp39-abi3-macosx_11_0_arm64.whl (214.6 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

yarnlock-1.2.0-cp39-abi3-macosx_10_12_x86_64.whl (219.4 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file yarnlock-1.2.0.tar.gz.

File metadata

  • Download URL: yarnlock-1.2.0.tar.gz
  • Upload date:
  • Size: 154.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for yarnlock-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c28bbe8f72628930f962e8df2f3ae47f7f48ec7a691d6cc79ce0967698edd965
MD5 1e4ed2cff649ca269c6e95bb1e057142
BLAKE2b-256 ebe96267d7575604b2948f86aee30fc3a0cee0acbac71d66b28a85b50184f24d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0.tar.gz:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: yarnlock-1.2.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 109.4 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a61b791cce95da7adfa7aa4978585ea812c9180c79a0e6e1b17fa920ff98cd15
MD5 c1f7b6c0f69d5c8bedb42a990ca9e4cc
BLAKE2b-256 87901b696a612b16df038e19e3b132b55b4d4b96d4196ff19a9ecebef253c1d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-win_amd64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 860b63613c392d1c3ce1b93c9f6f42c2fef2ae879cd997a4b23c237b9a908399
MD5 e1fc173ca2d31eb98dbc04146e0c245e
BLAKE2b-256 7059e52d92158297b5872990e1bfae9c8b7bc9ec158ec30885f9c57be2b8645b

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-musllinux_1_2_x86_64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 37d4fd5ae5a54230264ad76a54392e1d367fbf52e8cc063a27134eafe366d354
MD5 b7a14987b8a3601c5788a685cc0cb001
BLAKE2b-256 2b7f9275af498850ab901023292f3a6d4dbb40f9980d246ff2c54b962bec44d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-musllinux_1_2_aarch64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5dd6855409703d7571f7d6f4b14051c188021f7d09e8f9af913c7907f294669c
MD5 24d33e000cd4963e63ffdeba41dd62f6
BLAKE2b-256 5604ec60ffe489e711f3c73f4b869650078e6084aef505830f8bcbf1b1fb26e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6aa2a4118a216a1ca67cb33733a3dca4d46b207c4973884df76f87378b56296b
MD5 9f6bcc5af75193bcb23009c1e1350bbd
BLAKE2b-256 2118ae4daea16fa966f12b59a17746b3dc4939401532f471a80bcbaf835bcc94

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d795fd4444af154867e1a025264245c0d0693f14585b51f1d09a7175d36b43f
MD5 06422bd78e54b9dac4a22919137464de
BLAKE2b-256 c5622c8e50826738872bb8beb361adca92c8757c12a3dc238146b968c4c4bb62

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yarnlock-1.2.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for yarnlock-1.2.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c5316b67661624d7c25cd0787c676855426e555d90b45a89e56a277fca1fff2a
MD5 69a42a2d8de4930e3f6974c81d838bb4
BLAKE2b-256 908e7b152c70c3f89947691c406d1e4c5f0a63dde0b3589756b471446970e4c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for yarnlock-1.2.0-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: workflow.yaml on Zaczero/yarnlock

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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