base-conversion-kit


Namebase-conversion-kit JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttps://github.com/porfanid/base-conversion-kit
SummaryPerform operations with numbers in different bases
upload_time2023-11-15 21:51:58
maintainer
docs_urlNone
authorporfanid
requires_python>=3.6
license
keywords base conversion kit base convert numbers add multiply subtract number converter base conversion numeric operations number system converter decimal to binary decimal to hexadecimal base conversion tool number base calculator binary math operations hexadecimal arithmetic binary converter number base converter base conversion app numeric base operations decimal arithmetic hex converter number base transform number base manipulation binary subtraction decimal multiplication base conversion utility numeric base transformation binary calculator number system manipulation hexadecimal calculator numeric base math base conversion helper decimal to octal numeric base conversion app base arithmetic operations
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # Base Conversion Kit

[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/porfanid)
[![CodeCoverage](https://github.com/porfanid/base-conversion-kit/actions/workflows/codecov.yml/badge.svg)](https://github.com/porfanid/base-conversion-kit/actions/workflows/codecov.yml)
[![Deploy static content to Pages](https://github.com/porfanid/base-conversion-kit/actions/workflows/deploy.yml/badge.svg)](https://github.com/porfanid/base-conversion-kit/actions/workflows/deploy.yml)
[![Continuous Integrations](https://github.com/porfanid/base-conversion-kit/actions/workflows/main.yml/badge.svg)](https://github.com/porfanid/base-conversion-kit/actions/workflows/main.yml)
[![codecov](https://codecov.io/github/porfanid/base-conversion-kit/graph/badge.svg?token=T9DNofKwo2)](https://codecov.io/gh/porfanid/base-conversion-kit)

The Base Conversion Kit is a Python package designed to simplify number operations across different bases. Whether you're working with binary, octal, decimal, or hexadecimal numbers, this package provides convenient functions for conversions and basic arithmetic operations.

## Installation

You can install the Base Conversion Kit using `pip`:

```bash
pip install base-conversion-kit
```

## Usage

### Converting Numbers

The package offers a flexible function for converting numbers from any base to another:

```python
from base_conversion_kit import convert_to_base_n, convert_base

# Convert a decimal number to binary
binary_result = convert_to_base_n(42, 2)
print(f"Binary representation: {binary_result}")

# Convert a hexadecimal number to octal
octal_result = convert_base("1A", 8, 16)
print(f"Octal representation: {octal_result}")
```

### Performing Arithmetic Operations

Performing arithmetic operations on numbers from different bases is seamless:

```python
from base_conversion_kit import multiply_numbers, add_numbers, subtract_numbers

# Multiply two binary numbers
result_binary = multiply_numbers("101", "110", 2)
print(f"Binary multiplication result: {result_binary}")

# Add two decimal numbers
result_addition = add_numbers(15, 7, 10)
print(f"Decimal addition result: {result_addition}")

# Subtract two hexadecimal numbers
result_subtraction = subtract_numbers("1A", "B", 16)
print(f"Hexadecimal subtraction result: {result_subtraction}")
```

## Examples

### Example 1: Adding Binary Numbers

```python
from base_conversion_kit import add_numbers

result = add_numbers("101", "110", 2)
print(f"Binary addition result: {result}")
```

### Example 2: Converting and Adding

```python
from base_conversion_kit import convert_to_base_n, add_numbers

# Convert decimal numbers to binary and add
binary_sum = add_numbers(
    convert_to_base_n(10, 2),
    convert_to_base_n(5, 2),
    2
)
print(f"Binary sum: {binary_sum}")
```

# Read The Docs

More info can be found [here](https://base-conversion-kit.readthedocs.io)

## Contributing

Feel free to contribute to the development of the Base Conversion Kit. If you encounter issues, have suggestions, or want to add features, please submit a pull request or open an issue on the [GitHub repository](https://github.com/porfanid/base-conversion-kit).

## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/porfanid/base-conversion-kit/blob/master/LICENSE) file for details.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/porfanid/base-conversion-kit",
    "name": "base-conversion-kit",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "base,conversion,kit,base,convert,numbers,add,multiply,subtract,Number Converter,Base Conversion,Numeric Operations,Number System Converter,Decimal to Binary,Decimal to Hexadecimal,Base Conversion Tool,Number Base Calculator,Binary Math Operations,Hexadecimal Arithmetic,Binary Converter,Number Base Converter,Base Conversion App,Numeric Base Operations,Decimal Arithmetic,Hex Converter,Number Base Transform,Number Base Manipulation,Binary Subtraction,Decimal Multiplication,Base Conversion Utility,Numeric Base Transformation,Binary Calculator,Number System Manipulation,Hexadecimal Calculator,Numeric Base Math,Base Conversion Helper,Decimal to Octal,Numeric Base Conversion App,Base Arithmetic Operations",
    "author": "porfanid",
    "author_email": "pavlos@orfanidis.net.gr",
    "download_url": "https://files.pythonhosted.org/packages/2c/ba/39a41c8d99ce582554d89682a0858f4e7c0fd16d3ffc608ff5a4809a0775/base_conversion_kit-1.0.7.tar.gz",
    "platform": null,
    "description": "# Base Conversion Kit\n\n[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/porfanid)\n[![CodeCoverage](https://github.com/porfanid/base-conversion-kit/actions/workflows/codecov.yml/badge.svg)](https://github.com/porfanid/base-conversion-kit/actions/workflows/codecov.yml)\n[![Deploy static content to Pages](https://github.com/porfanid/base-conversion-kit/actions/workflows/deploy.yml/badge.svg)](https://github.com/porfanid/base-conversion-kit/actions/workflows/deploy.yml)\n[![Continuous Integrations](https://github.com/porfanid/base-conversion-kit/actions/workflows/main.yml/badge.svg)](https://github.com/porfanid/base-conversion-kit/actions/workflows/main.yml)\n[![codecov](https://codecov.io/github/porfanid/base-conversion-kit/graph/badge.svg?token=T9DNofKwo2)](https://codecov.io/gh/porfanid/base-conversion-kit)\n\nThe Base Conversion Kit is a Python package designed to simplify number operations across different bases. Whether you're working with binary, octal, decimal, or hexadecimal numbers, this package provides convenient functions for conversions and basic arithmetic operations.\n\n## Installation\n\nYou can install the Base Conversion Kit using `pip`:\n\n```bash\npip install base-conversion-kit\n```\n\n## Usage\n\n### Converting Numbers\n\nThe package offers a flexible function for converting numbers from any base to another:\n\n```python\nfrom base_conversion_kit import convert_to_base_n, convert_base\n\n# Convert a decimal number to binary\nbinary_result = convert_to_base_n(42, 2)\nprint(f\"Binary representation: {binary_result}\")\n\n# Convert a hexadecimal number to octal\noctal_result = convert_base(\"1A\", 8, 16)\nprint(f\"Octal representation: {octal_result}\")\n```\n\n### Performing Arithmetic Operations\n\nPerforming arithmetic operations on numbers from different bases is seamless:\n\n```python\nfrom base_conversion_kit import multiply_numbers, add_numbers, subtract_numbers\n\n# Multiply two binary numbers\nresult_binary = multiply_numbers(\"101\", \"110\", 2)\nprint(f\"Binary multiplication result: {result_binary}\")\n\n# Add two decimal numbers\nresult_addition = add_numbers(15, 7, 10)\nprint(f\"Decimal addition result: {result_addition}\")\n\n# Subtract two hexadecimal numbers\nresult_subtraction = subtract_numbers(\"1A\", \"B\", 16)\nprint(f\"Hexadecimal subtraction result: {result_subtraction}\")\n```\n\n## Examples\n\n### Example 1: Adding Binary Numbers\n\n```python\nfrom base_conversion_kit import add_numbers\n\nresult = add_numbers(\"101\", \"110\", 2)\nprint(f\"Binary addition result: {result}\")\n```\n\n### Example 2: Converting and Adding\n\n```python\nfrom base_conversion_kit import convert_to_base_n, add_numbers\n\n# Convert decimal numbers to binary and add\nbinary_sum = add_numbers(\n    convert_to_base_n(10, 2),\n    convert_to_base_n(5, 2),\n    2\n)\nprint(f\"Binary sum: {binary_sum}\")\n```\n\n# Read The Docs\n\nMore info can be found [here](https://base-conversion-kit.readthedocs.io)\n\n## Contributing\n\nFeel free to contribute to the development of the Base Conversion Kit. If you encounter issues, have suggestions, or want to add features, please submit a pull request or open an issue on the [GitHub repository](https://github.com/porfanid/base-conversion-kit).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/porfanid/base-conversion-kit/blob/master/LICENSE) file for details.\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Perform operations with numbers in different bases",
    "version": "1.0.7",
    "project_urls": {
        "Documentation": "https://base-conversion-kit.readthedocs.io/",
        "Funding": "https://ko-fi.com/porfanid",
        "Homepage": "https://github.com/porfanid/base-conversion-kit",
        "Say Thanks!": "https://saythanks.io/to/porfanid",
        "Source": "https://github.com/porfanid/base-conversion-kit",
        "Tracker": "https://github.com/porfanid/base-conversion-kit/issues"
    },
    "split_keywords": [
        "base",
        "conversion",
        "kit",
        "base",
        "convert",
        "numbers",
        "add",
        "multiply",
        "subtract",
        "number converter",
        "base conversion",
        "numeric operations",
        "number system converter",
        "decimal to binary",
        "decimal to hexadecimal",
        "base conversion tool",
        "number base calculator",
        "binary math operations",
        "hexadecimal arithmetic",
        "binary converter",
        "number base converter",
        "base conversion app",
        "numeric base operations",
        "decimal arithmetic",
        "hex converter",
        "number base transform",
        "number base manipulation",
        "binary subtraction",
        "decimal multiplication",
        "base conversion utility",
        "numeric base transformation",
        "binary calculator",
        "number system manipulation",
        "hexadecimal calculator",
        "numeric base math",
        "base conversion helper",
        "decimal to octal",
        "numeric base conversion app",
        "base arithmetic operations"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4a0737b32f06bfbbe8a5469b738f71b18424b6f9cf5f25342f889777848c1747",
                "md5": "ebbb2175d4d9094cab4539a704a49c07",
                "sha256": "b3fe4e8c06929e957623268d56651b33349ea9f2e2c601617a3ae92949f54a81"
            },
            "downloads": -1,
            "filename": "base_conversion_kit-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ebbb2175d4d9094cab4539a704a49c07",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4742,
            "upload_time": "2023-11-15T21:51:57",
            "upload_time_iso_8601": "2023-11-15T21:51:57.156218Z",
            "url": "https://files.pythonhosted.org/packages/4a/07/37b32f06bfbbe8a5469b738f71b18424b6f9cf5f25342f889777848c1747/base_conversion_kit-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cba39a41c8d99ce582554d89682a0858f4e7c0fd16d3ffc608ff5a4809a0775",
                "md5": "6e48d251f2ca78515cfc36d4d266f42a",
                "sha256": "635ad2b5d0f361f1e1f5384312576c7fa2926db5f1195d174ede76dee7368a22"
            },
            "downloads": -1,
            "filename": "base_conversion_kit-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "6e48d251f2ca78515cfc36d4d266f42a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4851,
            "upload_time": "2023-11-15T21:51:58",
            "upload_time_iso_8601": "2023-11-15T21:51:58.490759Z",
            "url": "https://files.pythonhosted.org/packages/2c/ba/39a41c8d99ce582554d89682a0858f4e7c0fd16d3ffc608ff5a4809a0775/base_conversion_kit-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-15 21:51:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "porfanid",
    "github_project": "base-conversion-kit",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "base-conversion-kit"
}
        
Elapsed time: 0.13602s