Python toolkit for the mass management and analysis of files.
Project description
Archive Manager
Archive Manager is a Python tool designed to help users interact with and manage large archives of files efficiently. Whether you need to sort files, find duplicates, perform equality checks, or remove unnecessary files, this tool provides the necessary functionalities to streamline your file management tasks.
Features
- Sorting: Organize your files based on various criteria such as file type, size, date modified, etc.
- Duplicate Finding: Identify and manage duplicate files to free up storage space.
- Equality Checking: Compare files to ensure they are identical or different.
- Removal Tools: Safely remove unwanted files from your archives.
Installation
pip install archyve
Examples
Below are some examples of how to use archyve.
-
Find duplicates in a large library of images:
from archyve import Archyve, Entry # Create an archyve archyve: Archyve = Archyve(r"<put your path(s) here>") # Get a list of all the duplicate images and videos archyve = archyve.images + archyve.videos duplicate_lists: list[list[Entry]] = archyve.duplicates() # Sort the duplicates by age for i in range(len(duplicate_lists)): duplicate_lists[i] = sorted(duplicate_lists[i], key=lambda e: e.created) # Delete the ones that are not the oldest delete: list[list[Entry]] = [duplicate_list[1:] for duplicate_list in duplicate_lists] for entry_list in delete: archyve.delete(entry_list)
-
Get a list of all non-text files recursively in a given directory:
from archyve import Archyve, EntryType # Create an archyve archyve: Archyve = Archyve(r"p1", r"p2") # Filter the archyve entries on whatever you need archyve = archyve.filter(lambda e: not e.is_type(EntryType.TEXT)) for entry in archyve: print(entry)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archyve-0.2.3.tar.gz.
File metadata
- Download URL: archyve-0.2.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8a8ea43f931ed5291d11747d87d0eec329dfc6ba9f96755a10c4924eda9906
|
|
| MD5 |
bdb3110ab25cbf56690e071f79bb3fc7
|
|
| BLAKE2b-256 |
9937f3b892cc31a498d8c05cd01e830f92f3affce5a5e09fe2fd4847a0a8898b
|
File details
Details for the file archyve-0.2.3-py3-none-any.whl.
File metadata
- Download URL: archyve-0.2.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d49729889e1b470d7457c7ba2640f36a8fef2c998d5878f0b7b851fac6de7be
|
|
| MD5 |
9292543eb6f42e9ef022a4308bd27c25
|
|
| BLAKE2b-256 |
82ad866e74e8de1909ac88c784c94e981a2c13265e4c5e142e39721759ddb5e8
|