Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    python-archive 0.2

    Download button

    No screenshots available
    Downloads: 222  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Gary Wilson Jr. | More programs
    MIT/X Consortium Lic... / FREE
    July 13th, 2012, 15:25 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-archive description

    Simple library that provides a common interface for extracting zip and tar archives

    The python-archive package provides a simple, pure-Python interface for handling various archive file formats. Currently, archive extraction is the only supported action. Supported file formats include:

     * Zip formats and equivalents: .zip, .egg, .jar.
     * Tar and compressed tar formats: .tar, .tar.gz, .tgz, .tar.bz2, .tz2.

    Example usage

    Using the Archive class:

    from archive import Archive
    a = Archive('files.tar.gz')
    a.extract()


    Using the extract convenience function:

    from archive import extract
    # Extract in current directory.
    extract('files.tar.gz')
    # Extract in directory 'unpack_dir'.
    extract('files.tar.gz', 'unpack_dir')



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    archive extractor | zip archives | Python library | zip | archive | extractor

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM