frictionless-dfour-0.1.0b9
توضیحات
Dfour Storage for frictionless-py
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | frictionless-dfour-0.1.0b9 |
| نام | frictionless-dfour |
| نسخه کتابخانه | 0.1.0b9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thorben Westerhuys |
| ایمیل نویسنده | thorben@cividi.ch |
| آدرس صفحه اصلی | https://github.com/cividi/frictionless-dfour |
| آدرس اینترنتی | https://pypi.org/project/frictionless-dfour/ |
| مجوز | MIT |
[](https://github.com/cividi/frictionless-dfour/actions)
[](https://codecov.io/gh/cividi/frictionless-dfour)
[](https://pypi.python.org/pypi/frictionless_dfour)
[](https://github.com/cividi/frictionless-dfour)
# Frictionless dfour
An extension to add [dfour](https://github.com/cividi/spatial-data-package-platform) storage support in [frictionless-py](https://framework.frictionlessdata.io).
## Guide
### Install the package
#### Release version
```sh
pip install frictionless_dfour
```
#### Dev version
```sh
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
```sh
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
```python
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
```python
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)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | gql |
| - | frictionless |
| - | dictdiffer |
| ==2.1 | tzlocal |
| - | mypy |
| - | moto |
| - | black |
| - | jinja2 |
| - | pylama |
| - | pytest |
| - | ipython |
| - | pymysql |
| - | livemark |
| - | psycopg2 |
| - | pytest-cov |
| - | pytest-vcr |
| - | pytest-only |
| - | oauth2client |
| - | requests-mock |
| - | python-dotenv |
| - | pydoc-markdown |
| - | docstring-parser |
نحوه نصب
نصب پکیج whl frictionless-dfour-0.1.0b9:
pip install frictionless-dfour-0.1.0b9.whl
نصب پکیج tar.gz frictionless-dfour-0.1.0b9:
pip install frictionless-dfour-0.1.0b9.tar.gz