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 To install use:

pip install pysbml4j

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.3.1.tar.gz (11.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.3.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysbml4j-1.3.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.1

File hashes

Hashes for pysbml4j-1.3.1.tar.gz
Algorithm Hash digest
SHA256 0cb22268759d4321137a512322e8bcb204a972696d8145bf9c8e22ae66cc804c
MD5 ac65c94a4d394e4e027e70ba7b1e0e5b
BLAKE2b-256 a1e4965b9ec6f3df6eea7c24533a3e7d847fc9d78b7496b1eb0a999fbc2ebf29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysbml4j-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.1

File hashes

Hashes for pysbml4j-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85a165726aabe5a148a38bc33c29a994bc22916294a2c6e1a9f562c5ff066d96
MD5 87281e4b4a0304676e2d782a39f8b6fb
BLAKE2b-256 01549faba84e2583c46a2c4c907a313a823f6c4fd075589c6a2d48e0fcd72832

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