New level of functionality and performance in data access via Python
Project description
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.
Using the connector
To retrieve data from a database:
Import the module.
import devart.netsuite
Connect to a database using the connect()
module method and obtain a connection
object:
If you're using basic authentication:
my_connection = devart.netsuite.connect(
Ver=1,
Authentication="Basic",
UserID="your_username",
Password="your_password",
AccountId="your_account_id",
RoleId="your_role_id",
ApplicationId="your_application_id"
)
If you're using token-based authentication:
my_connection = devart.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"
)
If you're using OAuth 2.0 authentication and have a refresh token:
my_connection = devart.netsuite.connect(
Ver=2,
Authentication="OAuth",
AccountId="your_account_id",
AccountTimeZone="your_account_timezone",
ClientID="your_client_id",
ClientSecret="your_client_secret",
RefreshToken="your_refresh_token"
)
If you're using OAuth 2.0 authentication and don't have a refresh token:
response = devart.netsuite.signin(
AccountId="your_account_id",
ClientId="your_client_id",
ClientSecret="your_client_secret")
my_connection = devart.netsuite.connect(
Authentication="OAuth",
AccountID="your_account_id",
AccountTimeZone="your_account_timezone",
ClientID="your_client_id",
ClientSecret="your_client_secret",
RefreshToken=response["Refresh Token"]
)
Create a cursor
object using the cursor()
connection method.
my_cursor = my_connection.cursor()
Execute the SQL statement using the execute()
cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve the result set using one of the fetch*()
cursor methods.
for row in my_cursor.fetchall():
print(row)
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.1
- Added metadata caching
- Added connection pooling
- Added activation with a license key
- Added the subscription license type
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for devart_netsuite_connector-1.1.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d2ab7c552f922765d2b2cef28098d7fe94d1ba1f6ebadc023248596d86e6b08 |
|
MD5 | 96cf8d55e8c3f647ecefb3dc119add2e |
|
BLAKE2b-256 | 29140ea903ebc95c4898404c2f4b2ddf32d63efea7c89b36f92089ea0a1adcfe |
Hashes for devart_netsuite_connector-1.1.0-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f864013d33f0366b8436ae9b5b5e2780f51bb164237c50e8dfed407efff070cc |
|
MD5 | 8cef934fefb3d13f15f8d2aa3d57e103 |
|
BLAKE2b-256 | 277c4ac0ab32f941eb3b78ba765712c9479e35e9091d1e23a9fd9cec3d818291 |
Hashes for devart_netsuite_connector-1.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bdb680eaea4f5215b31d1b857279d62057640125ec2ee3477a7fd3d46008f31 |
|
MD5 | 6a11814fa9251a52122f358083aa8f7a |
|
BLAKE2b-256 | 38a62a0fc8c382071c99f9709d90a5888e9f68c110e5823a353d4336d7946c41 |
Hashes for devart_netsuite_connector-1.1.0-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19626ad82658547acd87712d992bda2f3c3ed942bac2704c665a7a7652db77da |
|
MD5 | 101b548808bf38b0a5020f114dc2ec31 |
|
BLAKE2b-256 | 9fb09cb4ecc59cc600f7af7abdcb1c95fd2e89c100521437b3a2aafd31c44c68 |
Hashes for devart_netsuite_connector-1.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26b2664a10ca9095b1762d0b9fead31f2bda2a35e14d9866e9b4fde87458289c |
|
MD5 | 83c5319cc4e687b01e1e0771aa84e2a6 |
|
BLAKE2b-256 | 6c1106d114f341f3ad9c4dce7d3539bdd3b72e12b4b4d5ee13636e74f8ef901c |
Hashes for devart_netsuite_connector-1.1.0-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fa8d2ca26e411bac2a80445a860b9443bf4efbcc684579b60f387342abd20a2 |
|
MD5 | ccd24c65835c3f97bd5cb08ec9bf3c3e |
|
BLAKE2b-256 | 91ed4e865a58f916b6cf54bb3a183b76aac1e09840d6265798adf982d8661a44 |
Hashes for devart_netsuite_connector-1.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924de143a48b45a97c5df2786d43f64d000962cfa06a7a370382cbf69f6a867f |
|
MD5 | fc86bf29a457567d372b6e4bb9a23c9a |
|
BLAKE2b-256 | 7e0d866104d1bd3c3832bcc60e5b795f272a1d80e4ced72c95f28931db432d5b |
Hashes for devart_netsuite_connector-1.1.0-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 844ee036f2075b8bbf06e9ca5b71ea119a2759780118b52dcd6149e884fe6279 |
|
MD5 | 7f09a1b16a21b7a0542869ccc92ad6e0 |
|
BLAKE2b-256 | cc03c4813963334983df93e2df8ffedba8a89310e04b867de03a02c0738fc323 |
Hashes for devart_netsuite_connector-1.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9ec5d62ac86614156eaf9909c2e13c07e6202ff965f5db9a10d0f4b5125632f |
|
MD5 | 6ba8fbe80ebd32fdef9141ba80ea4250 |
|
BLAKE2b-256 | db6d96aadf1011a3ca1cabaf038fc1a1c8fb292587daaad780c0eb1405703955 |
Hashes for devart_netsuite_connector-1.1.0-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da3dc7d20475a9a4414b88dacba6f7dcd826485ed734f0c0c877a3547abda1bd |
|
MD5 | 1fee9eac31e535cc72ef02e43a395052 |
|
BLAKE2b-256 | 03bce0a3833f50211840a8633b3f61e0002fdcec6a2b1addc5f6ce56d42d9554 |
Hashes for devart_netsuite_connector-1.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84821e3ea84594c60f19f90c3d8350b461b7e13909c7a41c900fb703fcc88708 |
|
MD5 | 3960ccea89985ec80dc23a56696bea79 |
|
BLAKE2b-256 | 208841011ab4a831cf7f9558d9cf6ad006711e4e658806c513e9c4fd2f93a092 |
Hashes for devart_netsuite_connector-1.1.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b83ebd26ae150717d330d9662293118340fb6bee07e4b1330c39b00d694543 |
|
MD5 | 294e0868641af9da0c51024647bd044a |
|
BLAKE2b-256 | 84fb94bc58e7a77f17681623cbedbefab740cadcc178443310f6ae0847046659 |