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. |
shutdown_telemetry | Flush and shut down OpenTelemetry trace export. |
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 python/icechunk/_icechunk_python.pyi
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 | |
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 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 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 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 python/icechunk/_icechunk_python.pyi
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 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 |
|---|---|---|
max_concurrent_manifest_fetches_during_commit | int | None | How many manifests are fetched and updated concurrently during a |
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 python/icechunk/_icechunk_python.pyi
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 | |
max_concurrent_manifest_fetches_during_commit property writable #
How many manifests are fetched and updated concurrently during a commit, amend, flush, or rewrite_manifests.
Default: 1
Returns:
| Type | Description |
|---|---|
int | None | The number of manifests fetched and updated concurrently during a commit. |
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__ #
__new__(
preload=None,
splitting=None,
virtual_chunk_location_compression=None,
max_concurrent_manifest_fetches_during_commit=None,
)
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 |
max_concurrent_manifest_fetches_during_commit | int | None | How many manifests are fetched and updated concurrently during a commit, amend, flush, or rewrite_manifests. Default: 1 | None |
Source code in 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 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 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 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 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 python/icechunk/_icechunk_python.pyi
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 | |
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 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 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 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 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 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 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 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 python/icechunk/_icechunk_python.pyi
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 | |
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 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_decodes | int | None | The maximum number of metadata files Icechunk will decompress and parse at the same |
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 python/icechunk/_icechunk_python.pyi
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 | |
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_decodes property writable #
The maximum number of metadata files Icechunk will decompress and parse at the same time for this repo.
Default: the number of CPUs available to the process
Returns:
| Type | Description |
|---|---|
int | None | The maximum number of concurrent metadata decodes for this repo. |
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,
max_concurrent_decodes=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 |
max_concurrent_decodes | int | None | The maximum number of metadata files Icechunk will decompress and parse at the same time for this repo. Default: the number of CPUs available to the process | 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 python/icechunk/_icechunk_python.pyi
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 | |
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 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 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 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.
Logs are written to stderr by default. Set ICECHUNK_LOG_TO_STDOUT (to any value) before importing icechunk to write them to stdout instead.
Source code in 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 |
Source code in python/icechunk/_icechunk_python.pyi
shutdown_telemetry #
Flush and shut down OpenTelemetry trace export.
Experimental: OpenTelemetry export and its configuration may change in future releases.
Registered with atexit on import icechunk, so the final batch of spans is exported before the interpreter exits. Idempotent, and a no-op unless the library was built with the otel feature and an OTLP endpoint was configured.
Trace export is opt-in and off by default. It is configured at import icechunk through these environment variables (each Icechunk-specific variable falls back to the standard OpenTelemetry one):
- ICECHUNK_OTLP_ENDPOINT (else OTEL_EXPORTER_OTLP_ENDPOINT): OTLP/gRPC endpoint of the collector. Setting it enables export; with neither set, nothing is exported.
- ICECHUNK_OTEL_SERVICE_NAME (else OTEL_SERVICE_NAME): the
service.namereported to the collector. Defaults to "icechunk". - ICECHUNK_OTEL_FILTER: which spans are exported, in
tracing-subscriberfilter syntax. Defaults to "icechunk=info".