Python Connector for NetSuite
Python Connector for NetSuite is a connectivity solution for accessing NetSuite from Python applications to read and update data. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows and Windows Server.
Standard SQL syntax
The connector fully supports the ANSI SQL standard and lets you execute SQL statements against your NetSuite data just like you would normally work with relational databases. Simple queries are directly converted to NetSuite API calls and executed on the NetSuite side. Complex queries are transformed into simpler queries, which are then converted to NetSuite API calls. The embedded SQL engine then processes the results in the local cache and applies advanced SQL features from the original complex query.
Connecting
To establish a connection to NetSuite, import the connector and authenticate using basic, token-based, or OAuth 2.0 authentication.
Import the connector
First, import the NetSuite connector module:
import devart.netsuite as netsuite
Establish a connection
Connect to your NetSuite account using the connect() module method and obtain a connection object.
You can connect to NetSuite using basic, token-based, or OAuth 2.0 authentication.
Basic authentication
For basic authentication, provide your NetSuite account details:
my_connection = netsuite.connect(
Ver=1, Authentication="Basic", UserID="your_username", Password="your_password", AccountId="your_account_id", RoleId="your_role_id", ApplicationId="your_application_id"
)
Replace the example values with your actual NetSuite credentials.
Token-based authentication
For token-based authentication, provide your NetSuite account and token details:
my_connection = netsuite.connect(
Version="Ver2",
Authentication="TokenBased",
AccountId="your_account_id",
AccountTimeZone="your_account_timezone",
ConsumerKey="your_consumer_key",
ConsumerSecret="your_consumer_secret",
TokenId="your_token_id",
TokenSecret="your_token_secret"
)
Replace the example values with your actual token credentials.
OAuth 2.0 authentication
For OAuth 2.0 authentication, first obtain a refresh token, then use it to establish the connection:
response = netsuite.signin(
AccountId="your_account_id",
ClientId="your_client_id",
ClientSecret="your_client_secret")
my_connection = netsuite.connect(
Authentication="OAuth",
AccountID="your_account_id",
AccountTimeZone="your_account_timezone",
ClientID="your_client_id",
ClientSecret="your_client_secret",
RefreshToken=response["Refresh Token"]
)
Replace the example values with your actual OAuth credentials.
Querying data
Once connected to NetSuite, you can execute SQL queries to retrieve data from NetSuite.
Execute a query
Create a cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
Execute a SQL query using the execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve results using one of the fetch*() methods.
for row in my_cursor.fetchall():
print(row)
Parameterized queries
You can use parameterized queries to pass variable values to your SQL statements. This allows you to reuse the same query with different data and helps to prevent SQL injection attacks.
Pass parameters as a list or tuple to the
execute()
method:
query = "SELECT Id, Name FROM Contact WHERE Name = ? AND Email = ?"
params = ["Jordan Sanders", "jordansanders@example.com"]
my_cursor.execute(query, params)
results = my_cursor.fetchall()
for row in results:
print(row)
Each placeholder ? in the query is replaced with a corresponding value from the parameter list.
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/netsuite/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/netsuite/activate-a-license.htm
What's new
Python Connector for NetSuite 1.4
- Added support for Python 3.15
Metadata
Release files for devart-netsuite-connector 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 72.9 MB
Release files / devart_netsuite_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_netsuite_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0f666c0e0c681abf50c9d048d4d052d43ca34d6697bcd2162ebad81f0ad280c1
|
|
BLAKE2b-256 checksum How to use checksums |
6cab0df6d59fe1a8b62a1807ee6d9e7cb67b12b490f856fa192300728f59319a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_netsuite_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
a31a6aad2fed880f297eb81a07d5db5ef704d6734877b1c56f3815ff5f00d88f
|
|
BLAKE2b-256 checksum How to use checksums |
c66fd524ba4fd5989c5f172e4ad92239aa1f049acbcc2c87ce22e20805c6bfd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_netsuite_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d19b10e5bfaec5065698c1cb01fdb68cedff17320282af2f152d6406b3e949e1
|
|
BLAKE2b-256 checksum How to use checksums |
871ed36ec3c5b73e687e86cc4db680b911381df81a8392eec1c4132fd5676524
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_netsuite_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 6.0 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
c7d2e0a0cbdd50d1eece38aa9af60ad43748af8474f5b7f8e568387a657a37a9
|
|
BLAKE2b-256 checksum How to use checksums |
23518c8fe1e34e9e369557aeb2a2298eb5d7ee2eafbde9d117d8729fc2192b51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_netsuite_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
39beed2b9d87054821b12f053dca13adf77b55b3f644fb4b223b1c2bf0486d34
|
|
BLAKE2b-256 checksum How to use checksums |
f384f51e88ce596eabc0ad3f895984a7991b38dbec50f665fadc88c2addb6f5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_netsuite_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 5.9 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
ce05a0f9961700eddd027157688ab0ad620b3629ef69cd32a98124a79b4d6c9c
|
|
BLAKE2b-256 checksum How to use checksums |
bca3f81989438104f43428e8a64959ea5a78df59070b2ba46730de171ad7fc94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_netsuite_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
06170e65f52ee819477c2cc8e4b33f52bd419c9473b474adc4f8054347d95a41
|
|
BLAKE2b-256 checksum How to use checksums |
45f7754650cca9321eeb0f7f1b98fcb781038fbaa9c8c7591e3e7ae3e14ae446
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_netsuite_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 5.9 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
f237a7d51bf506584aff12803826e76278537f3d44adcf3e4bf0f27182a55db7
|
|
BLAKE2b-256 checksum How to use checksums |
3a7b43839de2b9aa1de84e7c9bae3704aa879d0675ae78d2d183d90bbead7d6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_netsuite_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f5249f21a9ea69ffb81a54327bb1a7ef793a0bdd33e933b25b65214bf113debb
|
|
BLAKE2b-256 checksum How to use checksums |
5534c75216e6c091b35b84ffdfa4ded861f670bd569ea5d7e53d629059e4d484
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_netsuite_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 5.9 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
40d084ba182c68b46c09d0fb98e577579219d72bab8dd8d04ea1aaba2b3cb83c
|
|
BLAKE2b-256 checksum How to use checksums |
f4dcb3750ac6289d8c622a0a8a81665dbc5bdcf0b000c63efd6876c540d2eb8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_netsuite_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 6.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6467d7a802d6f52b433b69f459e28f95898a0d08fa8e0a483c8762d1fe009db9
|
|
BLAKE2b-256 checksum How to use checksums |
106eadf013e689ae200bbe049b92a3eea544b3b439eb8b99d685e84e927911a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_netsuite_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_netsuite_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 5.9 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
fa1c8bccd4ae78f476334467598a0ed37a9c8d5ba438030c0d00a368dfe2578d
|
|
BLAKE2b-256 checksum How to use checksums |
7558d5c5093292af9bff72cebaf17a744db2acfe0881b7eb1bcb54535f78b050
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-netsuite-connector 1.4.0
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.