poetry.lock (TOML)
A Poetry lockfile: TOML array-of-tables entries with per-artifact sha256 hashes, a [package.dependencies] table per package and the content-hash that binds the lock to pyproject.toml. Every package, version, hash and licence is fictional — the tree describes nothing real.
# This file is automatically @generated by Poetry (fictional run) and should not be changed by hand.
# SAMPLE — fictional supply-chain data. Every package, registry, version, hash, licence, advisory identifier and signature in this document is invented.
[[package]]
name = "example-router"
version = "2.1.3"
description = "SAMPLE fictional package — does not exist"
optional = false
python-versions = ">=3.11"
files = [
{file = "example_router-2.1.3-py3-none-any.whl", hash = "sha256:e9624300914e1080d644230a8c0525f4ad46fa4746ec645075cb844272160d35"},
{file = "example_router-2.1.3.tar.gz", hash = "sha256:2a2b95d78904b0009e3c052e906b2c6a0691b0b626a7b057d826649297fb440a"},
]
[package.dependencies]
example-logger = "^3.4.0"
example-retry = "^1.0.0"
[[package]]
name = "example-http-core"
version = "1.8.0"
description = "SAMPLE fictional package — does not exist"
optional = false
python-versions = ">=3.11"
files = [
{file = "example_http_core-1.8.0-py3-none-any.whl", hash = "sha256:bb7704d94f653fb47f23b1da317f7d5eba44c364e604e8cafefa1efbeb3234b7"},
{file = "example_http_core-1.8.0.tar.gz", hash = "sha256:ab38730eb7cbc79a1fc844da7a11f8a47942c21e4abb34f9d130abfa29282f3b"},
]
[package.dependencies]
example-logger = "^3.4.0"
example-json-path = "^2.0.0"
[[package]]
name = "example-metrics"
version = "4.0.0"
description = "SAMPLE fictional package — does not exist"
optional = false
python-versions = ">=3.11"
files = [
{file = "example_metrics-4.0.0-py3-none-any.whl", hash = "sha256:b875a156a9c1232e21eceb1d32c2f57926b0e983a11596dbe606936d2c4e09e3"},
{file = "example_metrics-4.0.0.tar.gz", hash = "sha256:f0e52181da7e02f455615f82efc4dc323324cd57d3406486e20285e41df506c2"},
]
[package.dependencies]
example-logger = "^3.4.0"
[[package]]
name = "example-cache"
version = "0.9.2"Specifications
- Seed
- 51200
- Sample Only
- true
- Ecosystem
- Poetry
- Lock Version
- 2.0
- Packages
- 9
- Syntax
- TOML
- Line Endings
- LF
Testing contract
Expected to pass- Scenario
- Parse a .lock file whose syntax is TOML rather than JSON or YAML.
- Expected result
- A TOML reader returns 9 [[package]] tables, two file hashes each, and a metadata table carrying lock-version 2.0.
What is a .lock file?
A .lock file pins the exact dependency graph a package manager resolved, so a later install reproduces it byte for byte. Cargo.lock and Poetry's poetry.lock use TOML, Gemfile.lock and yarn.lock use their own line-oriented grammars, and all of them record resolved versions, source registries, integrity hashes, and the transitive edges between packages. It is committed alongside the human-edited manifest, which states ranges rather than exact versions.
How to use this file
Use an example .lock file to test dependency parsers, SBOM generators, and vulnerability scanners, verifying that transitive dependencies and integrity hashes are read correctly and that a pinned version is never confused with the range declared in the manifest.
How to use this file for testing
“poetry.lock (TOML)” is a deterministic Novus Examples fixture for Config parsing, Conversion testing, Schema validation. TOML and INI configuration files with nested sections and typed values — for testing config parsers and loaders.
Documented properties for this file: seed 51200 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
SBOM, lockfile, provenance, and advisory fixtures describe the same fabricated component tree across formats, so a converter or scanner can be diffed against a known answer. Every package name, version, hash, and advisory ID is invented — never treat a finding here as real.
Point your config loader at the file and assert it reads the documented sections and typed values, including any deliberately-tricky nesting or comments.
Related files
- lockCargo.lock (version 4)A Rust Cargo.lock in the version 4 format — TOML [[package]] tables with a registry source, a sha256-shaped checksum and a name-only dependencies array that resolves against the other tables. Every package, version, hash and licence is fictional — the tree describes nothing real.

- spdxSPDX 2.2 Legacy SBOM (Tag-Value)The same fictional tree as an SPDX 2.2 tag-value document — the version still produced by older toolchains — for upgrade and compatibility tests against the 2.3 twin in this family. Every package, version, hash and licence is fictional — the tree describes nothing real.

- yamlSPDX 2.3 Application SBOM (YAML)The SPDX 2.3 SBOM in its YAML serialisation — the third form the specification defines alongside JSON and tag-value, and the one most often hand-edited in a repository. Every package, version, hash and licence is fictional — the tree describes nothing real.

- spdxSPDX 2.3 SBOM With LicenseRef and Compound ExpressionsAn SPDX tag-value SBOM that declares a non-standard LicenseRef with its extracted text and uses it inside compound expressions — the case that breaks compliance tools which assume every licence is an SPDX id. Every package, version, hash and licence is fictional — the tree describes nothing real.

- lockCargo.lock (version 3, Legacy)The same fictional Rust tree pinned by a version 3 Cargo.lock, for testing that a reader keys on the declared version rather than assuming the newest format. Every package, version, hash and licence is fictional — the tree describes nothing real.

- jsonnpm package-lock.json (lockfileVersion 3)An npm lockfile in the modern v3 layout: a flat packages map keyed by node_modules path, with resolved tarball URLs and sha512 subresource integrity for nine fictional dependencies. Every package, version, hash and licence is fictional — the tree describes nothing real.

Generated by generation/supply_chain.py. Free for any use, no attribution required — license.