infix-postfix


Nameinfix-postfix JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttps://github.com/SoumadeepChoudhury/infixpostfix
SummaryConverts Infix to Postfix and vice versa...
upload_time2023-07-20 10:25:04
maintainer
docs_urlNone
authorAhens | An Initiative to Initial (Soumadeep Choudhury)
requires_python
licenseMIT
keywords python arithmetic tools arith-tools arithmetic operations math python3 pip pip3 fibonacci armstrong boiled-egg terrace unique amicable infix postfix infix2postfix infixtopostfix infix-postfix infix_postfix
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
<p>
<image src="./res/banner.jpg"/><br>
An application to convert infix to postfix and vice versa...</p>
</div>

# Key Features
- Runs standalone
- Converts Infix expression to postfix expression.
- Converts postfix expression to infix expression.


# Basic Requirements (Pre-installed)
- Python 3.x
- Windows OS or MacOS or Other Linux Distribution.


# Installation
- Open terminal/cmd in windows/macos respectively.
- Run the command `pip install infix-postfix`.


# Usage
- To convert infix to postfix, run `infix-postfix --infix "${infix_expression}"`
- To convert postfix to infix, run `infix-postfix --postfix "${postfix_expression}"`
> NOTE : Double quotes ("") is must for writing the expression to get correct output..

```
How to write expressions? 
- INFIX expression
    - Correct Methods
        - "( A+B)* C/D"
        - "((A+B)*C/D+E^F)/G"
        - "20.1 + (5 ^ 2 / 2)"
        - "20.1 + ( 5 ^ 2 / 2)"
        - etc...

- POSTFIX ecpression
    - Correct Methods
        - "A B + C * D /"
        - "A B C D + E F + * G / + * H *"
        - "20.1 5 +"
    - Wrong Methods
        - "AB+C*D/"
        - "ABCD+EF+*G/+*H*"
        - "20.1 5+"
        - "20 5+"
    - In One line, You have to give spaces after every value
```


- To run this application in your own application or python script, run
 
```python
from infix_postfix.infix_postfix import infix,postfix
$(variable) = $(infix/postfix){expression}
print($(variable))
```

Example :- 



<image src="./res/example.jpg" />

# Contribution
Anyone is free to contribute to this open source project. 🎉🎉


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/SoumadeepChoudhury/infixpostfix",
    "name": "infix-postfix",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,arithmetic,tools,arith-tools,arithmetic operations,Math,python3,pip,pip3,fibonacci,armstrong,boiled-egg,terrace,unique,amicable,infix,postfix,infix2postfix,infixtopostfix,infix-postfix,infix_postfix",
    "author": "Ahens | An Initiative to Initial (Soumadeep Choudhury)",
    "author_email": "ahensinitiative@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/91/86/d3341263cc291476de5a3a1bb84c014cb515c7a822ccc7706b0db81a5a1a/infix-postfix-1.2.0.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n<p>\n<image src=\"./res/banner.jpg\"/><br>\nAn application to convert infix to postfix and vice versa...</p>\n</div>\n\n# Key Features\n- Runs standalone\n- Converts Infix expression to postfix expression.\n- Converts postfix expression to infix expression.\n\n\n# Basic Requirements (Pre-installed)\n- Python 3.x\n- Windows OS or MacOS or Other Linux Distribution.\n\n\n# Installation\n- Open terminal/cmd in windows/macos respectively.\n- Run the command `pip install infix-postfix`.\n\n\n# Usage\n- To convert infix to postfix, run `infix-postfix --infix \"${infix_expression}\"`\n- To convert postfix to infix, run `infix-postfix --postfix \"${postfix_expression}\"`\n> NOTE : Double quotes (\"\") is must for writing the expression to get correct output..\n\n```\nHow to write expressions? \n- INFIX expression\n    - Correct Methods\n        - \"( A+B)* C/D\"\n        - \"((A+B)*C/D+E^F)/G\"\n        - \"20.1 + (5 ^ 2 / 2)\"\n        - \"20.1 + ( 5 ^ 2 / 2)\"\n        - etc...\n\n- POSTFIX ecpression\n    - Correct Methods\n        - \"A B + C * D /\"\n        - \"A B C D + E F + * G / + * H *\"\n        - \"20.1 5 +\"\n    - Wrong Methods\n        - \"AB+C*D/\"\n        - \"ABCD+EF+*G/+*H*\"\n        - \"20.1 5+\"\n        - \"20 5+\"\n    - In One line, You have to give spaces after every value\n```\n\n\n- To run this application in your own application or python script, run\n \n```python\nfrom infix_postfix.infix_postfix import infix,postfix\n$(variable) = $(infix/postfix){expression}\nprint($(variable))\n```\n\nExample :- \n\n\n\n<image src=\"./res/example.jpg\" />\n\n# Contribution\nAnyone is free to contribute to this open source project. \ud83c\udf89\ud83c\udf89\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Converts Infix to Postfix and vice versa...",
    "version": "1.2.0",
    "project_urls": {
        "Homepage": "https://github.com/SoumadeepChoudhury/infixpostfix"
    },
    "split_keywords": [
        "python",
        "arithmetic",
        "tools",
        "arith-tools",
        "arithmetic operations",
        "math",
        "python3",
        "pip",
        "pip3",
        "fibonacci",
        "armstrong",
        "boiled-egg",
        "terrace",
        "unique",
        "amicable",
        "infix",
        "postfix",
        "infix2postfix",
        "infixtopostfix",
        "infix-postfix",
        "infix_postfix"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fcb9ffac2b12d65b22713723614be0dad5d825248ab34d1a7fd3574ab8f392a",
                "md5": "cb284c3431dce83f18047cc6affe5e46",
                "sha256": "8a08c0ff61f93910be83c8f4b32047d7a5d356ef0c1d4621056a18ae653bf8f8"
            },
            "downloads": -1,
            "filename": "infix_postfix-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cb284c3431dce83f18047cc6affe5e46",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4524,
            "upload_time": "2023-07-20T10:24:59",
            "upload_time_iso_8601": "2023-07-20T10:24:59.615270Z",
            "url": "https://files.pythonhosted.org/packages/6f/cb/9ffac2b12d65b22713723614be0dad5d825248ab34d1a7fd3574ab8f392a/infix_postfix-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9186d3341263cc291476de5a3a1bb84c014cb515c7a822ccc7706b0db81a5a1a",
                "md5": "0cf830ae898db502729178713df2c5fa",
                "sha256": "f285f282237c4f83d399c80f1c38eff9c4df0d27349fb67c837d0f7f6eb58fde"
            },
            "downloads": -1,
            "filename": "infix-postfix-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0cf830ae898db502729178713df2c5fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4199,
            "upload_time": "2023-07-20T10:25:04",
            "upload_time_iso_8601": "2023-07-20T10:25:04.695714Z",
            "url": "https://files.pythonhosted.org/packages/91/86/d3341263cc291476de5a3a1bb84c014cb515c7a822ccc7706b0db81a5a1a/infix-postfix-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-20 10:25:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SoumadeepChoudhury",
    "github_project": "infixpostfix",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "infix-postfix"
}
        
Elapsed time: 0.09243s