Code Monkey home page Code Monkey logo

chalk's People

Contributors

anthonyalmarza avatar jmyles avatar livibetter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chalk's Issues

New line hell

There are too many new lines for each emitted record.

Newline should be optional

It looks like chalk misses an opportunity write something without inserting new line.
This is something very useful when you want something like colored check signs in a list of items.

Let's have an agreement on how exactly this can be parametrized and I can push a pull request.

chalk.stderr causes AttributeError in Python 3

  File "/home/justin/git/hendrix/hendrix/ux.py", line 238, in main
    chalk.red(msg % (str(e), action), pipe=chalk.stderr)
builtins.AttributeError: 'module' object has no attribute 'stderr'

Chalk should return a string, not print it

For ease of use, and API similarity with the chalk.js sybling,
the chalk methods should return a formated string, not printing it as an output.

This would also solve #8 and enable to have multicolor strings

Merge the code with RichConsole

Hi. It's a bit pity that this module uses not a very searchable name convenient only for the ones using JS with Node.

So I haven't discovered this module several years ago. So I have created an own one https://gitlab.com/KOLANICH/RichConsole . It should process the nested stuff more correctly than this one. And it has a bit different API.

But there can be only one, so I suggest to cooperate and merge our source codes into a single module.

Sync Logging

Since chalk uses the logging module, do we run the risk of blocking during the log emission?

As I understand it, only File I/O is done concurrently by default.

use os.linesep

I find using \n\r is kind of inappropriate for all OSes since on POSIX, \n is and should be all you need.

So, maybe it's better to use os.linesep. I could submit a pull request, but the order is different, os.linesep is \r\n not the same order in current code, not sure if there would be side-effect, if I just use it.

If you want, I could still open a PR.

Create colors with RGB ?

Is there a way to use new colors using RGB ?

For example, I would like to use grey, how can I do it with pychalk ?

Thanks !

Python 3.10 support

I'm trying to install this library with poetry and I'm getting this error:
AttributeError: 'PathDistribution' object has no attribute '_normalized_name'

I'm running Python 3.10.5 and pychalk 2.0.1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.