Name | grikod JSON |
Version |
1.1.6
JSON |
| download |
home_page | https://github.com/KuantumBS/grikod |
Summary | Converts binary numbers to Gray Code. Grikod (Gray Code, Grey Code) |
upload_time | 2025-08-04 11:22:53 |
maintainer | None |
docs_url | None |
author | Mehmet Keçeci |
requires_python | >=3.9 |
license | MIT License
Copyright (c) 2024 Mehmet Keçeci
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
gri kod
grikod
gray code
binary
encoding
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Grikod (Gri Kod, Gray Code)
[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_shield)
[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_shield&issueType=security)
[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_small)
[](https://grikod.readthedocs.io/en/main/?badge=main)
[](https://doi.org/10.5281/zenodo.12731345)
[](https://doi.org/10.48546/workflowhub.datafile.12.1)
[](https://doi.org/10.48546/workflowhub.datafile.12.2)
[](https://anaconda.org/bilgi/grikod)
[](https://anaconda.org/bilgi/grikod)
[](https://anaconda.org/bilgi/grikod)
[](https://anaconda.org/bilgi/grikod)
[](https://opensource.org/)
[](https://opensource.org/licenses/MIT)
[](https://github.com/KuantumBS/grikod//actions/workflows/python_ci.yml)
[](https://codecov.io/gh/KuantumBS/grikod)
[](https://grikod.readthedocs.io/en/latest/)
[](https://terrarium.evidencepub.io/v2/gh/KuantumBS/grikod/HEAD)
[](https://badge.fury.io/py/grikod)
[](https://pepy.tech/projects/grikod)
[](https://github.com/astral-sh/ruff)
---
<p align="left">
<table>
<tr>
<td style="text-align: center;">PyPI</td>
<td style="text-align: center;">
<a href="https://pypi.org/project/grikod/">
<img src="https://badge.fury.io/py/grikod.svg" alt="PyPI version" height="18"/>
</a>
</td>
</tr>
<tr>
<td style="text-align: center;">Conda</td>
<td style="text-align: center;">
<a href="https://anaconda.org/bilgi/grikod">
<img src="https://anaconda.org/bilgi/grikod/badges/version.svg" alt="conda-forge version" height="18"/>
</a>
</td>
</tr>
<tr>
<td style="text-align: center;">DOI</td>
<td style="text-align: center;">
<a href="https://doi.org/10.5281/zenodo.12731345">
<img src="https://zenodo.org/badge/DOI/10.5281/zenodo.12731345.svg" alt="DOI" height="18"/>
</a>
</td>
</tr>
<tr>
<td style="text-align: center;">License: MIT</td>
<td style="text-align: center;">
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License" height="18"/>
</a>
</td>
</tr>
</table>
</p>
---
A Python library for converting binary numbers to Gray Code with ease.
---
## Tanım (Türkçe)
Gri Kod: Grikod İkili sayıları Gri Koda çevirir.
## Description (English)
Gri Kod: Grikod converts binary numbers to Gray Code.
---
## Kurulum (Türkçe) / Installation (English)
### Python ile Kurulum / Install with pip, conda, mamba
```bash
pip install grikod -U
python -m pip install -U grikod
conda install bilgi::grikod -y
mamba install bilgi::grikod -y
```
```diff
- pip uninstall grikod -y
+ pip install -U grikod
+ python -m pip install -U grikod
```
[PyPI](https://pypi.org/project/grikod/)
### Test Kurulumu / Test Installation
```bash
pip install -i https://test.pypi.org/simple/ grikod -U
```
### Github Master Kurulumu / GitHub Master Installation
**Terminal:**
```bash
pip install git+https://github.com/KuantumBS/grikod.git
```
**Jupyter Lab, Notebook, Visual Studio Code:**
```python
!pip install git+https://github.com/KuantumBS/grikod.git
# or
%pip install git+https://github.com/KuantumBS/grikod.git
```
---
## Kullanım (Türkçe) / Usage (English)
---
```python
import grikod
grikod.ikili_2_gri_kod("1010")
'1111'
```
```python
# Restart Kernel veya/or Restart Kernel and Clear Outputs
import importlib
import grikod
# Önce alt modülü yeniden yükleyin
import grikod.grikod # gerekirse otomatik import edilir
importlib.reload(grikod.grikod) # grikod.py dosyasını yeniden çalıştır
# Ardından paketi yeniden yükleyin (isteğe bağlı)
importlib.reload(grikod)
# Run this cell (Shift+Enter): Input: 100
# Output example
# 000:000
# 001:001
# 010:011
# 011:010
# 100:110
# 101:111
# 110:101
# 111:100
```
```python
import grikod
grikod.__version__
```
```python
import grikod
grikod.main() # CLI'ı başlat
```
or
```python
import importlib
import grikod
importlib.reload(grikod) # Modülü yeniden yükle
grikod.main() # Şimdi çalışmalı
Enter a binary number (or 'q' to quit): 100
Gray Code number: 110
Enter a binary number (or 'q' to quit): 111
Gray Code number: 100
Enter a binary number (or 'q' to quit): q
Exiting...
```
---
### Development
```bash
# Clone the repository
git clone https://github.com/KuantumBS/grikod.git
cd grikod
# Install in development mode
python -m pip install -ve . # Install package in development mode
# Run tests
pytest
Notebook, Jupyterlab, Colab, Visual Studio Code
!python -m pip install git+https://github.com/KuantumBS/grikod.git
```
---
## Citation
If this library was useful to you in your research, please cite us. Following the [GitHub citation standards](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files), here is the recommended citation.
### BibTeX
```bibtex
@software{kececi_2025_12731345,
author = {Keçeci, Mehmet},
title = {Grikod},
month = may,
year = 2025,
publisher = {GitHub, PYPI (Python Package Index, Python
Software Foundation), Anaconda, Zenodo
},
doi = {10.5281/zenodo.12731345},
url = {https://doi.org/10.5281/zenodo.12731345},
}
```
```bibtex
@software{Kececi_Gri_Kod_2024,
author = {Keçeci, Mehmet},
license = {MIT},
month = nov,
title = {{Gri Kod}},
url = {https://pypi.org/project/grikod/},
version = {1.1.0},
year = {2025}
}
```
```bibtex
@software{Kececi_Gri_Kod_2024,
author = {Keçeci, Mehmet},
license = {MIT},
month = nov,
title = {{Gri Kod}},
url = {https://pypi.org/project/grikod/},
version = {1.0.80},
year = {2024}
}
### APA
```
Keçeci, M. (2025). Grikod [Data set]. WorkflowHub. https://doi.org/10.48546/workflowhub.datafile.12.1; https://doi.org/10.48546/workflowhub.datafile.12.2
Keçeci, M. (2025). Grikod. Zenodo. https://doi.org/10.5281/zenodo.12731345
```
### Chicago
```
Keçeci, Mehmet. "Grikod" [Data set]. WorkflowHub, 2025. https://doi.org/10.48546/workflowhub.datafile.12.1; https://doi.org/10.48546/workflowhub.datafile.12.2
Keçeci, Mehmet. "Grikod". Zenodo, 06 Mayıs 2025. https://doi.org/10.5281/zenodo.12731345.
```
### Lisans (Türkçe) / License (English)
```
This project is licensed under the MIT License.
```
```
[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_large)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/KuantumBS/grikod",
"name": "grikod",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "Gri Kod, GriKod, Gray Code, Binary, Encoding",
"author": "Mehmet Ke\u00e7eci",
"author_email": "Mehmet Ke\u00e7eci <mkececi@yaani.com>",
"download_url": "https://files.pythonhosted.org/packages/3e/c6/79f446c68394d9c3e4198d78beb240bf825869a5c6d7e1c8e690c70dc047/grikod-1.1.6.tar.gz",
"platform": null,
"description": "# Grikod (Gri Kod, Gray Code)\n\n[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_shield)\n[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_shield&issueType=security)\n[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_small)\n[](https://grikod.readthedocs.io/en/main/?badge=main)\n\n[](https://doi.org/10.5281/zenodo.12731345)\n\n[](https://doi.org/10.48546/workflowhub.datafile.12.1)\n[](https://doi.org/10.48546/workflowhub.datafile.12.2)\n\n[](https://anaconda.org/bilgi/grikod)\n[](https://anaconda.org/bilgi/grikod)\n[](https://anaconda.org/bilgi/grikod)\n[](https://anaconda.org/bilgi/grikod)\n[](https://opensource.org/)\n[](https://opensource.org/licenses/MIT)\n\n[](https://github.com/KuantumBS/grikod//actions/workflows/python_ci.yml)\n[](https://codecov.io/gh/KuantumBS/grikod)\n[](https://grikod.readthedocs.io/en/latest/)\n[](https://terrarium.evidencepub.io/v2/gh/KuantumBS/grikod/HEAD)\n[](https://badge.fury.io/py/grikod)\n[](https://pepy.tech/projects/grikod)\n[](https://github.com/astral-sh/ruff)\n\n---\n\n<p align=\"left\">\n <table>\n <tr>\n <td style=\"text-align: center;\">PyPI</td>\n <td style=\"text-align: center;\">\n <a href=\"https://pypi.org/project/grikod/\">\n <img src=\"https://badge.fury.io/py/grikod.svg\" alt=\"PyPI version\" height=\"18\"/>\n </a>\n </td>\n </tr>\n <tr>\n <td style=\"text-align: center;\">Conda</td>\n <td style=\"text-align: center;\">\n <a href=\"https://anaconda.org/bilgi/grikod\">\n <img src=\"https://anaconda.org/bilgi/grikod/badges/version.svg\" alt=\"conda-forge version\" height=\"18\"/>\n </a>\n </td>\n </tr>\n <tr>\n <td style=\"text-align: center;\">DOI</td>\n <td style=\"text-align: center;\">\n <a href=\"https://doi.org/10.5281/zenodo.12731345\">\n <img src=\"https://zenodo.org/badge/DOI/10.5281/zenodo.12731345.svg\" alt=\"DOI\" height=\"18\"/>\n </a>\n </td>\n </tr>\n <tr>\n <td style=\"text-align: center;\">License: MIT</td>\n <td style=\"text-align: center;\">\n <a href=\"https://opensource.org/licenses/MIT\">\n <img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License\" height=\"18\"/>\n </a>\n </td>\n </tr>\n </table>\n</p>\n\n---\n\nA Python library for converting binary numbers to Gray Code with ease.\n\n---\n\n## Tan\u0131m (T\u00fcrk\u00e7e)\nGri Kod: Grikod \u0130kili say\u0131lar\u0131 Gri Koda \u00e7evirir.\n\n## Description (English)\nGri Kod: Grikod converts binary numbers to Gray Code.\n\n---\n\n## Kurulum (T\u00fcrk\u00e7e) / Installation (English)\n\n### Python ile Kurulum / Install with pip, conda, mamba\n```bash\npip install grikod -U\npython -m pip install -U grikod\nconda install bilgi::grikod -y\nmamba install bilgi::grikod -y\n```\n\n```diff\n- pip uninstall grikod -y\n+ pip install -U grikod\n+ python -m pip install -U grikod\n```\n\n[PyPI](https://pypi.org/project/grikod/)\n\n### Test Kurulumu / Test Installation\n\n```bash\npip install -i https://test.pypi.org/simple/ grikod -U\n```\n\n### Github Master Kurulumu / GitHub Master Installation\n\n**Terminal:**\n\n```bash\npip install git+https://github.com/KuantumBS/grikod.git\n```\n\n**Jupyter Lab, Notebook, Visual Studio Code:**\n\n```python\n!pip install git+https://github.com/KuantumBS/grikod.git\n# or\n%pip install git+https://github.com/KuantumBS/grikod.git\n```\n\n---\n\n## Kullan\u0131m (T\u00fcrk\u00e7e) / Usage (English)\n---\n\n```python\nimport grikod\ngrikod.ikili_2_gri_kod(\"1010\")\n\n'1111'\n```\n\n```python\n# Restart Kernel veya/or Restart Kernel and Clear Outputs\nimport importlib\nimport grikod\n\n# \u00d6nce alt mod\u00fcl\u00fc yeniden y\u00fckleyin\nimport grikod.grikod # gerekirse otomatik import edilir\nimportlib.reload(grikod.grikod) # grikod.py dosyas\u0131n\u0131 yeniden \u00e7al\u0131\u015ft\u0131r\n\n# Ard\u0131ndan paketi yeniden y\u00fckleyin (iste\u011fe ba\u011fl\u0131)\nimportlib.reload(grikod)\n\n# Run this cell (Shift+Enter): Input: 100\n# Output example\n# 000:000\n# 001:001\n# 010:011\n# 011:010\n# 100:110\n# 101:111\n# 110:101\n# 111:100\n```\n```python\nimport grikod\ngrikod.__version__\n```\n```python\nimport grikod\ngrikod.main() # CLI'\u0131 ba\u015flat\n```\nor\n```python\nimport importlib\nimport grikod\n\nimportlib.reload(grikod) # Mod\u00fcl\u00fc yeniden y\u00fckle\ngrikod.main() # \u015eimdi \u00e7al\u0131\u015fmal\u0131\n\nEnter a binary number (or 'q' to quit): 100\nGray Code number: 110\nEnter a binary number (or 'q' to quit): 111\nGray Code number: 100\nEnter a binary number (or 'q' to quit): q\nExiting...\n```\n\n---\n\n### Development\n```bash\n# Clone the repository\ngit clone https://github.com/KuantumBS/grikod.git\ncd grikod\n\n# Install in development mode\npython -m pip install -ve . # Install package in development mode\n\n# Run tests\npytest\n\nNotebook, Jupyterlab, Colab, Visual Studio Code\n!python -m pip install git+https://github.com/KuantumBS/grikod.git\n```\n---\n\n## Citation\n\nIf this library was useful to you in your research, please cite us. Following the [GitHub citation standards](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files), here is the recommended citation.\n\n### BibTeX\n\n```bibtex\n@software{kececi_2025_12731345,\n author = {Ke\u00e7eci, Mehmet},\n title = {Grikod},\n month = may,\n year = 2025,\n publisher = {GitHub, PYPI (Python Package Index, Python\n Software Foundation), Anaconda, Zenodo\n },\n doi = {10.5281/zenodo.12731345},\n url = {https://doi.org/10.5281/zenodo.12731345},\n}\n```\n\n```bibtex\n@software{Kececi_Gri_Kod_2024,\n author = {Ke\u00e7eci, Mehmet},\n license = {MIT},\n month = nov,\n title = {{Gri Kod}},\n url = {https://pypi.org/project/grikod/},\n version = {1.1.0},\n year = {2025}\n}\n```\n\n```bibtex\n@software{Kececi_Gri_Kod_2024,\n author = {Ke\u00e7eci, Mehmet},\n license = {MIT},\n month = nov,\n title = {{Gri Kod}},\n url = {https://pypi.org/project/grikod/},\n version = {1.0.80},\n year = {2024}\n}\n\n### APA\n\n```\n\nKe\u00e7eci, M. (2025). Grikod [Data set]. WorkflowHub. https://doi.org/10.48546/workflowhub.datafile.12.1; https://doi.org/10.48546/workflowhub.datafile.12.2\n\nKe\u00e7eci, M. (2025). Grikod. Zenodo. https://doi.org/10.5281/zenodo.12731345\n\n```\n\n### Chicago\n\n```\n\nKe\u00e7eci, Mehmet. \"Grikod\" [Data set]. WorkflowHub, 2025. https://doi.org/10.48546/workflowhub.datafile.12.1; https://doi.org/10.48546/workflowhub.datafile.12.2\n\nKe\u00e7eci, Mehmet. \"Grikod\". Zenodo, 06 May\u0131s 2025. https://doi.org/10.5281/zenodo.12731345.\n\n```\n\n\n### Lisans (T\u00fcrk\u00e7e) / License (English)\n\n```\nThis project is licensed under the MIT License.\n```\n```\n[](https://app.fossa.com/projects/git%2Bgithub.com%2FKuantumBS%2Fgrikod?ref=badge_large)\n```\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2024 Mehmet Ke\u00e7eci\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Converts binary numbers to Gray Code. Grikod (Gray Code, Grey Code)",
"version": "1.1.6",
"project_urls": {
"Documentation": "https://kuantumbs.github.io/grikod/",
"Homepage": "https://github.com/KuantumBS/grikod/",
"Issues": "https://github.com/KuantumBS/grikod/issues",
"Repository": "https://github.com/KuantumBS/grikod/"
},
"split_keywords": [
"gri kod",
" grikod",
" gray code",
" binary",
" encoding"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "a892388afd4ea6ff66b035a3fc324a59691f1a93df3f07092f31a44bc3db1b1e",
"md5": "13d7fafca7655ac0e98f136396435e59",
"sha256": "2dcf737be449f66024bf24f72cc204c2d444eb80e39ba49a74db31732ec73ecf"
},
"downloads": -1,
"filename": "grikod-1.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "13d7fafca7655ac0e98f136396435e59",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 7284,
"upload_time": "2025-08-04T11:22:52",
"upload_time_iso_8601": "2025-08-04T11:22:52.547256Z",
"url": "https://files.pythonhosted.org/packages/a8/92/388afd4ea6ff66b035a3fc324a59691f1a93df3f07092f31a44bc3db1b1e/grikod-1.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3ec679f446c68394d9c3e4198d78beb240bf825869a5c6d7e1c8e690c70dc047",
"md5": "7bde017553652cef867921b20313958a",
"sha256": "39daa9c074af88f21ab8ad9edde05dde1d770a4ad6587fdd67bb2d8362924942"
},
"downloads": -1,
"filename": "grikod-1.1.6.tar.gz",
"has_sig": false,
"md5_digest": "7bde017553652cef867921b20313958a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 20915,
"upload_time": "2025-08-04T11:22:53",
"upload_time_iso_8601": "2025-08-04T11:22:53.745309Z",
"url": "https://files.pythonhosted.org/packages/3e/c6/79f446c68394d9c3e4198d78beb240bf825869a5c6d7e1c8e690c70dc047/grikod-1.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-04 11:22:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KuantumBS",
"github_project": "grikod",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "grikod"
}