IRC codes
Usage:
Text format:
from irccodes import *
# Functional method:
bold(str)
italic(str)
strikethrough(str)
underline(str)
monospace(str)
reset(str)
# Concatenation method:
symbols.BOLD + str
symbols.ITALIC + str
symbols.STRIKETHROUGH + str
symbols.underline + str
symbols.MONOSPACE + str
symbols.RESET + str
Text colors:
colored(str, text_color, background_color)
symbols.COLOR + symbols.<COLOR NAME> + ',' + symbols.<BACKGROUND COLOR NAME> + str
Examples:
colored(text, 'blue')
colored(text, 'light green', 'grey')
bold(colored('first', 'white') + ' ' + colored('second', 'grey'))
symbols.COLOR + symbols.BLUE + ',' + symbols.LIGHTRED + text
text + symbols.RESET
reset(text)
Supported colors:
| Index | Color | RGB |
|---|---|---|
| 0 | White | (255,255,255) |
| 1 | Black | (0,0,0) |
| 2 | Blue | (0,0,127) |
| 3 | Green | (0,147,0) |
| 4 | Light Red | (255,0,0) |
| 5 | Brown | (127,0,0) |
| 6 | Purple | (156,0,156) |
| 7 | Orange | (252,127,0) |
| 8 | Yellow | (255,255,0) |
| 9 | Light Green | (0,252,0) |
| 10 | Cyan | (0,147,147) |
| 11 | Light Cyan | (0,255,255) |
| 12 | Light Blue | (0,0,252) |
| 13 | Pink | (255,0,255) |
| 14 | Grey | (127,127,127) |
| 15 | Light Grey | (210,210,210) |
More detailed:
https://www.mirc.com/colors.html
https://stackoverflow.com/questions/1391610/embed-mirc-color-codes-into-a-c-sharp-literal
Metadata
Release files for irccodes 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| irccodes-1.2.0.tar.gz | 2.6 kB | Without provenance | Details for irccodes-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| irccodes-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for irccodes-1.2.0-py3-none-any.whl |
Total release size: 5.8 kB
Release files / irccodes-1.2.0.tar.gz
| Download URL | irccodes-1.2.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f140b3d1b08eda798060f8156d84b410d75b1d1e538b05baf99f0cc302c93743
|
|
BLAKE2b-256 checksum How to use checksums |
a62b2e81282d5cf7653d442d43b55f3e261d444793ce58b4aaf0bccae59368aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / irccodes-1.2.0-py3-none-any.whl
| Download URL | irccodes-1.2.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0a4862ffd7622fe9f0644c607436a00891ad6c8916f6b85b58118e42a670500
|
|
BLAKE2b-256 checksum How to use checksums |
72cf27b780c34533d671c81b19aab766919aa52f9aa30321c6fd20d943435b1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for irccodes 1.2.0
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.