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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file httpfs-0.0.1.tar.gz.

File metadata

  • Download URL: httpfs-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for httpfs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4748d727c65947ff13b74860b006c1f69d72b3c171c09f1118e4a1963383e2fd
MD5 410fae15ee289b64578e5df0a87fc2f9
BLAKE2b-256 57856c75f7837bb48f8a4cfd44445ed2aae5b6c6e31a64c7d3f4fe387537df88

See more details on using hashes here.

File details

Details for the file httpfs-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: httpfs-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for httpfs-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a2c5e8f8772a48b12f50f5f6b8754494b72692ecebf73cee422a3b5a376e48a8
MD5 14c63b4dc2197f9f7c4bc398dec58d1b
BLAKE2b-256 b5beb0b2346554178630d4311a7ba1ea81dfc6380d577187333370346882bee2

See more details on using hashes here.

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