Skip to main content

Parses the given lines and updates the copyright string.

Say you have a copyright string in the top of some source file, like:

# Copyright (c) 2010 John Doe <john@example.com>

If you edit this file, you would like the copyright notice so reflect the current year as well, like:

# Copyright (c) 2010, 2012 John Doe <john@example.com>

This script checks for outdated copyright strings and updates them.

Ranges are detected and collapsed intelligently. If you have 2008, 2009, 2010, it will become 2008-2010. If you mix ranges and single years, this will also be picked up correctly:

2002, 2003, 2004, 2006, 2008, 2009, 2012

That list becomes:

2002-2004, 2006, 2008-2009, 2012

In order to prevent changing of copyright notices that do not carry your name, you can create an INI style configuration file at ~/.config/copyright_updater.ini which would look like that:

[name]
name = John Doe
email = john@example.com

[unicode]
replace = true

Additionally, it can replace (c) with © automatically, if you set the option in the config file.

Metadata

Release files for copyrightupdate 1.2

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

Source distribution (sdist)

Source distribution for copyrightupdate 1.2
File Size Uploaded Provenance Actions
copyrightupdate-1.2.tar.gz 3.8 kB Without provenance Details for copyrightupdate-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for copyrightupdate 1.2
File Interpreter ABI Platform Actions
copyrightupdate-1.2.linux-x86_64.tar.gz Details for copyrightupdate-1.2.linux-x86_64.tar.gz

Total release size: 9.6 kB

Release files / copyrightupdate-1.2.tar.gz

Download URL copyrightupdate-1.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ce287e69fba571c3397df602b0817a9c3895394e37eac90b6b59a1cda564675d
BLAKE2b-256 checksum
How to use checksums
234cad5bb1f8dd6578759009c4727ca7665a86f8354d4f4ea57d7b00404a6354
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / copyrightupdate-1.2.linux-x86_64.tar.gz

Download URL copyrightupdate-1.2.linux-x86_64.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0df7fb7aa9ca40e10eda7d1f73cc1fbf8466ac3d18bdc9734a903aa89fc5e376
BLAKE2b-256 checksum
How to use checksums
ce2523bf6fca24a669002a5b45d05a4605ed1e3634d4a6887d06e32d87af3184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for copyrightupdate 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files No provenance

1.1.1

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