A Sopel plugin to make things RAINBOW COLORED.
Project description
sopel-rainbow
A Sopel plugin to make things RAINBOW COLORED.
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip:
$ pip install sopel-rainbow
Configuring
The easiest way to configure sopel-rainbow is via Sopel's configuration
wizard—simply run sopel-plugins configure rainbow and enter the values for
which it prompts you.
order setting
By default, sopel-rainbow outputs colors in the "standard" rainbow order,
ROYGBIV, subject to receiving clients' use of the customary meanings for IRC
color codes 0-15. If set explicitly in your Sopel config file, this default
value would look like:
[rainbow]
order =
4
7
8
3
12
2
6
If you want to get creative (or cater to a community with shared color norms
that differ from the "de facto" values established by mIRC and friends)
override the order with your own list of numeric codes:
[rainbow]
order = # Americans and French can fight over this one
4
0
2
random_start setting
Starting the rainbow at the beginning of the order every time is also
default behavior. If you want the rainbow to start at a random place every
time instead, set the Boolean option random_start to yes or on:
[rainbow]
random_start = on
Dependencies
- Sopel version 7.1 or higher
- Python 3.8 or higher
Sopel 7.x should still run on Python 2.7 or older Python 3 releases, but it's not maintained any more; and neither is this plugin tested on anything older.
Changelog
The brief, illustrious history of sopel-rainbow, a silly little plugin
spawned from a tongue-in-cheek
upstream issue.
sopel-rainbow 0.2.0
Changed:
- Dropped support for Sopel<7.1 + Python<3.8
sopel.module->sopel.plugin- Removed shim around
sopel.formatting.plain()function - Updated
__future__imports - Removed UTF-8 coding comment
Added:
- Use
unicodedata2if it's installed
Fixed:
random_startsetting (broken by changes in #1)- Errors in
sopel-plugins configure rainbow- Wrong setting name (
rainbow->order) - Wrong default value type (
list[int]->list[str])
- Wrong setting name (
Meta:
- Reorganized to match current Sopel standard (mainly putting "the
actual plugin" in a
plugin.pyfile, not__init__.py) - Updated packaging to use
pyproject.tomlmetadata - Added release automation using PyPI Trusted Publishing
sopel-rainbow 0.1.1
Fixed:
- Empty input raises exception on upcoming Sopel 7.1 release (#2)
sopel-rainbow 0.1.0
Initial release, featuring:
.rainbowcommand- Configurable color order
- Optional randomized start point
- Control-code stripping on Sopel 7.1+
- Compatible with Sopel 7.0 through (planned) 8.x releases
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 sopel_rainbow-0.2.0.tar.gz.
File metadata
- Download URL: sopel_rainbow-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec78cad58cba710b045f09ba6bf7f96151ea3e2710e7574646e2b999169b7f7f
|
|
| MD5 |
aa302890825afa672b3abeaa76b420ed
|
|
| BLAKE2b-256 |
01a9206810ba3f62c79288a25c184d0db17d17e87a43ea5172e25dfcfa2c032d
|
File details
Details for the file sopel_rainbow-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sopel_rainbow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06abc3a29078aa9dab05a05abcbbfc77d4e0941498d4e8548ab551fe77af9d0f
|
|
| MD5 |
7bb30782e1d074bd85fd9f5acf718c24
|
|
| BLAKE2b-256 |
1024497b5910adad6f712967c321b17d45170605388b5f059d0d0f69a2cc87d5
|