Layla-Eval


NameLayla-Eval JSON
Version 1.0.5 PyPI version JSON
download
home_pagehttps://github.com/JewishLewish/Layla-Python-Module
SummaryMath Evaluator that uses C Code over Python
upload_time2023-01-02 23:26:36
maintainer
docs_urlNone
authorJewishLewish
requires_python>=3.7, <4
licenseZLIB
keywords c2python eval better eval c code efficient
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Layla Mathematics is a python package that uses the code of C to make the eval syntax faster and more flexible.

Benchmarking: https://github.com/JewishLewish/Layla-Python-Module/blob/master/testing.py

Benchmark test:
    
    -> Loop 100,000 times
    
    -> Each time having an unique variable / output

Output:
i + 2:

      Python's Eval -> .90 seconds
  
      Layla's Math -> .15seconds


i + abs(i):
        
        Python's Eval -> ~1.04 seconds
        
        Layla's Math -> ~.14 seconds 
        
i + sin(i):
        
        Python's Eval DOESN'T SUPPORT IT 
        
        Layla's C Math -> ~.15 seconds

Layla Mathematics is mostly used for heavy mathematics. 

### Syntax

```
x = layla.math("2+2")
print(x) #-> 4
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/JewishLewish/Layla-Python-Module",
    "name": "Layla-Eval",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7, <4",
    "maintainer_email": "",
    "keywords": "C2Python,Eval,Better Eval,C Code,Efficient",
    "author": "JewishLewish",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/d6/7e/f470cd1d5e96ad84860233cdb514b5653d90d5f876f6284cb0d6070b2a3b/Layla%20Eval-1.0.5.tar.gz",
    "platform": null,
    "description": "Layla Mathematics is a python package that uses the code of C to make the eval syntax faster and more flexible.\r\n\r\nBenchmarking: https://github.com/JewishLewish/Layla-Python-Module/blob/master/testing.py\r\n\r\nBenchmark test:\r\n    \r\n    -> Loop 100,000 times\r\n    \r\n    -> Each time having an unique variable / output\r\n\r\nOutput:\r\ni + 2:\r\n\r\n      Python's Eval -> .90 seconds\r\n  \r\n      Layla's Math -> .15seconds\r\n\r\n\r\ni + abs(i):\r\n        \r\n        Python's Eval -> ~1.04 seconds\r\n        \r\n        Layla's Math -> ~.14 seconds \r\n        \r\ni + sin(i):\r\n        \r\n        Python's Eval DOESN'T SUPPORT IT \r\n        \r\n        Layla's C Math -> ~.15 seconds\r\n\r\nLayla Mathematics is mostly used for heavy mathematics. \r\n\r\n### Syntax\r\n\r\n```\r\nx = layla.math(\"2+2\")\r\nprint(x) #-> 4\r\n```\r\n",
    "bugtrack_url": null,
    "license": "ZLIB",
    "summary": "Math Evaluator that uses C Code over Python",
    "version": "1.0.5",
    "split_keywords": [
        "c2python",
        "eval",
        "better eval",
        "c code",
        "efficient"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d67ef470cd1d5e96ad84860233cdb514b5653d90d5f876f6284cb0d6070b2a3b",
                "md5": "392ebc56d46473206483e23fa71af78d",
                "sha256": "80695a55fc65e5b98807cc2a58a94f91e628711a006929961c2c0aa0e4a717b6"
            },
            "downloads": -1,
            "filename": "Layla Eval-1.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "392ebc56d46473206483e23fa71af78d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7, <4",
            "size": 44011,
            "upload_time": "2023-01-02T23:26:36",
            "upload_time_iso_8601": "2023-01-02T23:26:36.872391Z",
            "url": "https://files.pythonhosted.org/packages/d6/7e/f470cd1d5e96ad84860233cdb514b5653d90d5f876f6284cb0d6070b2a3b/Layla%20Eval-1.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-02 23:26:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "JewishLewish",
    "github_project": "Layla-Python-Module",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "layla-eval"
}
        
Elapsed time: 0.03000s