Connects Fyle to a database connector to transfer information to and fro.
Project description
Fyle Database Connector
Connects Fyle to a database to transfer information to and fro. Fyle is an expense management system.
Installation
This project requires Python 3+.
-
Download this project and use it (copy it in your project, etc).
-
Install it from pip.
$ pip install fyle-db-connector
Usage
To use this connector you'll need these Fyle credentials used for OAuth2 authentication: client ID, client secret and refresh token.
This connector is very easy to use.
- First you'll need to create a connection using the main class FyleSDK.
from fyle_db_connector import FyleExtractConnector
config = {
'fyle_base_url': '<YOUR BASE URL>',
'fyle_client_id': '<YOUR CLIENT ID>',
'fyle_client_secret': '<YOUR CLIENT SECRET>',
'fyle_refresh_token': '<YOUR REFRESH TOKEN>'
}
extract_connector = FyleExtractConnector(
config, database_connector
)
- After that you'll be able to extract data from fyle and store it in the db
# Extract Expenses
extract_connector.extract_expenses()
#Extract Employees
extract_connector.extract_employees()
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
- Create a file
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for fyle_db_connector-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b93e37e3763daa500ccc39c9cb9112382fa0a1b2e169df05888c628bd00df8b8 |
|
MD5 | ceac07472fab02aff4dcf82123312137 |
|
BLAKE2b-256 | dd1078c888a7d40157799327b6b0dd813e0d5d69ea03c752f954f8e985812be6 |