onecompiler


Nameonecompiler JSON
Version 1.1.6 PyPI version JSON
download
home_pagehttps://github.com/pokedim13/OneCompiler
Summary
upload_time2023-06-15 18:26:38
maintainer
docs_urlNone
authorpokedim13
requires_python>=3.8,<4.0
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # OneCompiler
### Compilation of many languages in Python!

- [Project on PyPi](https://pypi.org/project/onecompiler/)

<br>
<details open>
<summary> Mini documentation </summary> <br>

Installing the library
```
> pip install onecompiler
```
<br>

Import
```
from onecompiler import Compiler	# Sync
from onecompiler import AsyncCompiler	# Async
```
<br>

Initialization
```
compiler = Compiler()
```
<br>

Get a list of available languages
```
print( compiler.all_languages )
```


<br>
Languages are compiled through the Compiler attribute or using <code>compiler.to.lang</code> <br>
ยป For query languages <code>compiler.query.lang</code>
<br>
	
Example
```
# Sample JavaScript code
res = compiler.to.js('console.log("Hello");')
print(res.stdout)
# Hello

# Sample MySQL code
res2 = compiler.query.mysql('SELECT 10')
print(res2.stdout)
# 10
```	
Or
```
res = compiler.compile(lang='js', code='console.log("Hello");')
print(res.stdout)
# Hello

res2 = compiler.compile(lang='mysql', code='SELECT 10')
print(res2.stdout)
# 10
```




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pokedim13/OneCompiler",
    "name": "onecompiler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "pokedim13",
    "author_email": "skinxedovich@vk.com",
    "download_url": "https://files.pythonhosted.org/packages/73/0a/0f3aec9d23df49471ebd9ec6ea04f9fc840adb58d3bed5e8296a85aa55d6/onecompiler-1.1.6.tar.gz",
    "platform": null,
    "description": "# OneCompiler\n### Compilation of many languages in Python!\n\n- [Project on PyPi](https://pypi.org/project/onecompiler/)\n\n<br>\n<details open>\n<summary> Mini documentation </summary> <br>\n\nInstalling the library\n```\n> pip install onecompiler\n```\n<br>\n\nImport\n```\nfrom onecompiler import Compiler\t# Sync\nfrom onecompiler import AsyncCompiler\t# Async\n```\n<br>\n\nInitialization\n```\ncompiler = Compiler()\n```\n<br>\n\nGet a list of available languages\n```\nprint( compiler.all_languages )\n```\n\n\n<br>\nLanguages are compiled through the Compiler attribute or using <code>compiler.to.lang</code> <br>\n\u00bb For query languages <code>compiler.query.lang</code>\n<br>\n\t\nExample\n```\n# Sample JavaScript code\nres = compiler.to.js('console.log(\"Hello\");')\nprint(res.stdout)\n# Hello\n\n# Sample MySQL code\nres2 = compiler.query.mysql('SELECT 10')\nprint(res2.stdout)\n# 10\n```\t\nOr\n```\nres = compiler.compile(lang='js', code='console.log(\"Hello\");')\nprint(res.stdout)\n# Hello\n\nres2 = compiler.compile(lang='mysql', code='SELECT 10')\nprint(res2.stdout)\n# 10\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "",
    "version": "1.1.6",
    "project_urls": {
        "Homepage": "https://github.com/pokedim13/OneCompiler",
        "Repository": "https://github.com/pokedim13/OneCompiler"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9c348fef00508dd3be9b323a19df341e1301d949975f6ce859bb5cdd810e8e4e",
                "md5": "e1ecc69714b2b5bf56bbfe9393110ed3",
                "sha256": "fb9074878da5e9080d04ec972d8903b0a1fe828be165e6d3613ebfe3c4b191be"
            },
            "downloads": -1,
            "filename": "onecompiler-1.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e1ecc69714b2b5bf56bbfe9393110ed3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 11770,
            "upload_time": "2023-06-15T18:26:36",
            "upload_time_iso_8601": "2023-06-15T18:26:36.882776Z",
            "url": "https://files.pythonhosted.org/packages/9c/34/8fef00508dd3be9b323a19df341e1301d949975f6ce859bb5cdd810e8e4e/onecompiler-1.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "730a0f3aec9d23df49471ebd9ec6ea04f9fc840adb58d3bed5e8296a85aa55d6",
                "md5": "f16ea1fe570c2095d1d95500018ff4ab",
                "sha256": "d6d0a114ea1d7ac629abb56a01f31843d9ab79598d724b344e69e5180983f8e6"
            },
            "downloads": -1,
            "filename": "onecompiler-1.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "f16ea1fe570c2095d1d95500018ff4ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 8622,
            "upload_time": "2023-06-15T18:26:38",
            "upload_time_iso_8601": "2023-06-15T18:26:38.659418Z",
            "url": "https://files.pythonhosted.org/packages/73/0a/0f3aec9d23df49471ebd9ec6ea04f9fc840adb58d3bed5e8296a85aa55d6/onecompiler-1.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-15 18:26:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pokedim13",
    "github_project": "OneCompiler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "onecompiler"
}
        
Elapsed time: 0.08440s