lix


Namelix JSON
Version 3.8.3 PyPI version JSON
download
home_pagehttps://github.com/flowa-ai/lix
Summarylix - Multi purpose package
upload_time2023-12-27 01:27:41
maintainer
docs_urlNone
authorflowa
requires_python>=3.6
licenseMIT
keywords lix math random copy cache factorial fib fibonacci sqrt sort sorting color colorama
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <a href="[https://i.ibb.co/f91kj7K/sketch1703640010239.png](https://i.ibb.co/f91kj7K/sketch1703640010239.png)"><img src="https://i.ibb.co/f91kj7K/sketch1703640010239.png" alt="flowa" border="0" width="145"></a>

# [lix - Multi purpose package](https://pypi.org/project/flowa)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/flowa/flowa/blob/main/LICENSE)
[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)

```
lix: (V3.8.3)

Multi purpose package!
```

## Installing
```shell
# Linux/macOS
python3 pip install -U lix

# Windows
py -3 -m pip install -U lix
```

# Caches
```python
@lix.cache
def fib(n):
    if n < 2:
        return n
    return fib(n-1) + fibo(n-2)
```

```python
@lix.fast
def fib(n):
    if n < 2:
        return n
    return fib(n-1) + fibo(n-2)
```

```python
@lix.limit(5)
def fib(n):
    if n < 2:
        return n
    return fib(n-1) + fibo(n-2)'
```

# Sort
```js
my_list = [6,2,5,7,9,7,3,1,124,6,54,1,4,47,74,43,1,12,5,7,94,223]

lix.bubblesort(my_list)
lix.insertionsort(my_list)
lix.selectionsort(my_list)
lix.mergesort(my_list)
lix.quicksort(my_list)
lix.heapsort(my_list)
lix.shellsort(my_list)
```

# Color
```js
lix.Fore      # lix.Fore.BLACK
lix.Back
lix.Style
lix.Effect
lix.Decor
lix.BackEffect

lix.init()    # OPTIONAL
lix.deinit()  # OPTIONAL

lix.clear()   # clear console/terminal
lix.reset()   # reset console/terminal
lix.blend()   # blend color, style, back, etc
lix.get('black', 'Fore')     # get color, style, back, etc
lix.gradient('black', 'Fore') # get gradient color, style, back, etc
lix.code('print("Hello World")', 'text', 'friendly') # code highlight
lix.new(fore='black', back='white', style='bold') # new color
lix.color('Hello World', lix.new(fore='black', back='white', style='bold')) # color with new
```

# Math
```js
lix.mean(my_list)
lix.median(my_list)
lix.mode(my_list)
lix.range(my_list)
lix.variance(my_list)
lix.standard_deviation(my_list)
lix.covariance(my_list, my_list2)
lix.correlation(my_list, my_list2)
lix.linear_regression(my_list, my_list2)
```

# Fibonacci
```js
lix.fib(5)
lix.fibonacci(10000000)
```

# Factorial
```js
lix.factorial(5)
lix.factorial(10000000)
```

# Square Root
```js
lix.sqrt(5)
lix.square_root(5)
lix.squareroot(5)
```

# Copying
```js
lix.copy(object)
lix.shallow(object)

lix.deepcopy(object)
lix.deep(object)
```

# Random
```js
lix.random(start, end)
lix.randint(start, end)
lix.randrange(start, end)
lix.choice(my_list)
lix.choices(my_list, k=5)
lix.shuffle(my_list)
lix.sample(my_list, k=5)
```

# Time
```js
lix.time(5)
lix.sleep(5)
lix.format(time)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/flowa-ai/lix",
    "name": "lix",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "lix math random copy cache factorial fib fibonacci sqrt sort sorting color colorama",
    "author": "flowa",
    "author_email": "flowa.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4e/f9/eeb0473ac6f102db8c5e490bf991b5cd211bfeb4bbbfa394e5f67f265ab5/lix-3.8.3.tar.gz",
    "platform": null,
    "description": "<a href=\"[https://i.ibb.co/f91kj7K/sketch1703640010239.png](https://i.ibb.co/f91kj7K/sketch1703640010239.png)\"><img src=\"https://i.ibb.co/f91kj7K/sketch1703640010239.png\" alt=\"flowa\" border=\"0\" width=\"145\"></a>\n\n# [lix - Multi purpose package](https://pypi.org/project/flowa)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/flowa/flowa/blob/main/LICENSE)\n[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)\n\n```\nlix: (V3.8.3)\n\nMulti purpose package!\n```\n\n## Installing\n```shell\n# Linux/macOS\npython3 pip install -U lix\n\n# Windows\npy -3 -m pip install -U lix\n```\n\n# Caches\n```python\n@lix.cache\ndef fib(n):\n    if n < 2:\n        return n\n    return fib(n-1) + fibo(n-2)\n```\n\n```python\n@lix.fast\ndef fib(n):\n    if n < 2:\n        return n\n    return fib(n-1) + fibo(n-2)\n```\n\n```python\n@lix.limit(5)\ndef fib(n):\n    if n < 2:\n        return n\n    return fib(n-1) + fibo(n-2)'\n```\n\n# Sort\n```js\nmy_list = [6,2,5,7,9,7,3,1,124,6,54,1,4,47,74,43,1,12,5,7,94,223]\n\nlix.bubblesort(my_list)\nlix.insertionsort(my_list)\nlix.selectionsort(my_list)\nlix.mergesort(my_list)\nlix.quicksort(my_list)\nlix.heapsort(my_list)\nlix.shellsort(my_list)\n```\n\n# Color\n```js\nlix.Fore      # lix.Fore.BLACK\nlix.Back\nlix.Style\nlix.Effect\nlix.Decor\nlix.BackEffect\n\nlix.init()    # OPTIONAL\nlix.deinit()  # OPTIONAL\n\nlix.clear()   # clear console/terminal\nlix.reset()   # reset console/terminal\nlix.blend()   # blend color, style, back, etc\nlix.get('black', 'Fore')     # get color, style, back, etc\nlix.gradient('black', 'Fore') # get gradient color, style, back, etc\nlix.code('print(\"Hello World\")', 'text', 'friendly') # code highlight\nlix.new(fore='black', back='white', style='bold') # new color\nlix.color('Hello World', lix.new(fore='black', back='white', style='bold')) # color with new\n```\n\n# Math\n```js\nlix.mean(my_list)\nlix.median(my_list)\nlix.mode(my_list)\nlix.range(my_list)\nlix.variance(my_list)\nlix.standard_deviation(my_list)\nlix.covariance(my_list, my_list2)\nlix.correlation(my_list, my_list2)\nlix.linear_regression(my_list, my_list2)\n```\n\n# Fibonacci\n```js\nlix.fib(5)\nlix.fibonacci(10000000)\n```\n\n# Factorial\n```js\nlix.factorial(5)\nlix.factorial(10000000)\n```\n\n# Square Root\n```js\nlix.sqrt(5)\nlix.square_root(5)\nlix.squareroot(5)\n```\n\n# Copying\n```js\nlix.copy(object)\nlix.shallow(object)\n\nlix.deepcopy(object)\nlix.deep(object)\n```\n\n# Random\n```js\nlix.random(start, end)\nlix.randint(start, end)\nlix.randrange(start, end)\nlix.choice(my_list)\nlix.choices(my_list, k=5)\nlix.shuffle(my_list)\nlix.sample(my_list, k=5)\n```\n\n# Time\n```js\nlix.time(5)\nlix.sleep(5)\nlix.format(time)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "lix - Multi purpose package",
    "version": "3.8.3",
    "project_urls": {
        "Homepage": "https://github.com/flowa-ai/lix"
    },
    "split_keywords": [
        "lix",
        "math",
        "random",
        "copy",
        "cache",
        "factorial",
        "fib",
        "fibonacci",
        "sqrt",
        "sort",
        "sorting",
        "color",
        "colorama"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a6d5ab1894d006988510906038d7811d3baeb640b967cd2b17dcec2e66fefacf",
                "md5": "6b4cb971eab84814833a08f80e1610f2",
                "sha256": "019a88be870681a3550a80690b5764ef3129d736cbc03e7cee96c5aa31fd0273"
            },
            "downloads": -1,
            "filename": "lix-3.8.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6b4cb971eab84814833a08f80e1610f2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 12319,
            "upload_time": "2023-12-27T01:27:36",
            "upload_time_iso_8601": "2023-12-27T01:27:36.152817Z",
            "url": "https://files.pythonhosted.org/packages/a6/d5/ab1894d006988510906038d7811d3baeb640b967cd2b17dcec2e66fefacf/lix-3.8.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ef9eeb0473ac6f102db8c5e490bf991b5cd211bfeb4bbbfa394e5f67f265ab5",
                "md5": "5020c78d20dece3f8d7470992b8eb0f4",
                "sha256": "e989d8d395ce0d2ee267f9810b94330f3e20c72b74344f758292b0036905ed5b"
            },
            "downloads": -1,
            "filename": "lix-3.8.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5020c78d20dece3f8d7470992b8eb0f4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 12343,
            "upload_time": "2023-12-27T01:27:41",
            "upload_time_iso_8601": "2023-12-27T01:27:41.636878Z",
            "url": "https://files.pythonhosted.org/packages/4e/f9/eeb0473ac6f102db8c5e490bf991b5cd211bfeb4bbbfa394e5f67f265ab5/lix-3.8.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-27 01:27:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "flowa-ai",
    "github_project": "lix",
    "github_not_found": true,
    "lcname": "lix"
}
        
Elapsed time: 0.16433s