Prelude_py
prelude_py is a lightweight convenience module that provides lazy imports for commonly used scientific Python
libraries through familiar aliases. Instead of importing each library individually, you can access them
from a single namespace.
Modules are imported only when first accessed, so importing prelude_py itself has virtually no overhead.
Installation
Install the package:
uv pip install prelude_py
To install all supported optional dependencies:
uv pip install "prelude_py[all]"
Usage
from prelude_py import np, pd, sns, plt
# NumPy
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Pandas
df = pd.DataFrame({"x": x, "sin(x)": y})
# Seaborn
sns.set_theme(style="whitegrid")
sns.lineplot(data=df, x="x", y="sin(x)")
plt.title("Sine Wave")
plt.tight_layout()
plt.show()
Output:
from prelude_py import do
# Load example AnnData
adata = do.dt.example_10x_processed()
# Plot UMAP colored by cell annotation
do.pl.umap(adata, color="annotation")
Output:
Available aliases
| Alias | Package |
|---|---|
np |
numpy |
nb |
numba |
pd |
pandas |
pl |
polars |
mpl |
matplotlib |
plt |
matplotlib.pyplot |
sns |
seaborn |
do |
dotools_py |
ad |
anndata |
sc |
scanpy |
dc |
decoupler |
sq |
squidpy |
pt |
pertpy |
scvi |
scvi |
License
This project is distributed under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prelude_py-0.1.0.tar.gz.
File metadata
- Download URL: prelude_py-0.1.0.tar.gz
- Upload date:
- Size: 99.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415a1c78ec4006e22dcbf93c181c0d1c83c0267a28bdab07ed858da84e58d738
|
|
| MD5 |
a1807c46cdf006ad044b9501bcb73ea9
|
|
| BLAKE2b-256 |
5a0e6c3da66b3093ab66a031159ff5341c67e5d14b1ed0fd36b18791692df4e8
|
Provenance
The following attestation bundles were made for prelude_py-0.1.0.tar.gz:
Publisher:
release.yaml on davidrm-bio/prelude_py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prelude_py-0.1.0.tar.gz -
Subject digest:
415a1c78ec4006e22dcbf93c181c0d1c83c0267a28bdab07ed858da84e58d738 - Sigstore transparency entry: 2303799490
- Sigstore integration time:
-
Permalink:
davidrm-bio/prelude_py@212ba6cac9cd0121192d167765439ef8d2b2ea68 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/davidrm-bio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@212ba6cac9cd0121192d167765439ef8d2b2ea68 -
Trigger Event:
release
-
Statement type:
File details
Details for the file prelude_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: prelude_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91cce972c90a88a09e2edd29051b8d2fbb342af4d1e53e7be26a825a059c8207
|
|
| MD5 |
541a5c60f593c6669353f92dc2aeaa8d
|
|
| BLAKE2b-256 |
32e39366e76faa53ca770d14a6136509c454f763cacf5aa873bc9b7ce56b2a52
|
Provenance
The following attestation bundles were made for prelude_py-0.1.0-py3-none-any.whl:
Publisher:
release.yaml on davidrm-bio/prelude_py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prelude_py-0.1.0-py3-none-any.whl -
Subject digest:
91cce972c90a88a09e2edd29051b8d2fbb342af4d1e53e7be26a825a059c8207 - Sigstore transparency entry: 2303799495
- Sigstore integration time:
-
Permalink:
davidrm-bio/prelude_py@212ba6cac9cd0121192d167765439ef8d2b2ea68 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/davidrm-bio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@212ba6cac9cd0121192d167765439ef8d2b2ea68 -
Trigger Event:
release
-
Statement type: