Skip to main content

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


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.1.tar.gz (227.3 kB view details)

Uploaded Source

Built Distribution

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

accelapy-0.3.1-py3-none-any.whl (695.9 kB view details)

Uploaded Python 3

File details

Details for the file accelapy-0.3.1.tar.gz.

File metadata

  • Download URL: accelapy-0.3.1.tar.gz
  • Upload date:
  • Size: 227.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for accelapy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a01f389f0036849cf1a40919788854828e53af00687904145680840976ec246e
MD5 5b8798f0048a2ee074915fdd4c220b5f
BLAKE2b-256 31adceb282dae8bf37d958f06fb13b1858cf9edd62a4df1f977be15352c96fa7

See more details on using hashes here.

File details

Details for the file accelapy-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: accelapy-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 695.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for accelapy-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca3d0e455ba65ba21b0b1e2ab70bc3d916d7dec8df3b39c97f57923fb045627a
MD5 1f8e6ed3ce071a4063ce85222e210d04
BLAKE2b-256 42c2d1cc6a9745a12c1eb636efa07fc76aac3cb4c2807e5914c0514b893209d6

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