Skip to main content

Unofficial Python API for Odyssee

Project description

PyPI Version Downloads

Odyssee API

Provides an unofficial API for the Odyssee platform, allowing users to access and interact with their data programmatically.

Features

  • download applications of candidates as zip files
  • get information about candidates
  • get information about committee members
  • get information about institutions
  • get keywords
  • assign applications to committee members
  • download reports from committee members
  • provide decision on each candidate after the first round of evaluation

Installation

pip install odysseeapi

Minimal example

from odysseeapi.OdysseeCOS import OdysseeCOS

numposte = "123456"
username = "xyz"
password = "abc"

# Initialize the API client with the numposte and use_cache set to True
# setting use_cache to False forces the API client to fetch fresh data from the server for each request, while setting it to True allows the client to use cached data if available
odyssee = OdysseeCOS(numposte, True)

# The following line is used to authenticate the user and obtain the necessary cookies and bearer token for subsequent API calls. It is optional when using the cached data
odyssee.authenticate(username, password)

# Download the applications of the candidates in the specified directory
odyssee.download_applications('dossiers_candidats')

candidates = odyssee.get_candidates()
print(candidates)

rapporteurs = odyssee.get_committee_members()
print(rapporteurs)

etablissements = odyssee.get_institutions()
print(etablissements)

keywords = odyssee.get_keywords()
print(keywords)

candidates_with_details = odyssee.get_candidates_with_details()
print(candidates_with_details)

# odyssee.assign_jury_members_to_candidate("f1e2d3c4-b5a6-4789-9876-543210fedcba", "123456", "78910")

# Download the reports of the committee members for the candidates in the specified directory
# odyssee.downloadReports("rapportsOdyssee")

# At the end of the first jury meeting, record the opinion for each candidate and the results of the vote
# odyssee.opinion_for_interview("f1e2d3c4-b5a6-4789-9876-543210fedcba", "A", "Motif audition", 16, 16, 0, 0, 16, 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

odysseeapi-1.0.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

odysseeapi-1.0.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file odysseeapi-1.0.1.tar.gz.

File metadata

  • Download URL: odysseeapi-1.0.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for odysseeapi-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f14bca16aabb079accda03f23b49abfafdf13461992efadebf42f3cdf16066c0
MD5 10f5d88c4e13d4f8937a80489a945be7
BLAKE2b-256 8232128d2feb568e96dbeb68adc5935855b3fa1410c0a6f4c158e58fea60234c

See more details on using hashes here.

File details

Details for the file odysseeapi-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: odysseeapi-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for odysseeapi-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bcfe8aa7aa05802433fc7a416c765d6448054819a7873f0865b6d542e423743
MD5 8b4e5dbc806029827f18b78ef66dde86
BLAKE2b-256 e409fc6ad2e4b8c5ade2ad1208c713a7385c413dddd8dcbd9e02fa40dafd91d3

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