MorePie


NameMorePie JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/cornusandu/MorePy
SummaryDoes Python not have enough tools? MorePie is here to help!
upload_time2024-06-18 06:58:34
maintainerNone
docs_urlNone
authorSandu Bogdan
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MorePie
## FAQ
### What is MorePie?
MorePie is a library made to introduce more features to Python, such as a two-dimensional table of contents and a hand-made HashMap class
## Documentation
### ColumnTypes
ColumnTypes is an Enum class, meaning that the following are its usages:
```py
ColumnTypes.automatic_id # Will return an error if used in a Matrix
ColumnTypes.string
ColumnTypes.integer
ColumnTypes.Real
```
### Column
`Column(name: str, kind: ColumnTypes)` -- Creates a new Columnn
#### Properties
- `Column.name`
- `Column.kind` (equivilant to `Column.type`)
### Matrix
!!  The `Matrix` class is still under work and is not recommended for production. You should use the built-in dictionaries instead! <br>
`Matrix(*columns: Column)` -- Creates a new Matrix <br>
`add_column(*columns: Column)` -- Adds a new column <br>
`add_row(**data)` -- Adds a new row. You need to parse as arguments values for each column you defined in the table <br>
### HashMap
The `HashMap` class should just be initialized with a dictionary or two lists, and behaves similarly to a normal dictionary. We would recommend using the built-in `dict` instead, as the `HashMap` class still has bugs.
### ErrorSuppressor
The `ErrorSuppressor` class is made to be used as a context manager. <br>
Syntax: `ErrorSuppressor(errors: tuple[Exception] = ())` <br>
### sum_of_array(array: np.ndarray)
Returns the sum of all items in an array
### sum_of_arange(arange: np.arange)
Self-Explanatory
### sum_of_range(Range: range)
Self-Explanatory
### execute(command: str)
Execute a console command. (Command behavior may differ based on the operating system) <br>
Is equivalent to doing `os.sys()` <br>
Can also be used as `execute(*commands: str)` to run multiple consecutive commands <br>
## Creator Notes
- `MorePie` is still in-work. We recommend testing it with your code before implementing it into any programs!
- For the best experience, we recommend downloading the [Latest Version](https://pypi.org/project/MorePie/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cornusandu/MorePy",
    "name": "MorePie",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Sandu Bogdan",
    "author_email": "bogdanelsandu@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6d/14/50d1718e6c982adaddf4b0b38d5dcbe8089f432e1ed26a6a8a4c7ce569d2/morepie-1.0.1.tar.gz",
    "platform": null,
    "description": "# MorePie\r\n## FAQ\r\n### What is MorePie?\r\nMorePie is a library made to introduce more features to Python, such as a two-dimensional table of contents and a hand-made HashMap class\r\n## Documentation\r\n### ColumnTypes\r\nColumnTypes is an Enum class, meaning that the following are its usages:\r\n```py\r\nColumnTypes.automatic_id # Will return an error if used in a Matrix\r\nColumnTypes.string\r\nColumnTypes.integer\r\nColumnTypes.Real\r\n```\r\n### Column\r\n`Column(name: str, kind: ColumnTypes)` -- Creates a new Columnn\r\n#### Properties\r\n- `Column.name`\r\n- `Column.kind` (equivilant to `Column.type`)\r\n### Matrix\r\n!!  The `Matrix` class is still under work and is not recommended for production. You should use the built-in dictionaries instead! <br>\r\n`Matrix(*columns: Column)` -- Creates a new Matrix <br>\r\n`add_column(*columns: Column)` -- Adds a new column <br>\r\n`add_row(**data)` -- Adds a new row. You need to parse as arguments values for each column you defined in the table <br>\r\n### HashMap\r\nThe `HashMap` class should just be initialized with a dictionary or two lists, and behaves similarly to a normal dictionary. We would recommend using the built-in `dict` instead, as the `HashMap` class still has bugs.\r\n### ErrorSuppressor\r\nThe `ErrorSuppressor` class is made to be used as a context manager. <br>\r\nSyntax: `ErrorSuppressor(errors: tuple[Exception] = ())` <br>\r\n### sum_of_array(array: np.ndarray)\r\nReturns the sum of all items in an array\r\n### sum_of_arange(arange: np.arange)\r\nSelf-Explanatory\r\n### sum_of_range(Range: range)\r\nSelf-Explanatory\r\n### execute(command: str)\r\nExecute a console command. (Command behavior may differ based on the operating system) <br>\r\nIs equivalent to doing `os.sys()` <br>\r\nCan also be used as `execute(*commands: str)` to run multiple consecutive commands <br>\r\n## Creator Notes\r\n- `MorePie` is still in-work. We recommend testing it with your code before implementing it into any programs!\r\n- For the best experience, we recommend downloading the [Latest Version](https://pypi.org/project/MorePie/)\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Does Python not have enough tools? MorePie is here to help!",
    "version": "1.0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/cornusandu/MorePy/issues",
        "GitHub Repository": "https://github.com/cornusandu/MorePy",
        "Homepage": "https://github.com/cornusandu/MorePy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf67a6a463464356484d6b1282fe762452cf9d42e14a94e7fdde664e2806f4c3",
                "md5": "7458387e4be68117f6f9ab67704c0e05",
                "sha256": "8d73643a9c85b3b9f600fa674bdd53b49632e3c5d626492961fb13c9a5c75952"
            },
            "downloads": -1,
            "filename": "MorePie-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7458387e4be68117f6f9ab67704c0e05",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 14169,
            "upload_time": "2024-06-18T06:58:32",
            "upload_time_iso_8601": "2024-06-18T06:58:32.993466Z",
            "url": "https://files.pythonhosted.org/packages/cf/67/a6a463464356484d6b1282fe762452cf9d42e14a94e7fdde664e2806f4c3/MorePie-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d1450d1718e6c982adaddf4b0b38d5dcbe8089f432e1ed26a6a8a4c7ce569d2",
                "md5": "77b901a06fa92d7192cce52a4df6516c",
                "sha256": "85a50a213c33a69d5cfeeaf0f503399a9104addac62769ca0cf3eec6752baa9c"
            },
            "downloads": -1,
            "filename": "morepie-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "77b901a06fa92d7192cce52a4df6516c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 13799,
            "upload_time": "2024-06-18T06:58:34",
            "upload_time_iso_8601": "2024-06-18T06:58:34.378754Z",
            "url": "https://files.pythonhosted.org/packages/6d/14/50d1718e6c982adaddf4b0b38d5dcbe8089f432e1ed26a6a8a4c7ce569d2/morepie-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-18 06:58:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cornusandu",
    "github_project": "MorePy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "morepie"
}
        
Elapsed time: 0.25237s