Skip to main content

A carbon.txt plugin to download linked disclosures in a carbon.txt file

Project description

Carbon-txt-download-disclosures

A plugin for the carbon.txt validator that downloads any linked documents in a carbon.txt file to the local file system.

Installation

Install this plugin in the same environment as the carbon.txt validator.

The validator is listed as dependency, so if you install this package and the validator isn't already installed, you will also download the carbon.txt validator CLI tool as well.

Using pip

Make sure you are in your chosen virtual environment, then run:

pip install carbon-txt-download-disclosures

Using uv

Inside a project with a pyproject.toml file, run the following:

uv add carbon-txt-download-disclosures

Usage

By default, the carbon-txt-download-disclosures plugin is activated whenever you run the carbon.txt validator:

carbon-txt validate file https://some-domain.com/carbon.txt

You can then run the carbon.txt CLI command

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd carbon-txt-download-disclosures
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

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

carbon_txt_download_disclosures-0.0.1.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file carbon_txt_download_disclosures-0.0.1.tar.gz.

File metadata

File hashes

Hashes for carbon_txt_download_disclosures-0.0.1.tar.gz
Algorithm Hash digest
SHA256 842d2b8443f88c286ccb8515c2d7a60846e52e24ea898d3ed59d683976b37c8f
MD5 3fd8c4de4fc90ba2411be04b9bccc34d
BLAKE2b-256 9cd8c006335e665dee6446ed82ca16bd39117d8ee9b670ef381f5b3a339b7aa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for carbon_txt_download_disclosures-0.0.1.tar.gz:

Publisher: release.yml on thegreenwebfoundation/carbon-txt-download-disclosures

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

File details

Details for the file carbon_txt_download_disclosures-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for carbon_txt_download_disclosures-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72801ed8c20ddb716e962514bcdf3cdf2c78ebd663252d97e157e3bda75c0024
MD5 320f9180de7eed51c04961e795526f1b
BLAKE2b-256 1113eb7bc57e15af1469d5648b37e662ce559b8c350ed36470c03fe7a3c00792

See more details on using hashes here.

Provenance

The following attestation bundles were made for carbon_txt_download_disclosures-0.0.1-py3-none-any.whl:

Publisher: release.yml on thegreenwebfoundation/carbon-txt-download-disclosures

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