Skip to main content

No project description provided

Project description

RDP Rust

Build Status

Binary version of MIT licensed RDP implementation by fhirschmann.

Wheels are built for Linux Python 3.5, 3.6, and 3.7. OS X wheels are built for 3.6 and 3.7.

Benchmarks show approximately 60x speed increase.

Rust implementation of the Ramer-Douglas-Peucker algorithm (Ramer 1972; Douglas and Peucker 1973) for 2D data.

Installation

pip install rdp-rust

Usage

The inputs must all be floating points values.

>>> import numpy as np
>>> from rdp_rust import reduce_points

>>> arr = np.array([5.0, 0, 4, 0, 3, 0, 3, 1, 3, 2]).reshape(5, 2)
>>> reduce_points(small_arr, 0.2)
array([[5., 0.],
       [3., 0.],
       [3., 2.]])
>>> import numpy as np
>>> from rdp_rust import mask_points

>>> arr = np.array([5.0, 0, 4, 0, 3, 0, 3, 1, 3, 2]).reshape(5, 2)
>>> mask_points(small_arr, 0.2)
array([ True, False,  True, False,  True])

Example

Demo of RDP

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rdp_rust-0.5.0-cp37-cp37m-manylinux1_x86_64.whl (694.6 kB view details)

Uploaded CPython 3.7m

rdp_rust-0.5.0-cp37-cp37m-macosx_10_7_x86_64.whl (154.7 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

rdp_rust-0.5.0-cp36-cp36m-manylinux1_x86_64.whl (694.9 kB view details)

Uploaded CPython 3.6m

rdp_rust-0.5.0-cp36-cp36m-macosx_10_7_x86_64.whl (154.9 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

rdp_rust-0.5.0-cp35-cp35m-manylinux1_x86_64.whl (694.9 kB view details)

Uploaded CPython 3.5m

File details

Details for the file rdp_rust-0.5.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: rdp_rust-0.5.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 694.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for rdp_rust-0.5.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5d6808ed72240e157938ed3949f407f014b7446f799cd7b91bc3f1d29ded3ff2
MD5 2af4cbb9705beca3e13180f8928f6478
BLAKE2b-256 afd7c24dbec2d970dbce37024c8588c19133302c22cd5a8d65455e87a8beb8fa

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: rdp_rust-0.5.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 154.7 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9

File hashes

Hashes for rdp_rust-0.5.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 d429222ba1ac6d62a3b3ad8b92613eb8888adf8c05923bcd5d8bfa5a075e86ff
MD5 6172aa0b0f8f3ad35d36376584e5dcbc
BLAKE2b-256 84efc58f97ab408b7a82fb835d9b84a6a2d03eda98fb228de367d9f3f82fcc8c

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: rdp_rust-0.5.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 694.9 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for rdp_rust-0.5.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3123014b12db69510a1cc4c1d7464bb1c77fc833d6adef2f306262267c1fe5ce
MD5 b0dfc518db8b796d575f9f30ec72f12c
BLAKE2b-256 d4b19d4eb8a5407062955a5f2663518283b4c1f1857db1d7a57dbd70cd43db76

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.0-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: rdp_rust-0.5.0-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 154.9 kB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9

File hashes

Hashes for rdp_rust-0.5.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 8920c72f1368190b2126d60a4f5eaa9f821927d683451352199b1186bf40abed
MD5 39ca5d522fab9981caa78889bd7dad92
BLAKE2b-256 47118bbbbef068b4cb5d62f412eb0dd3496ce22436f33c9b9bb1ad5573b729cd

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.0-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: rdp_rust-0.5.0-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 694.9 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5

File hashes

Hashes for rdp_rust-0.5.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a6d21f1d50f9faf90a79781677d4636262ac4d9c094842d51f96b1414a25ec8a
MD5 fd493081078402d11f01cea2d31e9113
BLAKE2b-256 154847269aa1cfc667b198e4c9caf25def0e5415dc46d765a2b73211f4919937

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page