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

Pre-requisites

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 python3 with python
  • 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 build and dist should be generated
  • 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 run pip install twine
    • Package viewable at pypi

Typer

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

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.

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.2.tar.gz (48.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genov-0.0.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

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

Hashes for genov-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0b41ce5cb560d8cca9443b4c77ef099a99e0aec823d5245866270532656fa21f
MD5 7371ae5189490e4fb2b9fa060da5d085
BLAKE2b-256 99f0d4cdbbe9396da8cfae1b40db0706ab9242f15a736374cf30cb4af896fef1

See more details on using hashes here.

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

Hashes for genov-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a13c24146e6b313c04460645e8a70d0cdde2d1b1d7a4187fe7173810e15be7d5
MD5 c582d214eb60df543f75814267f9479a
BLAKE2b-256 cf025cfdd3007ecbf2ca9e922643daf21b617e0aa8d83c8da63bf73188e4f33f

See more details on using hashes here.

Supported by

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