Skip to main content

A tool for quasi-interactive math sheets

Project description

hashequal

a Python tool for quasi-interactive math sheets, aiming to provide Mathcad-like experience
on execution it modifies the calling script annotating the results of the operations marked with #=

example

before running

#! /usr/bin/env python

import hashequal

a = 1 + 1 #=
b = a * 2 #=  # comment

after running

#! /usr/bin/env python

import hashequal  # run 2018-11-06 18:59:54 UTC

a = 1 + 1 #= 2
b = a * 2 #= 4  # comment

instructions

  • import hashequal at the beginning of the file, eventually just below the interpreter directive
  • mark every operation whose result is to be annotated with an #= comment
  • if there need to be further comments on an #= line, use another following #

known issues

  • does not handle implicit line continuations

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

hashequal-1.0.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

hashequal-1.0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file hashequal-1.0.2.tar.gz.

File metadata

  • Download URL: hashequal-1.0.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for hashequal-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5416fa72487afc5a5298d7328976066eb2a40ffeadb3e3143ef66dabf2f37071
MD5 521f224520f850894a9aecdeb23f2856
BLAKE2b-256 c6d72af493e764d73e3aa7320c1753d4631bee4d80cb679f35836f78fad2c614

See more details on using hashes here.

File details

Details for the file hashequal-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: hashequal-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for hashequal-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec5066076cf96b3ca485c38c8be78c278a71d5f681673f03d6aa697deeea0667
MD5 1bad5cd05909c6f7ecc13e61939a8162
BLAKE2b-256 4ff55e75f4d165a922fd44b7d9649d5dbdc382f3f468ef22fa9b4f3ebc500458

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