semvec/pypi-packages huggingface dataset:
fiddup 3.0.0
Utility to find similar files based on filename or hash.
License: MIT

# Fiddup

![Version 3.0.0](https://img.shields.io/badge/Version-3.0.0-blue)
![MIT License](https://img.shields.io/badge/License-MIT-success)
![Flake8](https://github.com/jarviscodes/fiddup/actions/workflows/flake8_linter.yml/badge.svg)
![Tests](https://github.com/jarviscodes/fiddup/actions/workflows/testing_and_coverage.yml/badge.svg)
![Stable Build](https://github.com/jarviscodes/fiddup/actions/workflows/stable_build.yml/badge.svg)

**Fi**le **D**e**Dup**licator

Small tool to quickly scan a directory for files of similar names.
Useful to scan through archives of books, documents, downloads, movies, music, ...

Two modes are available: Assistant (name based comparison), and Hash mode (hash comparison).

Fiddup is non-destructive. It will report similarities and duplicates, but it will not remove them.

In order to keep things performant and memory-limited, hashmode only hashes parts of both files.
In case of false positives, first try to increase the `--chunk_count` flag. (default=5)

## Installation

### From PyPi

`pip3 install fiddup`

### From Sauce
* `git pull https://github.com/jarviscodes/fiddup`

* `setup.py install`

## Usage
```
(env) E:\Users\Jarvis\PycharmProjects\fiddup>python -m fiddup --help
Usage: python -m fiddup [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  assistant
  hashmode
```

```
Fiddup v3.0.0
Usage: python -m fiddup assistant [OPTIONS]

Options:
  -i, --in_path TEXT     Path to scan for duplicates.  [required]
  -t, --threshold FLOAT  Similarity threshold. Assistant will only show
                         similarities > this.
  -e, --extensions TEXT  List of extensions to scan for. Specify multiple with
                         e.g.: -e zip -e txt -e pdf.  [required]
  -d, --directory        Include directories in comparison. Only available in
                         assistant mode.
  -v, --verbose          Show verbose output.
  --help                 Show this message and exit.
```

```
Fiddup v3.0.0
Usage: python -m fiddup hashmode [OPTIONS]

Options:
  -i, --in_path TEXT     Path to scan for duplicates.  [required]
  -e, --extensions TEXT  List of extensions to scan for. Specify multiple with
                         e.g.: -e zip -e txt -e pdf.  [required]
  -v, --verbose          Show verbose output.
  --chunk_count INTEGER  Number of chunks to read from files while hashing.
                         Higher = more accuracy = Slower.
  --help                 Show this message and exit.

```

### Assistant

Outputs a filename1, filename2, name similarity table. Useful when sorting out things manually on name base.

### Hashmode

Get the hashes from the files and compare the files content-wise by doing so.

## Testing

`python -m unittest discover -s tests`

or

`python -m pytest`
pdf-page-count 1.1.0
Counts the absolute number of pages in a PDF document, even if it is a compund document containing several PDF documents.
License: MIT
Requires Python: >=3.6

The pdf-page-counter module is used to determine the number of pages in a pdf document. The result is the total number of pages in a docuemnt, even if it is a compound document (like a printer stream file) that contains several PDF.

# Getting started
See the [Installing Packages](https://packaging.python.org/installing/) instructions in the Python Packaging User Guide on installing, upgrading and uninstalling pdf-page-counter.

Make sure you uns an up-to-date version of pip. 

Questions, comments and big reports as well as vulnerability reports can be directly submitted to teh maintainer: <thomas.grasse@exercim.com>.

# Usage

The package can be used in 2 ways. When executed as the main package with: `python3 -m pdf-page-count <filename>`. The process ends with the page count returned as the process exit code.

The package can also be imported, by using: `import pdfpagenumber`. The function `extractPdfPageCount` is used with the path to the PDF file as argument, to determine the page count.

# Licensing
The package is distributed under MIT license ([link](https://opensource.org/licenses/MIT)).

Copyright 2021 exercim Oy

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.