Skip to main content

project management toolbox

Project description

Versions

  • 0.0.5: date predictability - workable version

Command line

From the "source" directory, you can run the below command:

  • To compute and persist:
python3 ./enov.py --verbose \
  load-csv -c id -c timestamp -c ps_kick_off_date ~/Documents/07.PRO/04.ENOVATION/2021-06-29.MX.TestFiles/00.pipeline_history.csv df_raw \
  rename-columns -o df_renamed df_raw '{"id":"key","timestamp":"date","ps_kick_off_date":"measure"}' \
  cleanse-null-values -o df_cleansed df_renamed measure \
  compute_date_predictability -o df_predictability df_cleansed \
  write_predictability df_predictability ~/Documents/07.PRO/04.ENOVATION/2021-06-29.MX.TestFiles/jsg.bean.xlsx

  • To load persisted predictability, and graph
python3 ./enov.py --verbose \
  load_predictability_bean ~/Documents/07.PRO/04.ENOVATION/2021-06-29.MX.TestFiles/jsg.bean.xlsx df_predictability \
  graph_predictability_into_dash df_predictability

Steps to produce and publish distribution

  • Commands to execute from the root directory com.enovation

Check we have latest versions

  • pip: python3 -m pip install --upgrade pip
  • build to generate the distribution: python3 -m pip install --upgrade build
  • twine to publish to pypi: python3 -m pip install --upgrade twine

Generate and publish the distribution

  • build the distribution files and directories: python3 -m build
    • Directories build and dist should be generated
  • publish to pypi: python3 -m twine upload --repository pypi dist/*
    • Package viewable at pypi

Install

  • load the package on another machine: python3 -m pip install com-enovation
    • You can test by launching a python interpreter: python3
    • And load the package: >>> import com.enovation

Dependencies

  • pandas: to handle dataframes, series, etc
  • click: to handle command line
  • enlighten: to display a progress bar for lengthy steps
  • openpyxl: to handle xlsx files
  • xlwt: that is a dependency for pandas.io.excel
  • To be decommissioned:
    • scipy: used in old version of data preditability, that used special.psi function

Pycharm configuration

Unit test configuration

  • From menu Run > Edit Configurations...
    • Configuration > Target > Script path: /Users/jsg/PycharmProjects/com.enovation.toolbox/tests
    • Configuration > Working directory: /Users/jsg/PycharmProjects/com.enovation/
    • Configuration > Add content roots to PYTHONPATH: checked
    • Configuration > Add source roots to PYTHONPATH: checked

Python stuff

To update all packages

  • Check all packages are fine: pip check
  • List all packages outdated: pip list --outdated
  • Update all packages outdated: pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U

This is a simple example package. You can use Github-flavored Markdown to write your content.


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

com-enovation-0.0.10.tar.gz (17.4 kB view hashes)

Uploaded Source

Built Distribution

com_enovation-0.0.10-py3-none-any.whl (23.1 kB view hashes)

Uploaded Python 3

Supported by

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