Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Repository files navigation

Python Netsuite

Netsuite Python Toolkit for SuiteTalk SOAP API.

Installation

pip3installgit+git://github.com/fmalina/python-netsuite.git#egg=python-netsuite

Example usage

Copy ns_config.py.txt into ns_config.py and update with your credentials.

fromnetsuite.clientimportclientfromnetsuite.api.customerimportget_customer# print names of first 100 customersforinternal_idinrange(100):
customer=get_customer(internal_id)
ifcustomer:
print(customer.firstName, customer.lastName)

NetSuite Documentation

Development

  • Get Netsuite WSDL export to look at
mkdir archive
python3 -mzeep https://webservices.sandbox.netsuite.com/wsdl/v2016_1_0/netsuite.wsdl > archive/wsdl.txt
# improve formatting
sed -i -e 's/, /, \n /g' archive/wsdl.txt
less archive/wsdl.txt
  • Add Netsuite models you need to work with based on WSDL to netsuite/service.py.
  • Add functions to get, create, lookup... these model instances to netsuite/api/[model].py.
  • Add tests to tests.py. Run tests using ./tests.py

About

Netsuite Python Toolkit for SuiteTalk SOAP API

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages