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
Built Distribution
Close
Hashes for frictionless-dfour-0.1.0b10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4366a96e819e3c0d7fe0fcbfeaa50a28b4f829d7ee48726fa50d7ce14169f8e6 |
|
MD5 | ce4cc1bd786385959e46e0a3b468dfd3 |
|
BLAKE2b-256 | 8d47abb02330b6518abd6f61cc3e6d0560ec474125cfd1dbf2d928c17e87bd1c |
Close
Hashes for frictionless_dfour-0.1.0b10-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b322bf1faa108e20c441e5ace7ef4428b60b7acd8de93f95e83137a237c61d30 |
|
MD5 | 9fcfc7d481e9e623d9224740e1f87df2 |
|
BLAKE2b-256 | c02fb3f4932a2ebfe118606371ff072fd3ce6eb2502296626e38898a50036854 |