Edurra Python SDK 1.0.3
Welcome to the Edurra SDK documentation. This guide will help you get started with integrating and using the Edurra SDK in your project.
Versions
- API version:
1.0.3 - SDK version:
1.0.3
About the API
Edurra API for Educational Planning and Resource Management. Powered by postcode-based intelligence and Loccode integration.
Table of Contents
Setup & Configuration
Supported Language Versions
This SDK is compatible with the following versions: Python >= 3.7
Installation
To get started with the SDK, we recommend installing using pip:
pip install edurra
If you are using Python 3, you can use pip3 instead:
pip3 install edurra
Authentication
Access Token Authentication
The EdurraSdk API uses an Access Token for authentication.
This token must be provided to authenticate your requests to the API.
Setting the Access Token
When you initialize the SDK, you can set the access token as follows:
EdurraSdk(
access_token="YOUR_ACCESS_TOKEN",
api_key="YOUR_API_KEY",
api_key_header="YOUR_API_KEY_HEADER",
timeout=10000
)
If you need to set or update the access token after initializing the SDK, you can use:
sdk.set_access_token("YOUR_ACCESS_TOKEN")
Setting a Custom Timeout
You can set a custom timeout for the SDK's HTTP requests as follows:
from edurra_sdk import EdurraSdk
sdk = EdurraSdk(timeout=10000)
Sample Usage
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
from edurra_sdk import EdurraSdk
sdk = EdurraSdk(
access_token="YOUR_ACCESS_TOKEN",
api_key="YOUR_API_KEY",
api_key_header="YOUR_API_KEY_HEADER",
timeout=10000
)
result = sdk.health.health_check()
print(result)
Async Usage
The SDK includes an Async Client for making asynchronous API requests. This is useful for applications that need non-blocking operations, like web servers or apps with a graphical user interface.
import asyncio
from edurra_sdk import EdurraSdkAsync
sdk = EdurraSdkAsync(
access_token="YOUR_ACCESS_TOKEN",
api_key="YOUR_API_KEY",
api_key_header="YOUR_API_KEY_HEADER",
timeout=10000
)
async def main():
result = await sdk.health.health_check()
print(result)
asyncio.run(main())
Services
The SDK provides various services to interact with the API.
Below is a list of all available services:
| Name |
|---|
| school_discovery |
| demographic_insights |
| catchment_area_analysis |
| transportation_planning |
| health |
Models
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
Below is a list of all available models:
| Name | Description |
|---|---|
| GetSchoolsRequestDto | |
| GetDemographicsRequestDto | |
| GetCatchmentRequestDto | |
| CurateBusRouteRequestDto |
Metadata
Release files for edurra 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edurra-1.0.3.tar.gz | 25.4 kB | Without provenance | Details for edurra-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edurra-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for edurra-1.0.3-py3-none-any.whl |
Total release size: 70.6 kB
Release files / edurra-1.0.3.tar.gz
| Download URL | edurra-1.0.3.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f23d0c02775e01970f8cc2cb3a9b68f02f2373741e3b83b5a36bc9cb342b1f33
|
|
BLAKE2b-256 checksum How to use checksums |
7af909d55251aa65f3a2380ab8c53df42878a625539186b3ae4c368c6db3d826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / edurra-1.0.3-py3-none-any.whl
| Download URL | edurra-1.0.3-py3-none-any.whl |
|---|---|
| Size | 45.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8a99f3225ea2831e8e6a59c77e1c7882c14222cfd2f57c2110945880779ff7a
|
|
BLAKE2b-256 checksum How to use checksums |
1ca0d2bf86d94124f213bf88d419ccafef4c84232cdd6f30cd199abe33786ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for edurra 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.