Skip to main content

No project description provided

Project description

RDP Rust

Rust

Binary version of MIT licensed RDP implementation by fhirschmann.

Binary wheels are built for Python 3.6, 3.7, 3.8, and 3.9.

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

If you're not sure about the file name format, learn more about wheel file names.

rdp_rust-0.5.2-cp39-none-win_amd64.whl (138.6 kB view details)

Uploaded CPython 3.9Windows x86-64

rdp_rust-0.5.2-cp39-cp39-manylinux_2_24_x86_64.whl (190.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64

rdp_rust-0.5.2-cp39-cp39-macosx_10_7_x86_64.whl (182.3 kB view details)

Uploaded CPython 3.9macOS 10.7+ x86-64

rdp_rust-0.5.2-cp38-none-win_amd64.whl (138.6 kB view details)

Uploaded CPython 3.8Windows x86-64

rdp_rust-0.5.2-cp38-cp38-manylinux_2_24_x86_64.whl (190.9 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

rdp_rust-0.5.2-cp38-cp38-macosx_10_7_x86_64.whl (182.3 kB view details)

Uploaded CPython 3.8macOS 10.7+ x86-64

rdp_rust-0.5.2-cp37-none-win_amd64.whl (138.6 kB view details)

Uploaded CPython 3.7Windows x86-64

rdp_rust-0.5.2-cp37-cp37m-manylinux_2_24_x86_64.whl (191.1 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.24+ x86-64

rdp_rust-0.5.2-cp37-cp37m-macosx_10_7_x86_64.whl (182.5 kB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

rdp_rust-0.5.2-cp36-none-win_amd64.whl (138.8 kB view details)

Uploaded CPython 3.6Windows x86-64

rdp_rust-0.5.2-cp36-cp36m-manylinux_2_24_x86_64.whl (191.1 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.24+ x86-64

rdp_rust-0.5.2-cp36-cp36m-macosx_10_7_x86_64.whl (182.6 kB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

File details

Details for the file rdp_rust-0.5.2-cp39-none-win_amd64.whl.

File metadata

  • Download URL: rdp_rust-0.5.2-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 138.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.10.6

File hashes

Hashes for rdp_rust-0.5.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 4d0ac34e2cc776ff1628aa1fe23c4f4644718d1ea5abac97685be69ddf081c71
MD5 03fe607a4f38bb9c4930652a5605d302
BLAKE2b-256 19477d4c2c4c4dbac2a0a63cb1a76328ed6b22378613c963dc0560c0751fc179

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 fd408e4d47a1652af196aef0c110397d6b4fbdfe426dca0176e7f5d6ef2ce28f
MD5 4d802efb62bbdd4e542ad1a1cbee1cca
BLAKE2b-256 3f82efaf2437aa35153a68b30ecdb18e32aaec0e2d313a693836d58182f1b85a

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 4978051523ff342e9ec28e9cac91e477b9212e9f07708bb4c8795d2b62307c18
MD5 d0136b0b3e754aaa1b370bf8de477ed1
BLAKE2b-256 358b291951e68dc0a291dbfc2ae48f9d2536ba4d77e485def52e115a9bd7cc60

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp38-none-win_amd64.whl.

File metadata

  • Download URL: rdp_rust-0.5.2-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 138.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.10.6

File hashes

Hashes for rdp_rust-0.5.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 979e363b4c735e82b15af63fbd540d979d72900dffffeff267c83afbe56fa237
MD5 75941b28a117afa99178e84794459f8b
BLAKE2b-256 73b8b27af96b993d72bf147aaf2cef1bb36cec053b79083aaf91c2924385f89a

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 048fcda0c990a6b68848e9caf208b2336d0c9d0ca8bed747246b6c63ca009bcb
MD5 c8e38956a0ed0f10bb060575a9c319e0
BLAKE2b-256 63b510202d8ebcd068d893631e615d891601e942614478f9e4e8e3695bf7ef8e

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3515b44ae7df6c40097ba708b952d75a7d298f1b039a05cac099a83f0f09f75c
MD5 c1529e8f2e4a5a116e278d8a51c09ae7
BLAKE2b-256 c777f8e0a595a471350c6b1ef4bd5d2a777b4f410d5645c60fbb41d4f7ca4c79

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp37-none-win_amd64.whl.

File metadata

  • Download URL: rdp_rust-0.5.2-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 138.6 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.10.6

File hashes

Hashes for rdp_rust-0.5.2-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 092cae1904e88602cc74d81cd6faf495d7bc9d1f5887a9bb7c9010dd3bda0988
MD5 824e5232fb3214aca290fb234cf0d62b
BLAKE2b-256 c00b906e5ad4665b8be971c2cf35f505cf98b59b9ef8838cad1f24d3a829559e

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 22442b49fe78a3b393fd43f96a4b1d33cc4c016be2a014f0ae90c705f96ee675
MD5 f9de3a29fd2486b5104ed54a63cda3fb
BLAKE2b-256 1a23a572147a29ecf61aee4894b1130df61edc9ec6ceae7237986a79061d4a78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ea159e60c68de0673b32259dcf5c34c3e318bb7bbcb60e3cb661850ec1ded1b5
MD5 c09b01d0bc046c852fc4fe33c4019376
BLAKE2b-256 61fec178d7012b5b42bb1f92294d8aeedbc2f7fb70b52ac6b197044e5d96d4c9

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp36-none-win_amd64.whl.

File metadata

  • Download URL: rdp_rust-0.5.2-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 138.8 kB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.10.6

File hashes

Hashes for rdp_rust-0.5.2-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 cdbb618420f16d4d3fcaf5f751a65519179b989709fbb94bc94f44a611a0d649
MD5 75e47ddf160c5da761b61d35fc9f360f
BLAKE2b-256 02df437c3a45aa8dc855fc6e866f81b301c417946ae715be332fcb5a74c4170b

See more details on using hashes here.

File details

Details for the file rdp_rust-0.5.2-cp36-cp36m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp36-cp36m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 c81320141906aef966f5a2ac3b9797fef7b630060195f383d7bb3f47c0c5eabf
MD5 698c807802f700163784f8338c3e6d2c
BLAKE2b-256 15a42d8ddb95e142b0497b5a582139f901e4dbe86990f4d6c98a00ac3e76a334

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rdp_rust-0.5.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a21bf3bc2d19fddb3c297542e304488f5faf7e538808e2651ff809c0f9c8e120
MD5 c5adbeb98f8948fa0c62e22fbc37c88b
BLAKE2b-256 e4dc45037f2f403cc1dff757caca23f88afed2947ee0c15744ad504fb4e0d972

See more details on using hashes here.

Supported by

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