Skip to content

IMIO/imio.pyutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

image

PyPI badge

Introduction

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.

Tests

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