
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Python library for calculating Kramers-Kronig transform written in Rust.
You can install with pip command.
$ pip install pykk
Or build from the source.
Use maturin for building. If you use poetry, you can build by the following commands.
$ poetry install
$ poetry run maturin build --release
You can find .whl
file in $PROJECT_ROOT/target/wheels
. Install it by pip command.
This library has two functions for calculating Kramers-Kronig transform, the transformation from real to imaginary part and vice versa.
import pykk
energy = [1, 2, 3, 4] # the values MUST have the same intervals
real = [1, 2, 3, 4]
imag = pykk.real2imag(energy, real) # real -> imaginary part
real_kk = pykk.imag2real(energy, imag) # imaginary -> real part
Compare the performance with the code implemented by Python. The length of the data is ~ 1000 data points.
Python 3.8 | pykk |
---|---|
37 s | 0.4 ms |
This application contains artifacts distributed under the license of the Apache License, Version 2.0.
FAQs
The fast Kramers-Kronig transform
We found that pykk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.