tsheetsteam / api_python Goto Github PK
View Code? Open in Web Editor NEWTSheets Python API Helper
License: MIT License
TSheets Python API Helper
License: MIT License
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.
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.
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.