icechunk.config#
Repository configuration, manifest settings, compression, and caching.
icechunk.config #
Classes:
| Name | Description |
|---|---|
CachingConfig | Configuration for how Icechunk caches its metadata files |
CompressionAlgorithm | Enum for selecting the compression algorithm used by Icechunk to write its metadata files |
CompressionConfig | Configuration for how Icechunk compresses its metadata files |
ManifestConfig | Configuration for how Icechunk manifests |
ManifestPreloadCondition | Configuration for conditions under which manifests will preload on session creation |
ManifestPreloadConfig | Configuration for how Icechunk manifest preload on session creation |
ManifestSplitCondition | Configuration for conditions under which manifests will be split into splits |
ManifestSplitDimCondition | Conditions for specifying dimensions along which to shard manifests. |
ManifestSplittingConfig | Configuration for manifest splitting. |
ManifestVirtualChunkLocationCompressionConfig | Configuration for zstd dictionary-based compression of virtual chunk location URLs in manifests. |
RepositoryConfig | Configuration for an Icechunk repository |
Functions:
| Name | Description |
|---|---|
initialize_logs | Initialize the logging system for the library. |
set_logs_filter | Set filters and log levels for the different modules. |
CachingConfig #
Configuration for how Icechunk caches its metadata files
Methods:
| Name | Description |
|---|---|
__new__ | Create a new |
Attributes:
| Name | Type | Description |
|---|---|---|
num_bytes_attributes | int | None | The number of bytes of attributes to cache. |
num_bytes_chunks | int | None | The number of bytes of chunks to cache. |
num_chunk_refs | int | None | The number of chunk references to cache. |
num_snapshot_nodes | int | None | The number of snapshot nodes to cache. |
num_transaction_changes | int | None | The number of transaction changes to cache. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
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 | |
num_bytes_attributes property writable #
The number of bytes of attributes to cache.
Default: 0
Returns:
| Type | Description |
|---|---|
int | None | The number of bytes of attributes to cache. |
num_bytes_chunks property writable #
The number of bytes of chunks to cache.
Default: 0
Returns:
| Type | Description |
|---|---|
int | None | The number of bytes of chunks to cache. |
num_chunk_refs property writable #
The number of chunk references to cache.
Default: 15,000,000
Returns:
| Type | Description |
|---|---|
int | None | The number of chunk references to cache. |
num_snapshot_nodes property writable #
The number of snapshot nodes to cache.
Default: 500,000
Returns:
| Type | Description |
|---|---|
int | None | The number of snapshot nodes to cache. |
num_transaction_changes property writable #
The number of transaction changes to cache.
Default: 0
Returns:
| Type | Description |
|---|---|
int | None | The number of transaction changes to cache. |
__new__ #
__new__(
num_snapshot_nodes=None,
num_chunk_refs=None,
num_transaction_changes=None,
num_bytes_attributes=None,
num_bytes_chunks=None,
)
Create a new CachingConfig object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_snapshot_nodes | int | None | The number of snapshot nodes to cache. Default: 500,000 | None |
num_chunk_refs | int | None | The number of chunk references to cache. Default: 15,000,000 | None |
num_transaction_changes | int | None | The number of transaction changes to cache. Default: 0 | None |
num_bytes_attributes | int | None | The number of bytes of attributes to cache. Default: 0 | None |
num_bytes_chunks | int | None | The number of bytes of chunks to cache. Default: 0 | None |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
CompressionAlgorithm #
Bases: Enum
Enum for selecting the compression algorithm used by Icechunk to write its metadata files
Attributes:
| Name | Type | Description |
|---|---|---|
Zstd | int | The Zstd compression algorithm. |
Methods:
| Name | Description |
|---|---|
default | The default compression algorithm used by Icechunk to write its metadata files. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
default staticmethod #
The default compression algorithm used by Icechunk to write its metadata files.
Returns:
| Type | Description |
|---|---|
CompressionAlgorithm | The default compression algorithm. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
CompressionConfig #
Configuration for how Icechunk compresses its metadata files
Methods:
| Name | Description |
|---|---|
__new__ | Create a new |
default | The default compression configuration used by Icechunk to write its metadata files. |
Attributes:
| Name | Type | Description |
|---|---|---|
algorithm | CompressionAlgorithm | None | The compression algorithm used by Icechunk to write its metadata files. |
level | int | None | The compression level used by Icechunk to write its metadata files. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
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 | |
algorithm property writable #
The compression algorithm used by Icechunk to write its metadata files.
Default: Zstd
Returns:
| Type | Description |
|---|---|
CompressionAlgorithm | None | The compression algorithm used by Icechunk to write its metadata files. |
level property writable #
The compression level used by Icechunk to write its metadata files.
Default: 3
Returns:
| Type | Description |
|---|---|
int | None | The compression level used by Icechunk to write its metadata files. |
__new__ #
Create a new CompressionConfig object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
algorithm | CompressionAlgorithm | None | The compression algorithm to use. Default: Zstd | None |
level | int | None | The compression level to use. Default: 3 | None |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
default staticmethod #
The default compression configuration used by Icechunk to write its metadata files.
Returns:
| Type | Description |
|---|---|
CompressionConfig | |
ManifestConfig #
Configuration for how Icechunk manifests
Methods:
| Name | Description |
|---|---|
__new__ | Create a new |
Attributes:
| Name | Type | Description |
|---|---|---|
preload | ManifestPreloadConfig | None | The configuration for how Icechunk manifests will be preloaded. |
splitting | ManifestSplittingConfig | None | The configuration for how Icechunk manifests will be split. |
virtual_chunk_location_compression | ManifestVirtualChunkLocationCompressionConfig | None | The configuration for zstd compression of virtual chunk location URLs. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
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 | |
preload property writable #
The configuration for how Icechunk manifests will be preloaded.
Default: None (uses the default ManifestPreloadConfig)
Returns:
| Type | Description |
|---|---|
ManifestPreloadConfig | None | The configuration for how Icechunk manifests will be preloaded. |
splitting property writable #
The configuration for how Icechunk manifests will be split.
Default: None (uses the default ManifestSplittingConfig)
Returns:
| Type | Description |
|---|---|
ManifestSplittingConfig | None | The configuration for how Icechunk manifests will be split. |
virtual_chunk_location_compression property writable #
The configuration for zstd compression of virtual chunk location URLs.
Default: None (uses the default ManifestVirtualChunkLocationCompressionConfig)
Returns:
| Type | Description |
|---|---|
ManifestVirtualChunkLocationCompressionConfig | None | The compression configuration. |
__new__ #
Create a new ManifestConfig object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
preload | ManifestPreloadConfig | None | The configuration for how Icechunk manifests will be preloaded. When None, the default | None |
splitting | ManifestSplittingConfig | None | The configuration for how Icechunk manifests will be split. When None, the default | None |
virtual_chunk_location_compression | ManifestVirtualChunkLocationCompressionConfig | None | The configuration for zstd compression of virtual chunk location URLs. When None, the default | None |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
ManifestPreloadCondition #
Configuration for conditions under which manifests will preload on session creation
Methods:
| Name | Description |
|---|---|
__and__ | Create a preload condition that matches if both this condition and |
__or__ | Create a preload condition that matches if either this condition or |
and_conditions | Create a preload condition that matches only if all passed |
false | Create a preload condition that never matches any manifests |
name_matches | Create a preload condition that matches if the array's name matches the passed regex. |
num_refs | Create a preload condition that matches only if the number of chunk references in the manifest is within the given range. |
or_conditions | Create a preload condition that matches if any of |
path_matches | Create a preload condition that matches if the full path to the array matches the passed regex. |
true | Create a preload condition that always matches any manifest |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
__and__ #
Create a preload condition that matches if both this condition and other match.
__or__ #
Create a preload condition that matches if either this condition or other match.
and_conditions staticmethod #
Create a preload condition that matches only if all passed conditions match
false staticmethod #
name_matches staticmethod #
Create a preload condition that matches if the array's name matches the passed regex.
Example, for an array /model/outputs/temperature, the following will match:
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
num_refs staticmethod #
Create a preload condition that matches only if the number of chunk references in the manifest is within the given range.
from_refs is inclusive, to_refs is exclusive.
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
or_conditions staticmethod #
Create a preload condition that matches if any of conditions matches
path_matches staticmethod #
Create a preload condition that matches if the full path to the array matches the passed regex.
Array paths are absolute, as in /path/to/my/array
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
ManifestPreloadConfig #
Configuration for how Icechunk manifest preload on session creation
Methods:
| Name | Description |
|---|---|
__new__ | Create a new |
Attributes:
| Name | Type | Description |
|---|---|---|
max_arrays_to_scan | int | None | The maximum number of arrays to scan when looking for manifests to preload. |
max_total_refs | int | None | The maximum number of references to preload. |
preload_if | ManifestPreloadCondition | None | The condition under which manifests will be preloaded. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
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 | |
max_arrays_to_scan property writable #
The maximum number of arrays to scan when looking for manifests to preload.
Default: 50
Returns:
| Type | Description |
|---|---|
int | None | The maximum number of arrays to scan. |
max_total_refs property writable #
The maximum number of references to preload.
Default: 10,000
Returns:
| Type | Description |
|---|---|
int | None | The maximum number of references to preload. |
preload_if property writable #
The condition under which manifests will be preloaded.
Default: None (preload arrays with CF-like coordinate names and at most 1,000 chunk references)
Returns:
| Type | Description |
|---|---|
ManifestPreloadCondition | None | The condition under which manifests will be preloaded. |
__new__ #
Create a new ManifestPreloadConfig object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_total_refs | int | None | The maximum number of references to preload. Default: 10,000 | None |
preload_if | ManifestPreloadCondition | None | The condition under which manifests will be preloaded. When None, preloads arrays whose name matches CF-like coordinate names (e.g. | None |
max_arrays_to_scan | int | None | The maximum number of arrays to scan when looking for manifests to preload. Increase for repositories with many nested groups. Default: 50 | None |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
ManifestSplitCondition #
Configuration for conditions under which manifests will be split into splits
Methods:
| Name | Description |
|---|---|
AnyArray | Create a splitting condition that matches any array. |
__and__ | Create a splitting condition that matches if both this condition and |
__or__ | Create a splitting condition that matches if either this condition or |
and_conditions | Create a splitting condition that matches only if all passed |
name_matches | Create a splitting condition that matches if the array's name matches the passed regex. |
or_conditions | Create a splitting condition that matches if any of |
path_matches | Create a splitting condition that matches if the full path to the array matches the passed regex. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
AnyArray staticmethod #
__and__ #
Create a splitting condition that matches if both this condition and other match
__or__ #
Create a splitting condition that matches if either this condition or other matches
and_conditions staticmethod #
Create a splitting condition that matches only if all passed conditions match
name_matches staticmethod #
Create a splitting condition that matches if the array's name matches the passed regex.
Example, for an array /model/outputs/temperature, the following will match:
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
or_conditions staticmethod #
Create a splitting condition that matches if any of conditions matches
path_matches staticmethod #
Create a splitting condition that matches if the full path to the array matches the passed regex.
Array paths are absolute, as in /path/to/my/array
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
ManifestSplitDimCondition #
Conditions for specifying dimensions along which to shard manifests.
Classes:
| Name | Description |
|---|---|
Any | Split along any other unspecified dimension. |
Axis | Split along specified integer axis. |
DimensionName | Split along specified named dimension. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
ManifestSplittingConfig #
Configuration for manifest splitting.
Methods:
| Name | Description |
|---|---|
__new__ | Configuration for how Icechunk manifests will be split. |
Attributes:
| Name | Type | Description |
|---|---|---|
split_sizes | _SplitSizes | Configuration for how Icechunk manifests will be split. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
split_sizes property writable #
Configuration for how Icechunk manifests will be split.
Default: None (a single rule matching every array with no splitting, i.e. one manifest per array)
Returns:
| Type | Description |
|---|---|
tuple[tuple[ManifestSplitCondition, tuple[tuple[ManifestSplitDimCondition, int], ...]], ...] | The configuration for how Icechunk manifests will be split. |
__new__ #
Configuration for how Icechunk manifests will be split.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
split_sizes | _SplitSizes | None | The configuration for how Icechunk manifests will be split. Default: None (a single rule matching every array with no splitting, i.e. one manifest per array) | None |
Examples:
Split manifests for the temperature array, with 3 chunks per shard along the longitude dimension.
>>> ManifestSplittingConfig.from_dict(
... {
... ManifestSplitCondition.name_matches("temperature"): {
... ManifestSplitDimCondition.DimensionName("longitude"): 3
... }
... }
... )
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
ManifestVirtualChunkLocationCompressionConfig #
Configuration for zstd dictionary-based compression of virtual chunk location URLs in manifests.
Methods:
| Name | Description |
|---|---|
__new__ | Create a new |
Attributes:
| Name | Type | Description |
|---|---|---|
compression_level | int | None | Zstd compression level applied to virtual chunk location URLs. |
dictionary_max_size_bytes | int | None | Maximum size of the trained compression dictionary in bytes. |
dictionary_max_training_samples | int | None | Maximum number of URL samples used to train the compression dictionary. |
min_num_chunks | int | None | Minimum number of virtual chunks required to enable compression. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
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 | |
compression_level property writable #
Zstd compression level applied to virtual chunk location URLs.
Default: 3
Returns:
| Type | Description |
|---|---|
int | None | The zstd compression level. |
dictionary_max_size_bytes property writable #
Maximum size of the trained compression dictionary in bytes.
Default: 2,048
Returns:
| Type | Description |
|---|---|
int | None | The maximum dictionary size in bytes. |
dictionary_max_training_samples property writable #
Maximum number of URL samples used to train the compression dictionary.
Default: 100
Returns:
| Type | Description |
|---|---|
int | None | The maximum number of URL samples used during dictionary training. |
min_num_chunks property writable #
Minimum number of virtual chunks required to enable compression.
Default: 1,000
Returns:
| Type | Description |
|---|---|
int | None | The threshold below which virtual chunk locations are not compressed. |
__new__ #
__new__(
min_num_chunks=None,
*,
dictionary_max_training_samples=None,
dictionary_max_size_bytes=None,
compression_level=None,
)
Create a new ManifestVirtualChunkLocationCompressionConfig object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
min_num_chunks | int | None | Minimum number of virtual chunks required to enable compression. Default: 1,000 | None |
dictionary_max_training_samples | int | None | Maximum number of URL samples used to train the compression dictionary. Default: 100 | None |
dictionary_max_size_bytes | int | None | Maximum size of the trained compression dictionary in bytes. Default: 2,048 | None |
compression_level | int | None | Zstd compression level. Default: 3 | None |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
RepositoryConfig #
Configuration for an Icechunk repository
Methods:
| Name | Description |
|---|---|
__new__ | Create a new |
clear_virtual_chunk_containers | Clear all virtual chunk containers from the repository. |
default | Create a default repository config instance |
get_virtual_chunk_container | Get the virtual chunk container for the repository associated with the given name. |
merge | Merge another RepositoryConfig with this one. |
set_virtual_chunk_container | Add or update a virtual chunk container in the repository configuration. |
Attributes:
| Name | Type | Description |
|---|---|---|
caching | CachingConfig | None | The caching configuration for the repository. |
compression | CompressionConfig | None | The compression configuration for the repository. |
get_partial_values_concurrency | int | None | The number of concurrent requests to make when getting partial values from storage. |
inline_chunk_threshold_bytes | int | None | The maximum size of a chunk that will be stored inline in the repository. Chunks larger than this size will be written to storage. |
manifest | ManifestConfig | None | The manifest configuration for the repository. |
max_concurrent_requests | int | None | The maximum number of concurrent HTTP requests Icechunk will do for this repo. |
num_updates_per_repo_info_file | int | None | Maximum number of updates stored in a single repo info file. When this |
repo_update_retries | RepoUpdateRetryConfig | None | Retry configuration for repo info update operations. |
storage | StorageSettings | None | The storage configuration for the repository. |
virtual_chunk_containers | dict[str, VirtualChunkContainer] | None | The virtual chunk containers for the repository. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
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 | |
caching property writable #
The caching configuration for the repository.
Default: None (uses the default CachingConfig)
Returns:
| Type | Description |
|---|---|
CachingConfig | None | The caching configuration for the repository. |
compression property writable #
The compression configuration for the repository.
Default: None (uses the default CompressionConfig)
Returns:
| Type | Description |
|---|---|
CompressionConfig | None | The compression configuration for the repository. |
get_partial_values_concurrency property writable #
The number of concurrent requests to make when getting partial values from storage.
Default: 10
Returns:
| Type | Description |
|---|---|
int | None | The number of concurrent requests to make when getting partial values from storage. |
inline_chunk_threshold_bytes property writable #
The maximum size of a chunk that will be stored inline in the repository. Chunks larger than this size will be written to storage.
Default: 512
manifest property writable #
The manifest configuration for the repository.
Default: None (uses the default ManifestConfig)
Returns:
| Type | Description |
|---|---|
ManifestConfig | None | The manifest configuration for the repository. |
max_concurrent_requests property writable #
The maximum number of concurrent HTTP requests Icechunk will do for this repo.
Default: 256
Returns:
| Type | Description |
|---|---|
int | None | The maximum number of concurrent HTTP requests Icechunk will do for this repo. |
num_updates_per_repo_info_file property writable #
Maximum number of updates stored in a single repo info file. When this limit is reached, a new repo info file is created. Lower values produce slightly smaller repo info files but require more object fetches to reconstruct the ops log.
Default: 1,000
repo_update_retries property writable #
Retry configuration for repo info update operations.
Default: None (uses the default RepoUpdateRetryConfig)
storage property writable #
The storage configuration for the repository.
Default: None (the storage backend's own default settings apply)
Returns:
| Type | Description |
|---|---|
StorageSettings | None | The storage configuration for the repository. |
virtual_chunk_containers property #
The virtual chunk containers for the repository.
Default: None
Returns:
| Type | Description |
|---|---|
dict[str, VirtualChunkContainer] | None | The virtual chunk containers for the repository. |
__new__ #
__new__(
inline_chunk_threshold_bytes=None,
get_partial_values_concurrency=None,
compression=None,
max_concurrent_requests=None,
caching=None,
storage=None,
virtual_chunk_containers=None,
manifest=None,
repo_update_retries=None,
num_updates_per_repo_info_file=None,
)
Create a new RepositoryConfig object
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inline_chunk_threshold_bytes | int | None | The maximum size of a chunk that will be stored inline in the repository. Default: 512 | None |
get_partial_values_concurrency | int | None | The number of concurrent requests to make when getting partial values from storage. Default: 10 | None |
compression | CompressionConfig | None | The compression configuration for the repository. When None, the default | None |
max_concurrent_requests | int | None | The maximum number of concurrent HTTP requests Icechunk will do for this repo. Default: 256 | None |
caching | CachingConfig | None | The caching configuration for the repository. When None, the default | None |
storage | StorageSettings | None | The storage configuration for the repository. When None, the storage backend's own default settings apply. Default: None | None |
virtual_chunk_containers | dict[str, VirtualChunkContainer] | None | The virtual chunk containers for the repository. Default: None | None |
manifest | ManifestConfig | None | The manifest configuration for the repository. When None, the default | None |
repo_update_retries | RepoUpdateRetryConfig | None | Retry configuration for repo info update operations. When None, the default | None |
num_updates_per_repo_info_file | int | None | Maximum number of updates stored in a single repo info file. When this limit is reached, a new repo info file is created. Lower values produce slightly smaller repo info files but require more object fetches to reconstruct the ops log. Default: 1,000 | None |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
clear_virtual_chunk_containers #
default staticmethod #
get_virtual_chunk_container #
Get the virtual chunk container for the repository associated with the given name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name | str | The name of the virtual chunk container to get. | required |
Returns:
| Type | Description |
|---|---|
VirtualChunkContainer | None | The virtual chunk container for the repository associated with the given name. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
merge #
Merge another RepositoryConfig with this one.
When merging, values from the other config take precedence. For nested configs (compression, caching, manifest, storage), the merge is applied recursively. For virtual_chunk_containers, entries from the other config extend this one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
other | RepositoryConfig | The configuration to merge with this one. | required |
Returns:
| Type | Description |
|---|---|
RepositoryConfig | A new merged configuration. |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
set_virtual_chunk_container #
Add or update a virtual chunk container in the repository configuration.
For named containers, the name is the identity: if a container with the same name already exists (even with a different url_prefix), it will be replaced. For unnamed containers, the url_prefix is the key.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cont | VirtualChunkContainer | The virtual chunk container to set. | required |
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
initialize_logs #
Initialize the logging system for the library.
Reads the value of the environment variable ICECHUNK_LOG to obtain the filters. This is autamtically called on import icechunk.
Source code in icechunk-python/python/icechunk/_icechunk_python.pyi
set_logs_filter #
Set filters and log levels for the different modules.
Examples: - set_logs_filter("trace") # trace level for all modules - set_logs_filter("error") # error level for all modules - set_logs_filter("icechunk=debug,info") # debug level for icechunk, info for everything else
Full spec for the log_filter_directive syntax is documented in https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log_filter_directive | str | None | The comma separated list of directives for modules and log levels. If None, the directive will be read from the environment variable ICECHUNK_LOG | required |