Skip to main content

A Python SDK for France Travail API

Project description

France Travail API Python SDK

Continuous Integration Continuous Delivery codecov

A high-level Python SDK to interact with the France Travail API.

Quick start

Installation

python3 venv .france-travail-api
source .france-travail-api/bin/activate
pip install france-travail-api

Authentication

The SDK handles the OAuth2 Client Credentials Grant flow to authenticate with the API.

Get your API credentials (FRANCE_TRAVAIL_CLIENT_ID and FRANCE_TRAVAIL_CLIENT_SECRET) from the France Travail API developer portal.

Usage

from france_travail_api.client import FranceTravailClient
from france_travail_api.auth.scope import Scope

with FranceTravailClient(
    client_id="your_id",
    client_secret="your_secret",
    scopes=[Scope.OFFRES]
) as client:
    job_offers =client.offres.search(mots_cles="developpeur")

Contributing

Unix-like systems (GNU/Linux, macOS, etc.)

You need to have curl and uv installed on your system.

Then run the following command : curl -sSL https://raw.githubusercontent.com/cmnemoi/france-travail-api/main/clone-and-install | bash

Development

You can run tests with make test.

To run integration tests, you need to set FRANCE_TRAVAIL_CLIENT_ID and FRANCE_TRAVAIL_CLIENT_SECRET environment variables.

License

The source code of this repository is licensed under the Apache License 2.0.

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

france_travail_api-1.2.0.tar.gz (120.4 kB view details)

Uploaded Source

Built Distribution

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

france_travail_api-1.2.0-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file france_travail_api-1.2.0.tar.gz.

File metadata

  • Download URL: france_travail_api-1.2.0.tar.gz
  • Upload date:
  • Size: 120.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for france_travail_api-1.2.0.tar.gz
Algorithm Hash digest
SHA256 89616160db0345c79ae4f575cb679240499713795c6235e1af95c239c314eda5
MD5 4d10d3f95d6882d2541be3e7c59ac0e2
BLAKE2b-256 c8b50c5ef0b564921ed3f0ce48a8a5266baef4ac3c2347406994b3fc14990b26

See more details on using hashes here.

File details

Details for the file france_travail_api-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: france_travail_api-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for france_travail_api-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a1d3f3088fd30d242aa980b211e25ad1e5642069f1ac553ef57e38009c85f1c
MD5 bedf9206f02fa5197b624c47d38c28d5
BLAKE2b-256 3178ecb14cbff83f20264cd980f8e54d9f6b085111f829fc9d6ca7b0b7b10bee

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