licenseheaders
Add or change license headers for all files in a directory
Decision gist · record as of 2026-08-14
Yes, if you maintain a multi-language codebase and need to add or update license headers at scale. The tool is stable, has no vulnerabilities, and low install friction. However, maintenance is dormant (no updates since 2021); if you need active support or expect breaking changes in newer Python versions, consider whether the risk of stale code matters for your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.5 or higher.
- Low friction install with a single runtime dependency (regex).
- Maintenance is dormant—last release was 2021-04-08 and no commits since 2023-10-24—but the package is marked Production/Stable and has no known vulnerabilities.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this tool freely with minimal restrictions; include the license text in your distribution.
last release 2021-04-08 (1954 days) · last repo commit 2023-10-24 · 138 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,777 downloads/mo, #14,134 on PyPI
Alternatives
Verify before relying
pip install licenseheaders
licenseheaders -t lgpl-v3 -y 2012-2014 -o "Your Company" -n "ProjectName" -d ./src- Whether predefined templates (lgpl-v3, etc.) are included or must be provided separately.
- Whether the tool can be used programmatically as a library or only via CLI.
- Support status for Python versions beyond 3.5.
What it is and what it does
licenseheaders is a command-line tool that automates the addition, update, or replacement of license headers across a codebase. It scans a directory tree for source files in known languages (Python, JavaScript, C++, Java, Go, Rust, SQL, YAML, and many others) and applies a license header template to each one, substituting variables like project name, owner, and year range. The tool supports dry-run mode to preview changes, file exclusion patterns, custom file extensions, and encoding options.
It's designed for developers who need to maintain consistent copyright and license declarations across large or multi-language projects. You provide a template (either a built-in one or a custom file), specify metadata like copyright owner and project URL, and the tool handles the rest. It can back up modified files and respects your choice of which file types to process.
Use it for
- Add MIT or GPL headers to all source files in a new open-source project in one command.
- Update copyright years across an entire codebase without manual editing.
- Enforce consistent license headers in a multi-language monorepo (Python, JavaScript, Go, etc.).
- Integrate with pre-commit hooks to ensure new files get license headers before commit.
- Replace an old license header with a new one across thousands of files.
- Add license headers to generated or templated files with custom extensions.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you maintain a multi-language codebase and need to add or update license headers at scale.
The tool is stable, has no vulnerabilities, and low install friction. However, maintenance is dormant (no updates since 2021); if you need active support or expect breaking changes in newer Python versions, consider whether the risk of stale code matters for your use case.
Install
licenseheaders on PyPI
Before you install
Low friction install with a single runtime dependency (regex). Maintenance is dormant—last release was 2021-04-08 and no commits since 2023-10-24—but the package is marked Production/Stable and has no known vulnerabilities.
Requires Python 3.5 or higher.
License in practice
MIT license (permissive) means you can use, modify, and distribute this tool freely with minimal restrictions; include the license text in your distribution.
Quickstart
pip install licenseheaders
licenseheaders -t lgpl-v3 -y 2012-2014 -o "Your Company" -n "ProjectName" -d ./src
Verify before relying
- Whether predefined templates (lgpl-v3, etc.) are included or must be provided separately.
- Whether the tool can be used programmatically as a library or only via CLI.
- Support status for Python versions beyond 3.5.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageregex |
| Maintenance | Dormant 1,954 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 82,777 / month, #14,134 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Topic :: Software DevelopmentTopic :: Software Development :: Code Generators |
Evidence: licenseheaders-0.8.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “add license headers to source files”
- licenseheadersBatch-updates or adds license headers to source files across a…
- reusereuse is a command-line tool that validates and enforces REUSE…
- scanossScanoss provides a Python library and CLI tool to fingerprint source…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also ct3 · Cheetah3 · ziglang · std-uritemplate · aws-lambda-builders · j2cli · django-sass-processor · aws-cdk.aws-batch · django-compressor · pick