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 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'''
exclude = ["__init__.py"]

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.3.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

burocrata-0.3.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: burocrata-0.3.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for burocrata-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b63c1e7e75b926a972788c8a8b3c98d84deee9a0989f3c874597c8c03763e9b8
MD5 1f5287029c09ff89a04dcfb1091d2fb4
BLAKE2b-256 336a42bd68870fea095ee63cedf136572bb8b46c79898a959ef3df4402d34f2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for burocrata-0.3.0.tar.gz:

Publisher: pypi.yml on fatiando/burocrata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: burocrata-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for burocrata-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 710b80730e32a56c976791053f4ae9e19f304da4c64bb0d1f0e676e30579ab37
MD5 3be5871b26b0a85827fed6998930225c
BLAKE2b-256 2546ff737301f33789037c87eac307537fc6cd7ac7f305d749aa3b87cc67ee03

See more details on using hashes here.

Provenance

The following attestation bundles were made for burocrata-0.3.0-py3-none-any.whl:

Publisher: pypi.yml on fatiando/burocrata

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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