Skip to main content

pretty text for command line

Project description

palett

pretty text for command line

Usage

from palett.fluo_vector import fluo_vector
from palett.presets import FRESH, PLANET

vectorCollection = [
    [],
    ['Xx', 'Yy', 'Zz', 'e', 'd', 'c', '-', '1', 2, 3],
    [1, 1, 2, 3, 5, []],
    ['a', 'b', 'c', 'd', 'e'],
    ['beijing', 'shanghai', 'wuhan', 'xiamen', 'changsha']
]


def test():
    COMMA_SPACE = ', '
    for vec in vectorCollection:
        fluoed = fluo_vector(vec, (FRESH, PLANET))
        print(f'[{COMMA_SPACE.join(fluoed)}]')


test()

Project details


Download files

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

Source Distribution

palett-0.0.1.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

palett-0.0.1-py3-none-any.whl (30.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page