Skip to content

About

filehandles is a file handle manager that lets you generate file handles from different file sources.

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

67 Commits

Folders and files

Repository files navigation

filehandles

License information Current library version Supported Python versions Travis CI status Code coverage information

The filehandles package is a Python library that facilitates processing of files by removing boilerplate code that you need to write to open files from directories, zip archives, tar archives, URL addresses of files, etc. It also automatically closes open file handle after it has been processed.

Links

Installation

The filehandles package runs under Python 2.7 and Python 3.4+. Use pip to install.

Install

python3 -m pip install filehandles

Upgrade

python3 -m pip install filehandles --upgrade

Quickstart

>>> from filehandles import filehandles
>>>
>>> for fh in filehandles('path/to/files'):
...     # utilize file handle
...     text = fh.readline()
>>>

About

filehandles is a file handle manager that lets you generate file handles from different file sources.

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages