SymPy Pipe
This package provides a subset of the SymPy expression manipulation functionality as pipes (using the Pipe package). This facilitates their usage (especially when doing interactive manipulation in Jupyter). They all act on single expressions or, most useful, on iterables of expressions (returning a respective generator).
The pipes have the same interface as the original SymPy functions/methods, with the exception of the first parameter being the expression or expression iterable to work on (filled by the | operator).
Examples
All examples depend on the following initialization code:
from sympy import Symbol
x = Symbol("x")
y = Symbol("y")
simplify
from sympy_pipes import simplify
x + x | simplify
[x + x, 2 * x + x] | simplify
subs
from sympy_pipes import subs
x | subs(x, y)
[x, 2 * x] | subs({x: y})
limit
from sympy_pipes import limit
x**2 | limit(x, 1)
[x**2, 2 * x] | limit(x, y)
diff
from sympy_pipes import diff
x**2 | diff(x)
[x**2, 2 * x] | diff(x, 2)
integrate
from sympy_pipes import integrate
x | integrate(x)
[x, 2 * x] | integrate((x, 1, 2))
display
To pretty print iterables of expressions in Jupyter environments. This function is only available, if IPython is installed in the environment!
The display pipe returns its input, so it can be used to output intermediate results.
from sympy_pipes import display, subs
x | display | subs(x, y) | display
[x, 2 * x] | display | subs(x, y) | display
License
The code is published under the terms of the MIT License.
Metadata
Release files for sympy-pipes 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sympy_pipes-0.1.0.tar.gz | 2.2 kB | Without provenance | Details for sympy_pipes-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sympy_pipes-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sympy_pipes-0.1.0-py3-none-any.whl |
Total release size: 5.2 kB
Release files / sympy_pipes-0.1.0.tar.gz
| Download URL | sympy_pipes-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e64e049d6517427fd8996da761ff614211976b8aa302902cf5b51670c038ac83
|
|
BLAKE2b-256 checksum How to use checksums |
4b2d2529bf62c7178d8609036bdf0df01fe976e37e81d563982c2528d48fc811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Release files / sympy_pipes-0.1.0-py3-none-any.whl
| Download URL | sympy_pipes-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5b9a2063c9fd4ab77e265ef4fd1bb2a256d7466a73216143a2bc2bcddbdc4bb
|
|
BLAKE2b-256 checksum How to use checksums |
f583c088ae48596ce20453b3ea9d7fb36ae6801e756a11c65b0995cea9e3c452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.19
|
Security for sympy-pipes 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.