Skip to main content

Dfour Storage for frictionless-py

Project description

Build Coverage Registry Codebase

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


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.0b11.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frictionless_dfour-0.1.0b11-py2.py3-none-any.whl (13.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file frictionless-dfour-0.1.0b11.tar.gz.

File metadata

  • Download URL: frictionless-dfour-0.1.0b11.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for frictionless-dfour-0.1.0b11.tar.gz
Algorithm Hash digest
SHA256 e668cea92656dcdba544e3165d7365f0b44f394f8a24512343e2aad933506f8e
MD5 f6854ff155a3cf90720f05caaca2d0e5
BLAKE2b-256 df25d1d94254fd460b1c15458d0e97325e228552a18d36202eb4a5300c266a85

See more details on using hashes here.

File details

Details for the file frictionless_dfour-0.1.0b11-py2.py3-none-any.whl.

File metadata

  • Download URL: frictionless_dfour-0.1.0b11-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for frictionless_dfour-0.1.0b11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c823d0002a6cc0e479d7d1de081a2930ba8d0a521131c35971c6b3ef7850a3ec
MD5 ea26c6f88aaf6e880ae3338da18359eb
BLAKE2b-256 5eeebb81f74855f047fc2afcd97b53b0c4e07dd11e8ba78b48240aa06038b704

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page