Skip to main content

No project description provided

Project description

rchp

Run the following command to install rchp:

pip install rchp

No dependencies need to be installed.

rchp supports Python 3.10+

The usage of its main function parallel is as follows:

import rchp
import time
def task():
    for i in range(20):
        print(f"Task: {i}")
rchp.parallel(func=task, worker=2, wait=False)
for i in range(10):
    print(f"Main: {i*i}")
time.sleep(0.5)

func is the function to be parallelized.
worker is the number of threads.
wait indicates whether the main thread waits for the threads to complete their tasks.

  1. The first parameter does not accept functions with arguments.
  2. In the 0.2.1 update, exception handling has been modified to properly capture exceptions thrown within functions. An example is provided below:
import rchp
def task():
    raise RuntimeError("Error")
rchp.parallel(func=task,worker=1,wait=True)

# Like this:
# 
# terminate called after throwing an instance of 'rchp_error'
#   what():  Python exception in worker 0: RuntimeError: Error
# 
# At:
#   test.py(3): task

Additionally, in the update to version 0.2.0, the CPRVER function has been added to retrieve version information of the CPR library. An example is provided below:

import rchp
print(rchp.CPRVER())

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.

rchp-0.2.1-cp314-cp314-win_amd64.whl (88.3 kB view details)

Uploaded CPython 3.14Windows x86-64

rchp-0.2.1-cp314-cp314-manylinux_2_35_x86_64.whl (86.6 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.35+ x86-64

rchp-0.2.1-cp314-cp314-macosx_15_0_arm64.whl (74.1 kB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

rchp-0.2.1-cp313-cp313-win_amd64.whl (86.1 kB view details)

Uploaded CPython 3.13Windows x86-64

rchp-0.2.1-cp313-cp313-manylinux_2_35_x86_64.whl (86.6 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.35+ x86-64

rchp-0.2.1-cp313-cp313-macosx_15_0_arm64.whl (73.9 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

rchp-0.2.1-cp312-cp312-win_amd64.whl (86.0 kB view details)

Uploaded CPython 3.12Windows x86-64

rchp-0.2.1-cp312-cp312-manylinux_2_35_x86_64.whl (86.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.35+ x86-64

rchp-0.2.1-cp312-cp312-macosx_15_0_arm64.whl (73.8 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

rchp-0.2.1-cp311-cp311-win_amd64.whl (86.4 kB view details)

Uploaded CPython 3.11Windows x86-64

rchp-0.2.1-cp311-cp311-manylinux_2_35_x86_64.whl (86.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

rchp-0.2.1-cp311-cp311-macosx_15_0_arm64.whl (73.2 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

rchp-0.2.1-cp310-cp310-win_amd64.whl (85.6 kB view details)

Uploaded CPython 3.10Windows x86-64

rchp-0.2.1-cp310-cp310-manylinux_2_35_x86_64.whl (85.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.35+ x86-64

rchp-0.2.1-cp310-cp310-macosx_15_0_arm64.whl (71.9 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file rchp-0.2.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: rchp-0.2.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 88.3 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for rchp-0.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 61a3875f5ff87b1078478c1e86b85a57bff77ea80995ac77e3caf9a80be325a0
MD5 4e60b9976bac7de0cfb493670c95d3b9
BLAKE2b-256 41336ab6a7af74fdd1fb95fac5e2f387abea94d293a37b8210fcd77d641025a6

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp314-cp314-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp314-cp314-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 da3caeee69c016193eb1f4d9917cdb2aff09807bb9a6ad26c2d71db624b2d689
MD5 496d27c4dfd3af822831ef5a437d4c6e
BLAKE2b-256 d7ea87506fa0d0505a904aa35e2126d6ec894827bf2ca8d1a1c71a3632c92736

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5017c41130afba34ee4da7dcb20c3ef579b1b7009295255a5c94988059694b34
MD5 15db9c04f15c3946c0144ee3ae8a0505
BLAKE2b-256 4bb8ecb93617979ab2761322ae0eed32bd59204e18502b5a40bb55b0bfa5db7c

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: rchp-0.2.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 86.1 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for rchp-0.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 213650de0cc2ac2d61409cb0ee60e96267d6d0e768248a58d819149cdf551926
MD5 aea2e4dbad914a30e03fe6dc6c5cf52c
BLAKE2b-256 20583c706768e9f311d321c5362940bdd59a85461510481ece236a6632c3bd04

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp313-cp313-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp313-cp313-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 1dca0a08db1c8d50f4ab69e7e60bacffd61a4618aa30d48517f9ae75802dafa4
MD5 df3cdb11a9d2d137226348ebf3b9c2d2
BLAKE2b-256 c12588d13a8d3f1056b4a6bfafa222a3b5ff50eafe440e2b96e5699b09ee769e

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5877bfd8d74cd566218b36ef3457c6cec164a8cd4cd40da03a1d9dbf8c221e98
MD5 fab57abd9964a7d1ec18bb5d0069ead8
BLAKE2b-256 2ea9726e04fa691ee68afcd6fee7ecf3e6085e150b5305648180ca81586a3481

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: rchp-0.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 86.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for rchp-0.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d94404dd184ceb7bf3435c6ce04894d03f80ca8f67a34d728576305482b055fd
MD5 d2bdf39581a7c284fc96006733cd365c
BLAKE2b-256 53a0392d9d70827784f645a0730e25c37387c56f17beb1a21951a35f1f59965d

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp312-cp312-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp312-cp312-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 4824ca077ce0f65bb9534a8d56077d54d4643f20ab85b15cace5b487d444e4d3
MD5 fb06172803f8632501696ac9c84cca0f
BLAKE2b-256 15afb992213169fee393bfbc3492b9e7a8bc291b80c4e0cb51b17e0703efb3c4

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0586787dd26be276d3597debcd2d7033256d88c85506baebd8dd63acaf9520cd
MD5 d4217346a45e6ae35a87df66931cf7b3
BLAKE2b-256 973493523366e4c034a5f89e79c8785d75e3f760a0424eefc737198472cc6128

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: rchp-0.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 86.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for rchp-0.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49e60e1667d2fa5734dc910ab9f6b54f788ab959efc60f32e4f743dadfea05cb
MD5 b8daacc9b801f465d623980f8d11621f
BLAKE2b-256 5480af76c6565133c87a6fe2b551816fbc759a8462b4d665df68d850bd527630

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 09b801ec5380261f3a14fe2b108b7933a69aee3b1d78e14b3192e6822b75725d
MD5 64d4c4dbe24b9030757130d6ced58f3b
BLAKE2b-256 24824d00f896a83d2d12dac6758223a51d1be002a726329f425298777c0d9623

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2e7da41f9b2a5bde9bf8febc5b44c28d860d3d30eae746ef4b8802cc31aa09a1
MD5 be1af5bd6c88518e1c8fdc2603d3a8d7
BLAKE2b-256 ff3f9e24d2fd80186dcbb7de44870d1cc9f6e1fb7b6ae7f5d67b4ca0e6d4305a

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: rchp-0.2.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 85.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for rchp-0.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5e76412b2a693152d73485f297e837ae79d401922963f61554aae5570ebc5be0
MD5 3a8d9f6ccbffc254c5bb943b85423b98
BLAKE2b-256 cfd56ea83578324a2096f6a05dd7ee017be63a9fdd5a3f57b21160e514a9c736

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp310-cp310-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp310-cp310-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e3fe5ca488618a9a574d5a425e4048611dd2ff745abc06f3155a05669e9bd73e
MD5 0d00fdd84b9919cb847e3dc8f330e42e
BLAKE2b-256 e04115d142610bc9cf865b0fc2a06c707776c8cbe9ceb295617530d75e75bef0

See more details on using hashes here.

File details

Details for the file rchp-0.2.1-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for rchp-0.2.1-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2034a4812f9dc040c17a337ee1fd5fccaa6d706fc511cf06a8b9a30d76a0d50b
MD5 e57a29b3cdeb3b610f80ae188f6bb9c0
BLAKE2b-256 f665abd83c9ab670cbe8566636b6932753afb75259b2d6bd705be5172c5e028b

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