Skip to main content

Read file over HTTP protocol via python file system 2 interface

Project description

https://api.travis-ci.org/moremoban/httpfs.svg https://codecov.io/github/moremoban/httpfs/coverage.png https://badge.fury.io/py/httpfs.svg https://pepy.tech/badge/httpfs/month https://img.shields.io/github/stars/moremoban/httpfs.svg?style=social&maxAge=3600&label=Star

What can you do with it?

With Python File System 2, you can do:

>>> import fs
>>> with fs.open_fs('https://www.google.com') as f:
...     print(f.readbytes('index.html'))
b'<!doctype ....'

Have fun!

Why

It enables moban to use any files over http(s) as its template or data file:

$ 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

Installation

You can install httpfs via pip:

$ pip install httpfs

or clone it and install it:

$ git clone https://github.com/moremoban/httpfs.git
$ cd httpfs
$ python setup.py install

Change log

0.0.1 - 1.5.2020

first release

  1. what a feat!

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

httpfs-0.0.1.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

httpfs-0.0.1-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page