Skip to main content

The python client package to interact with a running SBML4j service instance

Project description

Documentation Status

SBML4j python package

This is the python package to talk to a running SBML4j service instance.

Install

This package is available through pip (Currently only on the test instance) To install use:

pip install --index-url https://test.pypi.org/simple/ pysbml4j==0.1.17

Usage

In your python project use

import pysbml4j

client = pysbml4j.Sbml4j()

This generates a client connection to a server running on

http://localhost:8080

To connect to a server running at different host use the 'Configuration' class

config = pysbml4j.Configuration("http://my-server-url:port")
client = pysbml4j.Sbml4j(config)

Then you can communicate with the running service using the client object.

client.listNetworks()

The main working object then is the 'Network' class.

myNet = client.getNetworkByName("NetworkNameFromNetworkList")

The following chapter describes the current options you have for working with the network element

Working with a network

Basic information

You can get a basic information dictionary for a network with

myNetInfo = myNet.getInfoDict()

GraphML

To get a graphML Representation use:

graphMLString = myNet.graphML()

You can provide the 'directed' attribute (true, false) to determine whether the resulting graph should be directed or not. The default is 'false'

There are more options, which I will provide documentation for shortly. Stay tuned.

To find out more about SBML4j visit the kohlbacherlab github repository

Project details


Download files

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

Source Distribution

pysbml4j-1.0.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysbml4j-1.0.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pysbml4j-1.0.1.tar.gz.

File metadata

  • Download URL: pysbml4j-1.0.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for pysbml4j-1.0.1.tar.gz
Algorithm Hash digest
SHA256 654d23558966f2ace2e4fe8a3e3daaa04b3753e25ba44cf776b79990ed141642
MD5 da5c166aa62572dff07a1a566eeacd77
BLAKE2b-256 4a2d1bc529e4369e09669d98d7274d293551ba0e2d32d600c25ee6a2d5b1a86c

See more details on using hashes here.

File details

Details for the file pysbml4j-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pysbml4j-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for pysbml4j-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b8f3077c2a82485ee0d9af960636ac56cedd666e5737d56fb87f5ef60eed45d
MD5 cf459dfc3669c0125dbdfebd230560e5
BLAKE2b-256 e76d8b48efcdd8d23847240712f49510b349fb29dc672c1ceafc26971839ff0b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page