semvec/pypi-packages huggingface dataset:
wrapenv 0.1.4
A wrapper for callable functions with environments to register pre- and post-processing functions checks and modifications.
Requires Python: >=3.7,<4.0
Keywords: wrapper,preprocessing,postprocessing

# WrapEnv

An environment that can hold several callable functions along with pre- and post-processing
functions and auxilary environment. It is intended to be used as a wrapper for a function that
is to be called in a different environment than the one it was defined in.

## Installation

As usual, you can install the package using pip:

```bash
pip install wrapenv
```

## Usage

The package provides an instance of the class `ENVIRONMENT` that can be used as a decorator for functions that
are to be wrapped. As the instance is a global variable, it can be used from anywhere in the code (even in other modules).

The example in the [EXAMPLES](https://github.com/AMueckl/WrapEnv/blob/main/examples/README.md) folder demonstrates how to use the `ENVIRONMENT` instance to wrap a 
function that is to be called in a different environment than the one it was defined in.
mathsym-adasneves 1.1.4
A small example package
Requires Python: >=3.10

# Basic Math Library

This package provides users with a basic interface for evaluating functions.

## Usage

```py
from symMath_adasneves127.equation import create_eq

eq = create_eq("5x^2 + 3x + 5")

eq.evaluate(4) # Evaluate the equation when x=4

eq.evaluate(7.21) # Evaluate the equation when x=7.21
```

The 'equation' function will prvide an object with the following methods for use:

* Print
* Evaluate
  
Print will print out how the program interpreted the equation given.

Evaluate takes in a parameter 'x', to be used as the variable placeholder.

---

## Implementation with matplotlib

```python
# Import the required libraries and functions
from symMath_adasneves127.equation import create_eq
from matplotlib import pyplot as plt

# Create a basic equation of x^2
equation = create_eq("x^2")


# Unfortunately, the 'Range' function does not support floating point step values.
x = -10
while x < 10:
    y = equation.evaluate(x) # Evaluate, plot, increment.
    plt.plot(x, y, 'ro')
    x += 0.1

# Show the plot
plt.show()

```

![Plot Result](./result.png)

If your program is working correctly, you should see something like the figure above.

## More info

[Github](https://github.com/adasneves127/mathSym)