Metadata-Version: 2.1
Name: MorePie
Version: 1.0.1
Summary: Does Python not have enough tools? MorePie is here to help!
Home-page: https://github.com/cornusandu/MorePy
Author: Sandu Bogdan
Author-email: bogdanelsandu@hotmail.com
Project-URL: Bug Tracker, https://github.com/cornusandu/MorePy/issues
Project-URL: GitHub Repository, https://github.com/cornusandu/MorePy
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: license.txt

# 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/)
