Dfour Storage for frictionless-py
Project description
Frictionless dfour
An extension to add dfour storage support in frictionless-py.
Guide
Load the package
Release version
pip install frictionless_dfour
Dev version
python3 -V # should be > 3.6
# download project
git clone git@github.com:cividi/frictionless-dfour.git
cd frictionless-dfour
# Load dynamic dev version
make dev # or python3 -m pip install -e .
Read from dfour
from frictionless import system
from pprint import pprint
source = "https://sandbox.dfour.space"
dialect = DfourDialect(snapshot="<SNAPSHOTHASH>", workspace="<WORKSPACEHASH>", credentials={"username":"<YOURUSER>","password":"<YOURPASSWORD>"})
storage = system.create_storage("dfour", source, dialect=dialect)
pkg = storage.read_package()
Write to dfour
from frictionless import system
from pprint import pprint
target = "https://sandbox.dfour.space"
dialect = DfourDialect(snapshot="<SNAPSHOTHASH>", workspace="<WORKSPACEHASH>", credentials={"username":"<YOURUSER>","password":"<YOURPASSWORD>"})
storage = system.create_storage("dfour", target, dialect=dialect)
storage.write_package(pkg.to_copy(), force=True)
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
frictionless-dfour-0.1.0b3.tar.gz
(12.7 kB
view hashes)
Close
Hashes for frictionless-dfour-0.1.0b3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b4bf16bfc180be05f120779f0c9ec29c8997f0befc5ba03c4dbf88c98b2f1ba |
|
MD5 | 9c709015c48bad4adb905ed58e52ad91 |
|
BLAKE2b-256 | 37aecaa33d8ae45798dfb630c3e85b0683c6eafc8e414cb4e3fe7bb5b30950cb |