Skip to main content

Pescheck API

Project description

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.0.5
  • 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.0.5.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.0.5-py3-none-any.whl (108.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pescheck_client-0.0.5.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.0.5.tar.gz
Algorithm Hash digest
SHA256 4b91b2d3d41661df85ba6810f8111dfa71599ae740090b775ff05ad5bee0d01f
MD5 b4cfef9a2972c2e2b2cf0dee4443ac9b
BLAKE2b-256 b17382649e7bf00633e17402c82d61e7cb0031e6b68c11354879613987924321

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pescheck_client-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 108.5 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.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 75bf6142f49e240ea234e0ed9a2754907289381e5f7c5b35ab72b9681143d926
MD5 8559dd2233e2116e6a93447ab526cb4f
BLAKE2b-256 9e85d8377b21347a45243cbab2716ea45c1eb2fbdecc527f5804b1c6fd04345f

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