Skip to main content

betterspy

PyPi Version PyPI pyversions GitHub stars PyPi downloads

Discord

gh-actions codecov LGTM Code style: black

Show sparsity patterns of sparse matrices or write them to image files.

Example:

import betterspy
from scipy import sparse

A = sparse.rand(20, 20, density=0.1)

# betterspy.plot()
# set attributes on gca()
# plt.show()
# or directly

betterspy.show(A)

betterspy.write_png(
    "out.png",
    A,
    # border_width=2,
    # border_color="red",
    # colormap="viridis"
)
no colormap viridis

There is a command-line tool that can be used to show matrix-market or Harwell-Boeing files:

betterspy msc00726.mtx [out.png]

See betterspy -h for all options.

bp_200 bp_600 Chebyshev2
orani678 rajat19 rdb1250l
rdb3200l west0989 west1505

Installation

betterspy is available from the Python Package Index, so simply do

pip install betterspy

to install.

License

This software is published under the GPLv3 license.

Metadata

Release files for betterspy 0.1.6

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

Source distribution (sdist)

Source distribution for betterspy 0.1.6
File Size Uploaded Provenance Actions
betterspy-0.1.6.tar.gz 18.5 kB Without provenance Details for betterspy-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for betterspy 0.1.6
File Interpreter ABI Platform Actions
betterspy-0.1.6-py3-none-any.whl Python 3 none any Details for betterspy-0.1.6-py3-none-any.whl

Total release size: 36.6 kB

Release files / betterspy-0.1.6.tar.gz

Download URL betterspy-0.1.6.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
23da2fc96fc5795a0e92d255f692bc64f8564bf22260001c1f96e220cdf039b8
BLAKE2b-256 checksum
How to use checksums
e2180066c56afb8b8a0e5ca9bbdbd262cca5884ff4db659b084073153b0693dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / betterspy-0.1.6-py3-none-any.whl

Download URL betterspy-0.1.6-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8bc0fb642ed57d1c2ae1cf06e9ba5a1a16e7f6bd0acfea39dd4da206fe48b0f
BLAKE2b-256 checksum
How to use checksums
5719c13a2800430bd7776f8c2025f659da54fe046bd92758cb74d955964dd677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Security for betterspy 0.1.6

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.

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