colorboy-1.0.3


توضیحات

Easily add color to your strings
ویژگی مقدار
سیستم عامل -
نام فایل colorboy-1.0.3
نام colorboy
نسخه کتابخانه 1.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده kasper.space
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/probablykasper/colorboy-py
آدرس اینترنتی https://pypi.org/project/colorboy/
مجوز -
# colorboy Easily add color to your strings ## Installation ``` pip install colorboy ``` ## Usage ```python import colorboy as cb print(cb.cyan('Globgogabgalab')) # import specific colors, bg_colors and styles from colorboy import white_bg, black print(white_bg(black('Pog'))) # import everything from colorboy import * print(green('Mayonnaise')) from colorboy.colors import * # import all colors print(red('EDEN')) from colorboy.bg_colors import * # import all bg_colors print(black_bg('Stephen')) from colorboy.styles import * # import all styles print(bright('Crywolf')) ``` ## Colors These are all the color functions available through colorboy: ```python # colors - available by importing colorboy or colorboy.colors black red green yellow blue magenta cyan white # bg_colors - available by importing colorboy or colorboy.bg_colors black_bg red_bg green_bg yellow_bg blue_bg magenta_bg cyan_bg white_bg # styles - available by importing colorboy or colorboy.styles dim bright ``` ## Dev Instructions ### Get started 1. Install Python (Python 3.7 works, probably other versions too) 2. Install [Poetry](https://poetry.eustace.io). Poetry is used to manage dependencies, the virtual environment and publishing to PyPI, so it's worth learning 3. Run `poetry install` to install Python package dependencies I recommend running `poetry config virtualenvs.in-project true`, which makes Poetry store your Python virtual environment inside the project folder. Additionally, it lets VSCode's Python extension detect the virtual environment if you set the `python.pythonPath` setting to `${workspaceFolder}/.venv/bin/python` in your settings. ### Running To test if things work, you can run the following command to open the Python REPL. Then you can write Python, such as the usage examples: ``` poetry run python ``` ### Releasing a new version 1. Consider updating the lockfile by running `poetry update`, then check if thing still work 2. Bump the version number: ``` poetry version <version> ``` 3. Update `CHANGELOG.md` 4. Build: ``` poetry build ``` 5. Commit and create git tag 6. Create GitHub release with release notes and attach the build files 7. Publish to PyPi: ``` poetry publish ```


نحوه نصب


نصب پکیج whl colorboy-1.0.3:

    pip install colorboy-1.0.3.whl


نصب پکیج tar.gz colorboy-1.0.3:

    pip install colorboy-1.0.3.tar.gz