Skip to main content

python3-cyberfusion-carbon-txt-server

carbon-txt-server serves carbon.txt files.

Install

PyPI

Run the following command to install the package from PyPI:

pip3 install python3-cyberfusion-carbon-txt-server

Debian

Run the following commands to build a Debian package:

mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc

Configure

App

The following environment variables may be specified:

; The app name is used in several places for this app to identify itself (string)
; Default: carbon-txt-server
APP_NAME=

; The server will bind to this host (string)
; Default: ::1
LISTEN_HOST=

; The server will listen to this port (integer)
; Default: 8080
LISTEN_PORT=

; IP addresses of proxies that are trusted with proxy headers (comma separated list of strings)
; Default: ::1
TRUSTED_PROXY_ADDRESSES=

; The path to your JSON database (string)
; Default: none
DATABASE_PATH=

Only DATABASE_PATH is required to be set. We recommend setting it to /var/lib/carbon-txt-server.json.

JSON Database

Find an example JSON database in carbon-txt-server.json.

Properties:

  • domains. List of domains that this carbon.txt is served for.
  • last_updated. Date the carbon.txt was last updated.
  • org. Organisation block.
    • disclosures. List of disclosures. Each disclosure has:
      • doc_type. One of web-page, annual-report, sustainability-page, certificate, csrd-report, ai-model-card, other.
      • url. URL of the disclosure document.
      • valid_until (optional). Date the disclosure is valid until.
      • title (optional). Title of the disclosure document.
  • upstream. Upstream providers block.
    • services. List of upstream services. Each service has:
      • domain. Domain of the upstream service.
      • service_type. Service type as a string, or list of strings.

Find information about these properties on https://carbontxt.org/syntax.

Usage

Manually

bin/carbon-txt-server

systemd

systemctl start carbon-txt-server.service

SSL

Use a proxy that terminates SSL. E.g. HAProxy.

Metadata

Release files for python3-cyberfusion-carbon-txt-server 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python3-cyberfusion-carbon-txt-server 1.1
File Size Uploaded Provenance Actions
python3_cyberfusion_carbon_txt_server-1.1.tar.gz 7.5 kB Without provenance Details for python3_cyberfusion_carbon_txt_server-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python3-cyberfusion-carbon-txt-server 1.1
File Interpreter ABI Platform Actions
python3_cyberfusion_carbon_txt_server-1.1-py3-none-any.whl Python 3 none any Details for python3_cyberfusion_carbon_txt_server-1.1-py3-none-any.whl

Total release size: 16.8 kB

Release files / python3_cyberfusion_carbon_txt_server-1.1.tar.gz

Download URL python3_cyberfusion_carbon_txt_server-1.1.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1019bbcf4fab2021c0eaa4528b038eb9d9b354e167f66d1bbe118cd744d40d7b
BLAKE2b-256 checksum
How to use checksums
59f52697df8c78b243d7ec7c886516a32fa2779c6e1b5d73e3edf32a96e1b245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / python3_cyberfusion_carbon_txt_server-1.1-py3-none-any.whl

Download URL python3_cyberfusion_carbon_txt_server-1.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8e90804c3477c7b58de13113170b1f91e2d62cd48d88393e1ade1c809d035fa
BLAKE2b-256 checksum
How to use checksums
3f89d7ac51ceaa1ad2654e645269ad37bd8fdbce265ae50f5e417c7cb318b4d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Security for python3-cyberfusion-carbon-txt-server 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page