Giter VIP home page Giter VIP logo

goldencheetahlib's People

Contributors

aartgoossens avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

hsnkts77

goldencheetahlib's Issues

Update requirements.txt with actual requirements and version ranges.

requirements.txt contains a lot of packages that are not really required (e.g. jupyter) or required by another package (e.g. numpy that is required by pandas). This file should only contain the bare minimum of packages that are required to use goldencheetahlib.
Also: Requirements need a version range instead of a fixed version. For most requirements this will be until the next major release. E.g. if current version of pandas is 1.18.1, the requirements.txt entry should be pandas>=1.18.1,<0.2.

Setup coveralls.io

Setup coveralls.io to track coverage of testing and add status image to readme.

Explicitly send Content-Type in all requests

All requests to the GC REST API now use the default Content-Type but because there are multiple options, this should be explicit, also to not break when defaults change in the future.

Fix exclusion of data that is not in ACTIVITY_COLUMN_ORDER

Data that is not in ACTIVITY_COLUMN_ORDER is now excluded from the activity data by this line:

return activity[[i for i in ACTIVITY_COLUMN_ORDER if i in activity.columns]]

(client.py line 117)

This trick to force ordering of the columns should be deleted or fixed to include all other columns.

Setup Travis CI

Travis CI setup to automate testing and deployment to PyPi.

  • Setup testing in .travis.yml
  • Add PyPi deployment
  • Add Travis CI status image to readme

Fix stripping whitespace in pandas.read_csv

When using Panda's read_csv without parameters some of the column headers get extra whitespace at the start. This is now fixed in client.py line 87:

activity_list.rename(columns=lambda x: x.lstrip().lower(), inplace=True)

But probably can be fixed in a nicer way by sending sep=', ' (or similar) to read_csv

Validate API responses

GC REST API responses are currently not validated and therefore could result in unexpected or unclear errors and exceptions. All responses should be validated and appropriate exceptions should be raised accordingly.
Validations:

  • status codes (!=2xx)
  • response body (matches requested content-type)
  • Other?...

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.