diff --git a/_modules/personio_py/client.html b/_modules/personio_py/client.html index 6215cbb..8fae86d 100644 --- a/_modules/personio_py/client.html +++ b/_modules/personio_py/client.html @@ -110,7 +110,8 @@
PROJECT_URL = 'company/attendances/projects'
def __init__(self, base_url: str = None, client_id: str = None, client_secret: str = None,
- dynamic_fields: List[DynamicMapping] = None):
+ dynamic_fields: List[DynamicMapping] = None,
+ session: Optional[requests.Session] = None):
self.base_url = base_url or self.BASE_URL
self.client_id = client_id or os.getenv('CLIENT_ID')
self.client_secret = client_secret or os.getenv('CLIENT_SECRET')
@@ -118,6 +119,7 @@ Source code for personio_py.client
self.authenticated = False
self.dynamic_fields = dynamic_fields
self.search_index = SearchIndex(self)
+ self.session = session or requests.Session()
[docs] def authenticate(self):
"""
@@ -138,7 +140,7 @@ Source code for personio_py.client
url = urljoin(self.base_url, 'auth')
logger.debug(f"authenticating to {url} with client_id {self.client_id}")
params = {"client_id": self.client_id, "client_secret": self.client_secret}
- response = requests.request("POST", url, headers=self.headers, params=params)
+ response = self.session.request("POST", url, headers=self.headers, params=params)
if response.ok:
token = response.json()['data']['token']
self.headers['Authorization'] = f"Bearer {token}"
@@ -177,7 +179,7 @@ Source code for personio_py.client
_headers.update(headers)
# make the request
url = urljoin(self.base_url, path)
- response = requests.request(method, url, headers=_headers, params=params, json=data)
+ response = self.session.request(method, url, headers=_headers, params=params, json=data)
# re-new the authorization header
authorization = response.headers.get('Authorization')
if authorization:
diff --git a/_static/pygments.css b/_static/pygments.css
index 08bec68..84ab303 100644
--- a/_static/pygments.css
+++ b/_static/pygments.css
@@ -17,6 +17,7 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
.highlight .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #E40000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #008400 } /* Generic.Inserted */
diff --git a/api.html b/api.html
index a2e277a..9c86b30 100644
--- a/api.html
+++ b/api.html
@@ -82,7 +82,7 @@ API<
Personio
-
-class personio_py.Personio(base_url: Optional[str] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, dynamic_fields: Optional[List[personio_py.mapping.DynamicMapping]] = None)[source]
+class personio_py.Personio(base_url: Optional[str] = None, client_id: Optional[str] = None, client_secret: Optional[str] = None, dynamic_fields: Optional[List[personio_py.mapping.DynamicMapping]] = None, session: Optional[requests.sessions.Session] = None)[source]
Bases: object
the Personio API client.
diff --git a/changelog.html b/changelog.html
index 2199948..4efe944 100644
--- a/changelog.html
+++ b/changelog.html
@@ -43,11 +43,11 @@
- Contributing
- Changelog
- API Documentation
@@ -83,31 +83,34 @@ ChangelogKeep a Changelog, and this project adheres to Semantic Versioning.
-
-0.2.3 - 2023-05-05
+
-
-0.2.2 - 2022-07-04
+
-
-0.2.1 - 2021-04-09
+
-
-0.2.0 - 2021-03-10
+
+0.2.0 - 2021-03-10
add support for new API functions: get_absences
, get_absence_types
, create_absence
, delete_absence
, get_attendances
(thanks philipflohr!)
add support for paginated API requests (required for attendances & absences)
@@ -116,8 +119,8 @@
-0.1.1 - 2020-08-19
+
+0.1.1 - 2020-08-19
This is the first release of the Personio API client library
Created Python module personio_py
diff --git a/objects.inv b/objects.inv
index 25fda27..0c7c1eb 100644
Binary files a/objects.inv and b/objects.inv differ
diff --git a/searchindex.js b/searchindex.js
index e82114c..0ff96c6 100644
--- a/searchindex.js
+++ b/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["api","changelog","contributing","examples","guide","index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.viewcode":1,sphinx:56},filenames:["api.md","changelog.md","contributing.md","examples.md","guide.md","index.md"],objects:{"personio_py.Personio":[[0,2,1,"","ABSENCE_URL"],[0,2,1,"","ATTENDANCE_URL"],[0,2,1,"","PROJECT_URL"],[0,3,1,"","authenticate"],[0,3,1,"","create_absence"],[0,3,1,"","create_attendances"],[0,3,1,"","create_employee"],[0,3,1,"","create_project"],[0,3,1,"","delete_absence"],[0,3,1,"","delete_attendance"],[0,3,1,"","delete_project"],[0,3,1,"","get_absence"],[0,3,1,"","get_absence_types"],[0,3,1,"","get_absences"],[0,3,1,"","get_attendances"],[0,3,1,"","get_employee"],[0,3,1,"","get_employee_picture"],[0,3,1,"","get_employees"],[0,3,1,"","get_projects"],[0,3,1,"","invalidate_index"],[0,3,1,"","request"],[0,3,1,"","request_image"],[0,3,1,"","request_json"],[0,3,1,"","request_paginated"],[0,3,1,"","search"],[0,3,1,"","search_first"],[0,3,1,"","update_attendance"],[0,3,1,"","update_employee"],[0,3,1,"","update_project"]],"personio_py.PersonioApiError":[[0,3,1,"","from_response"]],"personio_py.mapping":[[0,1,1,"","BooleanFieldMapping"],[0,1,1,"","DateFieldMapping"],[0,1,1,"","DateTimeFieldMapping"],[0,1,1,"","DurationFieldMapping"],[0,1,1,"","DynamicMapping"],[0,1,1,"","FieldMapping"],[0,1,1,"","ListFieldMapping"],[0,1,1,"","MultiTagFieldMapping"],[0,1,1,"","NumericFieldMapping"],[0,1,1,"","ObjectFieldMapping"]],"personio_py.mapping.BooleanFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.DateFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.DateTimeFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.DurationFieldMapping":[[0,3,1,"","deserialize"],[0,2,1,"","pattern"],[0,3,1,"","serialize"],[0,3,1,"","str_to_timedelta"]],"personio_py.mapping.DynamicMapping":[[0,2,1,"","alias"],[0,2,1,"","data_type"],[0,2,1,"","field_id"],[0,3,1,"","get_field_mapping"]],"personio_py.mapping.FieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.ListFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.MultiTagFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.NumericFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.ObjectFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.models":[[0,1,1,"","Absence"],[0,1,1,"","AbsenceEntitlement"],[0,1,1,"","AbsenceType"],[0,1,1,"","Attendance"],[0,1,1,"","Certificate"],[0,1,1,"","CostCenter"],[0,1,1,"","Department"],[0,1,1,"","DynamicAttr"],[0,1,1,"","Employee"],[0,1,1,"","HolidayCalendar"],[0,1,1,"","LabeledAttributesMixin"],[0,1,1,"","Office"],[0,1,1,"","PersonioResource"],[0,1,1,"","Project"],[0,1,1,"","ShortEmployee"],[0,1,1,"","Team"],[0,1,1,"","WorkSchedule"],[0,1,1,"","WritablePersonioResource"],[0,5,1,"","get_client"]],"personio_py.models.Absence":[[0,3,1,"","to_body_params"]],"personio_py.models.AbsenceType":[[0,3,1,"","to_dict"]],"personio_py.models.Attendance":[[0,3,1,"","to_body_params"],[0,3,1,"","to_dict"]],"personio_py.models.DynamicAttr":[[0,3,1,"","clone"],[0,2,1,"","field_id"],[0,3,1,"","from_attributes"],[0,3,1,"","from_dict"],[0,2,1,"","label"],[0,3,1,"","to_attributes"],[0,3,1,"","to_dict"],[0,2,1,"","value"]],"personio_py.models.Employee":[[0,3,1,"","picture"]],"personio_py.models.LabeledAttributesMixin":[[0,3,1,"","to_dict"]],"personio_py.models.PersonioResource":[[0,3,1,"","from_dict"],[0,3,1,"","to_dict"],[0,3,1,"","to_tuple"]],"personio_py.models.Project":[[0,3,1,"","to_body_params"],[0,3,1,"","to_dict"]],"personio_py.models.ShortEmployee":[[0,3,1,"","resolve"]],"personio_py.models.WritablePersonioResource":[[0,3,1,"","create"],[0,3,1,"","delete"],[0,3,1,"","from_dict"],[0,3,1,"","to_dict"],[0,3,1,"","update"]],personio_py:[[0,0,1,"","MissingCredentialsError"],[0,1,1,"","Personio"],[0,0,1,"","PersonioApiError"],[0,0,1,"","PersonioError"],[0,0,1,"","UnsupportedMethodError"],[0,4,0,"-","mapping"],[0,4,0,"-","models"]]},objnames:{"0":["py","exception","Python exception"],"1":["py","class","Python class"],"2":["py","attribute","Python attribute"],"3":["py","method","Python method"],"4":["py","module","Python module"],"5":["py","function","Python function"]},objtypes:{"0":"py:exception","1":"py:class","2":"py:attribute","3":"py:method","4":"py:module","5":"py:function"},terms:{"0":[0,2,5],"01":5,"08":5,"1":0,"10":2,"100":2,"12":5,"123456":0,"16":5,"2":[0,2,4],"20":1,"200":0,"2020":5,"26":1,"27":1,"3":4,"35":1,"36":1,"403":4,"404":0,"42":5,"6":4,"7":4,"8":2,"byte":0,"case":[0,4],"class":[0,1,4,5],"default":0,"do":0,"float":0,"function":[0,1,4,5],"import":[4,5],"int":0,"new":[0,1,2,4,5],"public":2,"return":0,"short":2,"switch":4,"true":[0,4],"try":[0,4,5],A:[0,2],Be:2,But:[2,5],For:0,If:[0,2,3,4,5],In:[2,4],NOT:0,On:0,THE:0,That:4,The:[0,1,4,5],Then:4,There:0,To:4,Will:0,__class__:0,about:0,absenc:[0,1,5],absence_entitl:0,absence_url:0,absenceentitl:0,absencetyp:[0,1],absolut:4,accept:2,account:0,achiev:2,activ:[0,2],active_onli:0,actual:[0,2],ad:2,ada:5,adapt:2,add:[1,2],addit:0,adher:1,advanc:4,affili:4,after:[0,4],against:0,aim:[2,5],alia:0,all:[0,1,4,5],all_values_requir:0,allow:[0,4],alreadi:4,also:[0,4,5],am:4,an:[0,4,5],ani:[0,4],anoth:0,api:[1,2,4,5],api_field:0,appear:5,approv:5,ar:[0,2,4,5],arg:0,arrai:0,attenc:1,attend:[0,1],attendance_url:0,attribut:0,auth:0,auth_rot:0,authent:[0,4,5],author:0,automat:[0,4],avail:[0,4,5],avoid:4,awar:2,back:0,base:[0,1],base_url:0,basic:[0,1,4],becaus:[0,5],becom:2,been:0,befor:4,behav:1,behavior:0,best:[2,5],better:1,bodi:0,bool:0,booleanfieldmap:0,bound:0,box:4,branch:2,break_dur:0,broken:5,bug:4,build:[1,4],button:0,c:4,call:[0,4],caller:0,can:[0,2,4,5],cannot:5,categori:[0,1],caus:0,certif:0,chang:[0,1,2,5],changelog:5,charact:2,check:[2,4],chosen:0,ci:1,class_field:0,classifi:0,classmethod:0,clazz:0,client:[0,1,4,5],client_id:[0,4,5],client_secret:[0,4,5],clone:[0,4],code:[0,4,5],codebas:2,com:4,come:4,comment:0,commit:1,common:2,compani:0,compat:4,compil:0,complet:5,complex:[0,2],concern:2,confirm:2,consist:1,contact:2,contain:0,continu:0,contract_end_d:0,contribut:[0,3,4,5],convers:0,convert:0,correct:4,correspond:0,cost_cent:0,costcent:0,could:0,countri:0,cover:[2,5],creat:[0,1,2,4,5],create_abs:[0,1],create_attend:0,create_employe:0,create_project:0,created_at:0,created_bi:0,credenti:[0,4],current:[0,2],custom:0,d:[0,3,4],data:0,data_typ:0,date:[0,4],datefieldmap:0,datetim:0,datetimefieldmap:0,dateutil:4,days_count:0,de:0,defin:0,definit:0,delet:0,delete_abs:[0,1],delete_attend:0,delete_project:0,depart:0,depend:[4,5],describ:[4,5],deseri:0,detail:[0,4,5],develop:4,dict:0,dictionari:0,didn:2,differ:0,discuss:2,doc:2,document:[1,2,5],doe:0,don:5,draft:2,due:0,durationfieldmap:0,dure:0,dyn_attr:0,dynam:0,dynamic_123456:0,dynamic_field:0,dynamic_raw:0,dynamicattr:0,dynamicmap:0,e:[0,5],each:0,easi:2,easiest:4,either:0,email:0,employe:[0,1,5],employee_id:0,employment_typ:0,end_dat:[0,5],end_tim:0,endpoint:[0,5],enforc:0,ensur:2,entitl:0,environ:0,error_cod:0,even:2,everi:[0,4],everyth:2,exactli:0,exampl:[0,5],except:0,exclud:0,execut:0,exist:[0,5],expect:[0,2],expir:0,explan:4,explicitli:0,f401:2,f:4,facebook:2,fail:[0,4],fals:0,featur:[2,4],feel:[0,2],fetch:0,fewer:0,field:[0,1],field_id:0,field_typ:0,fieldmap:0,fieldmappingtyp:0,file:[0,1,4],find:[4,5],fine:4,first:[0,1],first_nam:0,fix:[1,2],fix_salari:0,fix_salary_interv:0,flake8:2,flow:2,folder:4,follow:[2,4],fork:2,format:[0,1],found:4,free:2,fridai:0,from:[0,2,5],from_attribut:0,from_dict:[0,1],from_respons:0,full:0,g:[0,5],gender:0,gener:[0,2],get:[0,4],get_abs:[0,1,5],get_absence_typ:[0,1],get_attend:[0,1],get_client:0,get_employe:[0,4],get_employee_pictur:0,get_field_map:0,get_project:0,git:4,github:[0,1,3,4],give:2,given:0,gmbh:4,go:4,got:4,great:[0,2],guarante:5,guid:5,guidelin:2,ha:0,half_day_end:0,half_day_start:0,handl:[0,4,5],happen:2,have:[0,2,4,5],header:0,help:4,here:4,higher:[0,4],hint:5,hire_d:0,hold:0,holiday_calendar:0,holidaycalendar:0,hook:1,host:2,hourly_salari:0,how:0,http:[0,4],hub:4,i:[0,2,4],id:[0,4,5],id_:0,ignor:2,imag:0,implement:0,improv:1,inact:0,includ:[0,2,4],inclus:0,index:[0,1],indic:0,individu:[0,4],inform:5,input:2,insensit:0,instal:5,instanc:[0,4],instead:0,intern:0,intuit:5,invalid:0,invalidate_index:0,involv:0,is_holidai:0,is_on_time_off:0,issu:[4,5],item:0,item_map:0,its:0,job:1,join:[0,3,4],jpg:0,json:0,keep:1,kei:[0,4,5],keyword:0,kid:2,kwarg:0,label:0,labeledattributesmixin:0,last_modified_at:0,last_nam:[0,5],last_working_dai:0,layer:4,leav:0,len:[4,5],length:2,librari:[1,4,5],lightweight:5,like:[0,2,3,4],limit:0,line:2,lint:2,linter:2,list:[0,1],listfieldmap:0,look:[4,5],lot:1,love:2,lovelac:5,lower:4,lucki:0,m:[0,2],made:[0,4],mai:[0,2,4,5],maintain:2,make:[0,1,3,4],mandatori:4,mani:0,map:5,master:2,match:0,matter:0,max:[0,2],mean:0,memor:0,memori:1,messag:[0,4],meta:1,method:[0,4],might:[0,2],miss:0,missingcredentialserror:0,mock:1,modern:4,modul:[0,1,4],mondai:0,more:[0,4,5],multipl:0,multitagfieldmap:0,my:5,name:0,namedtupl:0,necessari:0,need:0,nest:0,never:2,new_valu:0,next:[0,4],none:0,notabl:1,note:[0,2,4],now:[4,5],number:0,numericfieldmap:0,o:0,object:[0,5],objectfieldmap:0,occur:0,off:0,offic:0,ok:2,one:[0,5],onli:[0,2,4,5],open:[2,5],oper:0,option:0,order:0,origin:0,orm:0,other:0,our:[4,5],out:4,over:0,p:[4,5],packag:[4,5],page:[0,1,3,4],pagin:[0,1],paid:0,param:0,paramet:0,parent:0,pars:0,part:[0,5],parti:5,partial:0,pass:[0,2],patch:0,patch_existing_attend:0,path:0,pattern:0,peopl:2,pep:2,percentag:0,perform:0,persist:4,personio:[1,4],personio_pi:[0,1,4,5],personioapierror:[0,4],personioerror:0,personioerrror:0,personioresourc:0,personioresourcetyp:0,philipflohr:1,pictur:0,pip:5,placehold:0,pleas:[0,2,3,4,5],png:0,posit:0,possibl:[0,2],pre:1,prefer:0,present:0,pretti:[2,5],previou:0,print:4,probabl:0,probation_period_end:0,problem:[4,5],profil:0,profile_pictur:0,progress:[0,3,4,5],project:[0,1,2,3,4],project_url:0,proper:0,properti:5,propos:2,provid:[0,4,5],pull:2,purpos:0,py:[0,4],pypi:[4,5],python:[0,1,4,5],queri:0,quick:2,rais:0,re:[0,4],read:[0,2],readi:[0,4],recent:4,recommend:2,record:0,refer:[0,4],refresh:0,regard:4,regular:0,rel:0,releas:1,reli:2,remain:4,remot:0,replac:[0,4],repo:[2,4],report:4,represent:0,reproduc:2,request:[0,1,2,4,5],request_imag:0,request_json:0,request_pagin:0,requir:[0,1],resolv:0,resourc:[0,5],respons:0,rest:5,restructur:2,result:0,retriev:0,richard:0,right:4,rotat:[0,5],run:4,s:[0,2,4,5],same:[0,2],saturdai:0,scale:0,search:[0,1],search_first:[0,5],searchindex:0,secret:[0,4],section:5,see:0,self:0,semant:1,send:0,sent:0,separ:0,serial:0,server:0,set:[0,4],shortemploye:0,should:[0,2,4],show:0,side:0,silent:4,similar:0,singl:0,so:[0,2],some:[0,4],someth:5,sourc:[0,2],specif:2,specifi:0,sphinx:[1,2],src:2,start:4,start_dat:[0,5],start_tim:0,state:[0,2],statu:[0,4,5],status_cod:0,step:2,still:[0,3,4],store:0,str:0,str_to_timedelta:0,strictli:0,string:0,structur:0,stuff:2,subclass:0,subcompani:0,submiss:2,submit:2,subsequ:0,success:[0,4],suit:2,summari:2,sundai:0,supervisor:0,support:[0,1,4,5],sure:2,t:[0,2,4,5],take:5,target:0,team:0,tend:2,termination_d:0,termination_reason:0,termination_typ:0,test:[1,2],text:2,than:0,thank:1,thei:[0,2],therefor:4,thi:[0,1,2,3,4],think:2,third:5,thorough:2,though:0,through:4,thursdai:0,time:[0,4,5],time_off_typ:0,timedelta:0,to_attribut:0,to_body_param:0,to_dict:[0,1,5],to_tupl:0,token:[0,4],tool:2,track:2,transpar:[2,5],tri:2,troubl:4,tuesdai:0,tupl:0,turn:0,tutori:4,type:[0,5],ugli:4,understand:2,understood:2,union:0,unsupportedmethoderror:0,until:0,up:0,updat:[0,2],update_attend:0,update_employe:0,update_project:0,updated_at:[0,1],upgrad:1,upper:0,url:0,us:[0,1,4,5],usag:4,user:5,usual:0,v1:0,vacat:0,vacation_day_bal:0,valid_from:0,valu:0,valueerror:0,variabl:0,ve:2,verifi:4,versa:0,version:[0,1,4],vice:0,vote:5,w504:2,wa:[0,2,4],wai:[2,4],want:2,we:[0,4,5],wednesdai:0,weekly_working_hour:0,welcom:2,well:[2,4],were:0,what:2,when:[0,2,4],whenev:0,where:0,whether:[2,4],which:[0,4],whitespac:0,why:2,width:[0,2],wip:4,without:4,word:5,work:[0,2,3,4,5],work_schedul:0,workschedul:0,would:2,wrapper:5,writablepersonioresourc:0,write:[0,4],wrong:4,ye:0,you:[0,3,4,5],your:[0,2,4,5],yourself:0},titles:["API","Changelog","Contributing","Examples","User Guide","personio-py"],titleterms:{"0":1,"03":1,"04":1,"05":1,"07":1,"08":1,"09":1,"1":1,"10":1,"19":1,"2":1,"2020":1,"2021":1,"2022":1,"2023":1,"3":1,absenc:4,ani:2,apach:2,api:0,attend:4,background:2,bug:2,changelog:1,code:2,consist:2,contribut:2,detail:2,develop:2,employe:4,error:0,exampl:3,featur:5,first:4,from:4,get:5,github:2,guid:4,index:5,instal:4,issu:2,licens:2,make:2,map:0,model:0,personio:[0,5],pip:4,py:5,refer:2,report:2,requir:4,sampl:2,softwar:2,sourc:4,start:5,step:4,style:2,under:2,unreleas:1,us:2,user:4,we:2,write:2,you:2}})
\ No newline at end of file
+Search.setIndex({docnames:["api","changelog","contributing","examples","guide","index"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.viewcode":1,sphinx:56},filenames:["api.md","changelog.md","contributing.md","examples.md","guide.md","index.md"],objects:{"personio_py.Personio":[[0,2,1,"","ABSENCE_URL"],[0,2,1,"","ATTENDANCE_URL"],[0,2,1,"","PROJECT_URL"],[0,3,1,"","authenticate"],[0,3,1,"","create_absence"],[0,3,1,"","create_attendances"],[0,3,1,"","create_employee"],[0,3,1,"","create_project"],[0,3,1,"","delete_absence"],[0,3,1,"","delete_attendance"],[0,3,1,"","delete_project"],[0,3,1,"","get_absence"],[0,3,1,"","get_absence_types"],[0,3,1,"","get_absences"],[0,3,1,"","get_attendances"],[0,3,1,"","get_employee"],[0,3,1,"","get_employee_picture"],[0,3,1,"","get_employees"],[0,3,1,"","get_projects"],[0,3,1,"","invalidate_index"],[0,3,1,"","request"],[0,3,1,"","request_image"],[0,3,1,"","request_json"],[0,3,1,"","request_paginated"],[0,3,1,"","search"],[0,3,1,"","search_first"],[0,3,1,"","update_attendance"],[0,3,1,"","update_employee"],[0,3,1,"","update_project"]],"personio_py.PersonioApiError":[[0,3,1,"","from_response"]],"personio_py.mapping":[[0,1,1,"","BooleanFieldMapping"],[0,1,1,"","DateFieldMapping"],[0,1,1,"","DateTimeFieldMapping"],[0,1,1,"","DurationFieldMapping"],[0,1,1,"","DynamicMapping"],[0,1,1,"","FieldMapping"],[0,1,1,"","ListFieldMapping"],[0,1,1,"","MultiTagFieldMapping"],[0,1,1,"","NumericFieldMapping"],[0,1,1,"","ObjectFieldMapping"]],"personio_py.mapping.BooleanFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.DateFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.DateTimeFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.DurationFieldMapping":[[0,3,1,"","deserialize"],[0,2,1,"","pattern"],[0,3,1,"","serialize"],[0,3,1,"","str_to_timedelta"]],"personio_py.mapping.DynamicMapping":[[0,2,1,"","alias"],[0,2,1,"","data_type"],[0,2,1,"","field_id"],[0,3,1,"","get_field_mapping"]],"personio_py.mapping.FieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.ListFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.MultiTagFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.NumericFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.mapping.ObjectFieldMapping":[[0,3,1,"","deserialize"],[0,3,1,"","serialize"]],"personio_py.models":[[0,1,1,"","Absence"],[0,1,1,"","AbsenceEntitlement"],[0,1,1,"","AbsenceType"],[0,1,1,"","Attendance"],[0,1,1,"","Certificate"],[0,1,1,"","CostCenter"],[0,1,1,"","Department"],[0,1,1,"","DynamicAttr"],[0,1,1,"","Employee"],[0,1,1,"","HolidayCalendar"],[0,1,1,"","LabeledAttributesMixin"],[0,1,1,"","Office"],[0,1,1,"","PersonioResource"],[0,1,1,"","Project"],[0,1,1,"","ShortEmployee"],[0,1,1,"","Team"],[0,1,1,"","WorkSchedule"],[0,1,1,"","WritablePersonioResource"],[0,5,1,"","get_client"]],"personio_py.models.Absence":[[0,3,1,"","to_body_params"]],"personio_py.models.AbsenceType":[[0,3,1,"","to_dict"]],"personio_py.models.Attendance":[[0,3,1,"","to_body_params"],[0,3,1,"","to_dict"]],"personio_py.models.DynamicAttr":[[0,3,1,"","clone"],[0,2,1,"","field_id"],[0,3,1,"","from_attributes"],[0,3,1,"","from_dict"],[0,2,1,"","label"],[0,3,1,"","to_attributes"],[0,3,1,"","to_dict"],[0,2,1,"","value"]],"personio_py.models.Employee":[[0,3,1,"","picture"]],"personio_py.models.LabeledAttributesMixin":[[0,3,1,"","to_dict"]],"personio_py.models.PersonioResource":[[0,3,1,"","from_dict"],[0,3,1,"","to_dict"],[0,3,1,"","to_tuple"]],"personio_py.models.Project":[[0,3,1,"","to_body_params"],[0,3,1,"","to_dict"]],"personio_py.models.ShortEmployee":[[0,3,1,"","resolve"]],"personio_py.models.WritablePersonioResource":[[0,3,1,"","create"],[0,3,1,"","delete"],[0,3,1,"","from_dict"],[0,3,1,"","to_dict"],[0,3,1,"","update"]],personio_py:[[0,0,1,"","MissingCredentialsError"],[0,1,1,"","Personio"],[0,0,1,"","PersonioApiError"],[0,0,1,"","PersonioError"],[0,0,1,"","UnsupportedMethodError"],[0,4,0,"-","mapping"],[0,4,0,"-","models"]]},objnames:{"0":["py","exception","Python exception"],"1":["py","class","Python class"],"2":["py","attribute","Python attribute"],"3":["py","method","Python method"],"4":["py","module","Python module"],"5":["py","function","Python function"]},objtypes:{"0":"py:exception","1":"py:class","2":"py:attribute","3":"py:method","4":"py:module","5":"py:function"},terms:{"0":[0,2,5],"01":5,"08":5,"1":0,"10":2,"100":2,"12":5,"123456":0,"16":5,"2":[0,2,4],"20":1,"200":0,"2020":5,"26":1,"27":1,"3":4,"35":1,"36":1,"39":1,"403":4,"404":0,"42":5,"6":4,"7":4,"8":2,"byte":0,"case":[0,4],"class":[0,1,4,5],"default":0,"do":0,"float":0,"function":[0,1,4,5],"import":[4,5],"int":0,"new":[0,1,2,4,5],"public":2,"return":0,"short":2,"switch":4,"true":[0,4],"try":[0,4,5],A:[0,2],Be:2,But:[2,5],For:0,If:[0,2,3,4,5],In:[2,4],NOT:0,On:0,THE:0,That:4,The:[0,1,4,5],Then:4,There:0,To:4,Will:0,__class__:0,about:0,absenc:[0,1,5],absence_entitl:0,absence_url:0,absenceentitl:0,absencetyp:[0,1],absolut:4,accept:2,account:0,achiev:2,activ:[0,2],active_onli:0,actual:[0,2],ad:2,ada:5,adapt:2,add:[1,2],addit:0,adher:1,advanc:4,affili:4,after:[0,4],against:0,aim:[2,5],alia:0,all:[0,1,4,5],all_values_requir:0,allow:[0,4],alreadi:4,also:[0,4,5],am:4,an:[0,4,5],ani:[0,4],anoth:0,api:[1,2,4,5],api_field:0,appear:5,approv:5,ar:[0,2,4,5],arg:0,arrai:0,attenc:1,attend:[0,1],attendance_url:0,attribut:0,auth:0,auth_rot:0,authent:[0,4,5],author:0,automat:[0,4],avail:[0,4,5],avoid:4,awar:2,back:0,base:[0,1],base_url:0,basic:[0,1,4],becaus:[0,5],becom:2,been:0,befor:4,behav:1,behavior:0,best:[2,5],better:1,bodi:0,bool:0,booleanfieldmap:0,bound:0,box:4,branch:2,break_dur:0,broken:5,bug:4,build:[1,4],button:0,c:4,call:[0,4],caller:0,can:[0,2,4,5],cannot:5,categori:[0,1],caus:0,certif:0,chang:[0,1,2,5],changelog:5,charact:2,check:[2,4],chosen:0,ci:1,class_field:0,classifi:0,classmethod:0,clazz:0,client:[0,1,4,5],client_id:[0,4,5],client_secret:[0,4,5],clone:[0,4],code:[0,4,5],codebas:2,com:4,come:4,comment:0,commit:1,common:2,compani:0,compat:4,compil:0,complet:5,complex:[0,2],concern:2,confirm:2,consist:1,contact:2,contain:0,continu:0,contract_end_d:0,contribut:[0,3,4,5],convers:0,convert:0,correct:4,correspond:0,cost_cent:0,costcent:0,could:0,countri:0,cover:[2,5],creat:[0,1,2,4,5],create_abs:[0,1],create_attend:0,create_employe:0,create_project:0,created_at:0,created_bi:0,credenti:[0,4],current:[0,2],custom:[0,1],d:[0,3,4],data:0,data_typ:0,date:[0,4],datefieldmap:0,datetim:0,datetimefieldmap:0,dateutil:4,days_count:0,de:0,defin:0,definit:0,delet:0,delete_abs:[0,1],delete_attend:0,delete_project:0,depart:0,depend:[4,5],describ:[4,5],deseri:0,detail:[0,4,5],develop:4,dict:0,dictionari:0,didn:2,differ:0,discuss:2,doc:2,document:[1,2,5],doe:0,don:5,draft:2,due:0,durationfieldmap:0,dure:0,dyn_attr:0,dynam:0,dynamic_123456:0,dynamic_field:0,dynamic_raw:0,dynamicattr:0,dynamicmap:0,e:[0,5],each:0,easi:2,easiest:4,either:0,email:0,employe:[0,1,5],employee_id:0,employment_typ:0,end_dat:[0,5],end_tim:0,endpoint:[0,5],enforc:0,ensur:2,entitl:0,environ:0,error_cod:0,even:2,everi:[0,4],everyth:2,exactli:0,exampl:[0,5],except:0,exclud:0,execut:0,exist:[0,5],expect:[0,2],expir:0,explan:4,explicitli:0,f401:2,f:4,facebook:2,fail:[0,4],fals:0,featur:[2,4],feel:[0,2],fetch:0,fewer:0,field:[0,1],field_id:0,field_typ:0,fieldmap:0,fieldmappingtyp:0,file:[0,1,4],find:[4,5],fine:4,first:[0,1],first_nam:0,fix:[1,2],fix_salari:0,fix_salary_interv:0,flake8:2,flow:2,folder:4,follow:[2,4],fork:2,format:[0,1],found:4,free:2,fridai:0,from:[0,2,5],from_attribut:0,from_dict:[0,1],from_respons:0,full:0,g:[0,5],gender:0,gener:[0,2],get:[0,4],get_abs:[0,1,5],get_absence_typ:[0,1],get_attend:[0,1],get_client:0,get_employe:[0,4],get_employee_pictur:0,get_field_map:0,get_project:0,git:4,github:[0,1,3,4],give:2,given:0,gmbh:4,go:4,got:4,great:[0,2],guarante:5,guid:5,guidelin:2,ha:0,half_day_end:0,half_day_start:0,handl:[0,4,5],happen:2,have:[0,2,4,5],header:0,help:4,here:4,higher:[0,4],hint:5,hire_d:0,hold:0,holiday_calendar:0,holidaycalendar:0,hook:1,host:2,hourly_salari:0,how:0,http:[0,4],hub:4,i:[0,2,4],id:[0,4,5],id_:0,ignor:2,imag:0,implement:0,improv:1,inact:0,includ:[0,2,4],inclus:0,index:[0,1],indic:0,individu:[0,4],inform:5,input:2,insensit:0,instal:5,instanc:[0,4],instead:0,intern:0,intuit:5,invalid:0,invalidate_index:0,involv:0,is_holidai:0,is_on_time_off:0,issu:[4,5],item:0,item_map:0,its:0,job:1,join:[0,3,4],jpg:0,json:0,keep:1,kei:[0,4,5],keyword:0,kid:2,kwarg:0,label:0,labeledattributesmixin:0,last_modified_at:0,last_nam:[0,5],last_working_dai:0,layer:4,leav:0,len:[4,5],length:2,librari:[1,4,5],lightweight:5,like:[0,2,3,4],limit:0,line:2,lint:2,linter:2,list:[0,1],listfieldmap:0,look:[4,5],lot:1,love:2,lovelac:5,lower:4,lucki:0,m:[0,2],made:[0,4],mai:[0,2,4,5],maintain:2,make:[0,1,3,4],mandatori:4,mani:0,map:5,master:2,match:0,matter:0,max:[0,2],mean:0,memor:0,memori:1,messag:[0,4],meta:1,method:[0,4],might:[0,2],miss:0,missingcredentialserror:0,mock:1,modern:4,modul:[0,1,4],mondai:0,more:[0,4,5],multipl:0,multitagfieldmap:0,my:5,name:0,namedtupl:0,necessari:0,need:0,nest:0,never:2,new_valu:0,next:[0,4],none:0,notabl:1,note:[0,2,4],now:[4,5],number:0,numericfieldmap:0,o:0,object:[0,5],objectfieldmap:0,occur:0,off:0,offic:0,ok:2,one:[0,5],onli:[0,2,4,5],open:[2,5],oper:0,option:0,order:0,origin:0,orm:0,other:0,our:[4,5],out:4,over:0,p:[4,5],packag:[4,5],page:[0,1,3,4],pagin:[0,1],paid:0,param:0,paramet:0,parent:0,pars:0,part:[0,5],parti:5,partial:0,pass:[0,2],patch:0,patch_existing_attend:0,path:0,pattern:0,peopl:2,pep:2,percentag:0,perform:0,persist:4,personio:[1,4],personio_pi:[0,1,4,5],personioapierror:[0,4],personioerror:0,personioerrror:0,personioresourc:0,personioresourcetyp:0,philipflohr:1,pictur:0,pip:5,placehold:0,pleas:[0,2,3,4,5],png:0,posit:0,possibl:[0,2],pre:1,prefer:0,present:0,pretti:[2,5],previou:0,print:4,probabl:0,probation_period_end:0,problem:[4,5],profil:0,profile_pictur:0,progress:[0,3,4,5],project:[0,1,2,3,4],project_url:0,proper:0,properti:5,propos:2,provid:[0,1,4,5],pull:2,purpos:0,py:[0,4],pypi:[4,5],python:[0,1,4,5],queri:0,quick:2,rais:0,re:[0,4],read:[0,2],readi:[0,4],recent:4,recommend:2,record:0,refer:[0,4],refresh:0,regard:4,regular:0,rel:0,releas:1,reli:2,remain:4,remot:0,replac:[0,4],repo:[2,4],report:4,represent:0,reproduc:2,request:[0,1,2,4,5],request_imag:0,request_json:0,request_pagin:0,requir:[0,1],resolv:0,resourc:[0,5],respons:0,rest:5,restructur:2,result:0,retriev:0,richard:0,right:4,rotat:[0,5],run:4,s:[0,2,4,5],same:[0,2],saturdai:0,scale:0,search:[0,1],search_first:[0,5],searchindex:0,secret:[0,4],section:5,see:0,self:0,semant:1,send:0,sent:0,separ:0,serial:0,server:0,session:[0,1],set:[0,4],shortemploye:0,should:[0,2,4],show:0,side:0,silent:4,similar:0,singl:0,so:[0,2],some:[0,4],someth:5,sourc:[0,2],specif:2,specifi:0,sphinx:[1,2],src:2,start:4,start_dat:[0,5],start_tim:0,state:[0,2],statu:[0,4,5],status_cod:0,step:2,still:[0,3,4],store:0,str:0,str_to_timedelta:0,strictli:0,string:0,structur:0,stuff:2,subclass:0,subcompani:0,submiss:2,submit:2,subsequ:0,success:[0,4],suit:2,summari:2,sundai:0,supervisor:0,support:[0,1,4,5],sure:2,t:[0,2,4,5],take:5,target:0,team:0,tend:2,termination_d:0,termination_reason:0,termination_typ:0,test:[1,2],text:2,than:0,thank:1,thei:[0,2],therefor:4,thi:[0,1,2,3,4],think:2,third:5,thorough:2,though:0,through:4,thursdai:0,time:[0,4,5],time_off_typ:0,timedelta:0,to_attribut:0,to_body_param:0,to_dict:[0,1,5],to_tupl:0,token:[0,4],tool:2,track:2,transpar:[2,5],tri:2,troubl:4,tuesdai:0,tupl:0,turn:0,tutori:4,type:[0,5],ugli:4,understand:2,understood:2,union:0,unsupportedmethoderror:0,until:0,up:0,updat:[0,2],update_attend:0,update_employe:0,update_project:0,updated_at:[0,1],upgrad:1,upper:0,url:0,us:[0,1,4,5],usag:4,user:5,usual:0,v1:0,vacat:0,vacation_day_bal:0,valid_from:0,valu:0,valueerror:0,variabl:0,ve:2,verifi:4,versa:0,version:[0,1,4],vice:0,vote:5,w504:2,wa:[0,2,4],wai:[2,4],want:2,we:[0,4,5],wednesdai:0,weekly_working_hour:0,welcom:2,well:[2,4],were:0,what:2,when:[0,2,4],whenev:0,where:0,whether:[2,4],which:[0,4],whitespac:0,why:2,width:[0,2],wip:4,without:4,word:5,work:[0,2,3,4,5],work_schedul:0,workschedul:0,would:2,wrapper:5,writablepersonioresourc:0,write:[0,4],wrong:4,ye:0,you:[0,3,4,5],your:[0,2,4,5],yourself:0},titles:["API","Changelog","Contributing","Examples","User Guide","personio-py"],titleterms:{"0":1,"03":1,"04":1,"05":1,"07":1,"08":1,"09":1,"1":1,"10":1,"19":1,"2":1,"2020":1,"2021":1,"2022":1,"2023":1,"3":1,absenc:4,ani:2,apach:2,api:0,attend:4,background:2,bug:2,changelog:1,code:2,consist:2,contribut:2,detail:2,develop:2,employe:4,error:0,exampl:3,featur:5,first:4,from:4,get:5,github:2,guid:4,index:5,instal:4,issu:2,licens:2,make:2,map:0,model:0,personio:[0,5],pip:4,py:5,refer:2,report:2,requir:4,sampl:2,softwar:2,sourc:4,start:5,step:4,style:2,under:2,unreleas:1,us:2,user:4,we:2,write:2,you:2}})
\ No newline at end of file