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.2.1.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.2.1-py3-none-any.whl (108.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pescheck_client-0.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 881c598204b52b75fef0a4121e920588ff5bf3490ea652cf6555fe6f03fff2ef
MD5 7d7fec3d8e4fefc1bdb30edb2bf96006
BLAKE2b-256 2ca633db458ecaedb39838565a2c84cb6a221670da564b10b2a04bcd1885fa94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pescheck_client-0.2.1-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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91b2725df48e3d5e464586dade9992db040635358568d0bacd90520db0d1f360
MD5 83d9a10f8e94aa1c375400acd012275a
BLAKE2b-256 5f75fd05cac31d34c5bf3282f94969b2446dad5116e545e26875c34dbc6b9559

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