Skip to main content

this is a description

Project description


suppose you want to make a comand line tool called mac_mathpix_ocr. it accept integer as numbers ouput carrots we need to feed

	cmd> mac_mathpix_ocr 2 
	ouput: 4

we can get the output by two ways:

  • command line

      mac_mathpix_ocr  2
  • call python moudle

    python -m mac_mathpix_ocr 2

best practice schema


Generated by make env

This is first step you need to do in any python project

  • it will create a virtual env
  • auto source it
  • install requirements for the start up


run make test


make run will run in module mode make main will run in normal mode

You can see that and mac_mathpix_ocr/ are the same content file.

why do we need ? It is eay to make an entry in IDE , like intellij.

Could I just use to run like this?

python mac_mathpix_ocr/

You cound not.

That is because the top-level package problem.


top-level package is the same as

python src/func/  
top-level package is the same as, aka func 
top-level package is the folder where you run this command from

So , why mac_mathpix_ocr/ does not work?

because top-level package is mac_mathpix_ocr now.


Always use logging for log print,dont use printlogging config is controlled bylogging.yml, which can control every module level call setup_logging` in main file (ra)

make module

update readmeput moudle in the folder parallel with logx folder.

  • logx
  • your_module

packing module or cmd


for quick test purpose

  • install: pip install .
  • uninstall: pip uninstall <module_name>

make install make uninstall

upload to test or prod PYPI server

upload to test server:

make upload-to-test 

upload to prod server:

make upload-to-prod

test and coverage

pure test

make test

test with coverage

make coverage

Project details

Download files

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

Files for mac-mathpix-ocr, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size mac_mathpix_ocr-0.0.1-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page