Skip to main content

Genovation toolbox

Project description

The Genovation python toolbox

This python tool-box is supposed to help Genovation associates in their day-to-day work.

Install

How to - Install

  • Upgrade the com-enovation-murex tool-box:
    • pip uninstall com-enovation-murex
    • pip install ./com-enovation-murex-0.0.1.tar.gz

Pre-requisites

Once installed, you can check in PowerShell:

foo@bar:~$ python --version
           >> Python 3.11.0
foo@bar:~$ pip --version
           >> pip 23.2.1 from C:\Users\xxx\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)

Install package enov-murex

In Windows PowerShell, from a directory where distribution files are stored (aka enov_murex-?.?.?-py3-none-any.whl), type the command

foo@bar:~$ pip install .\enov_murex-?.?.?-py3-none-any.whl
           >> (…)
           >> Installing collected packages: com-enovation, enov-murex
           >> Successfully installed com-enovation-?.?.? enov-murex-?.?.?

Once installed, you can check in PowerShell:

foo@bar:~$ mx
           >> Usage: mx [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
           >> Options:
           >>   --verbose / --no-verbose  Level of logging verbosity: INFO (--verbose),
           >>                             WARNING (default) or ERROR (--no-verbose).
           >>   --help                    Show this message and exit.
           >> 
           >> Commands:
           >>   (…)
           >>   dict-load-json     Load json file into a dictionary that is labelled...
           >>   (…)
           >>   dict-set-json      Set a DICTIONARY provided as as an argument as an...
           >>   (…)
           >>   mx-sp-dh           MUREX: Enrich the Service Presale pipeline: - Loads...
           >>   mx-sp-pl           MUREX: Produces and distributes reports on service...
           >>   (…)

Commands

Building Blocks Command Description
Data Handler mx-sp-dh To prepare data
  • As an input, data extracted from Qlik
  • Command verifies/ cleanses/ enriches data
    • Configuration file is under: enov\murex\presale\mx_sp_dh_data_handler\DataHandlerConfigurationFile.json
  • As an output, verified/ cleansed/ enriched data that can be used to produce reports
Pipelinizer mx-sp-pl To produce Excel dashboard
  • As an input, data extracted from Qlik verified/ cleansed/ enriched
  • Library selects data, produces excel dashboard and persists into file system
    • configuration file is under: enov\murex\presale\mx_sp_pl_pipelinizer\DistributionConfigurationFile.json
  • As an output, excel reports produced and persisted in file system
Limitations: performance is poor. A possible optimization is identified that could reduce the timing by 10 times, but is not yet implemented.
Documentation Manager mx-sp-dm-bd
mx-sp-dm-pp
To report on documentations stored in SharePoints
  • Business Development Document Repository: for materials produced across opportunities
  • Positioning and Promotion: for Tools, Templates and Accelerators

The technicalities

Versions

  • 0.1.0, as of 02-Jul-2023: workable version
  • 0.1.1, as of 08-Jul-2023: added SPLC and predictability data. No KPI nor digest yet.
  • 0.1.2, as of 26-Aug-2023: added documentation management for SharePoint Positioning and Promotion
  • 0.1.3, as of 10-Sep-2023: resynchronized with com-enovation.0.0.40: adaptation to latest version for pandas.dataframe and to_datetime function which becomes stricter, packaging setup.cfg to project.toml, tests refactoring

Dependencies

Dependencies Description
com-enovation The seed toolbox that we use to initialize this toolbox. To decommission as commands are being re-instantiated here...
typer Library for building CLI applications, based on Click

Upgrade package enov-murex

  • Upgrade the com-enovation-murex tool-box:
    • pip uninstall com-enovation-murex
    • pip install ./com-enovation-murex-0.0.1.tar.gz

Contribute

Generate the distribution

  • build the distribution files and directories: python3 -m build
    • Directories build and dist should be generated

Pycharm configuration

  • Unit test configuration, from menu Run > Edit Configurations...
    • Configuration > Target > Script path: ~/PycharmProjects/com_enovation.murex/tests
    • Configuration > Working directory: ~/PycharmProjects/com_enovation.murex/
    • Configuration > Add content roots to PYTHONPATH: checked
    • Configuration > Add source roots to PYTHONPATH: checked

Python stuff

  • Check we have latest versions:

    • pip: python3 -m pip install --upgrade pip
    • build to generate the distribution: python3 -m pip install --upgrade build
  • Update packages using pip

    • Check all packages are fine: pip check
    • List all packages outdated: pip list --outdated
    • Update all packages outdated:
      • On Mac: pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
      • On Windows: pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}
  • A simple example package. You can use Github-flavored Markdown to write your content.

PERSO

rm -rf dist;rm -rf src/enov_murex.egg-info;python3 -m build;pip uninstall -y enov-murex

CHEAT SHEET

TYPER

  • To get emojis that can be printed by rich.print(): run python -m rich.emoji in console

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

genov-0.0.1.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

genov-0.0.1-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

Details for the file genov-0.0.1.tar.gz.

File metadata

  • Download URL: genov-0.0.1.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for genov-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c3a7bcd7a193af71c8ca4f4d9378de6ad256a2f2e48c0ce98e5141788c8f3156
MD5 1560d82c2e158046dea490792745a12b
BLAKE2b-256 53ef0a57476677d21613457be2944893823164dfed03ebda5c25548879776fc4

See more details on using hashes here.

File details

Details for the file genov-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: genov-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 44.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for genov-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35a36228c32baaec34cd15ceaa3fb06de6d0a923db7d2a56d9af85e69abcd940
MD5 2f1349fb036836ac72764bd54cf92d52
BLAKE2b-256 241219ecfddf15c62cf8984bbc7a79b82926c97c6f75042f78485dab3bcb3c3f

See more details on using hashes here.

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