lifehacks.colour 
Structure
📦 lifehacks.colour
├── Colour
├── hsla
├── rgba
│
└── 📦 palette
├── Apple
└── Mariana
Installation
pip install lifehacks.colour
Usage
Colour abstract class
Abstract base class, not instantiable.
Can be used in type hinting for hsla and rgba instances
def print_hex(colour:Colour) -> None:
print(colour.to_hex())
print_hex(rgba(15, 15, 15)) #0f0f0f
print_hex(hsla( 0, 0, 6)) #0f0f0f
hsla
- optional
h: hue[0, 359] - optional
s: saturation[0, 100]or[0.0, 1.0] - optional
l: lightness[0, 100]or[0.0, 1.0] - optional
a: alpha (opacity)[0, 100]or[0.0, 1.0]
rgba
- optional
r: red[0, 255] - optional
g: green[0, 255] - optional
b: blue[0, 255] - optional
a: alpha[0, 100]or[0.0, 1.0]
Mariana palette
Remember to import from lifehacks.colour.palette.
This palette contains the colours from Mariana theme in Sublime Text.
from lifhacks.colour.palette import Mariana
for name, colour in Mariana:
content = content.replace(name, colour.to_hex())
Contributors
- Simon - mightbesimon
- you?
Metadata
Release files for lifehacks.colour 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 |
|---|---|---|---|---|
| lifehacks.colour-1.2.0.tar.gz | 5.3 kB | Without provenance | Details for lifehacks.colour-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lifehacks.colour-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for lifehacks.colour-1.2.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / lifehacks.colour-1.2.0.tar.gz
| Download URL | lifehacks.colour-1.2.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
903b591e6c80c069573135320116a50348f6c23b4af1797eea7a20612df68f94
|
|
BLAKE2b-256 checksum How to use checksums |
99c9a091e2eba063c57ab2009501556d7d2a708a47d13fc6f99b3d90cec502ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / lifehacks.colour-1.2.0-py3-none-any.whl
| Download URL | lifehacks.colour-1.2.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c6cdc2d818eba70474f1bd0b8b8500ca33b70cde5ff5556fb7ab8570e9b9384
|
|
BLAKE2b-256 checksum How to use checksums |
4407b9090ae5071ae75b371911f2b761b5e19e55634993ee0af7968d4839ed7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for lifehacks.colour 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.