colors-core-1.0.0
توضیحات
Core color functionality.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | colors-core-1.0.0 |
| نام | colors-core |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | nekitdev |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/nekitdev/colors-core |
| آدرس اینترنتی | https://pypi.org/project/colors-core/ |
| مجوز | MIT |
# `colors-core`
[![License][License Badge]][License]
[![Version][Version Badge]][Package]
[![Downloads][Downloads Badge]][Package]
[![Discord][Discord Badge]][Discord]
[![Documentation][Documentation Badge]][Documentation]
[![Check][Check Badge]][Actions]
[![Test][Test Badge]][Actions]
[![Coverage][Coverage Badge]][Coverage]
> *Core color functionality.*
## Installing
**Python 3.7 or above is required.**
### pip
Installing the library with `pip` is quite simple:
```console
$ pip install colors-core
```
Alternatively, the library can be installed from source:
```console
$ git clone https://github.com/nekitdev/colors-core.git
$ cd colors-core
$ python -m pip install .
```
### poetry
You can add `colors-core` as a dependency with the following command:
```console
$ poetry add colors-core
```
Or by directly specifying it in the configuration like so:
```toml
[tool.poetry.dependencies]
colors-core = "^1.0.0"
```
Alternatively, you can add it directly from the source:
```toml
[tool.poetry.dependencies.colors-core]
git = "https://github.com/nekitdev/colors-core.git"
```
## Examples
```python
>>> from colors import Color
>>> color = Color(0x000000)
>>> print(color)
#000000
>>> color.to_rgb()
(0, 0, 0)
>>> color.to_rgba(0)
(0, 0, 0, 0)
>>> color.to_hsv()
(0.0, 0.0, 0.0)
```
## Documentation
You can find the documentation [here][Documentation].
## Support
If you need support with the library, you can send an [email][Email]
or refer to the official [Discord server][Discord].
## Changelog
You can find the changelog [here][Changelog].
## Security Policy
You can find the Security Policy of `colors-core` [here][Security].
## Contributing
If you are interested in contributing to `colors-core`, make sure to take a look at the
[Contributing Guide][Contributing Guide], as well as the [Code of Conduct][Code of Conduct].
## License
`colors-core` is licensed under the MIT License terms. See [License][License] for details.
[Email]: mailto:support@nekit.dev
[Discord]: https://nekit.dev/discord
[Actions]: https://github.com/nekitdev/colors-core/actions
[Changelog]: https://github.com/nekitdev/colors-core/blob/main/CHANGELOG.md
[Code of Conduct]: https://github.com/nekitdev/colors-core/blob/main/CODE_OF_CONDUCT.md
[Contributing Guide]: https://github.com/nekitdev/colors-core/blob/main/CONTRIBUTING.md
[Security]: https://github.com/nekitdev/colors-core/blob/main/SECURITY.md
[License]: https://github.com/nekitdev/colors-core/blob/main/LICENSE
[Package]: https://pypi.org/project/colors-core
[Coverage]: https://codecov.io/gh/nekitdev/colors-core
[Documentation]: https://nekitdev.github.io/colors-core
[Discord Badge]: https://img.shields.io/badge/chat-discord-5865f2
[License Badge]: https://img.shields.io/pypi/l/colors-core
[Version Badge]: https://img.shields.io/pypi/v/colors-core
[Downloads Badge]: https://img.shields.io/pypi/dm/colors-core
[Documentation Badge]: https://github.com/nekitdev/colors-core/workflows/docs/badge.svg
[Check Badge]: https://github.com/nekitdev/colors-core/workflows/check/badge.svg
[Test Badge]: https://github.com/nekitdev/colors-core/workflows/test/badge.svg
[Coverage Badge]: https://codecov.io/gh/nekitdev/colors-core/branch/main/graph/badge.svg
نیازمندی
| مقدار | نام |
|---|---|
| >=22.2.0 | attrs |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl colors-core-1.0.0:
pip install colors-core-1.0.0.whl
نصب پکیج tar.gz colors-core-1.0.0:
pip install colors-core-1.0.0.tar.gz