Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the README #2

Open
shlecturer opened this issue Nov 23, 2021 · 5 comments
Open

Fix the README #2

shlecturer opened this issue Nov 23, 2021 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@shlecturer
Copy link
Contributor

The README can do with a bit of TLC.

An example that shows how to use it, for example, would be nice.

Great first issue as it does not involve any coding.

@shlecturer shlecturer added the good first issue Good for newcomers label Nov 23, 2021
@Sandyman Sandyman added the documentation Improvements or additions to documentation label Nov 23, 2021
@byw2
Copy link

byw2 commented Nov 24, 2021

can i please be assigned to this? thanks!

also, i am new to contributing to open source projects: can you please explain how to use this module/execute the scripts?

@Sandyman
Copy link
Contributor

Well, this is the source code for a Python "package". It has been published on the Python Package Inventory, or PyPi. See this link: https://pypi.org/project/colourise/

Packages are usually installed with pip install colourise. You can also install local packages from a folder with (I think) pip install -e <path to folder>. This is useful for testing.

The setup script is used to describe what the package is about. Have a look at that too.

The general Python documentation has excellent information about creating packages. Have a look here: https://packaging.python.org/tutorials/packaging-projects/

@aphive
Copy link

aphive commented Nov 26, 2021

I think this would be a great starting point. @byw2, feel free to use it as a foundation if you'd like.

Colourise

Colourise allows you to convert color formats, for example converts HSL values (hue, saturation, and lightness) to RGB values (Red, Green, Blue) as well as calculating complementary colors.

How to install

Installing Colourise is as simple as running the following command:

Requires: Python >=3.7

  • For Mac or Linux:
python3 -m pip install --upgrade colourise
  • For Windows:
py -m pip install --upgrade colourise

Note: The above commands also allow you to upgrade when a new version is released.

What can Colourise do?

  • Convert any HSL value to RGB.
  • Convert RGB colours to HSL.
  • Convert HSL to RGB colours. This function assumes the input has been sanitised and does no validation on the input parameters.
  • Convert normalised RGB colours to HSL. This function assumes the input has been sanitised and does no validation on the input parameters.
  • Calculate the complement of a given value as HSL values.
  • Convert an RGB colours to its complementary colour.

Reference

Contributing

If you want to contribute, have a look at the Issues. Some issues are labeled 'Good first issue'. They are the low-hanging fruit.

If you create a PR, also add your GitHub username to the list of contributors in the file contributors.txt. It's a bit of recognition for your work.

@aphive
Copy link

aphive commented Nov 26, 2021

@Sandyman, are there any requirements to get this up and running? Would be nice to get a requirements file generated so it can be used during install/upgrade.

@Sandyman
Copy link
Contributor

Sandyman commented Dec 1, 2021

@Sandyman, are there any requirements to get this up and running? Would be nice to get a requirements file generated so it can be used during install/upgrade.

There are no dependencies for this package, which is why it does not need a requirements.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants