Skip to main content
 __   __  _______  _______  __   __  _______  ___      __   __  _______ 
|  |_|  ||   _   ||       ||  | |  ||       ||   |    |  | |  ||       |
|       ||  |_|  ||_     _||  |_|  ||    _  ||   |    |  | |  ||    ___|
|       ||       |  |   |  |       ||   |_| ||   |    |  |_|  ||   | __ 
|       ||       |  |   |  |       ||    ___||   |___ |       ||   ||  |
| ||_|| ||   _   |  |   |  |   _   ||   |    |       ||       ||   |_| |
|_|   |_||__| |__|  |___|  |__| |__||___|    |_______||_______||_______|

PyPI GitHub GitHub last commit GitHub pull requests GitHub followers

Overview

mathplug is a lightweight Python package which supplies simple math functions. It was primarily designed as an excuse to learn how to publish a Python package. Secondarily, this will give me an opportunity to learn some of the more complicated mathematical equations since I somehow skipped that part. In the future, you'll be able to install and import this software into your notebook or Python file and use it to add some numbers together. How exciting!

Table of contents

Install & use

  1. From terminal: shell pip install mathplug
  2. From python environment: import mathplug

Test

  1. Clone repository: git clone https://github.com/JordanWelsman/mathplug.git
  2. Build module for testing: python3 setup.py bdist_wheel
  3. Install module locally: pip install -e . dev
  4. Run tests with PyTest: pytest

Build

  1. Build module for distribution: python3 setup.py bdist_wheel sdist
  2. Push to PyPI: pip install twine twine upload dist/*

Objectives

  • Learn how to publish a Python package
  • Learn some more complicated math functions

History

0.0.0 (10.21.2022)

  • GitHub repositiry created
  • Project created
    • Basic README.md written

0.0.1 (10.25.2022)

  • Simple math functions defined
    • add(), divide(), hello_world(), multiply, square_root(), square(), and subtract()
  • Package files created
    • setup.py and LICENSE.md
  • Created test files & tested with pytest
    • test_add.py, test_divide.py, test_hello_world.py, test_multiply.py, test_square_root.py, test_square.py, and test_subtract.py
  • Package published to PyPI

0.0.2 (10.25.2022)

  • Aggregated all functions into one file
    • Functions should be optionally imported with import mathplug, not strictly from mathplug import function
    • Functions should be accessed with mathplug.function(), not mathplug.file.function
  • Agregated all test files into one file containing all tests
    • Done for ease of use and to clean up file tree
  • Incremented version number

0.0.3 (10.26.2020)

  • More math functions defined
    • absolute(), cube(), and exponent()
  • Created tests for new functions & tested with PyTest
    • absolute(), cube(), and exponent()
  • Incremented version number

0.1.0 (Planned)

  • Stable release
  • Improve Python accessability

Credits

mathplug was created, developed, and is currently maintained by Jordan Welsman.

License

mathplug is developed and distributed under the MIT license.

See LICENSE.md for more details.

Links

:file_folder: See this project on GitHub

:gift: See this project on PyPI

:cat: Follow me on GitHub

:briefcase: Connect with me on Linkedin

:email: Send me an email

:clapper: Followed tutorial by Mark Smith (@judy2k)

Release files for mathplug 0.0.3

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

Source distribution (sdist)

Source distribution for mathplug 0.0.3
File Size Uploaded
mathplug-0.0.3.tar.gz 5.8 kB Details

Built distribution (wheel)

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

Total release size:11.4 kB

Release files / mathplug-0.0.3.tar.gz

Download URL mathplug-0.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ee3a0fa6292f6293e10647232662ad7e92fb6c70018f3a29ce8fe93a142adfe
BLAKE2b-256 checksum
How to use checksums
bdc90a7dbea9da19d84b35c17c1b23d3fab0fbd81219e5fccc4804e70c0c17e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / mathplug-0.0.3-py3-none-any.whl

Download URL mathplug-0.0.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf0f52148084c6b1d87162bae7472dc5806d4d3899536993f066b13c4aac1d4b
BLAKE2b-256 checksum
How to use checksums
a879262fb73af135ee125de81e1480d76fb2cd5b07e695390039fd3e830d9f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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