Python SDK for the BoardData V2 REST API
Project description
boarddata
Python SDK for the BoardData V2 REST API.
Installation
pip install boarddata
Quick Start
from boarddata import BoardDataClient
# From environment variables
client = BoardDataClient.from_env()
# Or explicit configuration
client = BoardDataClient(
base_url="https://api.boarddata.scalens.com",
client_id="your-client-id",
client_secret="your-client-secret",
)
# List companies
companies = client.list_companies(country="FR", page_size=10)
# Get a specific company
company = client.get_company("company-uuid")
# Create or update a company
result = client.upsert_company("FR0000120271", "TotalEnergies", country="FR")
print(result["action"]) # "created" or "updated"
print(result["id"]) # company UUID
Environment Variables
| Variable | Description |
|---|---|
BOARDDATA_BACKEND_URL |
Base URL of the BoardData API |
BOARDDATA_CLIENT_ID |
OAuth2 client ID (from Django admin) |
BOARDDATA_CLIENT_SECRET |
OAuth2 client secret (from Django admin) |
Token Caching
from boarddata import BoardDataClient, FileTokenCache
# File-based cache
client = BoardDataClient.from_env(token_cache="~/.boarddata/token.json")
# Or with explicit cache object
cache = FileTokenCache("~/.boarddata/token.json")
client = BoardDataClient.from_env(token_cache=cache)
Pagination
# Auto-paginate any list endpoint
all_companies = client.paginate(client.list_companies, country="FR")
# Limit pages
first_100 = client.paginate(client.list_companies, max_pages=4, page_size=25)
Available Domains
- Companies —
list_companies,get_company,create_company,update_company,delete_company,upsert_company - Persons —
list_persons,get_person,create_person,update_person,delete_person,upsert_person - Directors —
list_directors,get_director,create_director,update_director,delete_director,upsert_director - Comex —
list_comex,get_comex,create_comex,update_comex,delete_comex,upsert_comex - Auditors —
list_auditors,get_auditor,create_auditor,update_auditor,delete_auditor - Documents —
list_documents,get_document,create_document,update_document,delete_document - Assemblies —
list_assemblies,get_assembly,create_assembly,update_assembly,delete_assembly - Resolutions —
list_resolutions,get_resolution,update_resolution,delete_resolution - ESG —
list_iros,create_iro,list_transition_plans,create_transition_plan,list_esg_benchmark - Sentinel —
list_analyses,create_analysis,retry_press_extraction,update_press_article - Utilities —
search,query_assistant,get_field_sources,paginate
License
MIT
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
boarddata-4.4.16.tar.gz
(41.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boarddata-4.4.16.tar.gz.
File metadata
- Download URL: boarddata-4.4.16.tar.gz
- Upload date:
- Size: 41.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c664509d4f0940ba6821ed188c80d312e144d5556969955050d217eaa71ba212
|
|
| MD5 |
a8578855d9bfc6da3ada9398c716e92c
|
|
| BLAKE2b-256 |
fa54392cc5036c671224b1b9a64dd1602418ebfb711b0720311db29642065677
|
File details
Details for the file boarddata-4.4.16-py3-none-any.whl.
File metadata
- Download URL: boarddata-4.4.16-py3-none-any.whl
- Upload date:
- Size: 62.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c50f2125b7567cc6be06da8c61239b774fb09351fd1243dc9d7378defa571a9
|
|
| MD5 |
65542f62013993bbfb06eec8165fe6dc
|
|
| BLAKE2b-256 |
748b7cdc9d6bbd4b13c540084043e71f5b01458bb6fd0e82bbac9e9f086a0280
|