Skip to main content

Create, read, update, delete a copyright block in Python source code.

Project description

snlcopyright

Create, read, update, delete a copyright block in Python source code.

python os license Code style: black

tests codecov

Install

pip install snlcopyright

Configure

Optional: Configure your local for development.

Use

copyright <path>

Examples:

copyright .  # process cwd and children

copyright ~/jdoe/foo  # process foo and children 

Command line entry points to the module are available via the commands command

commands

------------
snlcopyright
------------
This is the command line interface help for Sandia National Laboratories snlcopyright Python module.
Available commands:
commands           (this command)
copyright          Appends contents of `copyright.txt` to .py files in the cwd, recursively.
copyright-delete   Deletes contents of `copyright.txt` from .py files in cwd, recursively.
copyright-info     Describes the installation details.
copyright-show     Echos the `copyright.txt` contents to the terminal.
copyright-status   Shows whether or not the copyright block was found in a .py file in the cwd, recursively.
copyright-version  Prints the semantic verison of the current installation.

Contact

License

Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International, Inc., for the U.S. Department of Energy's National Nuclear Security Administration under contract DE-NA-0003525.

Copyright

Copyright 2023 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software.

Notice

For five (5) years from the United States Government is granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable worldwide license in this data to reproduce, prepare derivative works, and perform publicly and display publicly, by or on behalf of the Government. There is provision for the possible extension of the term of this license. Subsequent to that period or any extension granted, the United States Government is granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable worldwide license in this data to reproduce, prepare derivative works, distribute copies to the public, perform publicly and display publicly, and to permit others to do so. The specific term of the license can be identified by inquiry made to National Technology and Engineering Solutions of Sandia, LLC or DOE.

NEITHER THE UNITED STATES GOVERNMENT, NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR NATIONAL TECHNOLOGY AND ENGINEERING SOLUTIONS OF SANDIA, LLC, NOR ANY OF THEIR EMPLOYEES, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.

Any licensee of this software has the obligation and responsibility to abide by the applicable export control laws, regulations, and general prohibitions relating to the export of technical data. Failure to obtain an export control license or other authority from the Government may result in criminal liability under U.S. laws.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snlcopyright-0.0.12.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

snlcopyright-0.0.12-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page