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.0.tar.gz
(227.7 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.0-py3-none-any.whl
(695.9 kB
view details)
File details
Details for the file accelapy-0.3.0.tar.gz.
File metadata
- Download URL: accelapy-0.3.0.tar.gz
- Upload date:
- Size: 227.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.9.3-76060903-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ef9264ccd93ecb102adcecedb1f9ae8d801f05d62f09f7c0cb5bc5e31fa7c2d
|
|
| MD5 |
5c772b188bc31fcbdbc60a6bcc9a0831
|
|
| BLAKE2b-256 |
4e56e01e84a9f70877fd06d77081f85ccfcb70abeff0e522f27a9ae1f5433d6e
|
File details
Details for the file accelapy-0.3.0-py3-none-any.whl.
File metadata
- Download URL: accelapy-0.3.0-py3-none-any.whl
- Upload date:
- Size: 695.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.9.3-76060903-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbce54fce00aa45f84c4d32a3f9e82363fe3b750be88fbd37f6903ca09ab313e
|
|
| MD5 |
1baa6262f0aeee24b66b2b76f77b4a86
|
|
| BLAKE2b-256 |
22794c09689563d4d8268169288dfd00fbab3bd9d6c145ccf4b061286bfec0f2
|