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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file burocrata-0.2.0.tar.gz
.
File metadata
- Download URL: burocrata-0.2.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75118b093c7373dbf67343afa35e8fb748200d5fd103ef972e71fb4d285ce22f |
|
MD5 | 744158a63aff1bbe7b5a46302377896d |
|
BLAKE2b-256 | 6dee0e04573044210f766049006dfe383ce98f1385a79b029cc58097381782d1 |
File details
Details for the file burocrata-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: burocrata-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b33a194a06fe88fbcb68eed76c4ff7cb562be39730c5f00417e3f03fd53513e |
|
MD5 | fef07f36572911db2b56743a60fdcf06 |
|
BLAKE2b-256 | 829f2500ef06d21dd18711555bbdf1c658fb5beed7b6ca21a0882310794e2ed2 |