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.6
  • 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.6.tar.gz (58.5 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.6-py3-none-any.whl (108.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pescheck_client-0.0.6.tar.gz
  • Upload date:
  • Size: 58.5 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.6.tar.gz
Algorithm Hash digest
SHA256 ba3fc4676238c864753a112cd71207164cb9e02ee85407ddb8f090e1b4e64f53
MD5 a62d0aebabc04ae5c1e546e5d8c81f36
BLAKE2b-256 c13b0b549a70aa1ea3bad1b098c30cdee58e09bac96c3741cc97162383599aba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pescheck_client-0.0.6-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.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 7f64a75d73688bc521bc5224b3756f1600629787fa0f3262895a521a4a486e4b
MD5 42bc6b83cb1483a46b300917fc7ab3be
BLAKE2b-256 5a0ade69472eed67afeaca69b904e5349fb6f7d4114227713cddcc34ad5fbb64

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