deduplicate
vpype plug-in to remove overlapping lines in SVG files.
Usage
Usage: vpype deduplicate [OPTIONS]
Remove duplicate lines.
Options:
-t, --tolerance LENGTH Max distance between points to consider them equal
(default: 0.01mm)
-p, --progress-bar (flag) Display a progress bar
-l, --layer LAYERS Target layer(s) (defaul: 'all')
-k, --keep-duplicates (flag) Keep removed duplicates in a separate layer
--help Show this message and exit.
Examples
Basic usage : vpype read file.svg deduplicate write output.svg
You can keep removed lines in a separate layer with -k flag:
vpype read squares.svg deduplicate -k write squares_dedup.svg
The -t option controls the tolerance, which is the maximum distance 2 points are considered equal.
Here is what vpype read tangent_circles.svg deduplicate -k -t 0.2mm show outputs with different tolerances:
Installation
See the installation instructions for information on how
to install vpype.
Existing vpype installation
If vpype was installed using pipx, use the following command:
$ pipx inject vpype deduplicate
If vpype was installed using pip in a virtual environment, activate the virtual environment and use the following command:
$ pip install deduplicate
Check that your install is successful:
$ vpype --help
Usage: vpype [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Options:
-v, --verbose
-I, --include PATH Load commands from a command file.
--help Show this message and exit.
Commands:
[...]
Plugins:
deduplicate
[...]
Stand-alone installation
Use this method if you need to edit this project. First, clone the project:
$ git clone https://github.com/LoicGoulefert/deduplicate.git
$ cd deduplicate
Create a virtual environment:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
Install deduplicate and its dependencies (including vpype):
$ pip install -e .
Check that your install is successful:
$ vpype --help
Usage: vpype [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
Options:
-v, --verbose
-I, --include PATH Load commands from a command file.
--help Show this message and exit.
Commands:
[...]
Plugins:
deduplicate
[...]
License
See the LICENSE file for details.
Metadata
Release files for deduplicate 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deduplicate-0.1.0.tar.gz | 4.3 kB | Without provenance | Details for deduplicate-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deduplicate-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for deduplicate-0.1.0-py3-none-any.whl |
Total release size: 9.5 kB
Release files / deduplicate-0.1.0.tar.gz
| Download URL | deduplicate-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
acf1c6464f3ba86781f1d0c47a3dd21b175ad6c9fee19e82d64c0b68fe57fca5
|
|
BLAKE2b-256 checksum How to use checksums |
f1d4f807a0aee3b17046646706fe2a470407939ae58c1a6314162b6dacbc00d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / deduplicate-0.1.0-py3-none-any.whl
| Download URL | deduplicate-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c725c896e249d306d6a8703da5b5c31112a424496a7d963fe4d041490d93ca16
|
|
BLAKE2b-256 checksum How to use checksums |
24bc8fab05a20225341ac9e7b8fa96870007ffc58624cc6025ad90e1b2083964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for deduplicate 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.