Skip to main content

Python wrapper for the Acumatica REST API

Project description

Easy-Acumatica

A Python client for Acumatica's REST API. Dynamically generates models and service methods from your tenant's schema, supports OData queries, batch operations, caching, and a built-in interactive TUI for exploring the API.

Full documentation: easyacumatica.com/python

Installation

pip install easy-acumatica           # core
pip install easy-acumatica[tui]      # core + interactive TUI
pip install easy-acumatica[scheduler]  # core + APScheduler

Quick start

from easy_acumatica import AcumaticaClient

client = AcumaticaClient(
    base_url="https://your-instance.acumatica.com",
    username="...",
    password="...",
    tenant="...",
)

contact = client.models.Contact(DisplayName="Jane Doe", Email="jane@example.com")
client.contacts.put_entity(contact)

.env files and environment variables (ACUMATICA_URL, ACUMATICA_USERNAME, ACUMATICA_PASSWORD, ACUMATICA_TENANT, ...) are picked up automatically when the constructor is called with no arguments.

Interactive TUI (ea-debug)

Install the [tui] extra and launch the terminal UI:

pip install easy-acumatica[tui]
ea-debug

The TUI is a debug / exploration tool — connect to a tenant and browse:

  • Services — every dynamically generated service. Pick one and run get_list, get_by_id, get_by_keys, get_ad_hoc_schema, get_files, put_entity, put_file, delete_by_id, delete_by_keys. Query options ($top, $skip, $select, $expand, $orderby, $filter) get a form, destructive calls require a confirmation press, and a live "Equivalent Python" pane shows the call you can copy back into your script.
  • Models — every generated dataclass. Hit Enter on one to open the recursive model builder; the equivalent Python constructor renders next to the form as you type.
  • Inquiries — every Generic Inquiry exposed in the tenant's metadata. Each inquiry gets its own execution menu with the same OData query options as get_list. Inquiries that aren't published to OData (the Expose via OData flag on SM208000) surface a clear error rather than a raw 403.

Type stubs

Run once after install for full IDE autocompletion:

generate-stubs --url "https://your-instance.acumatica.com" \
               --username "..." --password "..." --tenant "..." \
               --endpoint-version "24.109.0029"

PEP 561 .pyi files are written into the installed package so VSCode/Pylance/Pyright/mypy discover them automatically. Regenerate after schema changes. See STUBSETUP.md for advanced setups (Lambda, read-only installs, multi-tenant).

Related projects

  • Orbu — Docker app for managing Acumatica clients and endpoints with a GUI.
  • easy-acumatica-npm — TypeScript / Node.js sister package.

License

MIT — see LICENSE.

Support

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

easy_acumatica-0.6.0.tar.gz (170.3 kB view details)

Uploaded Source

Built Distribution

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

easy_acumatica-0.6.0-py3-none-any.whl (131.3 kB view details)

Uploaded Python 3

File details

Details for the file easy_acumatica-0.6.0.tar.gz.

File metadata

  • Download URL: easy_acumatica-0.6.0.tar.gz
  • Upload date:
  • Size: 170.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for easy_acumatica-0.6.0.tar.gz
Algorithm Hash digest
SHA256 fa3a791bff0ed07b309c7ae54e7e1715b4e1787c8071a7a955926a00d67d0632
MD5 3a0a29b6f60523a07053e4d677b33146
BLAKE2b-256 08f13dd0cba28164086361facde0a7d9c5a6e513cbc93c2f1d186a87aa729f03

See more details on using hashes here.

File details

Details for the file easy_acumatica-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: easy_acumatica-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 131.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for easy_acumatica-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f95b019fef001be6b007738e10c4a48d01272e512880db2cba29a30147237fe0
MD5 4d0a7208f751bac674d72fa16f0583af
BLAKE2b-256 d29a9f4c714687d1081e56db41ef83d0d6f0986009bfaf982f743c0415157928

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