Skip to main content

Oh Dear Python

Latest Version on PyPi Software License Build Status Buy us a tree

An SDK to easily work with the Oh Dear API

Install

Via Pip

pip install ohdear-sdk

Usage

from ohdear import OhDear

ohdear = OhDear(api_token="your-token")

sites = ohdear.sites.all()
Available Methods Description
ohdear.me() Retrieve a UserInfo dict with details about the currently authenticated user.
ohdear.authenticated() Retrieve a boolean response indicating whether the current user is authenticated.
ohdear.broken_links.show(123) Retrieve a BrokenLinksCollection dict with details about broken links for a specific site.
ohdear.certificates.enable(123) Retrieve a CertificateHealth dict containing details about the certificate and it's health.
ohdear.checks.enable(123) Retrieve a boolean indicating whether a check was enabled successfully.
ohdear.checks.disable(123) Retrieve a boolean indicating whether a check was disabled successfully.
ohdear.cron_checks.show(123) Retrieve a CronChecksCollection dict with details about the cron checks for a specific site.
ohdear.domain_monitoring.domain(123) Retrieve a Domain dict with details about the domain for a specific site.
ohdear.mixed_contents.show(123) Retrieve a MixedContentsCollection dict with details about the mixed content for a specific site.
ohdear.sites.all() Retrieve a SitesCollection dict with details about all sites.
ohdear.sites.show(123) Retrieve a Site dict with details about a specific site.

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

hatch shell

hatch run test

Security

If you discover any security related issues, please email security@voke.dev instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Treeware

You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees here.

Read more about Treeware at treeware.earth.

Metadata

Release files for ohdear-sdk 0.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ohdear-sdk 0.3.9
File Size Uploaded
ohdear_sdk-0.3.9.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ohdear-sdk 0.3.9
File Interpreter ABI Platform
ohdear_sdk-0.3.9-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / ohdear_sdk-0.3.9.tar.gz

Download URL ohdear_sdk-0.3.9.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
31ba785aedb7e37947559eadcd451078c58c0be16d536f6eec14aefb4ea64c77
BLAKE2b-256 checksum
How to use checksums
1f7b3e702e270690054e25baf7be8da69d07657d375d66a88ab7a2e0c4dee2ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.0

Release files / ohdear_sdk-0.3.9-py3-none-any.whl

Download URL ohdear_sdk-0.3.9-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7e12e7065eda1decb31f98c80293dfc595c7e1712b056053acf72f2379929eb
BLAKE2b-256 checksum
How to use checksums
04368fe3979bcbd602cdc07952a720f44f5229b81ceac38493c0af1aa377765e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.0

Release history Release notifications | RSS feed

This release

0.3.9 This release

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page