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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pescheck_client-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 ee63dd5efd82708b806dfddc57afc5251ff36b1d66b44515e2b4a2d58c962280
MD5 4ade2b46983d9f4fa99bfca7e520e766
BLAKE2b-256 dea3a5d46c79c25202e4ab5cd15e02c3ec5848005c664c722f4edabc657bc270

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pescheck_client-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47575cd6a5710e498feb28183cc353847b518e0a8be5f7a243d3d4105689b322
MD5 7763254690533e8e36474a8a4544da0d
BLAKE2b-256 bf657eadd546c85ab3c689f6784e91376f5ef30f766db08eff05bf01af5514c2

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