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.5.tar.gz (217.2 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.5-py3-none-any.whl (695.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: accelapy-0.3.5.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

Hashes for accelapy-0.3.5.tar.gz
Algorithm Hash digest
SHA256 b7e3afebd9c33f11c4cff2b6832aac30558dd1ec129e7d34e23409d55c095c54
MD5 7e9dcf15180b0e9edd31059627bf079f
BLAKE2b-256 3a0144cadd3a0c86e8da17f3d9da110e82cff620f32510254b10caba7edf3246

See more details on using hashes here.

File details

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

File metadata

  • Download URL: accelapy-0.3.5-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

Hashes for accelapy-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76abc5b72677440d7e49fce8643586ed9dab5c9099b0d5ba32c657dbfb07e983
MD5 851169cf7cb2e9b75045332db7b0837d
BLAKE2b-256 c135876b9c578c0b219f71e26985966eff42454376370d9a4af510017077eb59

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