# `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.8 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.1.1"
```
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/chat
[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/discord/728012506899021874
[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
Raw data
{
"_id": null,
"home_page": "https://github.com/nekitdev/colors-core",
"name": "colors-core",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "python,color",
"author": "nekitdev",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/73/dd/e69306d1d840f0b6e0c6b49758ee944484c638bdb1b159e2b1e284ad3e4f/colors_core-1.1.1.tar.gz",
"platform": null,
"description": "# `colors-core`\n\n[![License][License Badge]][License]\n[![Version][Version Badge]][Package]\n[![Downloads][Downloads Badge]][Package]\n[![Discord][Discord Badge]][Discord]\n\n[![Documentation][Documentation Badge]][Documentation]\n[![Check][Check Badge]][Actions]\n[![Test][Test Badge]][Actions]\n[![Coverage][Coverage Badge]][Coverage]\n\n> *Core color functionality.*\n\n## Installing\n\n**Python 3.8 or above is required.**\n\n### pip\n\nInstalling the library with `pip` is quite simple:\n\n```console\n$ pip install colors-core\n```\n\nAlternatively, the library can be installed from source:\n\n```console\n$ git clone https://github.com/nekitdev/colors-core.git\n$ cd colors-core\n$ python -m pip install .\n```\n\n### poetry\n\nYou can add `colors-core` as a dependency with the following command:\n\n```console\n$ poetry add colors-core\n```\n\nOr by directly specifying it in the configuration like so:\n\n```toml\n[tool.poetry.dependencies]\ncolors-core = \"^1.1.1\"\n```\n\nAlternatively, you can add it directly from the source:\n\n```toml\n[tool.poetry.dependencies.colors-core]\ngit = \"https://github.com/nekitdev/colors-core.git\"\n```\n\n## Examples\n\n```python\n>>> from colors import Color\n>>> color = Color(0x000000)\n>>> print(color)\n#000000\n>>> color.to_rgb()\n(0, 0, 0)\n>>> color.to_rgba(0)\n(0, 0, 0, 0)\n>>> color.to_hsv()\n(0.0, 0.0, 0.0)\n```\n\n## Documentation\n\nYou can find the documentation [here][Documentation].\n\n## Support\n\nIf you need support with the library, you can send an [email][Email]\nor refer to the official [Discord server][Discord].\n\n## Changelog\n\nYou can find the changelog [here][Changelog].\n\n## Security Policy\n\nYou can find the Security Policy of `colors-core` [here][Security].\n\n## Contributing\n\nIf you are interested in contributing to `colors-core`, make sure to take a look at the\n[Contributing Guide][Contributing Guide], as well as the [Code of Conduct][Code of Conduct].\n\n## License\n\n`colors-core` is licensed under the MIT License terms. See [License][License] for details.\n\n[Email]: mailto:support@nekit.dev\n\n[Discord]: https://nekit.dev/chat\n\n[Actions]: https://github.com/nekitdev/colors-core/actions\n\n[Changelog]: https://github.com/nekitdev/colors-core/blob/main/CHANGELOG.md\n[Code of Conduct]: https://github.com/nekitdev/colors-core/blob/main/CODE_OF_CONDUCT.md\n[Contributing Guide]: https://github.com/nekitdev/colors-core/blob/main/CONTRIBUTING.md\n[Security]: https://github.com/nekitdev/colors-core/blob/main/SECURITY.md\n\n[License]: https://github.com/nekitdev/colors-core/blob/main/LICENSE\n\n[Package]: https://pypi.org/project/colors-core\n[Coverage]: https://codecov.io/gh/nekitdev/colors-core\n[Documentation]: https://nekitdev.github.io/colors-core\n\n[Discord Badge]: https://img.shields.io/discord/728012506899021874\n[License Badge]: https://img.shields.io/pypi/l/colors-core\n[Version Badge]: https://img.shields.io/pypi/v/colors-core\n[Downloads Badge]: https://img.shields.io/pypi/dm/colors-core\n\n[Documentation Badge]: https://github.com/nekitdev/colors-core/workflows/docs/badge.svg\n[Check Badge]: https://github.com/nekitdev/colors-core/workflows/check/badge.svg\n[Test Badge]: https://github.com/nekitdev/colors-core/workflows/test/badge.svg\n[Coverage Badge]: https://codecov.io/gh/nekitdev/colors-core/branch/main/graph/badge.svg\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Core color functionality.",
"version": "1.1.1",
"project_urls": {
"Chat": "https://nekit.dev/chat",
"Documentation": "https://nekitdev.github.io/colors-core",
"Funding": "https://nekit.dev/funding",
"Homepage": "https://github.com/nekitdev/colors-core",
"Issues": "https://github.com/nekitdev/colors-core/issues",
"Repository": "https://github.com/nekitdev/colors-core"
},
"split_keywords": [
"python",
"color"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e6f15644df764b872ea813fce15b5f992cecdcedb515a47b7956b6e2fb42f97c",
"md5": "7f7591b353c8ac7c3847b37e42d8b3c1",
"sha256": "88aa3dc00be9f5737ee8c99dc7c8712fb788f816d650c72250aca62af8bd4b70"
},
"downloads": -1,
"filename": "colors_core-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7f7591b353c8ac7c3847b37e42d8b3c1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 7378,
"upload_time": "2024-02-26T12:13:02",
"upload_time_iso_8601": "2024-02-26T12:13:02.077141Z",
"url": "https://files.pythonhosted.org/packages/e6/f1/5644df764b872ea813fce15b5f992cecdcedb515a47b7956b6e2fb42f97c/colors_core-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "73dde69306d1d840f0b6e0c6b49758ee944484c638bdb1b159e2b1e284ad3e4f",
"md5": "87879dd25ae32aef027f0e0b2198a6a4",
"sha256": "6a2d71558b119c05f9b8ce148ccedd1448569abf00429c234524f112b7b384f5"
},
"downloads": -1,
"filename": "colors_core-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "87879dd25ae32aef027f0e0b2198a6a4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7226,
"upload_time": "2024-02-26T12:13:03",
"upload_time_iso_8601": "2024-02-26T12:13:03.681738Z",
"url": "https://files.pythonhosted.org/packages/73/dd/e69306d1d840f0b6e0c6b49758ee944484c638bdb1b159e2b1e284ad3e4f/colors_core-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-26 12:13:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nekitdev",
"github_project": "colors-core",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "colors-core"
}