NumLex


NameNumLex JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/Jenil-Desai/NumLex
SummaryA blend of 'Numerical' and 'Lexical' indicating the dual focus on numbers and language.
upload_time2024-08-30 09:55:45
maintainerNone
docs_urlNone
authorJenil Desai
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img src="https://res.cloudinary.com/dg4bxglze/image/upload/w_150,h_150,c_fill,g_face,r_max/v1723224449/oi4o4qghqwosobxpo0ea.png" alt="NumLex Logo">
</p>

# NumLex

NumLex is a Python package that provides a collection of mathematical and string manipulation functions. It includes modules for geometry, arithmetic, probability, statistics, string operations, and number operations, making it a versatile tool for various computational tasks.

## Installation

You can install NumLex via pip:

```bash
pip install numlex
```

## Modules and Functions

### 1. Geometry (`m.geo.py`)

- **Area Of Triangle**: Calculate the area of a triangle.
- **Area Of Circle**: Calculate the area of a circle.
- **Area Of Rectangle**: Calculate the area of a rectangle.
- **Area Of Square**: Calculate the area of a square.

### 2. Arithmetic (`m.arith.py`)

- **Modular Arithmetic**: Perform modular addition, subtraction, and multiplication.
- **Roots**: Calculate square, cube, and nth roots.
- **Factorials**: Compute the factorial of a number.

### 3. Probability (`m.prob.py`)

- **Permutations**: Calculate the number of permutations.
- **Combinations**: Calculate the number of combinations.

### 4. Statistics (`m.stats.py`)

- **Ungroup Mean**: Calculate the mean for ungrouped data.
- **Group Mean**: Calculate the mean for grouped data.
- **Median**: Find the median of a dataset.
- **Ungroup Mode**: Determine the mode for ungrouped data.
- **Raw Mode**: Determine the raw mode of data.
- **Variance**: Calculate the variance of data.
- **Standard Deviation**: Calculate the standard deviation of data.

### 5. String Operations (`str_ops.py`)

- **Vowel**: Check if a character is a vowel.
- **Consonant**: Check if a character is a consonant.
- **Search Char From String**: Search for a character in a string.
- **Palindrome Checker**: Check if a string is a palindrome.
- **Character Counting**: Count the occurrences of each character in a string.

### 6. Number Operations (`num_ops.py`)

- **Max From Given Numbers**: Find the maximum value from a list of numbers.
- **Min From Given Numbers**: Find the minimum value from a list of numbers.
- **Total Of Given Numbers**: Calculate the total of a list of numbers (options for even and odd totals).
- **Square Of Numbers**: Compute the square of numbers.
- **Positive / Negative / Zero**: Determine if a number is positive, negative, or zero.
- **Odd / Even**: Check if a number is odd or even.
- **Leap Year / !Leap Year**: Check if a year is a leap year.
- **Total Of Digits Of Number**: Calculate the sum of the digits of a number.
- **Reverse Of Number**: Reverse the digits of a number.
- **Palindrome Checker**: Check if a number is a palindrome.
- **Length Of Number**: Determine the length of a number.

## Useful Links

- You can checkout the package details also on the Python package Index [here](https://pypi.org/project/NumLex/)
- You can checkout the package wiki at github wikis [here](https://github.com/Jenil-Desai/NumLex/wiki)
- You can checkout the package version releases on the Notion Page [here](https://jenil-desai.notion.site/Version-Releases-NumLex-aae7fe2fee39415d93e19931aa7c7118?pvs=4)

## Usage

Here is an example of how to use the NumLex package:

```python
from NumLex.m.geo import area_triangle
from NumLex.m.arith import fact
from NumLex.num_ops import max_num

# Calculate the area of a triangle
area = area_triangle(base=10, height=5)
print("Area of Triangle:", area)

# Calculate the factorial of a number
fact = fact(5)
print("Factorial:", fact)

# Find the maximum number in a list
max_num = max_Num([1, 2, 3, 4, 5])
print("Maximum Number:", max_num)
```

## Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

## License

This project is licensed under the MIT License. See the `LICENSE` file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Jenil-Desai/NumLex",
    "name": "NumLex",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Jenil Desai",
    "author_email": "Jenil Desai <jenildev91@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e8/fa/6c1802f796f6ae3ee568ff1279dd6d77ae925d9f1872ed4185c59a984076/numlex-2.0.0.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img src=\"https://res.cloudinary.com/dg4bxglze/image/upload/w_150,h_150,c_fill,g_face,r_max/v1723224449/oi4o4qghqwosobxpo0ea.png\" alt=\"NumLex Logo\">\n</p>\n\n# NumLex\n\nNumLex is a Python package that provides a collection of mathematical and string manipulation functions. It includes modules for geometry, arithmetic, probability, statistics, string operations, and number operations, making it a versatile tool for various computational tasks.\n\n## Installation\n\nYou can install NumLex via pip:\n\n```bash\npip install numlex\n```\n\n## Modules and Functions\n\n### 1. Geometry (`m.geo.py`)\n\n- **Area Of Triangle**: Calculate the area of a triangle.\n- **Area Of Circle**: Calculate the area of a circle.\n- **Area Of Rectangle**: Calculate the area of a rectangle.\n- **Area Of Square**: Calculate the area of a square.\n\n### 2. Arithmetic (`m.arith.py`)\n\n- **Modular Arithmetic**: Perform modular addition, subtraction, and multiplication.\n- **Roots**: Calculate square, cube, and nth roots.\n- **Factorials**: Compute the factorial of a number.\n\n### 3. Probability (`m.prob.py`)\n\n- **Permutations**: Calculate the number of permutations.\n- **Combinations**: Calculate the number of combinations.\n\n### 4. Statistics (`m.stats.py`)\n\n- **Ungroup Mean**: Calculate the mean for ungrouped data.\n- **Group Mean**: Calculate the mean for grouped data.\n- **Median**: Find the median of a dataset.\n- **Ungroup Mode**: Determine the mode for ungrouped data.\n- **Raw Mode**: Determine the raw mode of data.\n- **Variance**: Calculate the variance of data.\n- **Standard Deviation**: Calculate the standard deviation of data.\n\n### 5. String Operations (`str_ops.py`)\n\n- **Vowel**: Check if a character is a vowel.\n- **Consonant**: Check if a character is a consonant.\n- **Search Char From String**: Search for a character in a string.\n- **Palindrome Checker**: Check if a string is a palindrome.\n- **Character Counting**: Count the occurrences of each character in a string.\n\n### 6. Number Operations (`num_ops.py`)\n\n- **Max From Given Numbers**: Find the maximum value from a list of numbers.\n- **Min From Given Numbers**: Find the minimum value from a list of numbers.\n- **Total Of Given Numbers**: Calculate the total of a list of numbers (options for even and odd totals).\n- **Square Of Numbers**: Compute the square of numbers.\n- **Positive / Negative / Zero**: Determine if a number is positive, negative, or zero.\n- **Odd / Even**: Check if a number is odd or even.\n- **Leap Year / !Leap Year**: Check if a year is a leap year.\n- **Total Of Digits Of Number**: Calculate the sum of the digits of a number.\n- **Reverse Of Number**: Reverse the digits of a number.\n- **Palindrome Checker**: Check if a number is a palindrome.\n- **Length Of Number**: Determine the length of a number.\n\n## Useful Links\n\n- You can checkout the package details also on the Python package Index [here](https://pypi.org/project/NumLex/)\n- You can checkout the package wiki at github wikis [here](https://github.com/Jenil-Desai/NumLex/wiki)\n- You can checkout the package version releases on the Notion Page [here](https://jenil-desai.notion.site/Version-Releases-NumLex-aae7fe2fee39415d93e19931aa7c7118?pvs=4)\n\n## Usage\n\nHere is an example of how to use the NumLex package:\n\n```python\nfrom NumLex.m.geo import area_triangle\nfrom NumLex.m.arith import fact\nfrom NumLex.num_ops import max_num\n\n# Calculate the area of a triangle\narea = area_triangle(base=10, height=5)\nprint(\"Area of Triangle:\", area)\n\n# Calculate the factorial of a number\nfact = fact(5)\nprint(\"Factorial:\", fact)\n\n# Find the maximum number in a list\nmax_num = max_Num([1, 2, 3, 4, 5])\nprint(\"Maximum Number:\", max_num)\n```\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request or open an issue.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A blend of 'Numerical' and 'Lexical' indicating the dual focus on numbers and language.",
    "version": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Jenil-Desai/NumLex",
        "Issues": "https://github.com/Jenil-Desai/NumLex/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50c80f87459880bc7188b47497d13e44958493b6c8389c31331329a3876dbe25",
                "md5": "2d1b7560ec790ffe54ab1c08e23f326e",
                "sha256": "cf87c802a42f9bc53564483936c48e58bcaa11bcb5c08b414495b108e2eb655d"
            },
            "downloads": -1,
            "filename": "NumLex-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d1b7560ec790ffe54ab1c08e23f326e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9634,
            "upload_time": "2024-08-30T09:55:44",
            "upload_time_iso_8601": "2024-08-30T09:55:44.433577Z",
            "url": "https://files.pythonhosted.org/packages/50/c8/0f87459880bc7188b47497d13e44958493b6c8389c31331329a3876dbe25/NumLex-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8fa6c1802f796f6ae3ee568ff1279dd6d77ae925d9f1872ed4185c59a984076",
                "md5": "0a816a4c5dbce7aa51d34f175800740d",
                "sha256": "9dcbd5678e8eb68e305665fdba9379ea49e456fa0c679e9a09d07974f9432257"
            },
            "downloads": -1,
            "filename": "numlex-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0a816a4c5dbce7aa51d34f175800740d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9209,
            "upload_time": "2024-08-30T09:55:45",
            "upload_time_iso_8601": "2024-08-30T09:55:45.598763Z",
            "url": "https://files.pythonhosted.org/packages/e8/fa/6c1802f796f6ae3ee568ff1279dd6d77ae925d9f1872ed4185c59a984076/numlex-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-30 09:55:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Jenil-Desai",
    "github_project": "NumLex",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "numlex"
}
        
Elapsed time: 0.61977s