dynamictalk
A package for converting python dictionaries into XML for Netsuite.
init()
This package requires passing in a NetSuite object from the netsuite package: https://pypi.org/project/netsuite/
from netsuite.client import NetSuite
from dynamictalk import DynamicTalk
conn = NetSuite({config})
dt = DynamicTalk(conn)
view()
Input the API name of the object you want to see and this method will compile the structure of the object, sub objects and all of their custom field lists and return it.
from netsuite.client import NetSuite
from dynamictalk import DynamicTalk
conn = NetSuite({config})
dt = DynamicTalk(conn)
print(dt.view(SalesOrder))
build()
Input the data you want converted in dictionary form and the API name of the object the data is for and this method will convert the input data into the appropriate XML structures. The keys in the data must correspond exactly to the Netsuite field API names including case sensitivity.
For reference fields make sure the value is the internal Id of what you want to reference.
The custom field list should be input as a dictionary instead of a list with key value pairs corresponding to the API name of the custom field and the value, or internal Id to be set in that custom field.
from netsuite.client import NetSuite
from dynamictalk import DynamicTalk
conn = NetSuite({config})
dt = DynamicTalk(conn)
order = {'externalId': 456343,
'entityId': 436634,
'subsidiary': 5,
'customFieldList':{
'custbody_custom1': 'example'
}
}
xml_order = dt.build(order, 'SalesOrder')
conn.add(xml_order)
Metadata
Release files for DynamicTalk 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| DynamicTalk-0.0.1.tar.gz | 6.2 kB | Without provenance | Details for DynamicTalk-0.0.1.tar.gz |
Release files / DynamicTalk-0.0.1.tar.gz
| Download URL | DynamicTalk-0.0.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c277232a07a07f4f7aee33b42a8e505a47b482d908903e04699e352b8e622c2
|
|
BLAKE2b-256 checksum How to use checksums |
285191e3c79b6b3c92ac2ecb4f5b6a0fa939146e0783d85b3fd3b64f55eee024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10
|
Security for DynamicTalk 0.0.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.