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
-
Windows PowerShell
- Console to run
mx
tool box, and its commands - How-to from Microsoft: https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows
- Console to run
-
Python:
mx
is tested with Python 3.11- As of July 2023, Python 3.11.4 is available at: https://www.python.org/ftp/python/3.11.4/python-3.11.4-amd64.exe
- Note: starting with Python 3.4,
pip
is by default included
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
|
Pipelinizer |
mx-sp-pl |
To produce Excel dashboard
|
Documentation Manager |
mx-sp-dm-bd mx-sp-dm-pp |
To report on documentations stored in SharePoints
|
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
anddist
should be generated
- Directories
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
- pip:
-
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 $_}
- On Mac:
- Check all packages are fine:
-
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()
: runpython -m rich.emoji
in console
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3a7bcd7a193af71c8ca4f4d9378de6ad256a2f2e48c0ce98e5141788c8f3156 |
|
MD5 | 1560d82c2e158046dea490792745a12b |
|
BLAKE2b-256 | 53ef0a57476677d21613457be2944893823164dfed03ebda5c25548879776fc4 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35a36228c32baaec34cd15ceaa3fb06de6d0a923db7d2a56d9af85e69abcd940 |
|
MD5 | 2f1349fb036836ac72764bd54cf92d52 |
|
BLAKE2b-256 | 241219ecfddf15c62cf8984bbc7a79b82926c97c6f75042f78485dab3bcb3c3f |