binary-system


Namebinary-system JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/fcoagz/code-binary-system
Summary
upload_time2023-05-26 19:51:53
maintainer
docs_urlNone
authorFrancisco Griman
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `code-binary-system`


Esto lo he hecho con fines educativo cuando estaba en clases de Arquitectura del Computador y quise realizar mi propio algoritmo.

Te permite convertir números decimales a binarios y viceversa.

## Instalación

```cmd
pip install binary_system
```

## Uso

Para convertir un número decimal a binario, se puede llamar a la función `number_to_binary()` y proporcionar el número como argumento. La función devolverá una cadena de texto que representa el número en su forma binaria.

```py
from binary_system import Binary

binary = Binary()
result = binary.number_to_binary(10) # Convierte el número 10 a binario
print(result) # Imprime "1010"
```

Para convertir un número binario a decimal, se puede llamar a la función `binary_to_number()` y proporcionar la cadena de texto binaria como argumento. La función devolverá el número decimal correspondiente.

```py
from binary_system import Binary

binary = Binary()
result = binary.binary_to_number('1010') # Convierte la cadena de texto "1010" a decimal
print(result) # Imprime "10"
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fcoagz/code-binary-system",
    "name": "binary-system",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Francisco Griman",
    "author_email": "grihardware@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/60/39/02168978a1a4455ac6277eb87435a326460936bf810583b961d75ba60ab8/binary_system-0.0.1.tar.gz",
    "platform": null,
    "description": "# `code-binary-system`\n\n\nEsto lo he hecho con fines educativo cuando estaba en clases de Arquitectura del Computador y quise realizar mi propio algoritmo.\n\nTe permite convertir n\u00fameros decimales a binarios y viceversa.\n\n## Instalaci\u00f3n\n\n```cmd\npip install binary_system\n```\n\n## Uso\n\nPara convertir un n\u00famero decimal a binario, se puede llamar a la funci\u00f3n `number_to_binary()` y proporcionar el n\u00famero como argumento. La funci\u00f3n devolver\u00e1 una cadena de texto que representa el n\u00famero en su forma binaria.\n\n```py\nfrom binary_system import Binary\n\nbinary = Binary()\nresult = binary.number_to_binary(10) # Convierte el n\u00famero 10 a binario\nprint(result) # Imprime \"1010\"\n```\n\nPara convertir un n\u00famero binario a decimal, se puede llamar a la funci\u00f3n `binary_to_number()` y proporcionar la cadena de texto binaria como argumento. La funci\u00f3n devolver\u00e1 el n\u00famero decimal correspondiente.\n\n```py\nfrom binary_system import Binary\n\nbinary = Binary()\nresult = binary.binary_to_number('1010') # Convierte la cadena de texto \"1010\" a decimal\nprint(result) # Imprime \"10\"\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/fcoagz/code-binary-system"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30f9a7e3cfbce62b39ed2ab44d8d543c4f3a865650b03544affb8b51457fe68e",
                "md5": "4faad35313f3d4f725e998c93e26c8f2",
                "sha256": "5c82fbcca8fa8de8e6910cfba93cbd364d1c69e0b75cd2843c94187475dfcdf6"
            },
            "downloads": -1,
            "filename": "binary_system-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4faad35313f3d4f725e998c93e26c8f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2439,
            "upload_time": "2023-05-26T19:51:46",
            "upload_time_iso_8601": "2023-05-26T19:51:46.914524Z",
            "url": "https://files.pythonhosted.org/packages/30/f9/a7e3cfbce62b39ed2ab44d8d543c4f3a865650b03544affb8b51457fe68e/binary_system-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "603902168978a1a4455ac6277eb87435a326460936bf810583b961d75ba60ab8",
                "md5": "56934ac4caf4373c5595c3e8f4c6a58b",
                "sha256": "ad3e66aea933af9fe4fa8d19d511f19015f1779c2aa461a2cde18f78ecd6c8c2"
            },
            "downloads": -1,
            "filename": "binary_system-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "56934ac4caf4373c5595c3e8f4c6a58b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2591,
            "upload_time": "2023-05-26T19:51:53",
            "upload_time_iso_8601": "2023-05-26T19:51:53.375358Z",
            "url": "https://files.pythonhosted.org/packages/60/39/02168978a1a4455ac6277eb87435a326460936bf810583b961d75ba60ab8/binary_system-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-26 19:51:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fcoagz",
    "github_project": "code-binary-system",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "binary-system"
}
        
Elapsed time: 1.66532s