Skip to main content

Pescheck API

Project description

Official Pescheck API client - part of the pescheck-clients SDKs.

pescheck-client

Official client library for the Pescheck API (v2), generated from the OpenAPI specification. Authenticate with OAuth2 client credentials and use the checks, profiles, screenings, webhooks and divisions endpoints. See https://github.com/pescheckit/pescheck-clients for installation and usage.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 2.0.0
  • Package version: 0.1.0
  • Generator version: 7.23.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/pescheckit/pescheck-clients.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/pescheckit/pescheck-clients.git)

Then import the package:

import pescheck

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import pescheck

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import pescheck
from pescheck.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.pescheck.io
# See configuration.py for a list of all supported configuration parameters.
configuration = pescheck.Configuration(
    host = "https://api.pescheck.io"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]


# Enter a context with an instance of the API client
with pescheck.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pescheck.AuthenticationApi(api_client)
    jwt_generation = pescheck.JWTGeneration() # JWTGeneration | 

    try:
        api_response = api_instance.generate_jwt_token2(jwt_generation)
        print("The response of AuthenticationApi->generate_jwt_token2:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AuthenticationApi->generate_jwt_token2: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.pescheck.io

Class Method HTTP request Description
AuthenticationApi generate_jwt_token2 POST /api/v2/jwt/generate/
AuthenticationApi jwt_create POST /api/jwt/
AuthenticationApi jwt_refresh_create POST /api/jwt/refresh/
ChecksApi v2_checks_list GET /api/v2/checks/
ChecksApi v2_checks_retrieve GET /api/v2/checks/{check_type}/
DivisionsApi v2_organisations_divisions_create POST /api/v2/organisations/divisions/
DivisionsApi v2_organisations_divisions_list GET /api/v2/organisations/divisions/
DivisionsApi v2_organisations_divisions_partial_update PATCH /api/v2/organisations/divisions/{id}/
DivisionsApi v2_organisations_divisions_retrieve GET /api/v2/organisations/divisions/{id}/
DivisionsApi v2_organisations_divisions_update PUT /api/v2/organisations/divisions/{id}/
OAuthApi create_o_auth_application2 POST /api/v2/oauth/applications/
OAuthApi delete_o_auth_application2 DELETE /api/v2/oauth/applications/{application_id}/
OAuthApi list_o_auth_applications2 GET /api/v2/oauth/applications/list/
ProfilesApi v2_profiles_create POST /api/v2/profiles/
ProfilesApi v2_profiles_destroy DELETE /api/v2/profiles/{id}/
ProfilesApi v2_profiles_list GET /api/v2/profiles/
ProfilesApi v2_profiles_partial_update PATCH /api/v2/profiles/{id}/
ProfilesApi v2_profiles_retrieve GET /api/v2/profiles/{id}/
ProfilesApi v2_profiles_update PUT /api/v2/profiles/{id}/
ScreeningsApi v2_screenings_create POST /api/v2/screenings/
ScreeningsApi v2_screenings_documents_list GET /api/v2/screenings/{id}/documents/ Retrieve screening documents
ScreeningsApi v2_screenings_list GET /api/v2/screenings/
ScreeningsApi v2_screenings_retrieve GET /api/v2/screenings/{id}/
WebhooksApi create_webhook2 POST /api/v2/webhooks/
WebhooksApi delete_webhook2 DELETE /api/v2/webhooks/{webhook_id}/
WebhooksApi list_webhooks2 GET /api/v2/webhooks/list/
WebhooksApi verify_webhook2 POST /api/v2/webhooks/{webhook_id}/verify/

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

cookieAuth

  • Type: API key
  • API key parameter name: __Secure-sessionid
  • Location:

jwtAuth

  • Type: Bearer authentication (JWT)

oauth2

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • read:api: read groups
  • create:api: create groups
  • update:api: update groups

Author

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

pescheck_client-0.1.0.tar.gz (58.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pescheck_client-0.1.0-py3-none-any.whl (108.4 kB view details)

Uploaded Python 3

File details

Details for the file pescheck_client-0.1.0.tar.gz.

File metadata

  • Download URL: pescheck_client-0.1.0.tar.gz
  • Upload date:
  • Size: 58.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pescheck_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d251e3f83f5b3cdaa0f1ac1821c4951e50c1ffcc07b0c77a3c422d1b7a32f761
MD5 f17ef7aef1dd3622bf8f2ad902da11f0
BLAKE2b-256 dd1ca1c86180fd628f296d932882de15dd4a1a4ccff861067ce10ad4dd53fbe1

See more details on using hashes here.

File details

Details for the file pescheck_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pescheck_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 108.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pescheck_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcab956ed23838b800c4a5ac69a7d251bff986dc671d43d58cedd287d1df58e8
MD5 2e9807b330cab4f8236448ebf537ad72
BLAKE2b-256 a557e69a721090024fd768c2d5de21547f75cc51052836d21fd3fb3319a262d6

See more details on using hashes here.

Supported by

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