Coder Social home page Coder Social logo

kennyoliver / vividhues Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 4.0 980 KB

Super light Python string formatter! :rainbow: :package:

Home Page: https://pypi.org/project/VividHues/

License: GNU Affero General Public License v3.0

Python 63.00% Shell 37.00%
module package vividhues python-console replit python pypi-package color-formatting colorama open-source

vividhues's Introduction




Hi, I'm Kenny — an A-Level CompSci student.


My OSS Projects



vividhues's People

Contributors

esouidi avatar github-actions[bot] avatar imgbotapp avatar kennyoliver avatar matthewtheolive avatar squashedavocados avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vividhues's Issues

Populate CONTRIBUTING.md

Mention that setup.py can't be modified, otherwise the PR will get rejected (or I'll remove the modification).

Use Random to get Colors

Use random to:

  • Choose a random color
  • Print a string in many random colors

Another feature to add:

  • Iterate over characters for rainbow effect

Additionally:

  • Add relevant info & code to the README.md documentation

New Magic Function Ideas

Idea 1 - Pattern

  • Clr.pattern(*args): should allow any number of Clr codes to be passed through, and looped in a pattern (similar to Clr.rainbow(str))
I should be able to do Clr.pattern(Clr.BLACK, Clr.WHITE) and get a black and white string

Idea 2 - Mirror

  • Clr.mirror(str): using a dictionary, swap each letter in a string with an upside version

Idea 3 - Reverse

  • Clr.reverse(str): basically Clr.mirror() except a reverse string is returned using indexing [::-1]
Here's the characters:

abcdefghijklmnopqrstuvwxyz
0123456789
👇
68ㄥ9ϛㄣƐᄅƖ0
zʎxʍʌnʇsɹbdouɯlʞɾᴉɥƃɟǝpɔqɐ


You need to:

  • Add these functions to the README documentation, with appropriate descriptions

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.