Skip to main content

Nice CX Python includes a client and a data model.

Project description Documentation Status


The NDEx2 Python Client provides methods to access NDEx via the NDEx REST Server API. As well as methods for common operations on networks via the NiceCXNetwork class.

Jupyter Notebook Tutorials

To use these tutorials, clone the ndex-jupyter-notebooks repository to your local machine and start Jupyter Notebooks in the project directory.

For information on installing and using Jupyter Notebooks, go to


The NDEx2 Python Client module works best with Python 3.6+ and the latest version of the PIP Python package manager for installation. Click here to download the PIP Python package.


The NDEx2 Python Client module can be installed from the Python Package Index (PyPI) repository using PIP:

pip install ndex2

If you already have an older version of the ndex2 module installed, you can use this command instead:

pip install --upgrade ndex2




3.2.0 (2019-04-23)

  • Verify consistent conversion of cx for networkx 1.11 and 2.0+ Issue #30
  • NiceCXNetwork.get_nodes(), NiceCXNetwork.get_edges(), NiceCXNetwork.get_metadata() needs to make correct iterator call in Python 2 Issue #44
  • Add NiceCXNetwork.get_network_attribute_names() function enhancement Issue #45
  • NiceCXNetwork.create_edge fails to correctly create edge when node dict passed in Issue #46

3.1.0a1 (2019-03-20)

  • Add method to ndex2 python client to apply style from one NiceCXNetwork to another NiceCXNetwork Issue #43

3.0.0a1 (2019-02-11)

  • In NiceCXNetwork class ability to add to User-Agent for calls to NDEx service Issue #36
  • Methods in ndex2/ should raise an NDExError for invalid credentials Issue #39
  • Add timeout flag to all web request calls Issue #33
  • Update User-Agent to reflect actual version of software Issue #35
  • NiceCXNetwork.set_node_attribute() incorrectly handles duplicate attributes Issue #41
  • NiceCXNetwork.set_node_attribute() fails if node object passed to it Issue #42
  • Passing None to user_agent parameterin Ndex2() constructor raises TypeError Issue #34
  • Ndex2() constructor does not properly handle invalid json from server Issue #28
  • Eliminate circular import between ndex2 and ndex2cx/ Issue #31
  • Replace print statements with logging calls in ndex2/ Issue #32

2.0.1 (2019-01-03)

  • Fixed bug where logs directory is created within the package installation directory. Issue #26

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ndex2, version 3.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ndex2-3.2.0-py2.py3-none-any.whl (46.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ndex2-3.2.0.tar.gz (51.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page