Heartbeat.sh Python Client
This is a Python client library for heartbeat.sh.
Quick start
Install with pip install heartbeat-sh requests
from datetime import timedelta
from heartbeat_sh import HeartbeatClient
HeartbeatClient("example").send_beat(
"example:python",
timedelta(days=1, hours=2),
timedelta(days=2)
)
Use a custom requests library (Dependency Injection)
By default, this module uses the requests library to make HTTP
requests. This is not a requirement. You may inject any request library:
from datetime import timedelta
from heartbeat_sh import HeartbeatClient
def request(url: str, method: str):
return {
"fake": "json result"
}
HeartbeatClient(
subdomain="example",
request=request,
).send_beat(
"example:python",
timedelta(days=1, hours=2),
timedelta(days=2)
)
Links
Metadata
Release files for heartbeat-sh 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| heartbeat-sh-0.3.0.tar.gz | 2.7 kB | Without provenance | Details for heartbeat-sh-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| heartbeat_sh-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for heartbeat_sh-0.3.0-py3-none-any.whl |
Total release size: 6.2 kB
Release files / heartbeat-sh-0.3.0.tar.gz
| Download URL | heartbeat-sh-0.3.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
babb2ff4c283c77002d0da82c464b341b12b443a774248c55d4795e31213dff4
|
|
BLAKE2b-256 checksum How to use checksums |
cbefa27313b18a050426280c61e72404b41c9fc5b5008d59afbb6cb9b93a721f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.6.5
|
Release files / heartbeat_sh-0.3.0-py3-none-any.whl
| Download URL | heartbeat_sh-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e016382c0dce60e6015ce60922076c2260f86d97475254570f20774d22fedc7
|
|
BLAKE2b-256 checksum How to use checksums |
6d04adcefb4cc0fb16694f5dfd91112d22e5862e9fea2c37f6cd2b7c140bbe6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.6.5
|
Security for heartbeat-sh 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.