All Projects → lionheart → python-harvest

lionheart / python-harvest

Licence: Apache-2.0 license
A Python wrapper for the Harvest time-tracking API.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
shell
77523 projects

Labels

Projects that are alternatives of or similar to python-harvest

harvesting
Ruby wrapper for the Harvest API v2
Stars: ✭ 24 (-54.72%)
Mutual labels:  harvest
hapi
PHP Wrapper Library for the Harvest API
Stars: ✭ 41 (-22.64%)
Mutual labels:  harvest
PoE-HarvestVendor
Tool for getting the list of crafts out of Horticrafting station in Path of exile
Stars: ✭ 68 (+28.3%)
Mutual labels:  harvest
oai-harvest
Python package for harvesting records from OAI-PMH provider(s).
Stars: ✭ 57 (+7.55%)
Mutual labels:  harvest
minutes
Sync worklogs between multiple time trackers, invoicing, and bookkeeping software.
Stars: ✭ 19 (-64.15%)
Mutual labels:  harvest

Tests Version License Versions

Installation

Python 3 and above:

pip install "python-harvest-redux>=3.0"

For Python 2 or below:

pip install "python-harvest-redux==2.0.2"

Usage

import harvest
client = harvest.Harvest("https://COMPANYNAME.harvestapp.com", "EMAIL", "PASSWORD")
client.who_am_i

How to use OAuth2

Token must look like this:

token = {
  'token_type': 'bearer',
  'access_token': 'your access token',
  'refresh_token': 'your refresh token',
  'expires_in': 64799,
}

For information on how to get initial tokens see: https://github.com/harvesthq/api/blob/master/Authentication/OAuth%202.0.md

import harvest
client = harvest.Harvest("https://COMPANYNAME.harvestapp.com", client_id=client_id, token=token)
client.who_am_i

Contributions

Contributions are welcome. Please submit a pull request and make sure you adhere to PEP-8 coding guidelines. I'll review your patch and will accept if it looks good.

TODOs

  • Tests
  • Full OAuth workflow
  • More documentation

License

python-harvest is licensed under Apache 2.0. See LICENSE for more details.

Authors

See AUTHORS.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].