Skip to main content

Prelude_py

Tests Coverage Issues Stars PyPI PyPI Downloads

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:

Matplotlib example plot

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.

Metadata

Release files for prelude-py 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prelude-py 0.2.0
File Size Uploaded Provenance Actions
prelude_py-0.2.0.tar.gz 100.0 kB With provenance Details for prelude_py-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prelude-py 0.2.0
File Interpreter ABI Platform Actions
prelude_py-0.2.0-py3-none-any.whl Python 3 none any Details for prelude_py-0.2.0-py3-none-any.whl

Total release size: 105.2 kB

Release files / prelude_py-0.2.0.tar.gz

Download URL prelude_py-0.2.0.tar.gz
Size 100.0 kB
Tags Source
SHA-256 checksum
How to use checksums
53241c492fbe76e954c2c38fd975928bbd5f86d945828b98f4adee2e864e8d6d
BLAKE2b-256 checksum
How to use checksums
d6a49d82060664946a8e78a8f13efa0717be51f3f8f96f1b75b2e10e8dc4ad27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Release files / prelude_py-0.2.0-py3-none-any.whl

Download URL prelude_py-0.2.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5fdaab1b0dcdecbcfc50a9424b0b4b0271896566b94da54f6845a53e5a87ca1
BLAKE2b-256 checksum
How to use checksums
44c2e5f7d8f9762380769f40ec5522c5de556ef4de75e08a344608da7e940d98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

Security for prelude-py 0.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prelude_py-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page