kt-legacy
Legacy import names for Keras Tuner
What it is and what it does
kt-legacy is a compatibility shim for Keras Tuner that restores the old `kerastuner` import name. The main Keras Tuner repository changed its import name to `keras_tuner`, breaking code that relied on the older `kerastuner` name. This package exists solely to bridge that gap, allowing legacy code to continue importing under the old name without rewriting imports.
It has no runtime dependencies and installs as a pure Python wheel, making it lightweight. However, the package has been abandoned, with no maintenance since its latest release on 2023-04-12. It is a narrow-purpose tool—useful only if you have existing code that cannot be updated to use the new import name.
Use it for:
- Maintaining legacy code that imports Keras Tuner as `kerastuner` without refactoring imports
- Running older hyperparameter tuning scripts that depend on the deprecated import name
- Bridging a temporary gap during migration from old to new Keras Tuner import conventions
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the deprecated `kerastuner` import name for Keras Tuner, allowing code written for older versions to continue working without modification.
Yes, but only if you have legacy code that cannot be updated to use `keras_tuner` and you need the old `kerastuner` import name to work. The package is abandoned and unmaintained, so it will not receive bug fixes or updates. For new projects, use the current Keras Tuner package with the `keras_tuner` import instead.
Install
kt-legacy on PyPI
pip
pip install kt-legacyuv
uv add kt-legacypoetry
poetry add kt-legacyInstalling kt-legacy
Before you install
No runtime dependencies and low install friction, but the package is abandoned—last release was 1220 days ago with no recent activity.
License in practice
Licensed under Apache License 2.0 (permissive), so you can use, modify, and distribute it freely with minimal restrictions.
Quickstart
pip install kt-legacy
import kerastuner
Verify before relying
- Whether this package actually re-exports Keras Tuner or merely provides an import shim
- What version(s) of Keras Tuner this package is compatible with
- Whether installing this alongside the current keras_tuner package causes conflicts
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,220 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 157,998/month — #10,739 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: kt_legacy-1.0.5-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
keras-tunerKerasTuner automates hyperparameter…
permissive · top 15,000 on PyPI
huggingfaceThis package provides a unified interface to…
permissive · top 15,000 on PyPI
tf-kerasTF-Keras is the pure-TensorFlow implementation…
permissive · top 5,000 on PyPI
Keras-PreprocessingProvides data preprocessing and augmentation…
permissive · top 5,000 on PyPI
packaging-legacyProvides access to deprecated Python packaging…
permissive · top 15,000 on PyPI
scikerasSciKeras wraps Keras models to work with…
permissive · top 15,000 on PyPI
tf-keras-nightlyTF-Keras is a pure-TensorFlow implementation of…
permissive · top 5,000 on PyPI
keras-hubKerasHub provides Keras 3 implementations of…
permissive · top 15,000 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
daytona_sdkA deprecated alias package that ships identical…
permissive · top 5,000 on PyPI