Skip to main content

Command-line tool to download Fyle data.

Project description

fyle-archive-utility

Command-line tool to download Fyle data.

Installation

This project requires python 3.7+ , fylesdk and click library

  • You can download this project and use it ( copy in your own project, etc)

  • Install it from pip

    $ pip install fyle-archive-utility
    

Usage

To use this archive utility you'll need these Fyle credentials : client ID, client secret and refresh token.

   $ python -m fyle_archive_utility connect
   # Then will ask for Fyle credentials

   Please enter the credentials:

   client_id: <type> press enter
   client_secret: <type> press enter
   refresh_token: <type> press enter
   base_url: <type> press enter

Once you are connected your credentials will be saved and you can access your data

Now you are able to access the command line interface for downloading Fyle data

   $ 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

Contribute

To contribute to this project follow the steps

  • Fork and clone the repository.
  • Run pip install -r requirements.txt
  • Setup pylint precommit hook
    • Create a file .git/hooks/pre-commit
    • Copy and paste the following lines in the file -
      #!/usr/bin/env bash 
      git-pylint-commit-hook
      
    • Run chmod +x .git/hooks/pre-commit

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fyle-archive-utility, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size fyle_archive_utility-0.1.1-py3-none-any.whl (6.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size fyle-archive-utility-0.1.1.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page