Giter Club home page Giter Club logo

util's Introduction

Build Status

util

Utility modules for Python, for use with other Python programs.

Features

Logging

The log submodule contains many functions for building and interacting with Python logging objects. Static logging configurations can be loaded from the logging.yml file, and the default location for log output is typically set to a local logs directory. Additionally, the classes submodule contains the LoggedObject class which can be used to create objects which have their own logging instances.

Email

The mutt submodule is a flexible wrapper to the mutt system program, and can be used to send emails. A common use-case is send the contents of a submodule or object's log file as the body of an email to users as a notification of program completion. File attachments can also be sent, allowing you to also send some of the files created by your program with the email.

Qsub

The qsub submodule includes the Job class for submitting jobs to a compute cluster and monitoring them for completion. Currently configured for the phoenix system at NYULMC running SGE.

Git

The git submodule contains functions for interacting with git installed on the system. For example, it is possible to check the current repository's branch information, in case you want prevent the program from running if not on the master branch.

Find

The find submodule contains the find function which can be used to search the system for desired files or directories. This function has been modeled off of the standard GNU find program and supports multiple inclusion and exclusion patterns, and search depth limits, among others.

Software

Designed and tested with Python 2.7

Designed for use on Linux system with Sun Grid Engine (SGE) installed

Some modules may make system calls relying on standard GNU utilities

Credits

sh.py is used as an included dependency.

util's People

Contributors

stevekm avatar varshini712 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.