Dfour Storage for frictionless-py
Project description
Frictionless dfour
An extension to add dfour storage support in frictionless-py.
Guide
Install 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 .
Command Line Usage
export DFOUR_USERNAME=your-dfour-username
export DFOUR_PASSWORD=your-dfour-password
dfour workspace dfour-workspace-hash path-to-local-folder-to-sync -e https://sandbox.dfour.space
Python Usage
Read from dfour
from frictionless import system
from pprint import pprint
source = "https://sandbox.dfour.space"
dialect = DfourDialect(snapshotHash="<SNAPSHOT-HASH>", username:"<YOUR-USER>", password: "<YOUR-PASSWORD>")
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(workspaceHash:"<WORKSPACE-HASH>", username:"<YOUR-USER>", password: "<YOUR-PASSWORD>")
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.0b7.tar.gz
(12.9 kB
view hashes)
Close
Hashes for frictionless-dfour-0.1.0b7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9948a4c392b4dbeb19eb3fac75113f2eb86e28a5095f7b1e62fbe22f168269e7 |
|
MD5 | 0ee6cf1095b60563c789add511a66e14 |
|
BLAKE2b-256 | 90ad8cf1355e338f3f631d6b64cb7c3b1c1df6c77c9fe6f6840537d283c024f5 |