archae 2026.1.0b2__py3-none-any.whl → 2026.2.0b1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: archae
3
- Version: 2026.1.0b2
3
+ Version: 2026.2.0b1
4
4
  Summary: Archae explodes archives.
5
5
  Keywords:
6
6
  Author: Shawn McNaughton
@@ -32,16 +32,19 @@ Classifier: Intended Audience :: Developers
32
32
  Classifier: License :: OSI Approved :: MIT License
33
33
  Classifier: Programming Language :: Python
34
34
  Classifier: Programming Language :: Python :: 3
35
- Classifier: Programming Language :: Python :: 3.11
36
35
  Classifier: Programming Language :: Python :: 3.12
37
36
  Classifier: Programming Language :: Python :: 3.13
38
37
  Classifier: Programming Language :: Python :: 3.14
39
38
  Classifier: Programming Language :: Python :: 3 :: Only
40
39
  Classifier: Typing :: Typed
41
40
  Requires-Dist: click
41
+ Requires-Dist: dynaconf>=3.2.12
42
+ Requires-Dist: platformdirs>=4.5.1
42
43
  Requires-Dist: python-magic
44
+ Requires-Dist: pyyaml>=6.0.3
43
45
  Requires-Dist: rich-click
44
- Requires-Python: ~=3.11
46
+ Requires-Dist: types-pyyaml>=6
47
+ Requires-Python: >=3.12
45
48
  Project-URL: Documentation, https://archae.readthedocs.io/en/stable/
46
49
  Project-URL: Changelog, https://archae.readthedocs.io/en/stable/changelog.html
47
50
  Project-URL: Source Code, https://github.com/shawngmc/archae
@@ -80,9 +83,11 @@ Every once and a while, I run into an issue: multiple layers of archives. The re
80
83
  - Identifies file types via libmagic
81
84
  - Detects duplicate archives
82
85
  - Basic archive bomb protections
83
- - min_archive_size_bytes - ensures the uncompressed size of an archive is limited
84
- - min_total_size_bytes - ensures the total extracted footprint isn't above a certain size
85
- - min_archive_ratio - ensures very-high-compression-ratio archives are stopped
86
+ - MAX_ARCHIVE_SIZE_BYTES - ensures the uncompressed size of an archive is limited
87
+ - MAX_TOTAL_SIZE_BYTES - ensures the total extracted footprint isn't above a certain size
88
+ - MIN_ARCHIVE_RATIO - ensures very-high-compression-ratio archives are stopped
89
+ - MIN_DISK_FREE_SPACE - minimum free space at the extraction location
90
+ - MAX_DEPTH - allow setting a maximum archive depth to traverse
86
91
 
87
92
  ## Installation
88
93
 
@@ -102,6 +107,13 @@ Check out the [Archae documentation](https://archae.readthedocs.io/en/stable/) f
102
107
 
103
108
  ## Usage
104
109
 
110
+ Configuration values are supplied one of four ways, and any item lower in this list will overwrite a prior one:
111
+
112
+ - Default values are stored in the app
113
+ - A TOML file at ~/.config/archae/ will be created on first run and can override those values (ex. MIN_ARCHIVE_RATIO = 0.005)
114
+ - Env vars starts starting with "ARCHAE\_" are parsed (ex. ARCHAE_MIN_ARCHIVE_RATIO=0.005)
115
+ - Values can be passed in as flags (ex. --min_archive_ratio=0.005)
116
+
105
117
  <!-- start docs-include-usage -->
106
118
 
107
119
  Running `archae --help` or `python -m archae --help` shows a list of all of the available options and arguments:
@@ -119,28 +131,18 @@ cog.outl(f"\n```sh\narchae --help\n{help.rstrip()}\n```\n")
119
131
  ```sh
120
132
  archae --help
121
133
 
122
- Usage: archae [OPTIONS] ARCHIVE_PATH
134
+ Usage: archae [OPTIONS] COMMAND [ARGS]...
123
135
 
124
136
  Archae explodes archives.
125
137
 
126
- ╭─ Arguments ──────────────────────────────────────────────────────────────────────────╮
127
- │ * ARCHIVE_PATH FILE Archive to examine [required] │
128
- ╰──────────────────────────────────────────────────────────────────────────────────────╯
129
138
  ╭─ Options ────────────────────────────────────────────────────────────────────────────╮
130
- │ --max_total_size_bytes FILESIZE Maximum total extraction size
131
- before failing, default 100G
132
- │ [default: 107374182400] │
133
- --max_archive_size_bytes FILESIZE Maximum individual archive │
134
- extraction size before failing,
135
- default 10G [default:
136
- 10737418240]
137
- │ --min_archive_ratio FLOAT RANGE [0<=x<=1] Minimum allowed compression │
138
- │ ratio for an archive. A │
139
- │ floating-point value between │
140
- │ 0.0 and 1.0, inclusive. Default │
141
- │ is 0.005 [default: 0.005] │
142
- │ --version -v Show the version and exit. │
143
- │ --help -h Show this message and exit. │
139
+ │ --version -v Show the version and exit.
140
+ --help -h Show this message and exit.
141
+ ╰──────────────────────────────────────────────────────────────────────────────────────╯
142
+ ╭─ Commands ───────────────────────────────────────────────────────────────────────────╮
143
+ extract Extract and analyze an archive.
144
+ listopts List all available configuration options.
145
+ status Show archae status and available tools.
144
146
  ╰──────────────────────────────────────────────────────────────────────────────────────╯
145
147
  ```
146
148
 
@@ -151,10 +153,7 @@ archae --help
151
153
  ## TODOs
152
154
 
153
155
  - More archive bomb protections
154
- - min_total_size_bytes - (NYI) ensures the total extracted footprint isn't above a certain size
155
- - min_free_space - minimum free space at the extraction location
156
156
  - delete_archives_as_exploded - remove archive files to reduce duplication (boolean)
157
- - max_archive_depth - allow setting a maximum archive depth
158
157
  - Improve archive type detection
159
158
  - Separate between extractable and non-extractable archive types
160
159
  - Detect password-protected archives
@@ -0,0 +1,23 @@
1
+ archae/__init__.py,sha256=O_HNvpNVsJ5LZPNPLvuHhHdOq0b6M0LnWqycB505mkQ,111
2
+ archae/__main__.py,sha256=l3eO5dEs1cR_hDziOpnW1PYzoRL2siYm81wgvftyigg,172
3
+ archae/cli.py,sha256=ZYq7joe10y73dCwQY7666m-SY2dej_GVEmoYRyFpg7A,5739
4
+ archae/config.py,sha256=zGOwkPDfNLR-06ziZMXeLBamd-98AbNU0aTuoH7ibKQ,2952
5
+ archae/default_settings.toml,sha256=svBdN9QJm8UBBz6AEWpBp-gslSBcE5n00xZdl32KDEc,230
6
+ archae/extractor.py,sha256=CfYtsxuoXQ2rOLQIByJvLI9Y61U338dZoeb7ZBWAc_g,9948
7
+ archae/options.yaml,sha256=nJo7gOCuiS_fKd9C3iRwI3Eb_f4OT6mbdVkipqdISpk,937
8
+ archae/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ archae/util/__init__.py,sha256=HlENK1XfnwnYMrlkvVJTjs-6W7RLLUJOoyFcOb7njUE,34
10
+ archae/util/archiver/__init__.py,sha256=baayr_wh2MfRaKKiVuaUxtYJcMzKR82Uf1amcU7QtzM,202
11
+ archae/util/archiver/base_archiver.py,sha256=xEHynzmhwZdMl2fEDj9h-YaH9ZQEeaugF4H_ILoOxTY,1629
12
+ archae/util/archiver/peazip.py,sha256=XdhI2EQ3A9EH89KxPv-FcmjukwWcS96WtG-gwkha6hs,4022
13
+ archae/util/archiver/seven_zip.py,sha256=eck_cXMGFqwJ05ZKge3N0Ozy1XkKuGyE09s3jFcsMrQ,4951
14
+ archae/util/archiver/unar.py,sha256=xWTR7cpFXyofvtPI-7Z5Ski605WmJdLoAm6a81IriAc,3974
15
+ archae/util/converter/file_size.py,sha256=BdcYzpdvCDq3YH1eYW1-zwnQCxv9mBzG4DuqHY2dt6o,1984
16
+ archae/util/enum/__init__.py,sha256=IvjtVopATKLAHDjOpblaExy2yXwIzweX0HoUrQWcpkM,109
17
+ archae/util/enum/byte_scale.py,sha256=5TZG1msPmJU9whZtKAywZtKOre6p2xMJ2y0gE4TG3OE,1593
18
+ archae/util/file_tracker.py,sha256=HQb1l7j_Jy0qO6tqkB8jXM6P2o5fLB6Ih0J5U4JUyT8,3106
19
+ archae/util/tool_manager.py,sha256=HU2xkmb_18XF5SFwFV5gUUcPddZVBYRdGB2PSWgWaqA,3974
20
+ archae-2026.2.0b1.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
21
+ archae-2026.2.0b1.dist-info/entry_points.txt,sha256=gGL_R78QELaTeyFGb-OuSnRuu4EUdT68EKmyrFno59o,48
22
+ archae-2026.2.0b1.dist-info/METADATA,sha256=NiFftqzt93bRJoLbDw7jpWo5-Xt8JclNlSk8SezrroE,7976
23
+ archae-2026.2.0b1.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- archae/__init__.py,sha256=tqGdU1tlaD9BIf9_PfhiMRLVsoqTTHr9JIJq7jht1ys,32
2
- archae/__main__.py,sha256=l3eO5dEs1cR_hDziOpnW1PYzoRL2siYm81wgvftyigg,172
3
- archae/cli.py,sha256=oUu8PwNMU6stvwIFOmV74lhhrasXvHxPwsbbplcRK1s,12402
4
- archae/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- archae/util/__init__.py,sha256=HlENK1XfnwnYMrlkvVJTjs-6W7RLLUJOoyFcOb7njUE,34
6
- archae/util/archiver/__init__.py,sha256=baayr_wh2MfRaKKiVuaUxtYJcMzKR82Uf1amcU7QtzM,202
7
- archae/util/archiver/base_archiver.py,sha256=_2-ARZLxPqSeE_0TF7NTVK8TwWhLyP9fA2G0fnMb0zc,1549
8
- archae/util/archiver/peazip.py,sha256=XdhI2EQ3A9EH89KxPv-FcmjukwWcS96WtG-gwkha6hs,4022
9
- archae/util/archiver/seven_zip.py,sha256=eck_cXMGFqwJ05ZKge3N0Ozy1XkKuGyE09s3jFcsMrQ,4951
10
- archae/util/archiver/unar.py,sha256=xWTR7cpFXyofvtPI-7Z5Ski605WmJdLoAm6a81IriAc,3974
11
- archae/util/enum/__init__.py,sha256=IvjtVopATKLAHDjOpblaExy2yXwIzweX0HoUrQWcpkM,109
12
- archae/util/enum/byte_scale.py,sha256=5TZG1msPmJU9whZtKAywZtKOre6p2xMJ2y0gE4TG3OE,1593
13
- archae-2026.1.0b2.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
14
- archae-2026.1.0b2.dist-info/entry_points.txt,sha256=gGL_R78QELaTeyFGb-OuSnRuu4EUdT68EKmyrFno59o,48
15
- archae-2026.1.0b2.dist-info/METADATA,sha256=csePSw_sY2L6Obx276UqN-05kpdqOedEh7zDbrkA3-o,8477
16
- archae-2026.1.0b2.dist-info/RECORD,,