Skip to main content

pyintacct

PyPI License: MIT

A simple Python SDK for Sage Intacct.

Requirements

  • Python >= 3.6
  • pydantic
  • requests
  • jxmlease

Links

Installation

pip install pyintacct

Example usage

from pyintacct import IntacctAPI

config = {'SENDER_ID': 'senderid',
          'SENDER_PW': 'senderpassword',
          'COMPANY_ID': 'mycompany',
          'USER_ID': 'username',
          'USER_PW': 'password'}
client = IntacctAPI(config)

customer = {'customer': {'CUSTOMERID': 'C-0001', 'NAME': 'Acme, Inc.'}}
client.create(customer)

r = client.read_by_query('CUSTOMER', 'CUSTOMERID = \'C-0001\'', fields='NAME', pagesize=1)

You can also use pydantic models:

from pydantic import BaseModel

# API 3.0
class Location(BaseModel):
    LOCATIONID: str
    NAME: str

location = Location(LOCATIONID='T123', NAME='Test Location', PARENTID='100')
client.create(location)


# API 2.1
from pyintacct.models.base import API21Object

class Contact(API21Object):
    contactname: str = ...
    printas: str = None  # Need to assign a default to preserve ordering

    # Override create or delete method to fit your object.
    @classmethod
    def delete(cls):
        return 'delete_contact', 'contactname'

Metadata

Release files for pyintacct 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyintacct 0.1.1
File Size Uploaded Provenance Actions
pyintacct-0.1.1.tar.gz 8.4 kB Without provenance Details for pyintacct-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyintacct 0.1.1
File Interpreter ABI Platform Actions
pyintacct-0.1.1-py3-none-any.whl Python 3 none any Details for pyintacct-0.1.1-py3-none-any.whl

Total release size: 17.9 kB

Release files / pyintacct-0.1.1.tar.gz

Download URL pyintacct-0.1.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
927904eb388eafde42389c904cff8d5b8b1b61b4da394d0f79dea6add8e1ccbd
BLAKE2b-256 checksum
How to use checksums
0ae1e5158531d6495819ee7eea4bb9acb9b50452d059ed91bf4ab4989f4b8e10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release files / pyintacct-0.1.1-py3-none-any.whl

Download URL pyintacct-0.1.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42491cb95a1cdfc2600900461f9c6d4f06cb69916e5c4fa9378010abe100dceb
BLAKE2b-256 checksum
How to use checksums
f05ceebe4447189d4844f45861ed867b6e7470f661f7c1f26373db49b2f88e8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Security for pyintacct 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page