hfmirror
0.0.1
Tutorials
Installation
API Documentation
hfmirror.config
hfmirror.resource
hfmirror.storage
hfmirror.sync
hfmirror.utils
hfmirror.utils.download
hfmirror.utils.hash
hfmirror.utils.segments
hfmirror.utils.session
get_requests_session
srequest
hfmirror.utils.text
hfmirror
Docs
»
hfmirror.utils
»
hfmirror.utils.session
View page source
hfmirror.utils.session
¶
get_requests_session
¶
hfmirror.utils.session.
get_requests_session
(
max_retries
:
int
=
5
,
timeout
:
int
=
10
,
headers
:
Optional
[
Dict
[
str
,
str
]
]
=
None
)
→ requests.Session
[source]
¶
srequest
¶
hfmirror.utils.session.
srequest
(
session
:
requests.Session
,
method
,
url
,
*
,
max_retries
:
int
=
5
,
sleep_time
:
float
=
5.0
,
raise_for_status
:
bool
=
True
,
**
kwargs
)
→ requests.Response
[source]
¶
Other Versions
v: v0.0.1
Tags
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
Branches
dev/session
main