短线导入导出工具

diet的Python项目详细描述


饮食

仪表板导入导出工具

安装

pip install --user -U diet

用法

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

将用户导入系统

diet import users ./user-records.csv

配置

此文件必须存在,应用程序才能运行

所有配置设置都存储在~/.diet/config.json中

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

顶级属性确定要配置的服务,目前有两个服务,apiauth。api是主要的应用服务,auth是sporga的认证服务。

SettingDescription
client_idThe client id to authenticate with
client_secretThe client secret to authenticate with
hostThe url of the service to import/export
verify_sslEnable/disable SSL certificate verifcation

导入文件结构

支持的文件类型

  • CSV
csv结构

csv文件必须包含与要导入的字段名完全匹配的头行

用户导入

firstNamesurnameemailgenderaddresssuburbstatemobilePhoneNumberpasswordpostcode
TestAdministratorcsss@sporga.com.auFemale20 resolution DrCaringbahNSW61410100100*******2229

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么我的代码永远运行?它只是一堆带int的for循环,应该是递减的?   java如何更改IntelliJ IDEA中的XML缩进?   java如何使未填充的int数组不打印0?   eclipse My Weka Java代码结果*Weka*虚拟*STRING*用于*STRING*属性*   java泄漏了Windows com。安卓内部的政策恳求   java这个无限循环的原因是什么?   swing My标签在Java中很模糊   java如何在组件表示存储扩展中获取组件对象   java如何避免selenium网格中的会话超时   Java乘法测验,如果答案错误,如何循环   在Java HttpServlet Google app engine中保存对象   java ArrayList过滤器   java跳跃减慢了xvelocity:使用Libgdx/Box2D进行跳跃和跑步   java删除、复制和修改pom。xml文件   当提供的时区与服务器的时区相同时,RestCall中的java@DateTimeFormat(iso=iso.DATE_TIME)不工作   java Spring批处理多线程默认限制为10隐式?   安卓错误java。lang.UnsupportedOperationException:无法转换为维度:type=0x1