Giter Club home page Giter Club logo

arsenal's Introduction

The arsenal is an assortment of python utilities for math, natural language processing / information extraction, systems programming, scripting/hacks, software development.

This project is a bit large and slightly messy. Part of this is because I dislike installing software on all of the machine I used (yes, even with tools as awesome as pip, easy_install, and virtualenv). One of my favorite passtimes is finding the "utils.py" of open-source projects and borrowing ideas. If you find any code missing proper attribution please let me know!

There are a lot of files here. I'd like to highlight a few of my most useful / favorite things:

Highlights

  • misc.py

    A "dumping ground" for odd and ends. I normally drop things in here and later move them elsewhere if the turn out to be useful.

  • automain.py

    Automatically constructs a "main function" for any module which calls the automain function.

  • robust.py

    utilities such as timelimit and retry to help "robustify" your code.

  • iterextras.py

    the most useful things here are iterview and sliding_window

  • fsutils.py

    utilities for working with the file system like atomic file writes and recursively listing directories (like UNIX find)

  • nlp/

    Contains many text-processing utilities useful in natural language processing. This directory has gotten big enough to almost become its own project. I've got some pretty good regular expression for scraping dates.

  • debug/

    I'm a big fan of debug.utils.ip and debug.ultraTB2.enable!

    • breakin.py ripped out bzr's infamous breakin feature. enabling this allows the user to send a SIGQUIT or SIGBREAK signal to a running process and get an interactive shell or pdb session AND even resume the process!
    • ultraTB2.py I ripped out ultraTB from IPython (to remove the dependence) and make some of the functionality easier to use.

      It's as simple as:

      >>> from debug import ultraTB2; ultraTB2.enable()

  • cache/

    contains the memoize decorator and even a persistence shelve-based variant.

arsenal's People

Contributors

hannawallach avatar timvieira avatar

Watchers

 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.