stateman 1.3.0__tar.gz → 1.3.1__tar.gz
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: stateman
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: This module provides tools to track changes in the content of a directory and create compact binary patches that can be used to synchronize another copy of that directory.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: vpuhoff
|
|
@@ -15,6 +15,8 @@ Classifier: Topic :: Utilities
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
|
|
17
17
|
# Stateman: Directory Binary Patching Utility
|
|
18
|
+
[](https://pypi.org/project/stateman/) [](https://pepy.tech/project/stateman)
|
|
19
|
+
|
|
18
20
|
|
|
19
21
|
This module provides tools to track changes in the content of a directory and create compact binary "patches" that can be used to synchronize another copy of that directory.
|
|
20
22
|
|
|
@@ -43,6 +45,10 @@ The basic workflow is:
|
|
|
43
45
|
3. **`CreatePatch(source_folder, patch_file, difference)`**: Takes the difference dictionary (`diff`) and the files from `source_folder` that were added or changed, and packages them along with metadata into a ZIP archive (`patch_file`).
|
|
44
46
|
4. **`ApplyPatch(target_folder, patch_file)`**: Unpacks the `patch_file`. First, it checks if the current state of `target_folder` matches the *source* state hash from the patch. If yes, it deletes files marked as removed and extracts/overwrites files from the archive. After applying, the state of `target_folder` should match the *target* state hash from the patch.
|
|
45
47
|
|
|
48
|
+
* Wiki: [https://deepwiki.com/vpuhoff/stateman](https://deepwiki.com/vpuhoff/stateman/1-overview)
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
46
52
|
## Usage Example:
|
|
47
53
|
|
|
48
54
|
```python
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
# Stateman: Directory Binary Patching Utility
|
|
2
|
+
[](https://pypi.org/project/stateman/) [](https://pepy.tech/project/stateman)
|
|
3
|
+
|
|
2
4
|
|
|
3
5
|
This module provides tools to track changes in the content of a directory and create compact binary "patches" that can be used to synchronize another copy of that directory.
|
|
4
6
|
|
|
@@ -27,6 +29,10 @@ The basic workflow is:
|
|
|
27
29
|
3. **`CreatePatch(source_folder, patch_file, difference)`**: Takes the difference dictionary (`diff`) and the files from `source_folder` that were added or changed, and packages them along with metadata into a ZIP archive (`patch_file`).
|
|
28
30
|
4. **`ApplyPatch(target_folder, patch_file)`**: Unpacks the `patch_file`. First, it checks if the current state of `target_folder` matches the *source* state hash from the patch. If yes, it deletes files marked as removed and extracts/overwrites files from the archive. After applying, the state of `target_folder` should match the *target* state hash from the patch.
|
|
29
31
|
|
|
32
|
+
* Wiki: [https://deepwiki.com/vpuhoff/stateman](https://deepwiki.com/vpuhoff/stateman/1-overview)
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
30
36
|
## Usage Example:
|
|
31
37
|
|
|
32
38
|
```python
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "stateman"
|
|
3
|
-
version = "1.3.
|
|
3
|
+
version = "1.3.1" # Убедитесь, что версия актуальна
|
|
4
4
|
description = "This module provides tools to track changes in the content of a directory and create compact binary patches that can be used to synchronize another copy of that directory."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { text = "MIT" }
|
|
File without changes
|
|
File without changes
|