Skip to main content

idl_parser

Travis Build Status Coverage Status

Description

OMG IDL file parser. This library just parse IDL files, and output intermidiate type objects.

Example

"""
example for idl_parser package
"""

from idl_parser import parser
parser_ = parser.IDLParser()
idl_str = """
module my_module {
  struct Time {
    long sec;
    long usec;
  };

  typedef sequence<double> DoubleSeq;

  struct TimedDoubleSeq {
    Time tm;
    DoubleSeq data;
  };

  enum RETURN_VALUE {
    RETURN_OK,
    RETURN_FAILED,
  };

  interface DataGetter {
    RETURN_VALUE getData(out TimedDoubleSeq data);
  };

};
"""

global_module = parser_.load(idl_str)
my_module = global_module.module_by_name('my_module')
dataGetter = my_module.interface_by_name('DataGetter')
print 'DataGetter interface'
for m in dataGetter.methods:
  print '- method:'
  print '  name:', m.name
  print '  returns:', m.returns.name
  print '  arguments:'
  for a in m.arguments:
    print '    name:', a.name
    print '    type:', a.type
    print '    direction:', a.direction

doubleSeq = my_module.typedef_by_name('DoubleSeq')
print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)

timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
print 'TimedDoubleSeq'
for m in timedDoubleSeq.members:
  print '- member:'
  print '  name:', m.name
  print '  type:', m.type.name

How to install

sudo pip install idl_parser

Metadata

Release files for idl-parser 0.0.10

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

Source distribution (sdist)

Source distribution for idl-parser 0.0.10
File Size Uploaded Provenance Actions
idl_parser-0.0.10.tar.gz 9.4 kB Without provenance Details for idl_parser-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idl-parser 0.0.10
File Interpreter ABI Platform Actions
idl_parser-0.0.10-py2.7.egg Legacy Egg format - - Details for idl_parser-0.0.10-py2.7.egg

Total release size: 44.4 kB

Release files / idl_parser-0.0.10.tar.gz

Download URL idl_parser-0.0.10.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5d2b936d8bdf8cb14ea9922ad3d2952b3a1c98acdb66373c8b82912c7a532d2e
BLAKE2b-256 checksum
How to use checksums
f7124275a793f6d8da6d60c4be53fa2942d77dd96b4812e5f3426e5b712d1f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / idl_parser-0.0.10-py2.7.egg

Download URL idl_parser-0.0.10-py2.7.egg
Size 35.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
e8537b319adfb6cb48a6aea41bc2651c73ff723b205cf881f428eef6bcdff052
BLAKE2b-256 checksum
How to use checksums
d827d213042ec16f4a31fa0ce6cfa0e0a277d49f074363de71929619624c0bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for idl-parser 0.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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