Skip to content

IMIO/imio.pyutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/IMIO/imio.pyutils/actions/workflows/main.yml/badge.svg?branch=master PyPI badge

Contents

This package provides python useful methods.

It relates to following kinds of operations:

  1. System level operations (system.py)

It provides helper methods to:

  • read and write files,
  • read directories,
  • execute commands,
  • store and load list and dict,
  • trace printing,
  • creating temporary files,
  • etc.
  1. Various python helpers (utils.py)

About:

  • ordereddict and dict manipulations
  • list manipulations
  • duration recording
  1. BeautifulSoup methods (bs.py)
  • remove elements
  • remove attributes
  • remove comments
  • replace entire strings
  • unwrap tags
  1. Postgres level operations (postgres.py). It requires psycopg2 egg !

It provides helper methods to:

  • single or multiple select,
  • insert, update, delete rows,
  • etc.

Can be run with: bin/python -m unittest discover