skillfed

kt-legacy

Legacy import names for Keras Tuner

kt-legacy v1.0.5 158.0K downloads/30d#10,739 on PyPI2
Permissive license Apache License 2.0 Abandoned released

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-legacy

uv

uv add kt-legacy

poetry

poetry add kt-legacy

Installing 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

keras tuner legacy importkerastuner backwards compatibilitydeprecated keras tuner namekeras tuner import aliaslegacy kerastuner support
compatibility-shimdeprecated

More Application Frameworks packages