Skip to content
Creative Commons badges, license Buttons, etc.
Python HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.


Creative Commons badges, license Buttons, etc. (

⚠️ Consolidation/Update in progress. This repository is in a state of flux.

Code of Conduct

The Creative Commons team is committed to fostering a welcoming community. This project and all other Creative Commons open source projects are governed by our Code of Conduct. Please report unacceptable behavior to per our reporting guidelines.


We welcome contributions for bug fixes, enhancement and documentation. Please follow while contributing.

This is a script to generate Creative Commons icon badges in png format in a variety of color schemes. These icons can then be served by a web server. It is located at scripts/


  1. Assuming the repository is on Debian

  2. Install Python 3 and required Python 3 packages:

    sudo apt-get install gir1.2-pango-1.0 python3-gi-cairo
  3. Install CC Icons font

    mkdir -p ~/.fonts
    ln -sf ${PWD}/www/cc-icons.ttf ~/.fonts/


Execute with Python 3:

python3 scripts/

This will generate the icons in the directory www/i directory.


  • Style/Syntax
    • Github Actions check the style and syntax with black and flake8. Run the following commands before submitting a pull request:
      • Reformat with black using a maxiumum of 79 charaters per line:
        black -l 79 ./scripts/
      • Check syntax with flake8:
        flake8 ./scripts/
  • Dependencies


Code / Scripts

Icons / Images

You can’t perform that action at this time.