Skip to main content

library to convert Xonotic color strings to various other formats

Project description

# python-dpcolors

[![Build Status](](

Python library for converting DarkPlaces color strings to various other formats

Supports the following conversions

* dp -> irc
* dp -> ansi 8 bit
* dp -> ansi 24 bit
* irc -> dp
* irc -> ansi 8 bit
* irc -> ansi 24 bit

# Installation

pip install python-dpcolors

# Example usage

from dpcolors import ColorString

cs = ColorString.from_dp('^3hello')

cs = ColorString.from_irc('\x0305hello')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-dpcolors, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size python_dpcolors-0.1.1-py3-none-any.whl (9.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-dpcolors-0.1.1.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page