Accela REST API
Project description
accelapy
An Accela specific API for https://developer.accela.com/docs/api_reference/api-index.html
How to use:
pip install accelapy
You may need to get your payload from Accela for your environment.
from accelapy.client import AccelaClient
from accelapy.records_client.types import Response
from accelapy.records_client.models import RecordModel, TableModel
import json
from typing import List
from accelapy.payload import Payload
payload = Payload(payload_str='totally-real-payload')
api_client = AccelaClient(payload=payload)
# Get an Accela record, then get its associated custom tables
record_response: Response = api_client.v4_get_records.sync_detailed(client=api_client.authentication_client,
custom_id='TM-6308')
json_load = json.loads(record_response.content)
record_models: List[RecordModel] = [RecordModel.from_dict(x) for x in json_load['result']]
print(record_models)
real_record_id = record_models[0].id
record_custom_tables_response: Response = api_client.v_4_get_records_record_id_custom_tables.sync_detailed(
client=api_client.authentication_client, record_id=real_record_id)
json_load = json.loads(record_custom_tables_response.content)
custom_tables: List[TableModel] = [TableModel.from_dict(x) for x in json_load['result']]
print(custom_tables)
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
accelapy-0.3.4.tar.gz
(217.2 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
accelapy-0.3.4-py3-none-any.whl
(695.9 kB
view details)
File details
Details for the file accelapy-0.3.4.tar.gz.
File metadata
- Download URL: accelapy-0.3.4.tar.gz
- Upload date:
- Size: 217.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c62692e3a17c4f9f19440868d57a7c8f96d4e75f77fdc0bf04230b45e7a97b9
|
|
| MD5 |
fb1c98e679b42b5708137d7752babeae
|
|
| BLAKE2b-256 |
14f22a964fb1c67e559a05eccd0b9d4affaf32f4976b3ca5d3d36f66795c28e4
|
File details
Details for the file accelapy-0.3.4-py3-none-any.whl.
File metadata
- Download URL: accelapy-0.3.4-py3-none-any.whl
- Upload date:
- Size: 695.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a14885a6d99df8f84cd30adcc9be2a6351647dff44cce4de58eb57851e03f7a
|
|
| MD5 |
ba96c61f8624352b05629004223e2164
|
|
| BLAKE2b-256 |
f2e5997998c3a47110dd2591bf17e815b5c471233eaaea931fa83976bbf231fd
|