๐Ÿ“ฆ astral-sh / docs

๐Ÿ“„ index.md ยท 3752 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752## [Project metadata](#project-metadata)

### \[[`build-constraint-dependencies`](#build-constraint-dependencies)\](#build-constraint-dependencies)

Constraints to apply when solving build dependencies.

Build constraints are used to restrict the versions of build dependencies that are selected when building a package during resolution or installation.

Including a package as a constraint will *not* trigger installation of the package during a build; instead, the package must be requested elsewhere in the project's build dependency graph.

Note

In `uv lock`, `uv sync`, and `uv run`, uv will only read `build-constraint-dependencies` from the `pyproject.toml` at the workspace root, and will ignore any declarations in other workspace members or `uv.toml` files.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Ensure that the setuptools v60.0.0 is used whenever a package has a build dependency
# on setuptools.
build-constraint-dependencies = ["setuptools==60.0.0"]

```

______________________________________________________________________

### \[[`conflicts`](#conflicts)\](#conflicts)

Declare collections of extras or dependency groups that are conflicting (i.e., mutually exclusive).

It's useful to declare conflicts when two or more extras have mutually incompatible dependencies. For example, extra `foo` might depend on `numpy==2.0.0` while extra `bar` depends on `numpy==2.1.0`. While these dependencies conflict, it may be the case that users are not expected to activate both `foo` and `bar` at the same time, making it possible to generate a universal resolution for the project despite the incompatibility.

By making such conflicts explicit, uv can generate a universal resolution for a project, taking into account that certain combinations of extras and groups are mutually exclusive. In exchange, installation will fail if a user attempts to activate both conflicting extras.

**Default value**: `[]`

**Type**: `list[list[dict]]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Require that `package[extra1]` and `package[extra2]` are resolved
# in different forks so that they cannot conflict with one another.
conflicts = [
    [
        { extra = "extra1" },
        { extra = "extra2" },
    ]
]

# Require that the dependency groups `group1` and `group2`
# are resolved in different forks so that they cannot conflict
# with one another.
conflicts = [
    [
        { group = "group1" },
        { group = "group2" },
    ]
]

```

______________________________________________________________________

### \[[`constraint-dependencies`](#constraint-dependencies)\](#constraint-dependencies)

Constraints to apply when resolving the project's dependencies.

Constraints are used to restrict the versions of dependencies that are selected during resolution.

Including a package as a constraint will *not* trigger installation of the package on its own; instead, the package must be requested elsewhere in the project's first-party or transitive dependencies.

Note

In `uv lock`, `uv sync`, and `uv run`, uv will only read `constraint-dependencies` from the `pyproject.toml` at the workspace root, and will ignore any declarations in other workspace members or `uv.toml` files.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Ensure that the grpcio version is always less than 1.65, if it's requested by a
# direct or transitive dependency.
constraint-dependencies = ["grpcio<1.65"]

```

______________________________________________________________________

### \[[`default-groups`](#default-groups)\](#default-groups)

The list of `dependency-groups` to install by default.

Can also be the literal `"all"` to default enable all groups.

**Default value**: `["dev"]`

**Type**: `str | list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
default-groups = ["docs"]

```

______________________________________________________________________

### \[[`dependency-groups`](#dependency-groups)\](#dependency-groups)

Additional settings for `dependency-groups`.

Currently this can only be used to add `requires-python` constraints to dependency groups (typically to inform uv that your dev tooling has a higher python requirement than your actual project).

This cannot be used to define dependency groups, use the top-level `[dependency-groups]` table for that.

**Default value**: `[]`

**Type**: `dict`

**Example usage**:

pyproject.toml

```
[tool.uv.dependency-groups]
my-group = {requires-python = ">=3.12"}

```

______________________________________________________________________

### \[[`dev-dependencies`](#dev-dependencies)\](#dev-dependencies)

The project's development dependencies.

Development dependencies will be installed by default in `uv run` and `uv sync`, but will not appear in the project's published metadata.

Use of this field is not recommend anymore. Instead, use the `dependency-groups.dev` field which is a standardized way to declare development dependencies. The contents of `tool.uv.dev-dependencies` and `dependency-groups.dev` are combined to determine the final requirements of the `dev` dependency group.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
dev-dependencies = ["ruff==0.5.0"]

```

______________________________________________________________________

### \[[`environments`](#environments)\](#environments)

A list of supported environments against which to resolve dependencies.

By default, uv will resolve for all possible environments during a `uv lock` operation. However, you can restrict the set of supported environments to improve performance and avoid unsatisfiable branches in the solution space.

These environments will also be respected when `uv pip compile` is invoked with the `--universal` flag.

**Default value**: `[]`

**Type**: `str | list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Resolve for macOS, but not for Linux or Windows.
environments = ["sys_platform == 'darwin'"]

```

______________________________________________________________________

### \[[`exclude-dependencies`](#exclude-dependencies)\](#exclude-dependencies)

Dependencies to exclude when resolving the project's dependencies.

Excludes are used to prevent a package from being selected during resolution, regardless of whether it's requested by any other package. When a package is excluded, it will be omitted from the dependency list entirely.

Including a package as an exclusion will prevent it from being installed, even if it's requested by transitive dependencies. This can be useful for removing optional dependencies or working around packages with broken dependencies.

Note

In `uv lock`, `uv sync`, and `uv run`, uv will only read `exclude-dependencies` from the `pyproject.toml` at the workspace root, and will ignore any declarations in other workspace members or `uv.toml` files.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Exclude Werkzeug from being installed, even if transitive dependencies request it.
exclude-dependencies = ["werkzeug"]

```

______________________________________________________________________

### \[[`index`](#index)\](#index)

The indexes to use when resolving dependencies.

Accepts either a repository compliant with [PEP 503](https://peps.python.org/pep-0503/) (the simple repository API), or a local directory laid out in the same format.

Indexes are considered in the order in which they're defined, such that the first-defined index has the highest priority. Further, the indexes provided by this setting are given higher priority than any indexes specified via [`index_url`](#index-url) or [`extra_index_url`](#extra-index-url). uv will only consider the first index that contains a given package, unless an alternative [index strategy](#index-strategy) is specified.

If an index is marked as `explicit = true`, it will be used exclusively for the dependencies that select it explicitly via `[tool.uv.sources]`, as in:

```
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"
explicit = true

[tool.uv.sources]
torch = { index = "pytorch" }

```

If an index is marked as `default = true`, it will be moved to the end of the prioritized list, such that it is given the lowest priority when resolving packages. Additionally, marking an index as default will disable the PyPI default index.

**Default value**: `[]`

**Type**: `dict`

**Example usage**:

pyproject.toml

```
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"

```

______________________________________________________________________

### \[[`managed`](#managed)\](#managed)

Whether the project is managed by uv. If `false`, uv will ignore the project when `uv run` is invoked.

**Default value**: `true`

**Type**: `bool`

**Example usage**:

pyproject.toml

```
[tool.uv]
managed = false

```

______________________________________________________________________

### \[[`override-dependencies`](#override-dependencies)\](#override-dependencies)

Overrides to apply when resolving the project's dependencies.

Overrides are used to force selection of a specific version of a package, regardless of the version requested by any other package, and regardless of whether choosing that version would typically constitute an invalid resolution.

While constraints are *additive*, in that they're combined with the requirements of the constituent packages, overrides are *absolute*, in that they completely replace the requirements of any constituent packages.

Including a package as an override will *not* trigger installation of the package on its own; instead, the package must be requested elsewhere in the project's first-party or transitive dependencies.

Note

In `uv lock`, `uv sync`, and `uv run`, uv will only read `override-dependencies` from the `pyproject.toml` at the workspace root, and will ignore any declarations in other workspace members or `uv.toml` files.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Always install Werkzeug 2.3.0, regardless of whether transitive dependencies request
# a different version.
override-dependencies = ["werkzeug==2.3.0"]

```

______________________________________________________________________

### \[[`package`](#package)\](#package)

Whether the project should be considered a Python package, or a non-package ("virtual") project.

Packages are built and installed into the virtual environment in editable mode and thus require a build backend, while virtual projects are *not* built or installed; instead, only their dependencies are included in the virtual environment.

Creating a package requires that a `build-system` is present in the `pyproject.toml`, and that the project adheres to a structure that adheres to the build backend's expectations (e.g., a `src` layout).

**Default value**: `true`

**Type**: `bool`

**Example usage**:

pyproject.toml

```
[tool.uv]
package = false

```

______________________________________________________________________

### \[[`required-environments`](#required-environments)\](#required-environments)

A list of required platforms, for packages that lack source distributions.

When a package does not have a source distribution, it's availability will be limited to the platforms supported by its built distributions (wheels). For example, if a package only publishes wheels for Linux, then it won't be installable on macOS or Windows.

By default, uv requires each package to include at least one wheel that is compatible with the designated Python version. The `required-environments` setting can be used to ensure that the resulting resolution contains wheels for specific platforms, or fails if no such wheels are available.

While the `environments` setting *limits* the set of environments that uv will consider when resolving dependencies, `required-environments` *expands* the set of platforms that uv *must* support when resolving dependencies.

For example, `environments = ["sys_platform == 'darwin'"]` would limit uv to solving for macOS (and ignoring Linux and Windows). On the other hand, `required-environments = ["sys_platform == 'darwin'"]` would *require* that any package without a source distribution include a wheel for macOS in order to be installable.

**Default value**: `[]`

**Type**: `str | list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv]
# Require that the package is available for macOS ARM and x86 (Intel).
required-environments = [
    "sys_platform == 'darwin' and platform_machine == 'arm64'",
    "sys_platform == 'darwin' and platform_machine == 'x86_64'",
]

```

______________________________________________________________________

### \[[`sources`](#sources)\](#sources)

The sources to use when resolving dependencies.

`tool.uv.sources` enriches the dependency metadata with additional sources, incorporated during development. A dependency source can be a Git repository, a URL, a local path, or an alternative registry.

See [Dependencies](../../concepts/projects/dependencies/) for more.

**Default value**: `{}`

**Type**: `dict`

**Example usage**:

pyproject.toml

```
[tool.uv.sources]
httpx = { git = "https://github.com/encode/httpx", tag = "0.27.0" }
pytest = { url = "https://files.pythonhosted.org/packages/6b/77/7440a06a8ead44c7757a64362dd22df5760f9b12dc5f11b6188cd2fc27a0/pytest-8.3.3-py3-none-any.whl" }
pydantic = { path = "/path/to/pydantic", editable = true }

```

______________________________________________________________________

### [`build-backend`](#build-backend)

Settings for the uv build backend (`uv_build`).

Note that those settings only apply when using the `uv_build` backend, other build backends (such as hatchling) have their own configuration.

All options that accept globs use the portable glob patterns from [PEP 639](https://packaging.python.org/en/latest/specifications/glob-patterns/).

#### \[[`data`](#build-backend_data)\](#build-backend_data)

Data includes for wheels.

Each entry is a directory, whose contents are copied to the matching directory in the wheel in `<name>-<version>.data/(purelib|platlib|headers|scripts|data)`. Upon installation, this data is moved to its target location, as defined by <https://docs.python.org/3.12/library/sysconfig.html#installation-paths>. Usually, small data files are included by placing them in the Python module instead of using data includes.

- `scripts`: Installed to the directory for executables, `<venv>/bin` on Unix or `<venv>\Scripts` on Windows. This directory is added to `PATH` when the virtual environment is activated or when using `uv run`, so this data type can be used to install additional binaries. Consider using `project.scripts` instead for Python entrypoints.

- `data`: Installed over the virtualenv environment root.

  Warning: This may override existing files!

- `headers`: Installed to the include directory. Compilers building Python packages with this package as build requirement use the include directory to find additional header files.

- `purelib` and `platlib`: Installed to the `site-packages` directory. It is not recommended to use these two options.

**Default value**: `{}`

**Type**: `dict[str, str]`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
data = { headers = "include/headers", scripts = "bin" }

```

______________________________________________________________________

#### \[[`default-excludes`](#build-backend_default-excludes)\](#build-backend_default-excludes)

If set to `false`, the default excludes aren't applied.

Default excludes: `__pycache__`, `*.pyc`, and `*.pyo`.

**Default value**: `true`

**Type**: `bool`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
default-excludes = false

```

______________________________________________________________________

#### \[[`module-name`](#build-backend_module-name)\](#build-backend_module-name)

The name of the module directory inside `module-root`.

The default module name is the package name with dots and dashes replaced by underscores.

Package names need to be valid Python identifiers, and the directory needs to contain a `__init__.py`. An exception are stubs packages, whose name ends with `-stubs`, with the stem being the module name, and which contain a `__init__.pyi` file.

For namespace packages with a single module, the path can be dotted, e.g., `foo.bar` or `foo-stubs.bar`.

For namespace packages with multiple modules, the path can be a list, e.g., `["foo", "bar"]`. We recommend using a single module per package, splitting multiple packages into a workspace.

Note that using this option runs the risk of creating two packages with different names but the same module names. Installing such packages together leads to unspecified behavior, often with corrupted files or directory trees.

**Default value**: `None`

**Type**: `str | list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
module-name = "sklearn"

```

______________________________________________________________________

#### \[[`module-root`](#build-backend_module-root)\](#build-backend_module-root)

The directory that contains the module directory.

Common values are `src` (src layout, the default) or an empty path (flat layout).

**Default value**: `"src"`

**Type**: `str`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
module-root = ""

```

______________________________________________________________________

#### \[[`namespace`](#build-backend_namespace)\](#build-backend_namespace)

Build a namespace package.

Build a PEP 420 implicit namespace package, allowing more than one root `__init__.py`.

Use this option when the namespace package contains multiple root `__init__.py`, for namespace packages with a single root `__init__.py` use a dotted `module-name` instead.

To compare dotted `module-name` and `namespace = true`, the first example below can be expressed with `module-name = "cloud.database"`: There is one root `__init__.py` `database`. In the second example, we have three roots (`cloud.database`, `cloud.database_pro`, `billing.modules.database_pro`), so `namespace = true` is required.

```
src
โ””โ”€โ”€ cloud
    โ””โ”€โ”€ database
        โ”œโ”€โ”€ __init__.py
        โ”œโ”€โ”€ query_builder
        โ”‚   โ””โ”€โ”€ __init__.py
        โ””โ”€โ”€ sql
            โ”œโ”€โ”€ parser.py
            โ””โ”€โ”€ __init__.py

```

```
src
โ”œโ”€โ”€ cloud
โ”‚   โ”œโ”€โ”€ database
โ”‚   โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚   โ”œโ”€โ”€ query_builder
โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ __init__.py
โ”‚   โ”‚   โ””โ”€โ”€ sql
โ”‚   โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚   โ”‚       โ””โ”€โ”€ parser.py
โ”‚   โ””โ”€โ”€ database_pro
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ””โ”€โ”€ query_builder.py
โ””โ”€โ”€ billing
    โ””โ”€โ”€ modules
        โ””โ”€โ”€ database_pro
            โ”œโ”€โ”€ __init__.py
            โ””โ”€โ”€ sql.py

```

**Default value**: `false`

**Type**: `bool`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
namespace = true

```

______________________________________________________________________

#### \[[`source-exclude`](#build-backend_source-exclude)\](#build-backend_source-exclude)

Glob expressions which files and directories to exclude from the source distribution.

These exclusions are also applied to wheels to ensure that a wheel built from a source tree is consistent with a wheel built from a source distribution.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
source-exclude = ["*.bin"]

```

______________________________________________________________________

#### \[[`source-include`](#build-backend_source-include)\](#build-backend_source-include)

Glob expressions which files and directories to additionally include in the source distribution.

`pyproject.toml` and the contents of the module directory are always included.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
source-include = ["tests/**"]

```

______________________________________________________________________

#### \[[`wheel-exclude`](#build-backend_wheel-exclude)\](#build-backend_wheel-exclude)

Glob expressions which files and directories to exclude from the wheel.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv.build-backend]
wheel-exclude = ["*.bin"]

```

______________________________________________________________________

### [`workspace`](#workspace)

#### \[[`exclude`](#workspace_exclude)\](#workspace_exclude)

Packages to exclude as workspace members. If a package matches both `members` and `exclude`, it will be excluded.

Supports both globs and explicit paths.

For more information on the glob syntax, refer to the [`glob` documentation](https://docs.rs/glob/latest/glob/struct.Pattern.html).

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv.workspace]
exclude = ["member1", "path/to/member2", "libs/*"]

```

______________________________________________________________________

#### \[[`members`](#workspace_members)\](#workspace_members)

Packages to include as workspace members.

Supports both globs and explicit paths.

For more information on the glob syntax, refer to the [`glob` documentation](https://docs.rs/glob/latest/glob/struct.Pattern.html).

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

pyproject.toml

```
[tool.uv.workspace]
members = ["member1", "path/to/member2", "libs/*"]

```

______________________________________________________________________

## [Configuration](#configuration)

### \[[`add-bounds`](#add-bounds)\](#add-bounds)

The default version specifier when adding a dependency.

When adding a dependency to the project, if no constraint or URL is provided, a constraint is added based on the latest compatible version of the package. By default, a lower bound constraint is used, e.g., `>=1.2.3`.

When `--frozen` is provided, no resolution is performed, and dependencies are always added without constraints.

This option is in preview and may change in any future release.

**Default value**: `"lower"`

**Possible values**:

- `"lower"`: Only a lower bound, e.g., `>=1.2.3`
- `"major"`: Allow the same major version, similar to the semver caret, e.g., `>=1.2.3, <2.0.0`
- `"minor"`: Allow the same minor version, similar to the semver tilde, e.g., `>=1.2.3, <1.3.0`
- `"exact"`: Pin the exact version, e.g., `==1.2.3`

**Example usage**:

```
[tool.uv]
add-bounds = "major"

```

```
add-bounds = "major"

```

______________________________________________________________________

### \[[`allow-insecure-host`](#allow-insecure-host)\](#allow-insecure-host)

Allow insecure connections to host.

Expects to receive either a hostname (e.g., `localhost`), a host-port pair (e.g., `localhost:8080`), or a URL (e.g., `https://localhost`).

WARNING: Hosts included in this list will not be verified against the system's certificate store. Only use `--allow-insecure-host` in a secure network with verified sources, as it bypasses SSL verification and could expose you to MITM attacks.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
allow-insecure-host = ["localhost:8080"]

```

```
allow-insecure-host = ["localhost:8080"]

```

______________________________________________________________________

### \[[`cache-dir`](#cache-dir)\](#cache-dir)

Path to the cache directory.

Defaults to `$XDG_CACHE_HOME/uv` or `$HOME/.cache/uv` on Linux and macOS, and `%LOCALAPPDATA%\uv\cache` on Windows.

**Default value**: `None`

**Type**: `str`

**Example usage**:

uv.toml

```
cache-dir = "./.uv_cache"

```

______________________________________________________________________

### \[[`cache-keys`](#cache-keys)\](#cache-keys)

The keys to consider when caching builds for the project.

Cache keys enable you to specify the files or directories that should trigger a rebuild when modified. By default, uv will rebuild a project whenever the `pyproject.toml`, `setup.py`, or `setup.cfg` files in the project directory are modified, or if a `src` directory is added or removed, i.e.:

```
cache-keys = [{ file = "pyproject.toml" }, { file = "setup.py" }, { file = "setup.cfg" }, { dir = "src" }]

```

As an example: if a project uses dynamic metadata to read its dependencies from a `requirements.txt` file, you can specify `cache-keys = [{ file = "requirements.txt" }, { file = "pyproject.toml" }]` to ensure that the project is rebuilt whenever the `requirements.txt` file is modified (in addition to watching the `pyproject.toml`).

Globs are supported, following the syntax of the [`glob`](https://docs.rs/glob/0.3.1/glob/struct.Pattern.html) crate. For example, to invalidate the cache whenever a `.toml` file in the project directory or any of its subdirectories is modified, you can specify `cache-keys = [{ file = "**/*.toml" }]`. Note that the use of globs can be expensive, as uv may need to walk the filesystem to determine whether any files have changed.

Cache keys can also include version control information. For example, if a project uses `setuptools_scm` to read its version from a Git commit, you can specify `cache-keys = [{ git = { commit = true }, { file = "pyproject.toml" }]` to include the current Git commit hash in the cache key (in addition to the `pyproject.toml`). Git tags are also supported via `cache-keys = [{ git = { commit = true, tags = true } }]`.

Cache keys can also include environment variables. For example, if a project relies on `MACOSX_DEPLOYMENT_TARGET` or other environment variables to determine its behavior, you can specify `cache-keys = [{ env = "MACOSX_DEPLOYMENT_TARGET" }]` to invalidate the cache whenever the environment variable changes.

Cache keys only affect the project defined by the `pyproject.toml` in which they're specified (as opposed to, e.g., affecting all members in a workspace), and all paths and globs are interpreted as relative to the project directory.

**Default value**: `[{ file = "pyproject.toml" }, { file = "setup.py" }, { file = "setup.cfg" }]`

**Type**: `list[dict]`

**Example usage**:

```
[tool.uv]
cache-keys = [{ file = "pyproject.toml" }, { file = "requirements.txt" }, { git = { commit = true } }]

```

```
cache-keys = [{ file = "pyproject.toml" }, { file = "requirements.txt" }, { git = { commit = true } }]

```

______________________________________________________________________

### \[[`check-url`](#check-url)\](#check-url)

Check an index URL for existing files to skip duplicate uploads.

This option allows retrying publishing that failed after only some, but not all files have been uploaded, and handles error due to parallel uploads of the same file.

Before uploading, the index is checked. If the exact same file already exists in the index, the file will not be uploaded. If an error occurred during the upload, the index is checked again, to handle cases where the identical file was uploaded twice in parallel.

The exact behavior will vary based on the index. When uploading to PyPI, uploading the same file succeeds even without `--check-url`, while most other indexes error.

The index must provide one of the supported hashes (SHA-256, SHA-384, or SHA-512).

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv]
check-url = "https://test.pypi.org/simple"

```

```
check-url = "https://test.pypi.org/simple"

```

______________________________________________________________________

### \[[`compile-bytecode`](#compile-bytecode)\](#compile-bytecode)

Compile Python files to bytecode after installation.

By default, uv does not compile Python (`.py`) files to bytecode (`__pycache__/*.pyc`); instead, compilation is performed lazily the first time a module is imported. For use-cases in which start time is critical, such as CLI applications and Docker containers, this option can be enabled to trade longer installation times for faster start times.

When enabled, uv will process the entire site-packages directory (including packages that are not being modified by the current operation) for consistency. Like pip, it will also ignore errors.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
compile-bytecode = true

```

```
compile-bytecode = true

```

______________________________________________________________________

### \[[`concurrent-builds`](#concurrent-builds)\](#concurrent-builds)

The maximum number of source distributions that uv will build concurrently at any given time.

Defaults to the number of available CPU cores.

**Default value**: `None`

**Type**: `int`

**Example usage**:

```
[tool.uv]
concurrent-builds = 4

```

```
concurrent-builds = 4

```

______________________________________________________________________

### \[[`concurrent-downloads`](#concurrent-downloads)\](#concurrent-downloads)

The maximum number of in-flight concurrent downloads that uv will perform at any given time.

**Default value**: `50`

**Type**: `int`

**Example usage**:

```
[tool.uv]
concurrent-downloads = 4

```

```
concurrent-downloads = 4

```

______________________________________________________________________

### \[[`concurrent-installs`](#concurrent-installs)\](#concurrent-installs)

The number of threads used when installing and unzipping packages.

Defaults to the number of available CPU cores.

**Default value**: `None`

**Type**: `int`

**Example usage**:

```
[tool.uv]
concurrent-installs = 4

```

```
concurrent-installs = 4

```

______________________________________________________________________

### \[[`config-settings`](#config-settings)\](#config-settings)

Settings to pass to the [PEP 517](https://peps.python.org/pep-0517/) build backend, specified as `KEY=VALUE` pairs.

**Default value**: `{}`

**Type**: `dict`

**Example usage**:

```
[tool.uv]
config-settings = { editable_mode = "compat" }

```

```
config-settings = { editable_mode = "compat" }

```

______________________________________________________________________

### \[[`config-settings-package`](#config-settings-package)\](#config-settings-package)

Settings to pass to the [PEP 517](https://peps.python.org/pep-0517/) build backend for specific packages, specified as `KEY=VALUE` pairs.

Accepts a map from package names to string key-value pairs.

**Default value**: `{}`

**Type**: `dict`

**Example usage**:

```
[tool.uv]
config-settings-package = { numpy = { editable_mode = "compat" } }

```

```
config-settings-package = { numpy = { editable_mode = "compat" } }

```

______________________________________________________________________

### \[[`dependency-metadata`](#dependency-metadata)\](#dependency-metadata)

Pre-defined static metadata for dependencies of the project (direct or transitive). When provided, enables the resolver to use the specified metadata instead of querying the registry or building the relevant package from source.

Metadata should be provided in adherence with the [Metadata 2.3](https://packaging.python.org/en/latest/specifications/core-metadata/) standard, though only the following fields are respected:

- `name`: The name of the package.
- (Optional) `version`: The version of the package. If omitted, the metadata will be applied to all versions of the package.
- (Optional) `requires-dist`: The dependencies of the package (e.g., `werkzeug>=0.14`).
- (Optional) `requires-python`: The Python version required by the package (e.g., `>=3.10`).
- (Optional) `provides-extra`: The extras provided by the package.

**Default value**: `[]`

**Type**: `list[dict]`

**Example usage**:

```
[tool.uv]
dependency-metadata = [
    { name = "flask", version = "1.0.0", requires-dist = ["werkzeug"], requires-python = ">=3.6" },
]

```

```
dependency-metadata = [
    { name = "flask", version = "1.0.0", requires-dist = ["werkzeug"], requires-python = ">=3.6" },
]

```

______________________________________________________________________

### \[[`exclude-newer`](#exclude-newer)\](#exclude-newer)

Limit candidate packages to those that were uploaded prior to the given date.

Accepts RFC 3339 timestamps (e.g., `2006-12-02T02:07:43Z`), a "friendly" duration (e.g., `24 hours`, `1 week`, `30 days`), or an ISO 8601 duration (e.g., `PT24H`, `P7D`, `P30D`).

Durations do not respect semantics of the local time zone and are always resolved to a fixed number of seconds assuming that a day is 24 hours (e.g., DST transitions are ignored). Calendar units such as months and years are not allowed.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv]
exclude-newer = "2006-12-02T02:07:43Z"

```

```
exclude-newer = "2006-12-02T02:07:43Z"

```

______________________________________________________________________

### \[[`exclude-newer-package`](#exclude-newer-package)\](#exclude-newer-package)

Limit candidate packages for specific packages to those that were uploaded prior to the given date.

Accepts a dictionary format of `PACKAGE = "DATE"` pairs, where `DATE` is an RFC 3339 timestamp (e.g., `2006-12-02T02:07:43Z`), a "friendly" duration (e.g., `24 hours`, `1 week`, `30 days`), or a ISO 8601 duration (e.g., `PT24H`, `P7D`, `P30D`).

Durations do not respect semantics of the local time zone and are always resolved to a fixed number of seconds assuming that a day is 24 hours (e.g., DST transitions are ignored). Calendar units such as months and years are not allowed.

**Default value**: `None`

**Type**: `dict`

**Example usage**:

```
[tool.uv]
exclude-newer-package = { tqdm = "2022-04-04T00:00:00Z" }

```

```
exclude-newer-package = { tqdm = "2022-04-04T00:00:00Z" }

```

______________________________________________________________________

### \[[`extra-build-dependencies`](#extra-build-dependencies)\](#extra-build-dependencies)

Additional build dependencies for packages.

This allows extending the PEP 517 build environment for the project's dependencies with additional packages. This is useful for packages that assume the presence of packages like `pip`, and do not declare them as build dependencies.

**Default value**: `[]`

**Type**: `dict`

**Example usage**:

```
[tool.uv]
extra-build-dependencies = { pytest = ["setuptools"] }

```

```
extra-build-dependencies = { pytest = ["setuptools"] }

```

______________________________________________________________________

### \[[`extra-build-variables`](#extra-build-variables)\](#extra-build-variables)

Extra environment variables to set when building certain packages.

Environment variables will be added to the environment when building the specified packages.

**Default value**: `{}`

**Type**: `dict[str, dict[str, str]]`

**Example usage**:

```
[tool.uv]
extra-build-variables = { flash-attn = { FLASH_ATTENTION_SKIP_CUDA_BUILD = "TRUE" } }

```

```
extra-build-variables = { flash-attn = { FLASH_ATTENTION_SKIP_CUDA_BUILD = "TRUE" } }

```

______________________________________________________________________

### \[[`extra-index-url`](#extra-index-url)\](#extra-index-url)

Extra URLs of package indexes to use, in addition to `--index-url`.

Accepts either a repository compliant with [PEP 503](https://peps.python.org/pep-0503/) (the simple repository API), or a local directory laid out in the same format.

All indexes provided via this flag take priority over the index specified by [`index_url`](#index-url) or [`index`](#index) with `default = true`. When multiple indexes are provided, earlier values take priority.

To control uv's resolution strategy when multiple indexes are present, see [`index_strategy`](#index-strategy).

(Deprecated: use `index` instead.)

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
extra-index-url = ["https://download.pytorch.org/whl/cpu"]

```

```
extra-index-url = ["https://download.pytorch.org/whl/cpu"]

```

______________________________________________________________________

### \[[`find-links`](#find-links)\](#find-links)

Locations to search for candidate distributions, in addition to those found in the registry indexes.

If a path, the target must be a directory that contains packages as wheel files (`.whl`) or source distributions (e.g., `.tar.gz` or `.zip`) at the top level.

If a URL, the page must contain a flat list of links to package files adhering to the formats described above.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
find-links = ["https://download.pytorch.org/whl/torch_stable.html"]

```

```
find-links = ["https://download.pytorch.org/whl/torch_stable.html"]

```

______________________________________________________________________

### \[[`fork-strategy`](#fork-strategy)\](#fork-strategy)

The strategy to use when selecting multiple versions of a given package across Python versions and platforms.

By default, uv will optimize for selecting the latest version of each package for each supported Python version (`requires-python`), while minimizing the number of selected versions across platforms.

Under `fewest`, uv will minimize the number of selected versions for each package, preferring older versions that are compatible with a wider range of supported Python versions or platforms.

**Default value**: `"requires-python"`

**Possible values**:

- `"fewest"`: Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms
- `"requires-python"`: Optimize for selecting latest supported version of each package, for each supported Python version

**Example usage**:

```
[tool.uv]
fork-strategy = "fewest"

```

```
fork-strategy = "fewest"

```

______________________________________________________________________

### \[[`http-proxy`](#http-proxy)\](#http-proxy)

The URL of the HTTP proxy to use.

**Default value**: `None`

**Type**: `str`

**Example usage**:

uv.toml

```
http-proxy = "http://proxy.example.com"

```

______________________________________________________________________

### \[[`https-proxy`](#https-proxy)\](#https-proxy)

The URL of the HTTPS proxy to use.

**Default value**: `None`

**Type**: `str`

**Example usage**:

uv.toml

```
https-proxy = "https://proxy.example.com"

```

______________________________________________________________________

### \[[`index`](#index)\](#index)

The package indexes to use when resolving dependencies.

Accepts either a repository compliant with [PEP 503](https://peps.python.org/pep-0503/) (the simple repository API), or a local directory laid out in the same format.

Indexes are considered in the order in which they're defined, such that the first-defined index has the highest priority. Further, the indexes provided by this setting are given higher priority than any indexes specified via [`index_url`](#index-url) or [`extra_index_url`](#extra-index-url). uv will only consider the first index that contains a given package, unless an alternative [index strategy](#index-strategy) is specified.

If an index is marked as `explicit = true`, it will be used exclusively for those dependencies that select it explicitly via `[tool.uv.sources]`, as in:

```
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"
explicit = true

[tool.uv.sources]
torch = { index = "pytorch" }

```

If an index is marked as `default = true`, it will be moved to the end of the prioritized list, such that it is given the lowest priority when resolving packages. Additionally, marking an index as default will disable the PyPI default index.

**Default value**: `"[]"`

**Type**: `dict`

**Example usage**:

```
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"

```

```
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu121"

```

______________________________________________________________________

### \[[`index-strategy`](#index-strategy)\](#index-strategy)

The strategy to use when resolving against multiple index URLs.

By default, uv will stop at the first index on which a given package is available, and limit resolutions to those present on that first index (`first-index`). This prevents "dependency confusion" attacks, whereby an attacker can upload a malicious package under the same name to an alternate index.

**Default value**: `"first-index"`

**Possible values**:

- `"first-index"`: Only use results from the first index that returns a match for a given package name
- `"unsafe-first-match"`: Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next
- `"unsafe-best-match"`: Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index

**Example usage**:

```
[tool.uv]
index-strategy = "unsafe-best-match"

```

```
index-strategy = "unsafe-best-match"

```

______________________________________________________________________

### \[[`index-url`](#index-url)\](#index-url)

The URL of the Python package index (by default: <https://pypi.org/simple>).

Accepts either a repository compliant with [PEP 503](https://peps.python.org/pep-0503/) (the simple repository API), or a local directory laid out in the same format.

The index provided by this setting is given lower priority than any indexes specified via [`extra_index_url`](#extra-index-url) or [`index`](#index).

(Deprecated: use `index` instead.)

**Default value**: `"https://pypi.org/simple"`

**Type**: `str`

**Example usage**:

```
[tool.uv]
index-url = "https://test.pypi.org/simple"

```

```
index-url = "https://test.pypi.org/simple"

```

______________________________________________________________________

### \[[`keyring-provider`](#keyring-provider)\](#keyring-provider)

Attempt to use `keyring` for authentication for index URLs.

At present, only `--keyring-provider subprocess` is supported, which configures uv to use the `keyring` CLI to handle authentication.

**Default value**: `"disabled"`

**Type**: `str`

**Example usage**:

```
[tool.uv]
keyring-provider = "subprocess"

```

```
keyring-provider = "subprocess"

```

______________________________________________________________________

### \[[`link-mode`](#link-mode)\](#link-mode)

The method to use when installing packages from the global cache.

Defaults to `clone` (also known as Copy-on-Write) on macOS, and `hardlink` on Linux and Windows.

WARNING: The use of symlink link mode is discouraged, as they create tight coupling between the cache and the target environment. For example, clearing the cache (`uv cache clean`) will break all installed packages by way of removing the underlying source files. Use symlinks with caution.

**Default value**: `"clone" (macOS) or "hardlink" (Linux, Windows)`

**Possible values**:

- `"clone"`: Clone (i.e., copy-on-write) packages from the wheel into the `site-packages` directory
- `"copy"`: Copy packages from the wheel into the `site-packages` directory
- `"hardlink"`: Hard link packages from the wheel into the `site-packages` directory
- `"symlink"`: Symbolically link packages from the wheel into the `site-packages` directory

**Example usage**:

```
[tool.uv]
link-mode = "copy"

```

```
link-mode = "copy"

```

______________________________________________________________________

### \[[`native-tls`](#native-tls)\](#native-tls)

Whether to load TLS certificates from the platform's native certificate store.

By default, uv loads certificates from the bundled `webpki-roots` crate. The `webpki-roots` are a reliable set of trust roots from Mozilla, and including them in uv improves portability and performance (especially on macOS).

However, in some cases, you may want to use the platform's native certificate store, especially if you're relying on a corporate trust root (e.g., for a mandatory proxy) that's included in your system's certificate store.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

uv.toml

```
native-tls = true

```

______________________________________________________________________

### \[[`no-binary`](#no-binary)\](#no-binary)

Don't install pre-built wheels.

The given packages will be built and installed from source. The resolver will still use pre-built wheels to extract package metadata, if available.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
no-binary = true

```

```
no-binary = true

```

______________________________________________________________________

### \[[`no-binary-package`](#no-binary-package)\](#no-binary-package)

Don't install pre-built wheels for a specific package.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
no-binary-package = ["ruff"]

```

```
no-binary-package = ["ruff"]

```

______________________________________________________________________

### \[[`no-build`](#no-build)\](#no-build)

Don't build source distributions.

When enabled, resolving will not run arbitrary Python code. The cached wheels of already-built source distributions will be reused, but operations that require building distributions will exit with an error.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
no-build = true

```

```
no-build = true

```

______________________________________________________________________

### \[[`no-build-isolation`](#no-build-isolation)\](#no-build-isolation)

Disable isolation when building source distributions.

Assumes that build dependencies specified by [PEP 518](https://peps.python.org/pep-0518/) are already installed.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
no-build-isolation = true

```

```
no-build-isolation = true

```

______________________________________________________________________

### \[[`no-build-isolation-package`](#no-build-isolation-package)\](#no-build-isolation-package)

Disable isolation when building source distributions for a specific package.

Assumes that the packages' build dependencies specified by [PEP 518](https://peps.python.org/pep-0518/) are already installed.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
no-build-isolation-package = ["package1", "package2"]

```

```
no-build-isolation-package = ["package1", "package2"]

```

______________________________________________________________________

### \[[`no-build-package`](#no-build-package)\](#no-build-package)

Don't build source distributions for a specific package.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
no-build-package = ["ruff"]

```

```
no-build-package = ["ruff"]

```

______________________________________________________________________

### \[[`no-cache`](#no-cache)\](#no-cache)

Avoid reading from or writing to the cache, instead using a temporary directory for the duration of the operation.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
no-cache = true

```

```
no-cache = true

```

______________________________________________________________________

### \[[`no-index`](#no-index)\](#no-index)

Ignore all registry indexes (e.g., PyPI), instead relying on direct URL dependencies and those provided via `--find-links`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
no-index = true

```

```
no-index = true

```

______________________________________________________________________

### \[[`no-proxy`](#no-proxy)\](#no-proxy)

A list of hosts to exclude from proxying.

**Default value**: `None`

**Type**: `list[str]`

**Example usage**:

uv.toml

```
no-proxy = ["localhost", "127.0.0.1"]

```

______________________________________________________________________

### \[[`no-sources`](#no-sources)\](#no-sources)

Ignore the `tool.uv.sources` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any local or Git sources.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
no-sources = true

```

```
no-sources = true

```

______________________________________________________________________

### \[[`no-sources-package`](#no-sources-package)\](#no-sources-package)

Ignore `tool.uv.sources` for the specified packages.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
no-sources-package = ["ruff"]

```

```
no-sources-package = ["ruff"]

```

______________________________________________________________________

### \[[`offline`](#offline)\](#offline)

Disable network access, relying only on locally cached data and locally available files.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
offline = true

```

```
offline = true

```

______________________________________________________________________

### \[[`prerelease`](#prerelease)\](#prerelease)

The strategy to use when considering pre-release versions.

By default, uv will accept pre-releases for packages that *only* publish pre-releases, along with first-party requirements that contain an explicit pre-release marker in the declared specifiers (`if-necessary-or-explicit`).

**Default value**: `"if-necessary-or-explicit"`

**Possible values**:

- `"disallow"`: Disallow all pre-release versions
- `"allow"`: Allow all pre-release versions
- `"if-necessary"`: Allow pre-release versions if all versions of a package are pre-release
- `"explicit"`: Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements
- `"if-necessary-or-explicit"`: Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements

**Example usage**:

```
[tool.uv]
prerelease = "allow"

```

```
prerelease = "allow"

```

______________________________________________________________________

### \[[`preview`](#preview)\](#preview)

Whether to enable experimental, preview features.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
preview = true

```

```
preview = true

```

______________________________________________________________________

### \[[`publish-url`](#publish-url)\](#publish-url)

The URL for publishing packages to the Python package index (by default: <https://upload.pypi.org/legacy/>).

**Default value**: `"https://upload.pypi.org/legacy/"`

**Type**: `str`

**Example usage**:

```
[tool.uv]
publish-url = "https://test.pypi.org/legacy/"

```

```
publish-url = "https://test.pypi.org/legacy/"

```

______________________________________________________________________

### \[[`pypy-install-mirror`](#pypy-install-mirror)\](#pypy-install-mirror)

Mirror URL to use for downloading managed PyPy installations.

By default, managed PyPy installations are downloaded from [downloads.python.org](https://downloads.python.org/). This variable can be set to a mirror URL to use a different source for PyPy installations. The provided URL will replace `https://downloads.python.org/pypy` in, e.g., `https://downloads.python.org/pypy/pypy3.8-v7.3.7-osx64.tar.bz2`.

Distributions can be read from a local directory by using the `file://` URL scheme.

**Default value**: `None`

**Type**: `str`

**Example usage**:

uv.toml

```
pypy-install-mirror = "https://downloads.python.org/pypy"

```

______________________________________________________________________

### \[[`python-downloads`](#python-downloads)\](#python-downloads)

Whether to allow Python downloads.

**Default value**: `"automatic"`

**Possible values**:

- `"automatic"`: Automatically download managed Python installations when needed
- `"manual"`: Do not automatically download managed Python installations; require explicit installation
- `"never"`: Do not ever allow Python downloads

**Example usage**:

```
[tool.uv]
python-downloads = "manual"

```

```
python-downloads = "manual"

```

______________________________________________________________________

### \[[`python-downloads-json-url`](#python-downloads-json-url)\](#python-downloads-json-url)

URL pointing to JSON of custom Python installations.

**Default value**: `None`

**Type**: `str`

**Example usage**:

uv.toml

```
python-downloads-json-url = "/etc/uv/python-downloads.json"

```

______________________________________________________________________

### \[[`python-install-mirror`](#python-install-mirror)\](#python-install-mirror)

Mirror URL for downloading managed Python installations.

By default, managed Python installations are downloaded from [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone). This variable can be set to a mirror URL to use a different source for Python installations. The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g., `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.

Distributions can be read from a local directory by using the `file://` URL scheme.

**Default value**: `None`

**Type**: `str`

**Example usage**:

uv.toml

```
python-install-mirror = "https://github.com/astral-sh/python-build-standalone/releases/download"

```

______________________________________________________________________

### \[[`python-preference`](#python-preference)\](#python-preference)

Whether to prefer using Python installations that are already present on the system, or those that are downloaded and installed by uv.

**Default value**: `"managed"`

**Possible values**:

- `"only-managed"`: Only use managed Python installations; never use system Python installations
- `"managed"`: Prefer managed Python installations over system Python installations
- `"system"`: Prefer system Python installations over managed Python installations
- `"only-system"`: Only use system Python installations; never use managed Python installations

**Example usage**:

```
[tool.uv]
python-preference = "managed"

```

```
python-preference = "managed"

```

______________________________________________________________________

### \[[`reinstall`](#reinstall)\](#reinstall)

Reinstall all packages, regardless of whether they're already installed. Implies `refresh`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
reinstall = true

```

```
reinstall = true

```

______________________________________________________________________

### \[[`reinstall-package`](#reinstall-package)\](#reinstall-package)

Reinstall a specific package, regardless of whether it's already installed. Implies `refresh-package`.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
reinstall-package = ["ruff"]

```

```
reinstall-package = ["ruff"]

```

______________________________________________________________________

### \[[`required-version`](#required-version)\](#required-version)

Enforce a requirement on the version of uv.

If the version of uv does not meet the requirement at runtime, uv will exit with an error.

Accepts a [PEP 440](https://peps.python.org/pep-0440/) specifier, like `==0.5.0` or `>=0.5.0`.

**Default value**: `null`

**Type**: `str`

**Example usage**:

```
[tool.uv]
required-version = ">=0.5.0"

```

```
required-version = ">=0.5.0"

```

______________________________________________________________________

### \[[`resolution`](#resolution)\](#resolution)

The strategy to use when selecting between the different compatible versions for a given package requirement.

By default, uv will use the latest compatible version of each package (`highest`).

**Default value**: `"highest"`

**Possible values**:

- `"highest"`: Resolve the highest compatible version of each package
- `"lowest"`: Resolve the lowest compatible version of each package
- `"lowest-direct"`: Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies

**Example usage**:

```
[tool.uv]
resolution = "lowest-direct"

```

```
resolution = "lowest-direct"

```

______________________________________________________________________

### \[[`torch-backend`](#torch-backend)\](#torch-backend)

The backend to use when fetching packages in the PyTorch ecosystem.

When set, uv will ignore the configured index URLs for packages in the PyTorch ecosystem, and will instead use the defined backend.

For example, when set to `cpu`, uv will use the CPU-only PyTorch index; when set to `cu126`, uv will use the PyTorch index for CUDA 12.6.

The `auto` mode will attempt to detect the appropriate PyTorch index based on the currently installed CUDA drivers.

This setting is only respected by `uv pip` commands.

This option is in preview and may change in any future release.

**Default value**: `null`

**Type**: `str`

**Example usage**:

```
[tool.uv]
torch-backend = "auto"

```

```
torch-backend = "auto"

```

______________________________________________________________________

### \[[`trusted-publishing`](#trusted-publishing)\](#trusted-publishing)

Configure trusted publishing.

By default, uv checks for trusted publishing when running in a supported environment, but ignores it if it isn't configured.

uv's supported environments for trusted publishing include GitHub Actions and GitLab CI/CD.

**Default value**: `automatic`

**Type**: `str`

**Example usage**:

```
[tool.uv]
trusted-publishing = "always"

```

```
trusted-publishing = "always"

```

______________________________________________________________________

### \[[`upgrade`](#upgrade)\](#upgrade)

Allow package upgrades, ignoring pinned versions in any existing output file.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv]
upgrade = true

```

```
upgrade = true

```

______________________________________________________________________

### \[[`upgrade-package`](#upgrade-package)\](#upgrade-package)

Allow upgrades for a specific package, ignoring pinned versions in any existing output file.

Accepts both standalone package names (`ruff`) and version specifiers (`ruff<0.5.0`).

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv]
upgrade-package = ["ruff"]

```

```
upgrade-package = ["ruff"]

```

______________________________________________________________________

### [`pip`](#pip)

Settings that are specific to the `uv pip` command-line interface.

These values will be ignored when running commands outside the `uv pip` namespace (e.g., `uv lock`, `uvx`).

#### \[[`all-extras`](#pip_all-extras)\](#pip_all-extras)

Include all optional dependencies.

Only applies to `pyproject.toml`, `setup.py`, and `setup.cfg` sources.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
all-extras = true

```

```
[pip]
all-extras = true

```

______________________________________________________________________

#### \[[`allow-empty-requirements`](#pip_allow-empty-requirements)\](#pip_allow-empty-requirements)

Allow `uv pip sync` with empty requirements, which will clear the environment of all packages.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
allow-empty-requirements = true

```

```
[pip]
allow-empty-requirements = true

```

______________________________________________________________________

#### \[[`annotation-style`](#pip_annotation-style)\](#pip_annotation-style)

The style of the annotation comments included in the output file, used to indicate the source of each package.

**Default value**: `"split"`

**Possible values**:

- `"line"`: Render the annotations on a single, comma-separated line
- `"split"`: Render each annotation on its own line

**Example usage**:

```
[tool.uv.pip]
annotation-style = "line"

```

```
[pip]
annotation-style = "line"

```

______________________________________________________________________

#### \[[`break-system-packages`](#pip_break-system-packages)\](#pip_break-system-packages)

Allow uv to modify an `EXTERNALLY-MANAGED` Python installation.

WARNING: `--break-system-packages` is intended for use in continuous integration (CI) environments, when installing into Python installations that are managed by an external package manager, like `apt`. It should be used with caution, as such Python installations explicitly recommend against modifications by other package managers (like uv or pip).

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
break-system-packages = true

```

```
[pip]
break-system-packages = true

```

______________________________________________________________________

#### \[[`compile-bytecode`](#pip_compile-bytecode)\](#pip_compile-bytecode)

Compile Python files to bytecode after installation.

By default, uv does not compile Python (`.py`) files to bytecode (`__pycache__/*.pyc`); instead, compilation is performed lazily the first time a module is imported. For use-cases in which start time is critical, such as CLI applications and Docker containers, this option can be enabled to trade longer installation times for faster start times.

When enabled, uv will process the entire site-packages directory (including packages that are not being modified by the current operation) for consistency. Like pip, it will also ignore errors.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
compile-bytecode = true

```

```
[pip]
compile-bytecode = true

```

______________________________________________________________________

#### \[[`config-settings`](#pip_config-settings)\](#pip_config-settings)

Settings to pass to the [PEP 517](https://peps.python.org/pep-0517/) build backend, specified as `KEY=VALUE` pairs.

**Default value**: `{}`

**Type**: `dict`

**Example usage**:

```
[tool.uv.pip]
config-settings = { editable_mode = "compat" }

```

```
[pip]
config-settings = { editable_mode = "compat" }

```

______________________________________________________________________

#### \[[`config-settings-package`](#pip_config-settings-package)\](#pip_config-settings-package)

Settings to pass to the [PEP 517](https://peps.python.org/pep-0517/) build backend for specific packages, specified as `KEY=VALUE` pairs.

**Default value**: `{}`

**Type**: `dict`

**Example usage**:

```
[tool.uv.pip]
config-settings-package = { numpy = { editable_mode = "compat" } }

```

```
[pip]
config-settings-package = { numpy = { editable_mode = "compat" } }

```

______________________________________________________________________

#### \[[`custom-compile-command`](#pip_custom-compile-command)\](#pip_custom-compile-command)

The header comment to include at the top of the output file generated by `uv pip compile`.

Used to reflect custom build scripts and commands that wrap `uv pip compile`.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
custom-compile-command = "./custom-uv-compile.sh"

```

```
[pip]
custom-compile-command = "./custom-uv-compile.sh"

```

______________________________________________________________________

#### \[[`dependency-metadata`](#pip_dependency-metadata)\](#pip_dependency-metadata)

Pre-defined static metadata for dependencies of the project (direct or transitive). When provided, enables the resolver to use the specified metadata instead of querying the registry or building the relevant package from source.

Metadata should be provided in adherence with the [Metadata 2.3](https://packaging.python.org/en/latest/specifications/core-metadata/) standard, though only the following fields are respected:

- `name`: The name of the package.
- (Optional) `version`: The version of the package. If omitted, the metadata will be applied to all versions of the package.
- (Optional) `requires-dist`: The dependencies of the package (e.g., `werkzeug>=0.14`).
- (Optional) `requires-python`: The Python version required by the package (e.g., `>=3.10`).
- (Optional) `provides-extra`: The extras provided by the package.

**Default value**: `[]`

**Type**: `list[dict]`

**Example usage**:

```
[tool.uv.pip]
dependency-metadata = [
    { name = "flask", version = "1.0.0", requires-dist = ["werkzeug"], requires-python = ">=3.6" },
]

```

```
[pip]
dependency-metadata = [
    { name = "flask", version = "1.0.0", requires-dist = ["werkzeug"], requires-python = ">=3.6" },
]

```

______________________________________________________________________

#### \[[`emit-build-options`](#pip_emit-build-options)\](#pip_emit-build-options)

Include `--no-binary` and `--only-binary` entries in the output file generated by `uv pip compile`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
emit-build-options = true

```

```
[pip]
emit-build-options = true

```

______________________________________________________________________

#### \[[`emit-find-links`](#pip_emit-find-links)\](#pip_emit-find-links)

Include `--find-links` entries in the output file generated by `uv pip compile`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
emit-find-links = true

```

```
[pip]
emit-find-links = true

```

______________________________________________________________________

#### \[[`emit-index-annotation`](#pip_emit-index-annotation)\](#pip_emit-index-annotation)

Include comment annotations indicating the index used to resolve each package (e.g., `# from https://pypi.org/simple`).

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
emit-index-annotation = true

```

```
[pip]
emit-index-annotation = true

```

______________________________________________________________________

#### \[[`emit-index-url`](#pip_emit-index-url)\](#pip_emit-index-url)

Include `--index-url` and `--extra-index-url` entries in the output file generated by `uv pip compile`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
emit-index-url = true

```

```
[pip]
emit-index-url = true

```

______________________________________________________________________

#### \[[`emit-marker-expression`](#pip_emit-marker-expression)\](#pip_emit-marker-expression)

Whether to emit a marker string indicating the conditions under which the set of pinned dependencies is valid.

The pinned dependencies may be valid even when the marker expression is false, but when the expression is true, the requirements are known to be correct.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
emit-marker-expression = true

```

```
[pip]
emit-marker-expression = true

```

______________________________________________________________________

#### \[[`exclude-newer`](#pip_exclude-newer)\](#pip_exclude-newer)

Limit candidate packages to those that were uploaded prior to a given point in time.

Accepts a superset of [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339.html) (e.g., `2006-12-02T02:07:43Z`). A full timestamp is required to ensure that the resolver will behave consistently across timezones.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
exclude-newer = "2006-12-02T02:07:43Z"

```

```
[pip]
exclude-newer = "2006-12-02T02:07:43Z"

```

______________________________________________________________________

#### \[[`exclude-newer-package`](#pip_exclude-newer-package)\](#pip_exclude-newer-package)

Limit candidate packages for specific packages to those that were uploaded prior to the given date.

Accepts package-date pairs in a dictionary format.

**Default value**: `None`

**Type**: `dict`

**Example usage**:

```
[tool.uv.pip]
exclude-newer-package = { tqdm = "2022-04-04T00:00:00Z" }

```

```
[pip]
exclude-newer-package = { tqdm = "2022-04-04T00:00:00Z" }

```

______________________________________________________________________

#### \[[`extra`](#pip_extra)\](#pip_extra)

Include optional dependencies from the specified extra; may be provided more than once.

Only applies to `pyproject.toml`, `setup.py`, and `setup.cfg` sources.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
extra = ["dev", "docs"]

```

```
[pip]
extra = ["dev", "docs"]

```

______________________________________________________________________

#### \[[`extra-build-dependencies`](#pip_extra-build-dependencies)\](#pip_extra-build-dependencies)

Additional build dependencies for packages.

This allows extending the PEP 517 build environment for the project's dependencies with additional packages. This is useful for packages that assume the presence of packages like `pip`, and do not declare them as build dependencies.

**Default value**: `[]`

**Type**: `dict`

**Example usage**:

```
[tool.uv.pip]
extra-build-dependencies = { pytest = ["setuptools"] }

```

```
[pip]
extra-build-dependencies = { pytest = ["setuptools"] }

```

______________________________________________________________________

#### \[[`extra-build-variables`](#pip_extra-build-variables)\](#pip_extra-build-variables)

Extra environment variables to set when building certain packages.

Environment variables will be added to the environment when building the specified packages.

**Default value**: `{}`

**Type**: `dict[str, dict[str, str]]`

**Example usage**:

```
[tool.uv.pip]
extra-build-variables = { flash-attn = { FLASH_ATTENTION_SKIP_CUDA_BUILD = "TRUE" } }

```

```
[pip]
extra-build-variables = { flash-attn = { FLASH_ATTENTION_SKIP_CUDA_BUILD = "TRUE" } }

```

______________________________________________________________________

#### \[[`extra-index-url`](#pip_extra-index-url)\](#pip_extra-index-url)

Extra URLs of package indexes to use, in addition to `--index-url`.

Accepts either a repository compliant with [PEP 503](https://peps.python.org/pep-0503/) (the simple repository API), or a local directory laid out in the same format.

All indexes provided via this flag take priority over the index specified by [`index_url`](#index-url). When multiple indexes are provided, earlier values take priority.

To control uv's resolution strategy when multiple indexes are present, see [`index_strategy`](#index-strategy).

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
extra-index-url = ["https://download.pytorch.org/whl/cpu"]

```

```
[pip]
extra-index-url = ["https://download.pytorch.org/whl/cpu"]

```

______________________________________________________________________

#### \[[`find-links`](#pip_find-links)\](#pip_find-links)

Locations to search for candidate distributions, in addition to those found in the registry indexes.

If a path, the target must be a directory that contains packages as wheel files (`.whl`) or source distributions (e.g., `.tar.gz` or `.zip`) at the top level.

If a URL, the page must contain a flat list of links to package files adhering to the formats described above.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
find-links = ["https://download.pytorch.org/whl/torch_stable.html"]

```

```
[pip]
find-links = ["https://download.pytorch.org/whl/torch_stable.html"]

```

______________________________________________________________________

#### \[[`fork-strategy`](#pip_fork-strategy)\](#pip_fork-strategy)

The strategy to use when selecting multiple versions of a given package across Python versions and platforms.

By default, uv will optimize for selecting the latest version of each package for each supported Python version (`requires-python`), while minimizing the number of selected versions across platforms.

Under `fewest`, uv will minimize the number of selected versions for each package, preferring older versions that are compatible with a wider range of supported Python versions or platforms.

**Default value**: `"requires-python"`

**Possible values**:

- `"fewest"`: Optimize for selecting the fewest number of versions for each package. Older versions may be preferred if they are compatible with a wider range of supported Python versions or platforms
- `"requires-python"`: Optimize for selecting latest supported version of each package, for each supported Python version

**Example usage**:

```
[tool.uv.pip]
fork-strategy = "fewest"

```

```
[pip]
fork-strategy = "fewest"

```

______________________________________________________________________

#### \[[`generate-hashes`](#pip_generate-hashes)\](#pip_generate-hashes)

Include distribution hashes in the output file.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
generate-hashes = true

```

```
[pip]
generate-hashes = true

```

______________________________________________________________________

#### \[[`group`](#pip_group)\](#pip_group)

Include the following dependency groups.

**Default value**: `None`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
group = ["dev", "docs"]

```

```
[pip]
group = ["dev", "docs"]

```

______________________________________________________________________

#### \[[`index-strategy`](#pip_index-strategy)\](#pip_index-strategy)

The strategy to use when resolving against multiple index URLs.

By default, uv will stop at the first index on which a given package is available, and limit resolutions to those present on that first index (`first-index`). This prevents "dependency confusion" attacks, whereby an attacker can upload a malicious package under the same name to an alternate index.

**Default value**: `"first-index"`

**Possible values**:

- `"first-index"`: Only use results from the first index that returns a match for a given package name
- `"unsafe-first-match"`: Search for every package name across all indexes, exhausting the versions from the first index before moving on to the next
- `"unsafe-best-match"`: Search for every package name across all indexes, preferring the "best" version found. If a package version is in multiple indexes, only look at the entry for the first index

**Example usage**:

```
[tool.uv.pip]
index-strategy = "unsafe-best-match"

```

```
[pip]
index-strategy = "unsafe-best-match"

```

______________________________________________________________________

#### \[[`index-url`](#pip_index-url)\](#pip_index-url)

The URL of the Python package index (by default: <https://pypi.org/simple>).

Accepts either a repository compliant with [PEP 503](https://peps.python.org/pep-0503/) (the simple repository API), or a local directory laid out in the same format.

The index provided by this setting is given lower priority than any indexes specified via [`extra_index_url`](#extra-index-url).

**Default value**: `"https://pypi.org/simple"`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
index-url = "https://test.pypi.org/simple"

```

```
[pip]
index-url = "https://test.pypi.org/simple"

```

______________________________________________________________________

#### \[[`keyring-provider`](#pip_keyring-provider)\](#pip_keyring-provider)

Attempt to use `keyring` for authentication for index URLs.

At present, only `--keyring-provider subprocess` is supported, which configures uv to use the `keyring` CLI to handle authentication.

**Default value**: `disabled`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
keyring-provider = "subprocess"

```

```
[pip]
keyring-provider = "subprocess"

```

______________________________________________________________________

#### \[[`link-mode`](#pip_link-mode)\](#pip_link-mode)

The method to use when installing packages from the global cache.

Defaults to `clone` (also known as Copy-on-Write) on macOS, and `hardlink` on Linux and Windows.

WARNING: The use of symlink link mode is discouraged, as they create tight coupling between the cache and the target environment. For example, clearing the cache (`uv cache clean`) will break all installed packages by way of removing the underlying source files. Use symlinks with caution.

**Default value**: `"clone" (macOS) or "hardlink" (Linux, Windows)`

**Possible values**:

- `"clone"`: Clone (i.e., copy-on-write) packages from the wheel into the `site-packages` directory
- `"copy"`: Copy packages from the wheel into the `site-packages` directory
- `"hardlink"`: Hard link packages from the wheel into the `site-packages` directory
- `"symlink"`: Symbolically link packages from the wheel into the `site-packages` directory

**Example usage**:

```
[tool.uv.pip]
link-mode = "copy"

```

```
[pip]
link-mode = "copy"

```

______________________________________________________________________

#### \[[`no-annotate`](#pip_no-annotate)\](#pip_no-annotate)

Exclude comment annotations indicating the source of each package from the output file generated by `uv pip compile`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-annotate = true

```

```
[pip]
no-annotate = true

```

______________________________________________________________________

#### \[[`no-binary`](#pip_no-binary)\](#pip_no-binary)

Don't install pre-built wheels.

The given packages will be built and installed from source. The resolver will still use pre-built wheels to extract package metadata, if available.

Multiple packages may be provided. Disable binaries for all packages with `:all:`. Clear previously specified packages with `:none:`.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
no-binary = ["ruff"]

```

```
[pip]
no-binary = ["ruff"]

```

______________________________________________________________________

#### \[[`no-build`](#pip_no-build)\](#pip_no-build)

Don't build source distributions.

When enabled, resolving will not run arbitrary Python code. The cached wheels of already-built source distributions will be reused, but operations that require building distributions will exit with an error.

Alias for `--only-binary :all:`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-build = true

```

```
[pip]
no-build = true

```

______________________________________________________________________

#### \[[`no-build-isolation`](#pip_no-build-isolation)\](#pip_no-build-isolation)

Disable isolation when building source distributions.

Assumes that build dependencies specified by [PEP 518](https://peps.python.org/pep-0518/) are already installed.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-build-isolation = true

```

```
[pip]
no-build-isolation = true

```

______________________________________________________________________

#### \[[`no-build-isolation-package`](#pip_no-build-isolation-package)\](#pip_no-build-isolation-package)

Disable isolation when building source distributions for a specific package.

Assumes that the packages' build dependencies specified by [PEP 518](https://peps.python.org/pep-0518/) are already installed.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
no-build-isolation-package = ["package1", "package2"]

```

```
[pip]
no-build-isolation-package = ["package1", "package2"]

```

______________________________________________________________________

#### \[[`no-deps`](#pip_no-deps)\](#pip_no-deps)

Ignore package dependencies, instead only add those packages explicitly listed on the command line to the resulting requirements file.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-deps = true

```

```
[pip]
no-deps = true

```

______________________________________________________________________

#### \[[`no-emit-package`](#pip_no-emit-package)\](#pip_no-emit-package)

Specify a package to omit from the output resolution. Its dependencies will still be included in the resolution. Equivalent to pip-compile's `--unsafe-package` option.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
no-emit-package = ["ruff"]

```

```
[pip]
no-emit-package = ["ruff"]

```

______________________________________________________________________

#### \[[`no-extra`](#pip_no-extra)\](#pip_no-extra)

Exclude the specified optional dependencies if `all-extras` is supplied.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
all-extras = true
no-extra = ["dev", "docs"]

```

```
[pip]
all-extras = true
no-extra = ["dev", "docs"]

```

______________________________________________________________________

#### \[[`no-header`](#pip_no-header)\](#pip_no-header)

Exclude the comment header at the top of output file generated by `uv pip compile`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-header = true

```

```
[pip]
no-header = true

```

______________________________________________________________________

#### \[[`no-index`](#pip_no-index)\](#pip_no-index)

Ignore all registry indexes (e.g., PyPI), instead relying on direct URL dependencies and those provided via `--find-links`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-index = true

```

```
[pip]
no-index = true

```

______________________________________________________________________

#### \[[`no-sources`](#pip_no-sources)\](#pip_no-sources)

Ignore the `tool.uv.sources` table when resolving dependencies. Used to lock against the standards-compliant, publishable package metadata, as opposed to using any local or Git sources.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-sources = true

```

```
[pip]
no-sources = true

```

______________________________________________________________________

#### \[[`no-sources-package`](#pip_no-sources-package)\](#pip_no-sources-package)

Ignore `tool.uv.sources` for the specified packages.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
no-sources-package = ["ruff"]

```

```
[pip]
no-sources-package = ["ruff"]

```

______________________________________________________________________

#### \[[`no-strip-extras`](#pip_no-strip-extras)\](#pip_no-strip-extras)

Include extras in the output file.

By default, uv strips extras, as any packages pulled in by the extras are already included as dependencies in the output file directly. Further, output files generated with `--no-strip-extras` cannot be used as constraints files in `install` and `sync` invocations.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-strip-extras = true

```

```
[pip]
no-strip-extras = true

```

______________________________________________________________________

#### \[[`no-strip-markers`](#pip_no-strip-markers)\](#pip_no-strip-markers)

Include environment markers in the output file generated by `uv pip compile`.

By default, uv strips environment markers, as the resolution generated by `compile` is only guaranteed to be correct for the target environment.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
no-strip-markers = true

```

```
[pip]
no-strip-markers = true

```

______________________________________________________________________

#### \[[`only-binary`](#pip_only-binary)\](#pip_only-binary)

Only use pre-built wheels; don't build source distributions.

When enabled, resolving will not run code from the given packages. The cached wheels of already-built source distributions will be reused, but operations that require building distributions will exit with an error.

Multiple packages may be provided. Disable binaries for all packages with `:all:`. Clear previously specified packages with `:none:`.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
only-binary = ["ruff"]

```

```
[pip]
only-binary = ["ruff"]

```

______________________________________________________________________

#### \[[`output-file`](#pip_output-file)\](#pip_output-file)

Write the requirements generated by `uv pip compile` to the given `requirements.txt` file.

If the file already exists, the existing versions will be preferred when resolving dependencies, unless `--upgrade` is also specified.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
output-file = "requirements.txt"

```

```
[pip]
output-file = "requirements.txt"

```

______________________________________________________________________

#### \[[`prefix`](#pip_prefix)\](#pip_prefix)

Install packages into `lib`, `bin`, and other top-level folders under the specified directory, as if a virtual environment were present at that location.

In general, prefer the use of `--python` to install into an alternate environment, as scripts and other artifacts installed via `--prefix` will reference the installing interpreter, rather than any interpreter added to the `--prefix` directory, rendering them non-portable.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
prefix = "./prefix"

```

```
[pip]
prefix = "./prefix"

```

______________________________________________________________________

#### \[[`prerelease`](#pip_prerelease)\](#pip_prerelease)

The strategy to use when considering pre-release versions.

By default, uv will accept pre-releases for packages that *only* publish pre-releases, along with first-party requirements that contain an explicit pre-release marker in the declared specifiers (`if-necessary-or-explicit`).

**Default value**: `"if-necessary-or-explicit"`

**Possible values**:

- `"disallow"`: Disallow all pre-release versions
- `"allow"`: Allow all pre-release versions
- `"if-necessary"`: Allow pre-release versions if all versions of a package are pre-release
- `"explicit"`: Allow pre-release versions for first-party packages with explicit pre-release markers in their version requirements
- `"if-necessary-or-explicit"`: Allow pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements

**Example usage**:

```
[tool.uv.pip]
prerelease = "allow"

```

```
[pip]
prerelease = "allow"

```

______________________________________________________________________

#### \[[`python`](#pip_python)\](#pip_python)

The Python interpreter into which packages should be installed.

By default, uv installs into the virtual environment in the current working directory or any parent directory. The `--python` option allows you to specify a different interpreter, which is intended for use in continuous integration (CI) environments or other automated workflows.

Supported formats:

- `3.10` looks for an installed Python 3.10 in the registry on Windows (see `py --list-paths`), or `python3.10` on Linux and macOS.
- `python3.10` or `python.exe` looks for a binary with the given name in `PATH`.
- `/home/ferris/.local/bin/python3.10` uses the exact Python at the given path.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
python = "3.10"

```

```
[pip]
python = "3.10"

```

______________________________________________________________________

#### \[[`python-platform`](#pip_python-platform)\](#pip_python-platform)

The platform for which requirements should be resolved.

Represented as a "target triple", a string that describes the target platform in terms of its CPU, vendor, and operating system name, like `x86_64-unknown-linux-gnu` or `aarch64-apple-darwin`.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
python-platform = "x86_64-unknown-linux-gnu"

```

```
[pip]
python-platform = "x86_64-unknown-linux-gnu"

```

______________________________________________________________________

#### \[[`python-version`](#pip_python-version)\](#pip_python-version)

The minimum Python version that should be supported by the resolved requirements (e.g., `3.8` or `3.8.17`).

If a patch version is omitted, the minimum patch version is assumed. For example, `3.8` is mapped to `3.8.0`.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
python-version = "3.8"

```

```
[pip]
python-version = "3.8"

```

______________________________________________________________________

#### \[[`reinstall`](#pip_reinstall)\](#pip_reinstall)

Reinstall all packages, regardless of whether they're already installed. Implies `refresh`.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
reinstall = true

```

```
[pip]
reinstall = true

```

______________________________________________________________________

#### \[[`reinstall-package`](#pip_reinstall-package)\](#pip_reinstall-package)

Reinstall a specific package, regardless of whether it's already installed. Implies `refresh-package`.

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
reinstall-package = ["ruff"]

```

```
[pip]
reinstall-package = ["ruff"]

```

______________________________________________________________________

#### \[[`require-hashes`](#pip_require-hashes)\](#pip_require-hashes)

Require a matching hash for each requirement.

Hash-checking mode is all or nothing. If enabled, *all* requirements must be provided with a corresponding hash or set of hashes. Additionally, if enabled, *all* requirements must either be pinned to exact versions (e.g., `==1.0.0`), or be specified via direct URL.

Hash-checking mode introduces a number of additional constraints:

- Git dependencies are not supported.
- Editable installations are not supported.
- Local dependencies are not supported, unless they point to a specific wheel (`.whl`) or source archive (`.zip`, `.tar.gz`), as opposed to a directory.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
require-hashes = true

```

```
[pip]
require-hashes = true

```

______________________________________________________________________

#### \[[`resolution`](#pip_resolution)\](#pip_resolution)

The strategy to use when selecting between the different compatible versions for a given package requirement.

By default, uv will use the latest compatible version of each package (`highest`).

**Default value**: `"highest"`

**Possible values**:

- `"highest"`: Resolve the highest compatible version of each package
- `"lowest"`: Resolve the lowest compatible version of each package
- `"lowest-direct"`: Resolve the lowest compatible version of any direct dependencies, and the highest compatible version of any transitive dependencies

**Example usage**:

```
[tool.uv.pip]
resolution = "lowest-direct"

```

```
[pip]
resolution = "lowest-direct"

```

______________________________________________________________________

#### \[[`strict`](#pip_strict)\](#pip_strict)

Validate the Python environment, to detect packages with missing dependencies and other issues.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
strict = true

```

```
[pip]
strict = true

```

______________________________________________________________________

#### \[[`system`](#pip_system)\](#pip_system)

Install packages into the system Python environment.

By default, uv installs into the virtual environment in the current working directory or any parent directory. The `--system` option instructs uv to instead use the first Python found in the system `PATH`.

WARNING: `--system` is intended for use in continuous integration (CI) environments and should be used with caution, as it can modify the system Python installation.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
system = true

```

```
[pip]
system = true

```

______________________________________________________________________

#### \[[`target`](#pip_target)\](#pip_target)

Install packages into the specified directory, rather than into the virtual or system Python environment. The packages will be installed at the top-level of the directory.

**Default value**: `None`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
target = "./target"

```

```
[pip]
target = "./target"

```

______________________________________________________________________

#### \[[`torch-backend`](#pip_torch-backend)\](#pip_torch-backend)

The backend to use when fetching packages in the PyTorch ecosystem.

When set, uv will ignore the configured index URLs for packages in the PyTorch ecosystem, and will instead use the defined backend.

For example, when set to `cpu`, uv will use the CPU-only PyTorch index; when set to `cu126`, uv will use the PyTorch index for CUDA 12.6.

The `auto` mode will attempt to detect the appropriate PyTorch index based on the currently installed CUDA drivers.

This setting is only respected by `uv pip` commands.

This option is in preview and may change in any future release.

**Default value**: `null`

**Type**: `str`

**Example usage**:

```
[tool.uv.pip]
torch-backend = "auto"

```

```
[pip]
torch-backend = "auto"

```

______________________________________________________________________

#### \[[`universal`](#pip_universal)\](#pip_universal)

Perform a universal resolution, attempting to generate a single `requirements.txt` output file that is compatible with all operating systems, architectures, and Python implementations.

In universal mode, the current Python version (or user-provided `--python-version`) will be treated as a lower bound. For example, `--universal --python-version 3.7` would produce a universal resolution for Python 3.7 and later.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
universal = true

```

```
[pip]
universal = true

```

______________________________________________________________________

#### \[[`upgrade`](#pip_upgrade)\](#pip_upgrade)

Allow package upgrades, ignoring pinned versions in any existing output file.

**Default value**: `false`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
upgrade = true

```

```
[pip]
upgrade = true

```

______________________________________________________________________

#### \[[`upgrade-package`](#pip_upgrade-package)\](#pip_upgrade-package)

Allow upgrades for a specific package, ignoring pinned versions in any existing output file.

Accepts both standalone package names (`ruff`) and version specifiers (`ruff<0.5.0`).

**Default value**: `[]`

**Type**: `list[str]`

**Example usage**:

```
[tool.uv.pip]
upgrade-package = ["ruff"]

```

```
[pip]
upgrade-package = ["ruff"]

```

______________________________________________________________________

#### \[[`verify-hashes`](#pip_verify-hashes)\](#pip_verify-hashes)

Validate any hashes provided in the requirements file.

Unlike `--require-hashes`, `--verify-hashes` does not require that all requirements have hashes; instead, it will limit itself to verifying the hashes of those requirements that do include them.

**Default value**: `true`

**Type**: `bool`

**Example usage**:

```
[tool.uv.pip]
verify-hashes = true

```

```
[pip]
verify-hashes = true

```

______________________________________________________________________