Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.601.474 Times

Iterating through large file-like objects 1.1

  Date Added: May 10, 2013  |  Visits: 456

Iterating through large file-like objects

Report Broken Link
Printer Friendly Version


Product Homepage
Download (59 downloads)



This function provides a simple iterator for the lines of a file-like object. (It also provides a flag for removing/retaining trailing newlines.) I ran into the problem a number of times that I wanted to read-in a very large file-like object (say a GB or two) line by line. This is a problem for any object that wants to read the entire "file" in at once, unless you have several GB of memory just begging to be used...In Python 2.3, while file objects now support this sort of single-line iteration, not all file-like objects do. For example, using the for-in construction with sys.stdin still causes sys.stdin to read in everything before the for-loop begins iteration. Using the iterfile function allows you to process sys.stdin iteratively, which may be important if you have a lot of information coming in on standard input.

Requirements: No special requirements
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python , BSD Solaris
Keyword: File Iteration Script Iterator Object Object File Simple Iterator
Users rating: 0/10

License: Freeware
USER REVIEWS
More Reviews or Write Review


ITERATING THROUGH LARGE FILE-LIKE OBJECTS RELATED
Database Tools  -  MySQL Dump Script 1.0
This script is used to dump simple MySQL tables to a string (and then you can save it in a file if you want, or let user download it). The usage of MySQL Dump is so simple, that you can dump one table with only five lines of code!
 
Graphs and Charts  -  Simple Gaunt Chart Script 1.1
This script allows you to display simple gaunt charts of project programmes.
10 KB  
Database Tools  -  MySQL Dump Script for Scripts 1.0
This script is used to dump simple MySQL tables to a string (and then you can save it in a file if you want, or let user download it).The usage of MySQL Dump is so simple, that you can dump one table with only five lines of code!
10 KB  
Programming  -  RecordSilo 0.2.8
RecordSilo is an adaptation of a pairtree store, each object with simple JSON crude versioning and keyvalue manifest. Designed to be used as a repository of harvested records from OAI-PMH based services and the like.
10.24 KB  
Modules  -  Prefix for Database Tables 1.0
The object is simple: stick a small common prefix in front of each database table in the catalog, so that you can easily tell one catalog from another within the same database.I've done this by:1. Adding a variable - DB_TABLE_PREFIX - to the...
 
3D Graphic Tools  -  povmake 1.0.0
povmake is a shell-script that acts as a simple front-end to the POV-ray raytracer. It allows you to trace a poyray file with four different sizes and four different quality settings. It produces minimal output, but saves the information from...
2.05 KB  
Miscellaneous  -  Giki 1.5.2
Giki is a flat-file, simple PHP wiki system based on Wiki! but with added features. Features: - File uploads - An option to allow guests to post - History - Templatable nav-bar - More secure logins - A plugin system - Support for multiple...
 
Miscellaneous  -  Giki Wiki 1.5.2
Giki is a flat-file, simple PHP wiki system based on Wiki! but with added features.
40.96 KB  
3D Graphic Tools  -  ScaleDir 01-b
ScaleDir is a Kommander Script for a fast and simple Batch Resize of all Pictures in a folder(under use of ImageMagick). It asks for the following Parameter: "Path" "Suffix" of pictures (Type)" "Präfix" for new pictures "Horizontal Pixel...
4.1 KB  
Dictionaries  -  Simple Poll Administrator 0.3.0
This project is intended to be a single PHP script capable of administering a simple, browser based, multiple question, multiple choice poll for small audiences such as during a presentation or lecture served directly from the presenter's computer.
28.42 KB  
NEW DOWNLOADS IN SCRIPTS, FILE MANAGEMENT
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
File Management  -  YetiShare - File Hosting Script Free 2.1
YetiShare is a PHP script that allows you to create your own professional file sharing service that you can earn a revenue from. The script has a wide range of features including an extensive admin area, user accounts, and more. This is a free...
6.2 MB  
File Management  -  XtraUpload for File sharing 1.6
XtraUpload has all the features you would expect from a file Hosting Script. Free users as well as premium users have the ability to upload files but premium users get a lot more features such as viewing files, instantly downloading files and...
4.8 MB  
File Management  -  PHPGnuCacheII for File sharing 2.1.1
PHPGnuCacheII is a PHP/MySQL WebCache script for the gnutella/gnutella2 Peer-to-Peer network. It implements the Version 2 GWebCache specifications.
20.48 KB  
File Management  -  TorrentFlux for Download Managers 2.3
TorrentFlux is a FREE PHP based Torrent client that runs on a web server. It allows you to manage all of your Torrent downloads through a convenient web interface from anywhere. Features:- Upload Torrents via URL or File Upload- Start, Stop, and...
1.29 MB  
File Management  -  FastBeats for File sharing 2.0.95
FastBeats is an all-in-one BitTorrent Tracker content management system written in PHP.It uses a MySQL database to store all of your site content such as News, Torrents, Descriptions and much more. FastBeats is dedicated only for FastWeb users.
1.09 MB