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
Pre-requisites
-
Windows PowerShell (Terminal on Windows)
- Console to run
genovtool 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:
genovis tested with Python 3.13- As of EoY 2024, Python 3.13.0 is available at: https://www.python.org/downloads/
- Note: starting with Python 3.4,
pipis by default included
Once installed, you can check in your terminal:
foo@bar:~$ python3 --version
>> Python 3.13.0
foo@bar:~$ pip3 --version
>> pip 24.3.1 from /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip (python 3.13)
Notes:
- On your system, you might have to replace the
python3withpython - To check where is your python installed:
which python3:/Library/Frameworks/Python.framework/Versions/3.13/bin/python3
Install Genov
- Simply type in your Terminal:
pip3 install genov
Use
Cheat sheet
Versions
- 0.0.1, as of 29-Nov-2024: Framework initialized
- 0.0.2, as of 3-Dec-2024: get issues from jira, and persist in an excel spreadsheet
Contribute
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 |
tomlkit |
Library for manipulating configuration file |
pydash |
Library for manipulating dictionaries with path... |
Cheat sheet
Distribution
- build the distribution files and directories:
python3 -m build- Directories
buildanddistshould be generated
- Directories
- To install the local build (rather than fetching from pipy), execute the following command from the project root:
rm -rf dist;python3 -m build;pip3 uninstall genov;pip3 install dist/genov-*.tar.gz - publish to
pypi:python3 -m twine upload --repository pypi dist/*- In case you face an error
No module named twine, you need first to runpip install twine - Package viewable at pypi
- In case you face an error
Typer
- To get emojis that can be printed by
rich.print(): runpython -m rich.emojiin console
Pycharm configuration
- Unit test configuration, from menu
Run > Edit Configurations...Configuration > Target > Script path: ~/PycharmProjects/com_enovation.murex/testsConfiguration > Working directory: ~/PycharmProjects/com_enovation.murex/Configuration > Add content roots to PYTHONPATH: checkedConfiguration > 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genov-0.0.2.tar.gz.
File metadata
- Download URL: genov-0.0.2.tar.gz
- Upload date:
- Size: 48.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 |
0b41ce5cb560d8cca9443b4c77ef099a99e0aec823d5245866270532656fa21f
|
|
| MD5 |
7371ae5189490e4fb2b9fa060da5d085
|
|
| BLAKE2b-256 |
99f0d4cdbbe9396da8cfae1b40db0706ab9242f15a736374cf30cb4af896fef1
|
File details
Details for the file genov-0.0.2-py3-none-any.whl.
File metadata
- Download URL: genov-0.0.2-py3-none-any.whl
- Upload date:
- Size: 13.5 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 |
a13c24146e6b313c04460645e8a70d0cdde2d1b1d7a4187fe7173810e15be7d5
|
|
| MD5 |
c582d214eb60df543f75814267f9479a
|
|
| BLAKE2b-256 |
cf025cfdd3007ecbf2ca9e922643daf21b617e0aa8d83c8da63bf73188e4f33f
|