• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux filelike Download

filelike

July 31, 2009
This software provides classes which can be used to create and wrap file-like objects.
Version 0.3.4
License LGPL
Platform Linux
Supported Languages English
Homepage pyenchant.sourceforge.net
Developed by Ryan Kelly
Filelike is a Python library that offers an efficient way of dealing with file-like objects by creating and handling them. This can be achieved through the use of the module that takes care of the groundwork for implementing and manipulating objects that provide a rich file-like interface. The different functionalities provided by the module include reading, writing, seeking, and iteration.

Filelike provides a number of useful classes built on top of this functionality. The primary class is FileLikeBase, which implements the entire file-like interface on top of primitive _read(), _write(), _seek() and _tell() methods. The subclass implementation method is used to obtain the related higher-level file behaviors.

In addition to the incredible functionalities, the software provides some neat file-handling functions. It offers an open function that mirrors the standard open() function but is more intelligent. URLs are fetched automatically, .bz2 files are decompressed seamlessly, and so on. It also provides a join function that concatenates multiple file-like objects together so that they can act as a single file. You can also access a section of a file-like object using the slice function, and it will seem like an independent file.

The "wrappers" subpackage contains a collection of useful classes built on top of this framework. These classes include the Translate class that passes file contents through an arbitrary translation function such as compression, encryption, etc. The Decrypt class enables on-the-fly reading and writing encrypted files using PEP272 cipher API. It also provides an UnBZip2 class that offers on-the-fly decompression of bzip'd files, similar to the standard library's bz2 module, but accepts any file-like object.

As an example of the type of thing that this module is designed to achieve, you can use the Decrypt wrapper to access an encrypted file transparently. You can create the decryption key from Crypto.Cipher and open the encrypted file from filelike.wrappers using the Decrypt method.

The "pipeline" subpackage in the software contains facilities for composing these wrappers in the form of a unix pipeline. For example, 'f' will read the first five lines of an encrypted file in the following script: from filelike.pipeline import Decrypt, Head f = file("some_encrypted_file.bin") > Decrypt(cipher) | Head(lines=5)

Finally, two utility functions are provided for when code expects to deal with file-like objects: is_filelike(obj), which checks if an object is file-like and to_filelike(obj), which wraps a wide variety of objects in a file-like interface.
What's New

Version 0.3.4: N/A

Free Download 32K
377
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

MySQLdb
A Python interface for MySQL, enabling developers to easily access and manipulate ...
Aliens
The Aliens project is a Linux-based PDA shooting game with a slide ...
Stunnix Advanced Web Server
This software allows users to put any website onto a removable media ...
OpenSoundEditor
OpenSoundEditor is an Amarok script that lets users open audio files directly ...
Cooka
Cooka is a basic image viewer coded in C# and compiled with ...
OpenCA
The OpenCA Project is an open source initiative aimed at creating a ...
Snmp Monitor
Snmp Monitor offers a comprehensive SNMP router combined with alarm monitoring capabilities.
GoboLinux
GoboLinux stands apart from other Linux distributions with its unique approach, offering ...
Flexirest
A versatile reStructuredText tool that provides medium-level functionality.
wbarconf
Wbarconf is a Python and GTK-based graphical user interface that allows configuration ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.