Skip to main content

Utility for checking n-dim array shapes using Einstein notation.

Project description

assertshape

Unit Test Status PyPI PyPI - Python Version

Python library for asserting n-dim array shapes using Einstein notations.

Examples:

from assertshape import assertshape

assertshape("nmk,mkn", [(1,2,3), (2,3,1)])
assertshape("nmk,m_n", [(1,2,3), (2,42,1)])
assertshape("nmk,mkn...", [(1,2,3), (2,3,1,4,5,6)])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

assertshape-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

assertshape-0.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file assertshape-0.0.1.tar.gz.

File metadata

  • Download URL: assertshape-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for assertshape-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eb845fa589cdbf53d2f7a971b4fa76e9d8c8de56eced1a29a5a36a5d36dfca0a
MD5 a735509213007ea7f1592daf04be504f
BLAKE2b-256 c306638cf6db2c975867e57a266a995c4d4b71e5f69561c25aff7e10fbd1df97

See more details on using hashes here.

File details

Details for the file assertshape-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: assertshape-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for assertshape-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bd87aaca72a0281c8f7008a3f1284de3b0d8976eb22268d9b7c624bfbf916c1
MD5 006892511b7364d6b83ebf27af016700
BLAKE2b-256 c110070bfa2d6efc50c4702a9e81d72e4a8c41d7cb4fd461453d3015a0a438f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page