You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

filehandles

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filehandles

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

0.3.1.post1
pipPyPI
Maintainers
2

filehandles

.. image:: https://img.shields.io/pypi/l/filehandles.svg :target: https://choosealicense.com/licenses/mit/ :alt: License information

.. image:: https://img.shields.io/pypi/v/filehandles.svg :target: https://pypi.org/project/filehandles/ :alt: Current library version

.. image:: https://img.shields.io/pypi/pyversions/filehandles.svg :target: https://pypi.org/project/filehandles/ :alt: Supported Python versions

.. image:: https://api.travis-ci.org/MoseleyBioinformaticsLab/filehandles.svg?branch=master :target: https://travis-ci.org/MoseleyBioinformaticsLab/filehandles :alt: Travis CI status

.. image:: https://codecov.io/gh/MoseleyBioinformaticsLab/filehandles/branch/master/graphs/badge.svg?branch=master :target: https://codecov.io/gh/MoseleyBioinformaticsLab/filehandles :alt: 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.

Links


   * ``filehandles`` @ GitHub_
   * ``filehandles`` @ PyPI_


Installation

The filehandles package runs under Python 2.7 and Python 3.4+. Use pip_ to install.

Install

.. code:: bash

python3 -m pip install filehandles

Upgrade

.. code:: bash

python3 -m pip install filehandles --upgrade

Quickstart


>>> from filehandles import filehandles
>>>
>>> for fh in filehandles('path/to/files'):
...     # utilize file handle
...     text = fh.readline()
>>>


.. _GitHub: https://github.com/MoseleyBioinformaticsLab/filehandles
.. _PyPI: https://pypi.org/project/filehandles
.. _pip: https://pip.pypa.io
.. _BSD: https://choosealicense.com/licenses/bsd-3-clause-clear/

Keywords

filehandle handle open file

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.