Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.26 KB

README.rst

File metadata and controls

59 lines (40 loc) · 1.26 KB

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