Skip to main content

BoB Metadata Keys and URLs

Project description

BoB Metadata Keys and URLs

This repository contains a Python module with the current BoB Metadata keys and URLs. Inspired by certifi.

Installation

bobifi is available on PyPI. Simply install it with pip:

$ pip install bobifi

Usage

bobify includes test and production keys and metadata URLs from Swedish Samtrafiken. Usage examples below.

>>> from bobifi.samtrafiken import trusted_jwks, metadata_url, where

>>> metadata_url(env="test")
'https://bobmetadata-pp.samtrafiken.se/api/v2/participantMetadata'

>>> where(env="test")
'/home/bob/bobifi/data/samtrafiken-test.json'

>>> import pprint
>>> pprint.pprint(trusted_jwks(env="test"))
{'keys': [{'crv': 'P-256',
           'kid': '16:samtrafiken_one',
           'kty': 'EC',
           'x': 'f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU',
           'y': 'x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0'},
          {'e': 'AQAB',
           'kid': '16:samtrafiken_fallback_2023',
           'kty': 'RSA',
           'n': 't5ITeoklTnhR8XNDLYKx5WsUxkJZkBSqT-5dfc-W_1cByD0ZKf-2DkwArXWwK4bYPQ2RlDuot-m8U2GSjnQ9wNxrA1oIUzJZYw1ryqbq-Lh1hrbYWbW2OlcIIce2dzEnSdbphTthoYFDu1xS8n5hi1xC-LGlmfmQfTCjCZR5CFnRbar97rAjfrRfvlwG15XJTC6BiDtYZMF5KmpgKCqP39ELCqV0LHXfeJ50v263a9enlD0RogNAbwM0OTDZ-ek8WF5YePEuE1p0-Pbe14O-pSkT_DPwl5pF6uk6QN3whr90oTgDkUoI4xb88jhscWb1yf4PfjsF3F4JUgYn9V1w28-N7ZIkGe6-PznWmvjsgJj9u6sg9f2-AU5k2ZsZCuO1-bVSubjJU0j2J7DyvP3wpxt1ybrOjA1X8K2s6bMBan0u3CsHDsikGHsgKlDkWJvD5fBpb1Ize3YfbAJvbGNtT2ae6Ft0cB__xVGDvJqEl6UHZgU4gBm01DiX20RJcGgWbX5nsz47mC2zXG_thtpPd8lAsyevGBKTsMpPEomAwRfL_VDWvjcXGPTD7Lm-igzzWLHrK9xRmhBOHs_oxK2o6gUtu4LcqSh1PHCIzBznzdacHVSPrLy5pPTuwxm4DYrhycOvlb8PPL9qX7qscJTwp5jcNYAYvmF2Ezns32HhIXM'}]}

For Samtrafiken, the test and prod environments are currently defined. The prod environment is used as default.

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

bobifi-2022.9.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

bobifi-2022.9.6-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file bobifi-2022.9.6.tar.gz.

File metadata

  • Download URL: bobifi-2022.9.6.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1017-azure

File hashes

Hashes for bobifi-2022.9.6.tar.gz
Algorithm Hash digest
SHA256 611718503528e6efff9ad1e5970097cd59e15e3867d4c31f04e3a5096a0cc4b8
MD5 acae9d7b592e92ca9fa27b5a0206eb3d
BLAKE2b-256 139788d132d3d57f5bf0b82165068e542fd5267032e4d29e4d5f2bc75dc638ff

See more details on using hashes here.

File details

Details for the file bobifi-2022.9.6-py3-none-any.whl.

File metadata

  • Download URL: bobifi-2022.9.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1017-azure

File hashes

Hashes for bobifi-2022.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3576f698f7551a64dafa9297406b2e8570a057cda00447861b7f5b3eab6e558c
MD5 3486b2462191c18cc62aa3eb273f1b53
BLAKE2b-256 84a6d95f53d578a4a927254509ec0cdfc1f9df2f949736227d2915feb9f0a3f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page