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.0.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file filehandles-0.3.0.tar.gz.

File metadata

  • Download URL: filehandles-0.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for filehandles-0.3.0.tar.gz
Algorithm Hash digest
SHA256 521fbc1fb630548538a6f94e1ac9ea88a9d1da71eac54ce8b8212747a113b28e
MD5 26913861035eff1eb5b0303983b62948
BLAKE2b-256 b085f436bfc88f0da981c1105b16c0e54590c6ccd987e53dcf8707e4e16d2819

See more details on using hashes here.

Supported by

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