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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ba350d1d113eef06e68bc0a43135dd2093fbf4c795fe5fa98f194fda8345305
|
|
| MD5 |
cb01a0a1222afdf82f410453554ed68a
|
|
| BLAKE2b-256 |
2458590be7d3b722aa82ff0edef42ecf24caceb774eca1e747261b5eafcbe53d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
carbon_txt_check_online-0.0.1.tar.gz -
Subject digest:
2ba350d1d113eef06e68bc0a43135dd2093fbf4c795fe5fa98f194fda8345305 - Sigstore transparency entry: 166043754
- Sigstore integration time:
-
Permalink:
thegreenwebfoundation/carbon-txt-check-online@614691cbd3f21f1bc9653f474a17c8eb33681bc4 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/thegreenwebfoundation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@614691cbd3f21f1bc9653f474a17c8eb33681bc4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file carbon_txt_check_online-0.0.1-py3-none-any.whl.
File metadata
- Download URL: carbon_txt_check_online-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cb91cc16fb7de833ab714fa2380ff220b3a1cf2df43caca807aa65ebc34fbe1
|
|
| MD5 |
250596893fa9b81937faf0db4c789154
|
|
| BLAKE2b-256 |
8685ea189620b78d88446742a8d0b68574ea5e3b58980fddc8671329c8503bf8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
carbon_txt_check_online-0.0.1-py3-none-any.whl -
Subject digest:
6cb91cc16fb7de833ab714fa2380ff220b3a1cf2df43caca807aa65ebc34fbe1 - Sigstore transparency entry: 166043755
- Sigstore integration time:
-
Permalink:
thegreenwebfoundation/carbon-txt-check-online@614691cbd3f21f1bc9653f474a17c8eb33681bc4 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/thegreenwebfoundation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@614691cbd3f21f1bc9653f474a17c8eb33681bc4 -
Trigger Event:
push
-
Statement type: