Skip to main content

A demonstration carbon.txt plugin that checks whether linked documents in a carbon.txt file are still online.

Project description

carbon-txt-check-online

A demo plugin for the carbon.txt validator that checks that files linked in carbon.txt files are still online.

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-check-online

Using uv

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

uv add carbon-txt-check-online

Usage

By default, the carbon-txt-check-online 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-check-online
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

You can also use uv, to avoid faffing around with virtual environments:

# run uv as above
uv run carbon-txt validate file https://some-domain.com/carbon.txt

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_check_online-0.0.1.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

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

carbon_txt_check_online-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: carbon_txt_check_online-0.0.1.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for carbon_txt_check_online-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2ba350d1d113eef06e68bc0a43135dd2093fbf4c795fe5fa98f194fda8345305
MD5 cb01a0a1222afdf82f410453554ed68a
BLAKE2b-256 2458590be7d3b722aa82ff0edef42ecf24caceb774eca1e747261b5eafcbe53d

See more details on using hashes here.

Provenance

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

Publisher: release.yml on thegreenwebfoundation/carbon-txt-check-online

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_check_online-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for carbon_txt_check_online-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cb91cc16fb7de833ab714fa2380ff220b3a1cf2df43caca807aa65ebc34fbe1
MD5 250596893fa9b81937faf0db4c789154
BLAKE2b-256 8685ea189620b78d88446742a8d0b68574ea5e3b58980fddc8671329c8503bf8

See more details on using hashes here.

Provenance

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

Publisher: release.yml on thegreenwebfoundation/carbon-txt-check-online

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