Skip to main content

filehandles is a file handle manager that let you get file handles from different sources.

Project description

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.

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()
>>>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filehandles-0.3.1.post1.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file filehandles-0.3.1.post1.tar.gz.

File metadata

  • Download URL: filehandles-0.3.1.post1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/35.0.2 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.5.4

File hashes

Hashes for filehandles-0.3.1.post1.tar.gz
Algorithm Hash digest
SHA256 666526ad6d0e5499cb8e4d6af626f9bf17aa238f33c996f619303d6ea2091086
MD5 f3bf5ed2e83c650d776e7eb368a2a87a
BLAKE2b-256 e69810afd597c67acfcfbad30132683c85f2d236e9a5367ae1bd461008bffe0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page