Skip to main content

SmartyMeet Dev03 API REST

Project description

smartytalent-client

PyPI version Python versions Downloads

Python client for the SmartyTalent recruitment API, auto-generated from the OpenAPI spec using openapi-generator-cli with the python template.

Fully typed with Pydantic v2 models. Requires Python 3.9+.

Install

pip install smartytalent-client

Quick start

from smartytalent_client import ApiClient, Configuration
from smartytalent_client.api import TenantsApi

config = Configuration(
    host="https://api.smartytalent.example.com",
    access_token="<your-access-token>",
)

with ApiClient(config) as client:
    tenants_api = TenantsApi(client)
    tenants = tenants_api.list_tenants(filter_status="active")
    for t in tenants:
        print(t.id, t.name)

Authentication

The API uses Bearer token auth. Pass the raw token (no Bearer prefix) as access_token:

config = Configuration(
    host="https://api.smartytalent.example.com",
    access_token=access_token,
)

Async usage

Each API method has an _async variant built on asyncio:

import asyncio
from smartytalent_client import ApiClient, Configuration
from smartytalent_client.api import TenantsApi

async def main():
    config = Configuration(host="...", access_token="...")
    async with ApiClient(config) as client:
        api = TenantsApi(client)
        tenants = await api.list_tenants_async(filter_status="active")
        print(tenants)

asyncio.run(main())

API surface

The client exposes one class per API tag, importable from smartytalent_client.api:

ActionsApi, AdsApi, ApikeysApi, AssessmentsApi, BrowsersApi, CallsApi, CandidatesApi, ChatsApi, ConversationsApi, EmailsApi, FilesApi, FindersApi, FormsApi, JobsApi, LinksApi, MeetingsApi, NotesApi, NotificationsApi, OperationsApi, PersonasApi, ReportsApi, RolesApi, RunsApi, TalentsApi, TenantsApi, TranslationsApi, TriggersApi, UsersApi, WebhooksApi, WorkflowsApi.

All request/response DTOs are Pydantic models in smartytalent_client.models.

Configuration options

Configuration accepts:

Option Type Description
host str API base URL
access_token str OAuth2 bearer token
api_key dict[str, str] Header-based API keys (by security scheme)
username / password str HTTP basic auth
verify_ssl bool Toggle TLS verification (default True)
ssl_ca_cert str Path to a custom CA bundle
proxy str HTTP/HTTPS proxy URL
retries int Retry count for transient failures
connection_pool_maxsize int urllib3 pool size

Error handling

Non-2xx responses raise subclasses of smartytalent_client.ApiException:

from smartytalent_client import ApiException
from smartytalent_client.exceptions import NotFoundException, UnauthorizedException

try:
    tenants_api.get_tenant(id="missing-id")
except NotFoundException:
    ...
except UnauthorizedException:
    ...
except ApiException as e:
    print(e.status, e.reason, e.body)

Type safety

Every API method returns a Pydantic model — use .model_dump() to serialize, .model_validate() to parse. IDEs with type support (VS Code / PyCharm) provide full autocompletion on request parameters and response fields.

Versioning

This package is auto-published on every update to the OpenAPI spec. Version numbers are synchronized with the @smartytalent/* npm packages.

License

Licensed under the Apache License, Version 2.0.

Copyright © 2026 SmartyTalent (SmartyMeet sp. z o.o.)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartytalent_client-0.1.33.dev4.tar.gz (425.0 kB view details)

Uploaded Source

Built Distribution

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

smartytalent_client-0.1.33.dev4-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file smartytalent_client-0.1.33.dev4.tar.gz.

File metadata

File hashes

Hashes for smartytalent_client-0.1.33.dev4.tar.gz
Algorithm Hash digest
SHA256 ba155707d04074c097b137914fb9299b55ad00f31a05cdce142696f052eeb55a
MD5 0c624553e58d7e5d6621feb82dde9582
BLAKE2b-256 057e2560282c055c51ff93a254a22533e76599fb957e44916cf682db21c30130

See more details on using hashes here.

File details

Details for the file smartytalent_client-0.1.33.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for smartytalent_client-0.1.33.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 87074875dba9702bcedc0685b16d7953bce9f23755fc39899f2582494961e30a
MD5 0c2d669e7b8f0ed7f5fa4b8aa0a096b9
BLAKE2b-256 0e5d84b63b58682bd0a38a43c7a741b992b0c364ad4c6cf167e6145d8c455061

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