Skip to main content

Quickstart

badgrclient is a python library for Badgr APIs

Installation

pip install badgrclient

Docs

https://badgrclient.readthedocs.io/

Usage

Instantiate a client

from badgrclient import BadgrClient

client = BadgrClient('username', 'password', 'client_id')

Fetch your entities with the client or by giving an entityId.

>>> my_issuers = client.fetch_issuer()
[Issuer(7fde21f03a30dfg), Issuer(de21ce2d52df0)]

>>> baby_badger = client.fetch_badgeclass('<baby_badgr_entity_id>')[0]
BadgeClass(<baby_badgr_entity_id>)

Use member functions to perform actions on the entity

>>> baby_badger.issue('jane@gmail.com')
Assertion(<entity_id>)

Or directly import a model and get going

>>> from badgrclient import Assertion
>>> janes_assertion = Assertion(client, eid='<entity_id>')
Assertion(<entity_id>)

>>> janes_assertion.revoke('Revocation Reason')

Metadata

Release files for badgrclient 0.1.2

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

Source distribution (sdist)

Source distribution for badgrclient 0.1.2
File Size Uploaded Provenance
badgrclient-0.1.2.tar.gz 22.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for badgrclient 0.1.2
File Interpreter ABI Platform
badgrclient-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 44.1 kB

Release files / badgrclient-0.1.2.tar.gz

Download URL badgrclient-0.1.2.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a7df3f047743d494b79f61579d8177736bdaf29f675453c961c720672135d8ca
BLAKE2b-256 checksum
How to use checksums
ff6088b7dcaab98ce8a556a5af973b5d040c05ac556b6f3cf76fb39c3f062eb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / badgrclient-0.1.2-py3-none-any.whl

Download URL badgrclient-0.1.2-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af874b31c270a0822b6c326f7f064557e697039233a6399eebf14596701c72e9
BLAKE2b-256 checksum
How to use checksums
d83c47d4ba9cf826f5c81c77bb72398938c65308e6037157204783e59deeb968
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Security for badgrclient 0.1.2

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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