semvec/pypi-packages huggingface dataset:
harvest_api_client 1.1.3
A client for the Harvest API (getharvest.com)
License: MIT
Keywords: harvest-api,api,harvest.com,getharvest.com,harvest,api client

Harvest API client
===================================

A Python library for Harvest's API (getharvest.com) which supports OAuth2 authentication. It's inspired by https://github.com/lann/Harvest and has some distinctions:

  * Supports Python 3x
  * Supports Oauth2
  * Has tests coverage

It doesn't support the basic authentication.

How to install
-----

```
$ pip3 install harvest_api_client
```

How to use it
-----

**Get the access and refresh tokens and put them in a file:**

```
  {
    "access_token": {
       "last_refresh_time": "2015-04-20T00:18:52.494946", 
       "value": "[your access token]"
    }, "refresh_token": {
        "last_refresh_time": "2015-04-20T16:02:30.831858", 
        "value": "[your refresh token]"
    }
  }
```
**And you're ready to go:**

```python
from datetime import datetime, timedelta
from harvest_api_client import Harvest

client_secret = 'your secret token'
client_id = 'your client id'
tokens_file_name = 'tokens.json'

h = Harvest(client_secret=client_secret, client_id=client_id, tokens_file_name=tokens_file_name)
u1 = h.find_user('user1_first_name', 'user1_last_name') 
# => <harvest_api_client.harvest.User object at 0x108cb2da0>

u2 = h.find_user('aaa', 'bbb') # <class 'NoneType'>
# => <class 'NoneType'>

print("\nProjects...")
for p in h.projects():
  print(p)

print("\nUsers...")
for u in h.users():
  print(u)
  date1 = datetime(2013, 1, 1)
  date2 = datetime(2015, 11, 11)
  
  print("\nEntries...")
  for e in u.entries(date1, date2):
    print(e)
```


Source
-----

The source is available at https://github.com/GildedHonour/harvest-api-client


License
-----

The MIT License (MIT)
whatodo 0.1.0a4
Python app to help developers manage development tasks using TODO's
License: MIT
Keywords: development tools task_management

Whatodo
=======

|Build Status| |Coverage Status| |Latest Version| |Downloads|

Description
===========

In software development and any other area of coding it is a common
occerance to use comments for TODO and FIXME for two examples. It can be
difficult with large files and/or large numbers of files to locate these
comments.

whatodo is created to make locating theses comments easier. This app can
read through any number of files and locate these comments returning the
line number of the contents of the actual comment.

The application is written in pure Python with the help of the pygments
library. With this library we are able to parse through more than 100+
languages, for a more detailed description see `pygments
docs <http://pygments.org/languages/>`__

Usage
=====

| The most common use case would be scanning a whole source directory
  for tags, to achieve this you can do the following:
| ``whatodo src/``

For more info and additional options see ``whatodo -h``

Options
-------

::

    - json
    - keyword
    - files

JSON
~~~~

Changes the output format to json, useful for automating with other
tools.

Keyword
~~~~~~~

The Keywords are the words searched for in the beginning of a comment to
determine if this is a comment to extract.

Defaults to TODO, todo, FIXME

Files
~~~~~

The Files are the files searched through to locate comments with the
above mentioned Keywords.

A list of files or directories to analyze and look for TODO's. At least
1 file must be provided.

Installing
==========

To install simply do:

::

    pip install whatodo

License
=======

MIT License for more details see /LICENSE

.. |Build Status| image:: https://travis-ci.org/masterkoppa/whatodo.svg?branch=master
   :target: https://travis-ci.org/masterkoppa/whatodo
.. |Coverage Status| image:: https://coveralls.io/repos/masterkoppa/whatodo/badge.svg?branch=master
   :target: https://coveralls.io/r/masterkoppa/whatodo?branch=master
.. |Latest Version| image:: https://pypip.in/version/whatodo/badge.svg
   :target: https://pypi.python.org/pypi/whatodo/
.. |Downloads| image:: https://pypip.in/download/whatodo/badge.svg
   :target: https://pypi.python.org/pypi/whatodo/