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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

filehandles-0.1.0-py3.5.egg (8.7 kB view details)

Uploaded Egg

filehandles-0.1.0-py2.7.egg (8.6 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for filehandles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c7f6acd915fb47f022394a2dea783e5d08b5cc348edd2b8424bc02b89a8c735d
MD5 3dcc33e35fb111294ab6ca74d4679dbc
BLAKE2b-256 8c20d621b064de22c79446f9d6acb7279d783fc85fd05913019999a7c4c1a5e5

See more details on using hashes here.

File details

Details for the file filehandles-0.1.0-py3.5.egg.

File metadata

File hashes

Hashes for filehandles-0.1.0-py3.5.egg
Algorithm Hash digest
SHA256 505e590dbefcc7448822fd38b2169f2f3824b9167be9ba67828069d8a3661eec
MD5 c576178b4bbe222e3efb47d42cd75323
BLAKE2b-256 e252d9621cd282ec60f4e0ce1f4d6de508201270f597e2457083e323e95ff8b8

See more details on using hashes here.

File details

Details for the file filehandles-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for filehandles-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 ab5754f5ef50c970571cd6ed973c6b815ab981ccf3980022b76ac77fd0ec28f4
MD5 57a28ab319143f60247043e4fadd3185
BLAKE2b-256 a93b618b07aac0ec68a2b5352e4a7d4706414e40f598e3116a81898ff3ed3ec8

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