Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
.. image:: https://api.travis-ci.org/moremoban/httpfs.svg :target: http://travis-ci.org/moremoban/httpfs
.. image:: https://codecov.io/github/moremoban/httpfs/coverage.png :target: https://codecov.io/github/moremoban/httpfs .. image:: https://badge.fury.io/py/httpfs.svg :target: https://pypi.org/project/httpfs
.. image:: https://pepy.tech/badge/httpfs/month :target: https://pepy.tech/project/httpfs/month
.. image:: https://img.shields.io/github/stars/moremoban/httpfs.svg?style=social&maxAge=3600&label=Star :target: https://github.com/moremoban/httpfs/stargazers
With Python File System 2
_, you can do:
.. code::
import fs with fs.open_fs('https://www.google.com') as f: ... print(f.readbytes('index.html')) b'<!doctype ....'
Have fun!
It enables moban
_ to use any files over http(s) as its
template or data file:
.. code-block:: bash
$ moban -t 'https://raw.githubusercontent.com/moremoban/pypi-mobans/dev/templates/_version.py.jj2'\
-c 'https://raw.githubusercontent.com/moremoban/pypi-mobans/dev/config/data.yml'\
-o _version.py
.. _Python File System 2: https://docs.pyfilesystem.org/en/latest .. _moban: https://github.com/moremoban/moban
You can install httpfs via pip:
.. code-block:: bash
$ pip install httpfs
or clone it and install it:
.. code-block:: bash
$ git clone https://github.com/moremoban/httpfs.git
$ cd httpfs
$ python setup.py install
first release
#. what a feat!
FAQs
Read file over HTTP protocol via python file system 2 interface
We found that httpfs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.