Skip to main content
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()
>>>

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for filehandles-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d27df7febec8017edf896622fb16038803a765f5d58c4d9e09e32ddb409f8c21
MD5 4fb0c4a4cfa483a95f297c7d3e077d5c
BLAKE2b-256 83f9c10eee68847527fd659f1824d9f2697c042d6b0856cc37b8a1b558e8b5b8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.1.post1

1 file

0.3.1

1 file

0.3.0

1 file

0.2.0

1 file

0.1.2

1 file

This release

0.1.1 This release

1 file

0.1.0

3 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page