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 details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4748d727c65947ff13b74860b006c1f69d72b3c171c09f1118e4a1963383e2fd |
|
MD5 | 410fae15ee289b64578e5df0a87fc2f9 |
|
BLAKE2b-256 | 57856c75f7837bb48f8a4cfd44445ed2aae5b6c6e31a64c7d3f4fe387537df88 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c5e8f8772a48b12f50f5f6b8754494b72692ecebf73cee422a3b5a376e48a8 |
|
MD5 | 14c63b4dc2197f9f7c4bc398dec58d1b |
|
BLAKE2b-256 | b5beb0b2346554178630d4311a7ba1ea81dfc6380d577187333370346882bee2 |