命令行工具下载Fyle数据。
fyle-archive-utilit的Python项目详细描述
fyle存档实用程序
下载Fyle数据的命令行工具。在
安装
这个项目需要python3.7+、fylesdk和click library
- 在
您可以下载此项目并使用它(复制到您自己的项目中,等等)
在 - 在
从pip安装它
在$ pip install fyle-archive-utility
使用
要使用此存档实用程序,您需要以下Fyle凭据:客户端ID、客户端机密和刷新令牌。在
^{pr2}$连接后,您的凭据将被保存,您可以访问您的数据
现在您可以访问命令行界面来下载Fyle数据
$ python -m fyle_archive_utility expenses --file_format=csv --path='/Users/sravankumar/Desktop' // Lists out all the expenses of your org that match the parameters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --file_format=json --path='/Users/sravankumar/Desktop' // Lists out all the expenses of your org that match the parameters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='COMPLETE' --file_format=csv --path='/Users/sravankumar/Desktop' // Lists out all the expenses of your org that match the parameters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=json --path='/Users/sravankumar/Desktop' // Lists out all the expenses of your org that match the parameters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --approved_at_gte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=json --path='/Users/sravankumar/Desktop' --approved_at_gte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --approved_at_lte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=json --path='/Users/sravankumar/Desktop' --approved_at_lte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --approved_at_gte='2019-11-01T00:00:00.000Z' --approved_at_lte='2019-11-30T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=json --path='/Users/sravankumar/Desktop' --approved_at_gte='2019-11-01T00:00:00.000Z' --approved_at_lte='2019-11-30T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --approved_at_gte='2019-11-01T00:00:00.000Z' --download_attachments='True' // Lists out all the expenses of your org that match the parameters with date filters along with attachments and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --approved_at_gte='2019-11-01T00:00:00.000Z' --approved_at_lte='2019-11-30T00:00:00.000Z' --download_attachments='True' // Lists out all the expenses of your org that match the parameters with date filters along with attachments and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='FYLED' --file_format=csv --path='/Users/sravankumar/Desktop' --updated_at_gte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='FYLED' --file_format=json --path='/Users/sravankumar/Desktop' --updated_at_gte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='FYLED' --file_format=csv --path='/Users/sravankumar/Desktop' --updated_at_lte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='FYLED' --file_format=json --path='/Users/sravankumar/Desktop' --updated_at_lte='2019-11-01T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --updated_at_gte='2019-11-01T00:00:00.000Z' --updated_at_lte='2019-11-30T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=json --path='/Users/sravankumar/Desktop' --updated_at_gte='2019-11-01T00:00:00.000Z' --updated_at_lte='2019-11-30T00:00:00.000Z' // Lists out all the expenses of your org that match the parameters with date filters and saves it as a json file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --updated_at_gte='2019-11-01T00:00:00.000Z' --download_attachments='True' // Lists out all the expenses of your org that match the parameters with date filters along with attachments and saves it as a csv file in the given path
$ python -m fyle_archive_utility expenses --state='APPROVED' --file_format=csv --path='/Users/sravankumar/Desktop' --updated_at_gte='2019-11-01T00:00:00.000Z' --updated_at_lte='2019-11-30T00:00:00.000Z' --download_attachments='True' // Lists out all the expenses of your org that match the parameters with date filters along with attachments and saves it as a json file in the given path
贡献
要对这个项目做出贡献,请遵循以下步骤
- 派生并克隆存储库。在
- 运行
pip install -r requirements.txt
- 安装pylint预提交挂钩
- 创建文件
.git/hooks/pre-commit
- 复制并粘贴文件中的以下行-
#!/usr/bin/env bash git-pylint-commit-hook
在 - 运行
chmod +x .git/hooks/pre-commit
- 创建文件
许可证
这个项目是在麻省理工学院许可下授权的-有关详细信息,请参阅LICENSE文件
- 项目
标签: