Type-safe Python models for for all GoCardless events using Pydantic
Project description
gocardless event schemas
This is an unofficial library. GoCardless provide the gocardless-pro python library. The reason this exists is because that library is not typed.
Type-safe Python models for for all GoCardless events (using Pydantic).
This is a Python implementation of the Event Actions in the GoCardless docs.
Since we only use Python 3.13+ this library doesn't support older versions, but PRs are welcome.
Why does this exist
GoCardless' docs are good, but they don't publish an OpenAPI spec or JSON schemas for their events. Their Python client library is untyped, so deserialization of the events is not type-safe.
How it's made
We pulled all the event specs from the GoCardless docs site as HTML, cleaned them, preproccessed them into a JSON pseudo-schema, and then generated Pydantic models from that schema.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gocardless_events-0.1.4.tar.gz
.
File metadata
- Download URL: gocardless_events-0.1.4.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
71979cbf93292c574ba8632619231d71b93728b109adf85b84d5f47d1a7ed778
|
|
MD5 |
ffa6d69935cdcf66d7e73599227e73a3
|
|
BLAKE2b-256 |
c94c4f69a629d508806d0626b3ceff6dda05841127d5235df8b7c42856919ed5
|
Provenance
The following attestation bundles were made for gocardless_events-0.1.4.tar.gz
:
Publisher:
publish.yaml
on karoo-ca/gocardless-events
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gocardless_events-0.1.4.tar.gz
-
Subject digest:
71979cbf93292c574ba8632619231d71b93728b109adf85b84d5f47d1a7ed778
- Sigstore transparency entry: 161236178
- Sigstore integration time:
-
Permalink:
karoo-ca/gocardless-events@59ef7fa31ebcf819970765c65123cafad8b94660
-
Branch / Tag:
refs/tags/v0.1.4
- Owner: https://github.com/karoo-ca
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yaml@59ef7fa31ebcf819970765c65123cafad8b94660
-
Trigger Event:
release
-
Statement type:
File details
Details for the file gocardless_events-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: gocardless_events-0.1.4-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
fb85ac9a7f51724cceb56e781aac7a97c958382960e9b10fcd3b6f898793c220
|
|
MD5 |
4fa4b0fb8e808e619e622271f5db77c7
|
|
BLAKE2b-256 |
ce3246b48711c0bd92ad8625d0f598565cfafc6ed94e11c7b1f458f484dbf1c1
|
Provenance
The following attestation bundles were made for gocardless_events-0.1.4-py3-none-any.whl
:
Publisher:
publish.yaml
on karoo-ca/gocardless-events
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gocardless_events-0.1.4-py3-none-any.whl
-
Subject digest:
fb85ac9a7f51724cceb56e781aac7a97c958382960e9b10fcd3b6f898793c220
- Sigstore transparency entry: 161236179
- Sigstore integration time:
-
Permalink:
karoo-ca/gocardless-events@59ef7fa31ebcf819970765c65123cafad8b94660
-
Branch / Tag:
refs/tags/v0.1.4
- Owner: https://github.com/karoo-ca
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
publish.yaml@59ef7fa31ebcf819970765c65123cafad8b94660
-
Trigger Event:
release
-
Statement type: