Skip to main content

Check and insert copyright and license notices into source code

Project description

Burocrata: Check and insert copyright and license notices into source code

Part of the Fatiando a Terra project.

Latest release on PyPI Latest release on conda-forge Test coverage report Compatible Python versions

About

Burocrata is a small command-line program that can check the existence of copyright and license notices in source code files and add them when they are missing.

Installing

Burocrata is available from PyPI:

python -m pip install burocrata

and conda-forge:

conda install burocrata -c conda-forge

Using

Check that very .py file in a directory has a license notice:

$ burocrata --check --extension=py source_folder

Removing the --check option will make Burocrata add the license notice to the files that don't have them:

$ burocrata --extension=py source_folder

The license and copyright notice can be configured in a pyproject.toml file located in the directory where burocrata is run:

$ cat pyproject.toml
[tool.burocrata]
notice = '''
# Copyright (c) YYYY Name of Developer.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause'''

See a full list of options:

$ burocrata --help

Dependencies

We use the following dependencies (see pyproject.toml for specific version constraints):

  • click for building the command-line interface.
  • tomli to parse the TOML configuration files.
  • pathspec to parse .gitignore files.

Contacting Us

Find out more about how to reach us at fatiando.org/contact

Contributing

Code of conduct

Please note that this project is released with a Code of Conduct. By participating in this project you agree to abide by its terms.

Contributing Guidelines

Please read our Contributing Guide to see how you can help and give feedback.

License

Burocrata is free and open-source software distributed under the MIT License.

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

burocrata-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

burocrata-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file burocrata-0.1.1.tar.gz.

File metadata

  • Download URL: burocrata-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for burocrata-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f0672c16caa3a8ca3f5e0a35bd20c04b4a2060e515f21db48ae074d4abba02e
MD5 c147cc2d187d57665af6d6455f2d3bc8
BLAKE2b-256 2498cb996f98e8a44b80a98d7945a969b07238d8429a9f4b2e220cbea1f0f8d9

See more details on using hashes here.

File details

Details for the file burocrata-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: burocrata-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for burocrata-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5ddfc30b4d234a2e355a6b25454675b3c2654d591face2e92d3bf0d1a803de
MD5 f35500d4272df886cd5da15d84174391
BLAKE2b-256 548076c5fad77e8666c4984082ad070bbd91bb5e363dff16050820c112b9c05c

See more details on using hashes here.

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