filehandles is a file handle manager that let you get file handles from different sources.
Project description
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()
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f6acd915fb47f022394a2dea783e5d08b5cc348edd2b8424bc02b89a8c735d
|
|
| MD5 |
3dcc33e35fb111294ab6ca74d4679dbc
|
|
| BLAKE2b-256 |
8c20d621b064de22c79446f9d6acb7279d783fc85fd05913019999a7c4c1a5e5
|
File details
Details for the file filehandles-0.1.0-py3.5.egg.
File metadata
- Download URL: filehandles-0.1.0-py3.5.egg
- Upload date:
- Size: 8.7 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
505e590dbefcc7448822fd38b2169f2f3824b9167be9ba67828069d8a3661eec
|
|
| MD5 |
c576178b4bbe222e3efb47d42cd75323
|
|
| BLAKE2b-256 |
e252d9621cd282ec60f4e0ce1f4d6de508201270f597e2457083e323e95ff8b8
|
File details
Details for the file filehandles-0.1.0-py2.7.egg.
File metadata
- Download URL: filehandles-0.1.0-py2.7.egg
- Upload date:
- Size: 8.6 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab5754f5ef50c970571cd6ed973c6b815ab981ccf3980022b76ac77fd0ec28f4
|
|
| MD5 |
57a28ab319143f60247043e4fadd3185
|
|
| BLAKE2b-256 |
a93b618b07aac0ec68a2b5352e4a7d4706414e40f598e3116a81898ff3ed3ec8
|