Skip to main content

Lazy License

PyPI package version number Actions Status PyPI downloads License

Python package for adding license for source files.

Installation

$ pip install lazylicense

Usage:

Inserts Apache v2.0 snippet at the beginning of files.

Apache v2.0:

Copyright [year] [author]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Arguments

Argument Description Default
-e / --extension Extension type to enter license into. py
-f / --folder Folder to recursively scan. None (entire folder structure)
-a / --author Author to be injected into license. "Author"
-y / --year Year of license. 2021

Example

python -m lazylicense --extension py --folder src --author "Odd Gunnar Aspaas" --year 2021

Caveats

Currently only support Apache v2.0 license.

Release files for lazylicense 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lazylicense 0.1.1
File Size Uploaded
lazylicense-0.1.1.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lazylicense 0.1.1
File Interpreter ABI Platform
lazylicense-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / lazylicense-0.1.1.tar.gz

Download URL lazylicense-0.1.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
be23f514362a3960c5714837702911b69f26b71ea1fe16fc5655538d09c22615
BLAKE2b-256 checksum
How to use checksums
d84d77f4d751d71834ade9e006ce7ab27cbd5e5c969c4d19eaca21747a1a763b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

Release files / lazylicense-0.1.1-py3-none-any.whl

Download URL lazylicense-0.1.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e7df3b0ff2adf4d8ece592fe2dfc8fd92319e278f5885a3915b708249757156
BLAKE2b-256 checksum
How to use checksums
98b8e5f69a46b348af9a2c67ef161277ebaa2f149bd378747b6b65c8fa0a1834
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page