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.0b11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e668cea92656dcdba544e3165d7365f0b44f394f8a24512343e2aad933506f8e |
|
MD5 | f6854ff155a3cf90720f05caaca2d0e5 |
|
BLAKE2b-256 | df25d1d94254fd460b1c15458d0e97325e228552a18d36202eb4a5300c266a85 |
Close
Hashes for frictionless_dfour-0.1.0b11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c823d0002a6cc0e479d7d1de081a2930ba8d0a521131c35971c6b3ef7850a3ec |
|
MD5 | ea26c6f88aaf6e880ae3338da18359eb |
|
BLAKE2b-256 | 5eeebb81f74855f047fc2afcd97b53b0c4e07dd11e8ba78b48240aa06038b704 |