The `netsuite` Python library provides an asynchronous client for interacting with NetSuite's SuiteTalk SOAP/REST Web Services and Restlets. It simplifies making requests, handling authentication (including Token-Based Authentication), and parsing responses. Currently at version 0.12.0, the library has a moderately active release cadence, with several minor releases and occasional breaking changes.
pip install netsuiteVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes the `NetSuite` client, which automatically picks up credentials from environment variables, and then demonstrates fetching a customer record using the REST API and executing a simple SuiteQL query. Replace placeholder IDs with your actual NetSuite data. Remember to set your NetSuite credentials as environment variables.
Review `CHANGELOG.md` for 0.10.0 and ensure your code is updated to align with the new library versions and any API changes. Test thoroughly after upgrading.
If upgrading from pre-0.7.0 versions, consult the `CHANGELOG.md` for version 0.7.0 to understand the necessary code adjustments.
Ensure all calls like `ns.rest_api.get()` or `ns.suiteql.get()` are prefixed with `await`. Run your main application logic using `asyncio.run(main_async_function())`.
Verify all five required environment variables are correctly set and accessible by your application. Double-check for typos or incorrect values.
Prepend `await` to the async call (e.g., `await ns.rest_api.get(...)`) and ensure your code is running within an `async` function or `asyncio.run()`.
Check that `NETSUITE_ACCOUNT`, `NETSUITE_CONSUMER_KEY`, `NETSUITE_CONSUMER_SECRET`, `NETSUITE_TOKEN_ID`, and `NETSUITE_TOKEN_SECRET` environment variables are correctly set and correspond to a valid NetSuite TBA setup.
Refer to the latest documentation and `CHANGELOG.md` for your installed version. Update your code to use the current API methods and object structures.
No dependency data recorded yet.