osmosis-ipfs-driver
💧 Osmosis IPFS Driver Implementation oceanprotocol.com
Table of Contents
Setup
Install the osmosis ipfs driver and set ipfs gateway envvar
pip install osmosis-ipfs-driver
export IPFS_GATEWAY=https://gateway.ipfs.io
Instantiate an Osmosis instance and resolve an ipfs url
from osmosis_driver_interface.osmosis import Osmosis
url = "ipfs://ZnOfotxMMnLTXCCW0GPVYT8gtEugghgD8Hgz"
osm = Osmosis(url) # the proper osmosis driver is loaded automatically to match the url
# Resolve the url
download_url = osm.data_plugin.generate_url(url)
Code Style
Information about our Python code style is documented in the python-developer-guide and the python-style-guide.
Testing
Automatic tests are setup via Travis, executing tox.
Our tests use the pytest framework.
New Version
The bumpversion.sh script helps to bump the project version. You can execute the script using as first argument {major|minor|patch} to bump accordingly the version.
License
Copyright 2019 Ocean Protocol Foundation Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Metadata
Release files for osmosis-ipfs-driver 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osmosis_ipfs_driver-0.1.0-py3.6.egg | Legacy Egg format | - | - | Details for osmosis_ipfs_driver-0.1.0-py3.6.egg |
| osmosis_ipfs_driver-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for osmosis_ipfs_driver-0.1.0-py2.py3-none-any.whl |
Total release size: 15.2 kB
Release files / osmosis_ipfs_driver-0.1.0-py3.6.egg
| Download URL | osmosis_ipfs_driver-0.1.0-py3.6.egg |
|---|---|
| Size | 6.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
7225fb92f6edb1d96f0b67f5e635f380c295d4323825ba52dade4fe38d39afa4
|
|
BLAKE2b-256 checksum How to use checksums |
22b9d45177b5e279fa1a5f0e37b377b54a83877a053caf1d3f5351752c2739c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Release files / osmosis_ipfs_driver-0.1.0-py2.py3-none-any.whl
| Download URL | osmosis_ipfs_driver-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c2e5946601acf037581d278b5075467a30c8fbaf2f1f222da6b92204f1380ec8
|
|
BLAKE2b-256 checksum How to use checksums |
05e48067ba4fa1ee82154dcf624533307585e45a71ea30ef575bbe2345132a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|
Security for osmosis-ipfs-driver 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.