Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 16 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.2%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

grikod2

Basic Info
  • Host: GitHub
  • Owner: KuantumBS
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 70.3 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • Open Issues: 0
  • Releases: 3
Created 10 months ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Codeowners Security Zenodo

README.md

grikod2 (Gri Kod, Gray Code)


DOI

WorkflowHub DOI

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Open Source MIT License

Python CI codecov Documentation Status Binder PyPI version PyPI Downloads Linted with Ruff


PyPI PyPI version
Conda conda-forge version
DOI DOI
License: MIT License


A Python library for converting binary numbers to Gray Code with ease.


Tanım (Türkçe)

Gri Kod: grikod2 İkili sayıları Gri Koda çevirir.

Description (English)

Gri Kod: grikod2 converts binary numbers to Gray Code.


Kurulum (Türkçe) / Installation (English)

Python ile Kurulum / Install with pip, conda, mamba

bash pip install grikod2 -U python -m pip install -U grikod2 conda install bilgi::grikod2 -y mamba install bilgi::grikod2 -y

diff - pip uninstall grikod2 -y + pip install -U grikod2 + python -m pip install -U grikod2

PyPI

Test Kurulumu / Test Installation

bash pip install -i https://test.pypi.org/simple/ grikod2 -U

Github Master Kurulumu / GitHub Master Installation

Terminal:

bash pip install git+https://github.com/KuantumBS/grikod2.git

Jupyter Lab, Notebook, Visual Studio Code:

```python !pip install git+https://github.com/KuantumBS/grikod2.git

or

%pip install git+https://github.com/KuantumBS/grikod2.git ```


Kullanım (Türkçe) / Usage (English)

```python import grikod2

def main(): # Binary numbers: ikili sayılar binary_numbers = ["0", "1", "10", "11", "100", "101", "1111"]

for binary in binary_numbers:
    try:
        gray_code = grikod2.ikili_2_gri_kod(binary)
        print(f"Binary: İkili: {binary} -> Gri Kod: {gray_code}")
    except grikod2.InvalidBinaryError as e:
        print(f"İkili: {binary} -> Hata: {e}")

if name == "main": main() Binary: İkili: 0 -> Gri Kod: 0 Binary: İkili: 1 -> Gri Kod: 1 Binary: İkili: 10 -> Gri Kod: 11 Binary: İkili: 11 -> Gri Kod: 10 Binary: İkili: 100 -> Gri Kod: 110 Binary: İkili: 101 -> Gri Kod: 111 Binary: İkili: 1111 -> Gri Kod: 1000

Input: 100

Output example

000:000

001:001

010:011

011:010

100:110

101:111

110:101

111:100

```

```python import grikod2 grikod2.version

```

Development

```bash

Clone the repository

git clone https://github.com/KuantumBS/grikod2.git cd grikod2

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/grikod2.git

```

Citation

If this library was useful to you in your research, please cite us. Following the GitHub citation standards, here is the recommended citation.

BibTeX

APA

``` Keçeci, M. (2025). Grikod2 [Data set]. WorkflowHub. https://doi.org/10.48546/workflowhub.datafile.13.1

Keçeci, M. (2025). Grikod2. GitHub, PYPI, Anaconda, Zenodo. https://doi.org/10.5281/zenodo.15352206

```

Chicago

``` Keçeci, Mehmet. Grikod2 [Data set]. WorkflowHub. https://doi.org/10.48546/workflowhub.datafile.13.1

Keçeci, Mehmet. "Grikod2". Zenodo, 06 Mayıs 2025. https://doi.org/10.5281/zenodo.15352206

```

Lisans (Türkçe) / License (English)

This project is licensed under the MIT License.

Owner

  • Name: KBS
  • Login: KuantumBS
  • Kind: organization

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Gray Code
message: >-
  If you use this software, please cite it using the
  metadata from this file. / Eğer bu yazılımı
  kullanıyorsanız, lütfen bu dosyadaki meta   verileri
  kullanarak atıfta bulunun.
type: software
authors:
  - given-names: Mehmet
    family-names: Keçeci
    email: bilginomi@yaani.com
    orcid: 'https://orcid.org/0000-0001-9937-9839'
identifiers:
  - type: doi
    value: 10.5281/zenodo.15352206
  - type: doi
    value: 10.48546/workflowhub.datafile.13.1
repository-code: 'https://github.com/KuantumBS/grikod2'
url: 'https://github.com/KuantumBS/grikod2'
repository: 'https://anaconda.org/bilgi/grikod2'
repository-artifact: 'https://pypi.org/project/grikod2/'
abstract: >-
  A Python package for converting binary numbers to Gray
  code, designed for efficient data encoding and scientific
  applications.
keywords:
  - Gri Kod2
  - grikod2
  - Binary
  - Gray Code
license: MIT
commit: 'Revision: 1'
version: 1.1.1
date-released: '2025-05-06'

GitHub Events

Total
  • Release event: 4
  • Watch event: 2
  • Delete event: 1
  • Push event: 25
  • Pull request event: 1
  • Gollum event: 4
  • Fork event: 1
  • Create event: 4
Last Year
  • Release event: 4
  • Watch event: 2
  • Delete event: 1
  • Push event: 25
  • Pull request event: 1
  • Gollum event: 4
  • Fork event: 1
  • Create event: 4

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 39 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
pypi.org: grikod2

Converts binary numbers to Gray Code. grikod2 (Gray Code, Grey Code)

  • Homepage: https://github.com/KuantumBS/grikod2
  • Documentation: https://kuantumbs.github.io/grikod2/
  • 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.
  • Latest release: 1.1.3
    published 7 months ago
  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 39 Last month
Rankings
Dependent packages count: 9.2%
Average: 30.5%
Dependent repos count: 51.8%
Maintainers (1)
Last synced: 6 months ago