Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Tools

Some simple tools I have written in python to help me.

Laplace Trend Test tool

How to run

python laplaceTrendTest.py <file path>

File to run the trend test on has to be in the following format.

T,FC
1,2
2,3
3,4

Both columns T and FC need to be able to convert to numpy.float32.

Convert Azure DevOps Wiki To Confluence

Code written to migrate the wiki from Azure DevOps to Confluence

Code style: black

Python Script

  • Please update the constant SPACE_KEY to be the key of the space you want the wiki pages to be upload to.
  • Then run the script, all the modified wiki pages will be stored in the output directory

Tools

Mark

  • To upload the markdown files to Confluence we use a tool called mark
  • Please follow the setups in their GitHub to install mark.

Steps

  1. Run the bash script clone-wiki.sh to clone the Azure DevOps wiki.

    • Might have to run chmod +x clone-wiki.sh
    • Make sure that you have your Azure Git credentials setup, otherwise the repo can't be cloned
  2. Update the python script with the correct space key

    • SPACE_KEY: line 5, fix-markdown.py
  3. Run the python script: make format

  4. Update the mark.conf

    • Add your username (i.e. your confluence email)
    • Add your password, which should be your Confluence API token
  5. Run mark

    • Use the command: mark -c mark.conf -f "output/**/*.md"

Notes

  • If a page has a lot of images there is a chance it will fail to upload to confluence using Mark. As such please upload that page individually to ensure it works.

About

Some simple tools I have written in python to help me with some of my courses.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages