Read file over HTTP protocol via python file system 2 interface
Project description
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
what a feat!
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
httpfs-0.0.1.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for httpfs-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c5e8f8772a48b12f50f5f6b8754494b72692ecebf73cee422a3b5a376e48a8 |
|
MD5 | 14c63b4dc2197f9f7c4bc398dec58d1b |
|
BLAKE2b-256 | b5beb0b2346554178630d4311a7ba1ea81dfc6380d577187333370346882bee2 |