ircstyle
ircstyle is a Python 3.7+ package for applying and stripping formatting from IRC messages. Its primary purpose is for use with Python based IRC bots.
Links
| Caption | Link |
|---|---|
| Repo | https://github.com/impredicative/ircstyle/ |
| Changelog | https://github.com/impredicative/ircstyle/releases |
| Package | https://pypi.org/project/ircstyle/ |
| Donation | BTC / LTC / ETH / DOGE |
Usage
This package provides two primary methods, style and unstyle.
Style
This method is used to style text with IRC attribute and / or color codes.
import ircstyle
ircstyle.style('Hi there', fg='blue', bg='white', bold=True, italics=True, underline=True, reset=True)
'\x0302,00\x02\x1d\x1fHi there\x0f'
ircstyle.style('Hello World!', fg='green', reset=False)
'\x0303Hello World!'
ircstyle.style('ATTENTION!', bold=True, underline=True)
'\x02\x1fATTENTION!\x0f'
ircstyle.style('Something', bg=ircstyle.colors.teal)
'\x0301,10Something\x0f'
Unstyle
This method is used to strip all formatting control codes from IRC messages so that you can safely use the contents outside of IRC in a printable format.
import ircstyle
ircstyle.unstyle('\x02message\x0f')
'message'
ircstyle.unstyle('message')
'message'
Metadata
Release files for ircstyle 0.1.5
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 |
|---|---|---|---|---|
| ircstyle-0.1.5.tar.gz | 5.3 kB | Without provenance | Details for ircstyle-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ircstyle-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for ircstyle-0.1.5-py3-none-any.whl |
Total release size: 10.3 kB
Release files / ircstyle-0.1.5.tar.gz
| Download URL | ircstyle-0.1.5.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c618ae7b5c0e6e60a0d89bd0d6f44e8018bd7d9b830984f0e38c0da361e0825
|
|
BLAKE2b-256 checksum How to use checksums |
ad3d9836dc350fc5068c13ee110f2a35a7f75855a5544d0d56a4025a03731869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Release files / ircstyle-0.1.5-py3-none-any.whl
| Download URL | ircstyle-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f216fa11f03a3c5dfe92649832f4b32f7549dc9ca95e548c08c30a1411f743b0
|
|
BLAKE2b-256 checksum How to use checksums |
72de4194afd774e0d381317c1b3c52d91a370330dd30a7d00505534422ad1d1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
|
Security for ircstyle 0.1.5
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.