Skip to main content

Dash Import Export Tool

Project description

DIET

Dash Import Export Tool

Installation

pip install --user -U diet

Usage

Dash Import and Export Tool

positional arguments:
  {import,export}     Action to perform
  {users-orgs,users}  The target of the import/export
  file                Files to import

optional arguments:
  -h, --help          show this help message and exit

Import users into the system

diet import users ./user-records.csv

Configuration

This file must be present for the application to operate

All configuration settings are stored in ~/.diet/config.json

{
    "auth": {
        "client_id": "",
        "client_secret": "",
        "host": "",
        "verify_ssl": true
    },
    "api": {
        "client_id": "",
        "client_secret": "",
        "host": "",
        "verify_ssl": true
    }
}

The top level property determines the service to configure, currently there are two services, api and auth. Api is the main application services and Auth is Sporga's Authenication service.

Setting Description
client_id The client id to authenticate with
client_secret The client secret to authenticate with
host The url of the service to import/export
verify_ssl Enable/disable SSL certificate verifcation

Import file structure

Supported file types

  • CSV

CSV Structure

The CSV file must include a header row that matches the field's name you wish to import exactly

User Import

firstName surname email gender address suburb state mobilePhoneNumber password postcode
Test Administrator csss@sporga.com.au Female 20 resolution Dr Caringbah NSW 61410100100 ******* 2229

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

diet-0.1.10.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

diet-0.1.10-py2-none-any.whl (6.8 kB view details)

Uploaded Python 2

File details

Details for the file diet-0.1.10.tar.gz.

File metadata

  • Download URL: diet-0.1.10.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for diet-0.1.10.tar.gz
Algorithm Hash digest
SHA256 91bc65a9bb8877be56e507f789e6f33aa249093d564c29819d8f4e799a6f8a3c
MD5 041ccd2adae78b47b3afad78a8d7e5aa
BLAKE2b-256 69103144b70cdbc60c119f7ab7014fb816426cbf6998ad7e5390f4e282799b40

See more details on using hashes here.

File details

Details for the file diet-0.1.10-py2-none-any.whl.

File metadata

File hashes

Hashes for diet-0.1.10-py2-none-any.whl
Algorithm Hash digest
SHA256 b8a9d49e9c0579f4043daca79043f6e4f0cc841e69dd5fa542eb5336dde024ef
MD5 0c2de3f808dbf0609689a20ca87212e1
BLAKE2b-256 6bd18e1397d56eb8351810db7128b2aec1069baaea0e387d3376010bf5314660

See more details on using hashes here.

Supported by

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