Skip to main content

Module with C functions. No precise purpose yet.

Project description

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 Waffle Notebook Coverage

cpyquickhelper

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:

History

current - 2019-02-26 - 0.00Mb

  • 11: add parameter div_by_number to measure_time (2019-02-26)

0.1.182 - 2019-02-16 - 0.17Mb

  • 10: fix binary location in the setup (2019-02-16)

  • 5: implement a new pandas column type based on a C++ array type (2019-02-02)

  • 9: add benchmark for branching (2019-01-17)

  • 1: [REMOVED] prepare an example with C# (2018-08-05)

  • 6: implements an ExtensionArray from pandas with a C++ type (2018-08-03)

  • 4: implements a series with WeightedDouble (2018-08-03)

  • 3: add an example based on pybind11 (2018-08-02)

  • 2: add history (2018-04-01)

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.1.187.tar.gz (408.7 kB view details)

Uploaded Source

Built Distribution

cpyquickhelper-0.1.187-cp37-cp37m-win_amd64.whl (175.4 kB view details)

Uploaded CPython 3.7m Windows x86-64

File details

Details for the file cpyquickhelper-0.1.187.tar.gz.

File metadata

  • Download URL: cpyquickhelper-0.1.187.tar.gz
  • Upload date:
  • Size: 408.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for cpyquickhelper-0.1.187.tar.gz
Algorithm Hash digest
SHA256 cbe588a8cdeba9c61a1cb8ce180587b708c10f8effff06d9064f02503d8130d3
MD5 aad612f9d5c95aa7f827be0fdebc917c
BLAKE2b-256 d4ae6fb0f6cf8a385d0f8b176a615c86d6fbfb36fc330a565e2498d2385b9f03

See more details on using hashes here.

File details

Details for the file cpyquickhelper-0.1.187-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for cpyquickhelper-0.1.187-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 68cb95513ae9f5d8f33c085af2e44496cc620eb3b68b2ce1c4a20594049c22ed
MD5 5782eab0aed33f3fc8efc37d4d6366ea
BLAKE2b-256 b23a2e55e0b5797c4428b69e9458b808850b6faacf7edc87092c3785aba22f10

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