/math_ops_python

Example for how to set up a python package / module.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

math_ops_python

This short example shows how to set up and how to install a working, minimal python package.

Go to the folder and type:

pip install .

To uninstall write anywhere:

pip uninstall math_ops_phil

Example:

In [1] import math_ops_phil as mop

In [2]: mop.add(2,3)

Out[2]: 5

In [3]: mop.extras.divide(2,3)

Out[3]: 0.6666666666666666

PS: much later after created this example, I found another good example on the web

https://godatadriven.com/blog/a-practical-guide-to-using-setup-py/ https://godatadriven.com/blog/how-to-start-a-data-science-project-in-python/ ---> https://github.com/hgrif/example-project.git