LFKit
LFKit is a modular Python toolkit for luminosity function modeling, photometric corrections, and related utilities for cosmological analyses.
It is designed to provide reusable building blocks for working with luminosity functions, magnitude conversions, k-corrections, e-corrections, and photometric response handling in a clear and extensible way.
Features
LFKit currently includes tools for:
- luminosity function modeling
- Schechter and evolving luminosity function utilities
- magnitude and luminosity conversions
- k-corrections and e-corrections
- photometric response and filter-related helpers
- interpolation, validation, and general utility functions
The package is intended to stay modular, so components can be used independently or combined into larger analysis pipelines.
Documentation
Installation
Install LFKit from PyPI:
python -m pip install py-lfkit
Clone the repository and install it locally:
git clone https://github.com/cosmology-kit/lfkit.git
cd lfkit
python -m pip install -e .
Citation
If you use LFKit in your research, please cite it.
@software{sarcevic2026lfkit,
title = {LFKit: Luminosity functions and photometric corrections toolkit},
author = {Šarčević, Nikolina},
year = {2026},
version = {0.5.1.dev0+g8dbb26ee5.d20260615},
url = {https://github.com/cosmology-kit/lfkit}
}
License
MIT License © 2025 Niko Šarčević, Matthijs van der Wild, and contributors.
Metadata
Release files for py-lfkit 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_lfkit-0.6.0.tar.gz | 2.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_lfkit-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.0 MB
Release files / py_lfkit-0.6.0.tar.gz
| Download URL | py_lfkit-0.6.0.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6910f4784f2922e315b1a29bdfc5b54f9e1561a68b85bd807f04932efaa6298f
|
|
BLAKE2b-256 checksum How to use checksums |
25388df492ae18b64bdaa1f276e9a3aebdf7f7f425056a1c7de235b21c63ee41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / py_lfkit-0.6.0-py3-none-any.whl
| Download URL | py_lfkit-0.6.0-py3-none-any.whl |
|---|---|
| Size | 357.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ba732cb358d5af73e38451fa69217be56bb9b383127032f2513dc4de5f8cc3f
|
|
BLAKE2b-256 checksum How to use checksums |
788360c9eb902ad4e6ed3343a1da65c79021476023767ad93e54fc15abf87bba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|