NetSuite-Connector
Supports
Installation
$ pip install NetSuite-Connector
Get Started
The following examples shows how to use this module.
RESTlet GET
from NetSuite_Connector.NetSuite import NetSuite
nt = NetSuite(
account_id=123456,
consumer_keys=dict(consumer_key="2345678", consumer_secret="3456yhg"),
token_keys=dict(token_key="wfdbfdsdfg", token_secret="efguhfjoidejhfije"),
)
x = nt.get(
url="https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx",
headers={"Content-Type": "application/json"},
params={"foo":"bar"}
)
print(x)
# NetsuiteObject(url='https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx', request_headers={'Content-Type': 'application/json'}, response='{"foo":"bar"}', code=200)
RESTlet PUT - POST - DELETE
from NetSuite_Connector.NetSuite import NetSuite
nt = NetSuite(
account_id=123456,
consumer_keys=dict(consumer_key="2345678", consumer_secret="3456yhg"),
token_keys=dict(token_key="wfdbfdsdfg", token_secret="efguhfjoidejhfije"),
)
body={"foo":"bar"}
x = nt.post(
url="https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx",
headers={"Content-Type": "application/json"},
params={},
body=body
)
print(x)
# NetsuiteObject(url='https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx', request_headers={'Content-Type': 'application/json'}, request_data={"foo":"bar"}, response='{"foo":"bar"}', code=200)
SuiteQL Queries
To execute SuiteQL queries through REST web services, send a POST request to the suiteql resource, and specify the query in the request body after the query parameter q. The following example shows a SuiteQL query executed through REST web services.
SuiteQL Query
from NetSuite_Connector.ODBC import ODBC
nt = ODBC(
account_id=123456,
consumer_keys=dict(consumer_key="2345678", consumer_secret="3456yhg"),
token_keys=dict(token_key="wfdbfdsdfg", token_secret="efguhfjoidejhfije"),
)
q = nt.query("SELECT top 10 * FROM transaction")
print(q)
# NetsuiteObject(url='https://xxxx.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=xxxx&deploy=xxxx', request_headers={'Content-Type': 'application/json'}, request_data={"foo":"bar"}, response='{"foo":"bar"}', code=200)
Metadata
Release files for NetSuite-Connector 0.3.3
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 |
|---|---|---|---|---|
| netsuite_connector-0.3.3.tar.gz | 7.1 kB | Without provenance | Details for netsuite_connector-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netsuite_connector-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for netsuite_connector-0.3.3-py3-none-any.whl |
Total release size: 13.8 kB
Release files / netsuite_connector-0.3.3.tar.gz
| Download URL | netsuite_connector-0.3.3.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1adfb1bc756cfc85c05adec6a45f7e1da86351c583ac33f3f18c5227b93b1309
|
|
BLAKE2b-256 checksum How to use checksums |
62a7e9fd12fa7fedae5bd512bdd88a67bf3ef16e3832ec762f063967f2f68b2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Release files / netsuite_connector-0.3.3-py3-none-any.whl
| Download URL | netsuite_connector-0.3.3-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
347f664e63e545a73cb9e46ff876bc8523a7fd8a851cc027bdc859908a481639
|
|
BLAKE2b-256 checksum How to use checksums |
08c93593dd964d0f1fbe690fd3b432ba0a83de211a45b99b17b23d5faac96352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|
Security for NetSuite-Connector 0.3.3
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.