Code Monkey home page Code Monkey logo

api_python's People

Contributors

daveschaefer avatar dustinsweet avatar garnertb avatar jonjensen avatar meilinger avatar scottjeide avatar tsheets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

api_python's Issues

The pip package is broken

It looks like this commit d98be33 fixed a number of issues. When you clone the repo, all the imports work, however if you install the package via pip, you get a number of import errors. I believe new distributions of the package need to be deployed to include these changes.

I am struggling to get .all() to return more than fifty items.

Can you provide an example or look into the issue.
I expect api.jobcodes.all() to generate around four batches of fifty since my test data has around 200+ codes. However, it is stops at fifty no matter what.

for j in api.jobcodes.all():
#should loop 200+ times
#only ever loops fifty times.

API calls to timesheets_deleted are broken

I was unable to get the timesheets_deleted API calls to work. The error message led me to looking at line 11 in results.py:

11 self.name = class_to_endpoint(self.model.__name__) + ('' if is_singleton else 's')

Which returns timesheet_deleteds for this class. I've submitted a pull request, #11.

Fabric

Which version of fabric does this require? I've have the latest 1.x branch installed:

Name: Fabric
Version: 1.13.1

Getting an exception when trying to use this api.

File "/srv/tsheets/lib/python3.6/site-packages/fabric/context_managers.py", line 535
def accept(channel, (src_addr, src_port), (dest_addr, dest_port)):
^
SyntaxError: invalid syntax

Python 3

I recently started using this and found that all the imports are relative and will only work in Python 2. I went through the library and changed all the imports to be relative for my own personal use, but it would be good for the maintainer of this repo to 2to3 the entire library for general use. If for some reason this isn't something that can be done, I might go ahead and do the work at some point, but it's definitely not on my short list. Thanks for providing this - it saved me a lot of time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.