Skip to main content

Module with C functions. No precise purpose yet.

Project description

https://github.com/sdpython/cpyquickhelper/blob/master/_doc/sphinxdoc/source/phdoc_static/project_ico.png?raw=true

cpyquickhelper: python + C++ in different ways

Build status Build Status Windows https://circleci.com/gh/sdpython/cpyquickhelper/tree/master.svg?style=svg https://dev.azure.com/xavierdupre3/cpyquickhelper/_apis/build/status/sdpython.cpyquickhelper https://badge.fury.io/py/cpyquickhelper.svg MIT License Requirements Status https://codecov.io/github/sdpython/cpyquickhelper/coverage.svg?branch=master GitHub Issues Notebook Coverage size

cpyquickhelper is a template to create a module with C functions in different ways. It implements function measure_time:

from cpyquickhelper.numbers import measure_time
from math import cos

res = measure_time("cos(x)", context=dict(cos=cos, x=5.))
print(res)
{'average': 3.909366205334663e-06, 'deviation': 6.238702219064397e-07,
 'min_exec': 3.635883331298828e-06, 'max_exec': 5.776062607765198e-06,
 'repeat': 10, 'number': 50, 'context_size': 240}

On Windows, the following exception might happen:

LINK : fatal error LNK1158: impossible d'exécuter 'rc.exe'

Which might be resolved with the following line before building it:

set PATH=%PATH%;C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64

Links:

Project details


Download files

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

Source Distribution

cpyquickhelper-0.3.369.tar.gz (146.1 kB view hashes)

Uploaded Source

Built Distributions

cpyquickhelper-0.3.369-cp39-cp39-win_amd64.whl (541.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

cpyquickhelper-0.3.369-cp39-cp39-macosx_10_9_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

cpyquickhelper-0.3.369-cp38-cp38-win_amd64.whl (545.6 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

cpyquickhelper-0.3.369-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

cpyquickhelper-0.3.369-cp38-cp38-macosx_10_9_x86_64.whl (894.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

cpyquickhelper-0.3.369-cp37-cp37m-win_amd64.whl (547.5 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

cpyquickhelper-0.3.369-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

cpyquickhelper-0.3.369-cp37-cp37m-macosx_10_9_x86_64.whl (887.7 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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