accelapy


Nameaccelapy JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/michaelachrisco/accelapy
SummaryAccela REST API
upload_time2024-10-25 18:18:23
maintainerNone
docs_urlNone
authorMichaelAChrisco
requires_python<4.0,>=3.10
licenseAGPL-3.0-or-later
keywords accela rest api
VCS
bugtrack_url
requirements httpx attrs requests python-dateutil
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # accelapy
An Accela specific API for https://developer.accela.com/docs/api_reference/api-index.html

## How to use:

You may need to get your payload from Accela for your environment.

```python
from accelapy.accelapy.client import AccelaClient
from accelapy.accelapy.records_client.types import Response
from accelapy.accelapy.records_client.models import RecordModel
import json
from typing import List
from accelapy.accelapy.payload import Payload

payload = Payload(payload_str='totally-real-payload')
api_client = AccelaClient(payload=payload)
response: Response = api_client.v4_get_records.sync_detailed(client=api_client.authentication_client, custom_id='E24-00103')
json_load = json.loads(response.content)
record_models : List[RecordModel] = [RecordModel.from_dict(x) for x in json_load['result']]
print(record_models)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/michaelachrisco/accelapy",
    "name": "accelapy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "accela, rest, api",
    "author": "MichaelAChrisco",
    "author_email": "michaelachrisco@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/2c/10/c2e32a6f84f3d1beefb63a72eec33180d6a799af2d09b68f1a468cd8cea6/accelapy-0.2.2.tar.gz",
    "platform": null,
    "description": "# accelapy\nAn Accela specific API for https://developer.accela.com/docs/api_reference/api-index.html\n\n## How to use:\n\nYou may need to get your payload from Accela for your environment.\n\n```python\nfrom accelapy.accelapy.client import AccelaClient\nfrom accelapy.accelapy.records_client.types import Response\nfrom accelapy.accelapy.records_client.models import RecordModel\nimport json\nfrom typing import List\nfrom accelapy.accelapy.payload import Payload\n\npayload = Payload(payload_str='totally-real-payload')\napi_client = AccelaClient(payload=payload)\nresponse: Response = api_client.v4_get_records.sync_detailed(client=api_client.authentication_client, custom_id='E24-00103')\njson_load = json.loads(response.content)\nrecord_models : List[RecordModel] = [RecordModel.from_dict(x) for x in json_load['result']]\nprint(record_models)\n```\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "Accela REST API",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "https://github.com/michaelachrisco/accelapy",
        "Repository": "https://github.com/michaelachrisco/accelapy"
    },
    "split_keywords": [
        "accela",
        " rest",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5ad25df92effc19d8c2b9280a6aa3a90030e60b9c0b4665431ea3d56f5b5811",
                "md5": "e1680aac5f61f965f53859e4d43bb691",
                "sha256": "f05063a5cf76b8c5b74e2219d97c63ecc3d5000689b46a1ed1bfbb989e4bee84"
            },
            "downloads": -1,
            "filename": "accelapy-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e1680aac5f61f965f53859e4d43bb691",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 694156,
            "upload_time": "2024-10-25T18:18:20",
            "upload_time_iso_8601": "2024-10-25T18:18:20.880421Z",
            "url": "https://files.pythonhosted.org/packages/d5/ad/25df92effc19d8c2b9280a6aa3a90030e60b9c0b4665431ea3d56f5b5811/accelapy-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c10c2e32a6f84f3d1beefb63a72eec33180d6a799af2d09b68f1a468cd8cea6",
                "md5": "c95c6e6acc246a44d1acfea712efeb14",
                "sha256": "d4dabd97367aebab406ebe9e6543ffaf51e56ea01143b2b5d6a770721b322d4a"
            },
            "downloads": -1,
            "filename": "accelapy-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "c95c6e6acc246a44d1acfea712efeb14",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 225434,
            "upload_time": "2024-10-25T18:18:23",
            "upload_time_iso_8601": "2024-10-25T18:18:23.152871Z",
            "url": "https://files.pythonhosted.org/packages/2c/10/c2e32a6f84f3d1beefb63a72eec33180d6a799af2d09b68f1a468cd8cea6/accelapy-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-25 18:18:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "michaelachrisco",
    "github_project": "accelapy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "httpx",
            "specs": []
        },
        {
            "name": "attrs",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "python-dateutil",
            "specs": []
        }
    ],
    "lcname": "accelapy"
}
        
Elapsed time: 0.64530s