astral-sh/uv
An extremely fast Python package and project manager, written in Rust.
Rust★ 92,284+258 that day#7 on trending
E21/100
Duplication14
24% in rust, python, bash, powershell, docker, batch, javascript, cDead coden/a
the languages dead code reads are under 5% of the codeComplexity31
84.4% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
7.13%duplicated code · 23,570 of 330,797 lines
1,641clones in code
715code files of 1,492 scanned
22.3%duplicated over all files · 10,436 clones
Most complex files
- crates/uv-lock/src/lock/mod.rs1618 cx
- crates/uv/tests/pip_compile/pip_compile.rs1249 cx
- crates/uv/tests/pip_install/pip_install.rs1224 cx
- crates/uv/tests/sync/sync.rs1005 cx
- crates/uv-configuration/src/target_triple.rs628 cx
- crates/uv/tests/project/export.rs604 cx
- crates/uv/tests/project/edit.rs601 cx
- crates/uv-python-discovery/src/lib.rs523 cx
- crates/uv-distribution/src/source/mod.rs522 cx
- crates/uv/tests/project/run.rs499 cx
Dead code 2.84% unused · 11 findings
- crates/uv-virtualenv/src/_virtualenv.pyunused-file
- crates/uv-installer/src/pip_compileall.pyunused-file
- crates/uv-virtualenv/src/activator/activate_this.pyunused-file
- scripts/uv-run-remote-script-test.pyunused-file
- crates/uv-python-interpreter/python/packaging/_manylinux.py:_have_compatible_abiunused-symbol
- crates/uv-python-interpreter/python/packaging/_manylinux.py:_is_linux_armhfunused-symbol
- crates/uv-python-interpreter/python/packaging/_manylinux.py:_is_linux_i686unused-symbol
- crates/uv-python-interpreter/python/packaging/_manylinux.py:_LEGACY_MANYLINUX_MAPunused-symbol
- crates/uv-python-interpreter/python/packaging/_manylinux.py:_parse_elfunused-symbol
- crates/uv-python-interpreter/python/get_interpreter_info.py:distutilsunused-import
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code, and 4 generated files: crates/uv-python-managed/src/sysconfig/generated_mappings.rs, crates/uv/tests/lock_scenarios/lock_scenarios.rs, crates/uv/tests/pip/pip_compile_scenarios.rs, crates/uv/tests/pip/pip_install_scenarios.rs.
Largest clones in the code
- 13 lines in 8 placesrust116 tokenscrates/uv-requirements-txt/src/lib.rs:1761–1773crates/uv-requirements-txt/src/lib.rs:1848–1860crates/uv-requirements-txt/src/lib.rs:1904–1916crates/uv-requirements-txt/src/lib.rs:1931–1943crates/uv-requirements-txt/src/lib.rs:1959–1971and 3 more
1761"})?; 1762 1763let error = RequirementsTxt::parse(requirements_txt.path(), temp_dir.path()) 1764 .await 1765 .unwrap_err(); 1766let errors = anyhow::Error::new(error).chain().join("\n"); 1767 1768let requirement_txt = regex::escape(&requirements_txt.path().user_display().to_string()); 1769let filters = vec![(requirement_txt.as_str(), "<REQUIREMENTS_TXT>")]; 1770insta::with_settings!({First 10 of 13 lines.
- 37 lines in 5 placesrust178 tokenscrates/uv-client/src/html.rs:383–419crates/uv-client/src/html.rs:646–682crates/uv-client/src/html.rs:766–802crates/uv-client/src/html.rs:909–945crates/uv-client/src/html.rs:968–1004
383<a href="/whl/Jinja2-3.1.2-py3-none-any.whl#sha256=6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61">Jinja2-3.1.2-py3-none-any.whl</a><br/> 384</body> 385</html> 386<!--TIMESTAMP 1703347410--> 387 "#; 388 let base = SafeUrl::parse("https://download.pytorch.org/whl/jinja2/").unwrap(); 389 let result = SimpleDetailHTML::parse(text, &base).unwrap(); 390 insta::assert_debug_snapshot!(result, @r#" 391 SimpleDetailHTML { 392 project_status: ProjectStatus {First 10 of 37 lines.
- 74 lines in 2 placesrust601 tokenscrates/uv-configuration/src/target_triple.rs:1447–1520crates/uv-configuration/src/target_triple.rs:1533–1606
1447fn platform_version(self) -> &'static str { 1448 match self { 1449 Self::Windows | Self::X8664PcWindowsMsvc => "", 1450 Self::Aarch64PcWindowsMsvc => "", 1451 Self::Linux | Self::X8664UnknownLinuxGnu => "", 1452 Self::Macos | Self::Aarch64AppleDarwin => "", 1453 Self::I686PcWindowsMsvc => "", 1454 Self::X8664AppleDarwin => "", 1455 Self::Aarch64UnknownLinuxGnu => "", 1456 Self::Aarch64UnknownLinuxMusl => "",First 10 of 74 lines.
7 more
- 7 lines in 12 placesrust50 tokens
- 7 lines in 10 placesrust50 tokens
- 82 lines in 2 placesrust449 tokens
- 75 lines in 2 placesrust444 tokens
- 118 lines in 2 placesrust377 tokens
- 7 lines in 8 placesrust52 tokens
- 13 lines in 6 placesrust72 tokens
Largest clones over all files, tests and data included
- 10 lines in 167 placesrusttests55 tokenscrates/uv/tests/lock_scenarios/lock_conflict.rs:542–551crates/uv/tests/lock_scenarios/lock_conflict.rs:2848–2857crates/uv/tests/lock_scenarios/lock_conflict.rs:3708–3717crates/uv/tests/lock_scenarios/lock_conflict.rs:3752–3761crates/uv/tests/lock_scenarios/lock_conflict.rs:3797–3806and 162 more
542fn extra_multiple_not_conflicting1() -> Result<()> { 543 let context = uv_test::test_context!("3.12"); 544 545 let pyproject_toml = context.temp_dir.child("pyproject.toml"); 546 pyproject_toml.write_str( 547 r#" 548 [project] 549 name = "project" 550 version = "0.1.0" 551 requires-python = ">=3.12" - 11 lines in 142 placesrusttests52 tokenscrates/uv/tests/lock_scenarios/lock_conflict.rs:2848–2858crates/uv/tests/lock_scenarios/lock_conflict.rs:4693–4703crates/uv/tests/lock_scenarios/lock_conflict.rs:4856–4866crates/uv/tests/lock_scenarios/lock_conflict.rs:5018–5028crates/uv/tests/lock_scenarios/lock_exclude_newer_relative.rs:14–23and 137 more
2848fn group_activates_self_extra() -> Result<()> { 2849 let context = uv_test::test_context!("3.12"); 2850 2851 let pyproject_toml = context.temp_dir.child("pyproject.toml"); 2852 pyproject_toml.write_str( 2853 r#" 2854 [project] 2855 name = "project" 2856 version = "0.1.0" 2857 requires-python = ">=3.12"First 10 of 11 lines.
- 9 lines in 73 placesrusttests62 tokenscrates/uv/tests/lock/minimum_libc.rs:1017–1025crates/uv/tests/project/check.rs:41–50crates/uv/tests/project/check.rs:3415–3424crates/uv/tests/project/edit.rs:39–48crates/uv/tests/project/edit.rs:152–161and 68 more
1017fn minimum_libc_invalid_configuration() -> Result<()> { 1018 let context = uv_test::test_context!("3.12"); 1019 let pyproject_toml = context.temp_dir.child("pyproject.toml"); 1020 pyproject_toml.write_str(indoc! {r#" 1021 [project] 1022 name = "project" 1023 version = "0.1.0" 1024 requires-python = ">=3.12" 1025 dependencies = []41fn check_project() -> Result<()> { 42 let context = uv_test::test_context!("3.12"); 43 44 let pyproject_toml = context.temp_dir.child("pyproject.toml"); 45 pyproject_toml.write_str(indoc! {r#" 46 [project] 47 name = "project" 48 version = "0.1.0" 49 requires-python = ">=3.12" 50 dependencies = [] - 39 lines in 3 placesrusttests1,897 tokens
- 75 lines in 2 placesrusttests3,752 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| rust | 647 | 319,802 | 1,595 | 22,947 | 7.18% |
| python | 45 | 9,841 | 46 | 623 | 6.33% |
| bash | 20 | 953 | 0 | 0 | 0% |
| powershell | 3 | 201 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| rust | 738 | 535,175 | 9,822 | 130,848 | 24.45% |
| toml | 325 | 18,534 | 284 | 3,777 | 20.38% |
| yaml | 61 | 14,012 | 222 | 2,574 | 18.37% |
| python | 53 | 10,871 | 46 | 623 | 5.73% |
| markdown | 194 | 33,720 | 32 | 424 | 1.26% |
| json | 11 | 4,017 | 8 | 192 | 4.78% |
| text | 38 | 1,236 | 7 | 90 | 7.28% |
| markup | 4 | 365 | 6 | 128 | 35.07% |
| docker | 7 | 375 | 3 | 34 | 9.07% |
| css | 1 | 257 | 2 | 15 | 5.84% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 19, 2026 | #7 | 92,284 (+258) | 1,492 | 622,311 | 10,436 | 22.3% | 7.13% | E 21 | 469fe65 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.