Skip to main content

PYMEX package is a collection of modules providing tools for accessing interaction data distributed by The IMEx Consortium partners as well as for parsing, transformation and construction of PSI-MI endorsed interaction data files.

Modules

  • pymex.xmlrecord - A generic, configurable XML record serializer/deserializer.
  • pymex.mif - PSI-MI XML format support (versions 2.5.4 and 3.0.0).
  • pymex.pypsiq - PSICQUC server access.

Quick Start

    from lxml import etree as ET
    import pymex.mif

    rec = pymex.mif.Record()
    rec.parseMif( file, 'mif254' )

    for interaction in rec.interactions:
       print( "Interaction type:",interaction.type.label )
       print( "Participant count:", len(interaction.participants))
       for participant in interaction.participants:   
          print(" Participant:",participant.interactor.label)
          print("   Host:", participant.interactor.host.label)
          print("   Type:", participant.interactor.type.label)
          print("   Sequence:", participant.interactor.sequence)

    recDom = rec.toMif( 'mif300' )
    print( ET.tostring(recDom,pretty_print=True).decode("utf-8") )

Further details: Pymex Wiki

Release files for pymex 0.9.31

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymex 0.9.31
File Size Uploaded
pymex-0.9.31.tar.gz 53.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymex 0.9.31
File Interpreter ABI Platform
pymex-0.9.31-py2-none-any.whl Python 2 none any Details

Total release size: 119.0 kB

Release files / pymex-0.9.31.tar.gz

Download URL pymex-0.9.31.tar.gz
Size 53.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4dbf2c5707eba7cb1608d71b26d202dc28453dc66900999f5be0a3cd30603d91
BLAKE2b-256 checksum
How to use checksums
2ae1ba310db7f01ad8b7c55e9fd2c1a38d3040207c9e9fcf64d79db6f22b7fc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

Release files / pymex-0.9.31-py2-none-any.whl

Download URL pymex-0.9.31-py2-none-any.whl
Size 65.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
9aa9cc8da434d405e1ccb8d7783f673e6f83fc82828a0c3755eb6e69aa51b688
BLAKE2b-256 checksum
How to use checksums
ef6ede983e2eb991c4059dca0a58ea932a14d3acddf56ea2069729f110fa2286
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

0.9.31 This release

2 release files

0.9.18

2 release files

0.9.17

2 release files

0.9.16

2 release files

0.9.15

2 release files

0.9.14

2 release files

0.9.12

2 release files

0.9.11

2 release files

0.9.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page