Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Python3 support #70

Open
wants to merge 111 commits into
base: python3_support
Choose a base branch
from

Conversation

DrDevil
Copy link

@DrDevil DrDevil commented May 2, 2021

The support for Python 2.7 has been discontinued since the start of 2020. This drives multiple projects to upgrade their projects with Python 3.x compatible libraries.

This PR contains the conversion of the code, done with the 2to3 tool. It was done on top of an old branch with the name python3_support, hence the delta of ~100 commits with the master branch.

Existing tests pass, no new tests have been introduced. The library has been tested in production with a real project and shows no regression (note that this being an API - not all of it is used in that project, only functions of interest).

Can be linked with issue https://github.com/smeggingsmegger/PyBambooHR/issues/68

smeggingsmegger and others added 30 commits February 23, 2014 12:30
This version can grab pre-made company reports by ID and return them in a variety of formats.
Also added raising of errors on non-200 returns.
…tatus

Change to json return on custom reports
Add methods for Table-related API calls
When the field is empty, f['#text'] raises a KeyError.
This is due to the way xmltodict parses:
    when the field in an xml tag is empty, '#text' is not defined
Use f.get('#text', None) instead.
A test have been added to check this.
jstitch and others added 30 commits September 5, 2018 12:37
New meta and employees methods

See merge request podemos-ti/PyBambooHR!1
Attribute meta_tables was added, keeps data from custom tables

See merge request podemos-ti/PyBambooHR!3
…tom-report

Last changed in custom report
allow custom fields in the custom report method
…th_custom_field

fix get_employee with custom field
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.