idl-parser 0.0.2__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,27 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: idl_parser
3
- Version: 0.0.2
4
- Summary: OMG IDL Parser
3
+ Version: 0.0.4
4
+ Summary: Very simple OMG IDL (Interface Definition Language) parser. This parses IDL files and outputs intermediate class objects.
5
5
  Home-page: http://www.sugarsweetrobotics.com/
6
6
  Author: ysuga
7
7
  Author-email: ysuga@ysuga.net
8
8
  License: GPLv3
9
9
  Download-URL: https://github.com/sugarsweetrobotics/idl_parser
10
- Description:
10
+ Description: # idl_parser
11
+
12
+ [![Build Status](https://travis-ci.org/sugarsweetrobotics/idl_parser.svg?branch=master)](https://travis-ci.org/sugarsweetrobotics/idl_parser)
13
+
14
+
15
+ ## Description
16
+
17
+ OMG IDL file parser. This library just parse IDL files, and output intermidiate type objects.
18
+
19
+ ## Example
20
+ ```
11
21
  """
12
- idl_parser package example
22
+
13
23
  """
14
-
24
+
15
25
  from idl_parser import parser
16
26
  parser_ = parser.IDLParser()
17
27
  idl_str = """
@@ -22,7 +32,7 @@ Description:
22
32
  };
23
33
 
24
34
  typedef sequence<double> DoubleSeq;
25
-
35
+
26
36
  struct TimedDoubleSeq {
27
37
  Time tm;
28
38
  DoubleSeq data;
@@ -39,7 +49,7 @@ Description:
39
49
 
40
50
  };
41
51
  """
42
-
52
+
43
53
  global_module = parser_.load(idl_str)
44
54
  my_module = global_module.module_by_name('my_module')
45
55
  dataGetter = my_module.interface_by_name('DataGetter')
@@ -53,7 +63,7 @@ Description:
53
63
  print ' name:', a.name
54
64
  print ' type:', a.type
55
65
  print ' direction:', a.direction
56
-
66
+
57
67
  doubleSeq = my_module.typedef_by_name('DoubleSeq')
58
68
  print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
59
69
 
@@ -62,7 +72,16 @@ Description:
62
72
  for m in timedDoubleSeq.members:
63
73
  print '- member:'
64
74
  print ' name:', m.name
65
- print ' type:', m.type.name
75
+ print ' type:', m.type.name
76
+ ```
77
+ ## How to install
78
+ sudo pip install idl_parser
79
+
80
+ ## Copyright
81
+ * author: Yuki Suga
82
+ * copyright: Yuki Suga @ ssr.tokyo
83
+ * license: GPLv3
84
+
66
85
 
67
86
  Platform: UNKNOWN
68
87
  Classifier: Development Status :: 5 - Production/Stable
@@ -1,17 +1,27 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: idl-parser
3
- Version: 0.0.2
4
- Summary: OMG IDL Parser
3
+ Version: 0.0.4
4
+ Summary: Very simple OMG IDL (Interface Definition Language) parser. This parses IDL files and outputs intermediate class objects.
5
5
  Home-page: http://www.sugarsweetrobotics.com/
6
6
  Author: ysuga
7
7
  Author-email: ysuga@ysuga.net
8
8
  License: GPLv3
9
9
  Download-URL: https://github.com/sugarsweetrobotics/idl_parser
10
- Description:
10
+ Description: # idl_parser
11
+
12
+ [![Build Status](https://travis-ci.org/sugarsweetrobotics/idl_parser.svg?branch=master)](https://travis-ci.org/sugarsweetrobotics/idl_parser)
13
+
14
+
15
+ ## Description
16
+
17
+ OMG IDL file parser. This library just parse IDL files, and output intermidiate type objects.
18
+
19
+ ## Example
20
+ ```
11
21
  """
12
- idl_parser package example
22
+
13
23
  """
14
-
24
+
15
25
  from idl_parser import parser
16
26
  parser_ = parser.IDLParser()
17
27
  idl_str = """
@@ -22,7 +32,7 @@ Description:
22
32
  };
23
33
 
24
34
  typedef sequence<double> DoubleSeq;
25
-
35
+
26
36
  struct TimedDoubleSeq {
27
37
  Time tm;
28
38
  DoubleSeq data;
@@ -39,7 +49,7 @@ Description:
39
49
 
40
50
  };
41
51
  """
42
-
52
+
43
53
  global_module = parser_.load(idl_str)
44
54
  my_module = global_module.module_by_name('my_module')
45
55
  dataGetter = my_module.interface_by_name('DataGetter')
@@ -53,7 +63,7 @@ Description:
53
63
  print ' name:', a.name
54
64
  print ' type:', a.type
55
65
  print ' direction:', a.direction
56
-
66
+
57
67
  doubleSeq = my_module.typedef_by_name('DoubleSeq')
58
68
  print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
59
69
 
@@ -62,7 +72,16 @@ Description:
62
72
  for m in timedDoubleSeq.members:
63
73
  print '- member:'
64
74
  print ' name:', m.name
65
- print ' type:', m.type.name
75
+ print ' type:', m.type.name
76
+ ```
77
+ ## How to install
78
+ sudo pip install idl_parser
79
+
80
+ ## Copyright
81
+ * author: Yuki Suga
82
+ * copyright: Yuki Suga @ ssr.tokyo
83
+ * license: GPLv3
84
+
66
85
 
67
86
  Platform: UNKNOWN
68
87
  Classifier: Development Status :: 5 - Production/Stable
@@ -0,0 +1,33 @@
1
+ from setuptools import setup, find_packages
2
+ import sys
3
+
4
+
5
+
6
+ long_description = open('README.md', 'r').read()
7
+
8
+
9
+ setup(name='idl_parser',
10
+ version='0.0.4',
11
+ url = 'http://www.sugarsweetrobotics.com/',
12
+ author = 'ysuga',
13
+ author_email = 'ysuga@ysuga.net',
14
+ description = 'Very simple OMG IDL (Interface Definition Language) parser. This parses IDL files and outputs intermediate class objects.',
15
+ long_description = long_description,
16
+ download_url = 'https://github.com/sugarsweetrobotics/idl_parser',
17
+ packages = ["idl_parser"],
18
+ #py_modules = ["pepper_kinematics"],
19
+ license = 'GPLv3',
20
+ install_requires = [''],
21
+ classifiers = [
22
+ 'Development Status :: 5 - Production/Stable',
23
+ 'Environment :: Console',
24
+ 'Intended Audience :: Developers',
25
+ 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
26
+ 'Natural Language :: English',
27
+ 'Operating System :: OS Independent',
28
+ 'Programming Language :: Python',
29
+ 'Topic :: Scientific/Engineering',
30
+ ],
31
+ #test_suite = "foo_test.suite",
32
+ #package_dir = {'': 'src'}
33
+ )
idl_parser-0.0.2/setup.py DELETED
@@ -1,88 +0,0 @@
1
- from setuptools import setup, find_packages
2
- import sys
3
-
4
-
5
-
6
- long_description = '''
7
- """
8
- idl_parser package example
9
- """
10
-
11
- from idl_parser import parser
12
- parser_ = parser.IDLParser()
13
- idl_str = """
14
- module my_module {
15
- struct Time {
16
- long sec;
17
- long usec;
18
- };
19
-
20
- typedef sequence<double> DoubleSeq;
21
-
22
- struct TimedDoubleSeq {
23
- Time tm;
24
- DoubleSeq data;
25
- };
26
-
27
- enum RETURN_VALUE {
28
- RETURN_OK,
29
- RETURN_FAILED,
30
- };
31
-
32
- interface DataGetter {
33
- RETURN_VALUE getData(out TimedDoubleSeq data);
34
- };
35
-
36
- };
37
- """
38
-
39
- global_module = parser_.load(idl_str)
40
- my_module = global_module.module_by_name('my_module')
41
- dataGetter = my_module.interface_by_name('DataGetter')
42
- print 'DataGetter interface'
43
- for m in dataGetter.methods:
44
- print '- method:'
45
- print ' name:', m.name
46
- print ' returns:', m.returns.name
47
- print ' arguments:'
48
- for a in m.arguments:
49
- print ' name:', a.name
50
- print ' type:', a.type
51
- print ' direction:', a.direction
52
-
53
- doubleSeq = my_module.typedef_by_name('DoubleSeq')
54
- print 'typedef %s %s' % (doubleSeq.type.name, doubleSeq.name)
55
-
56
- timedDoubleSeq = my_module.struct_by_name('TimedDoubleSeq')
57
- print 'TimedDoubleSeq'
58
- for m in timedDoubleSeq.members:
59
- print '- member:'
60
- print ' name:', m.name
61
- print ' type:', m.type.name
62
- '''
63
-
64
- setup(name='idl_parser',
65
- version='0.0.2',
66
- url = 'http://www.sugarsweetrobotics.com/',
67
- author = 'ysuga',
68
- author_email = 'ysuga@ysuga.net',
69
- description = 'OMG IDL Parser',
70
- long_description = long_description,
71
- download_url = 'https://github.com/sugarsweetrobotics/idl_parser',
72
- packages = ["idl_parser"],
73
- #py_modules = ["pepper_kinematics"],
74
- license = 'GPLv3',
75
- install_requires = [''],
76
- classifiers = [
77
- 'Development Status :: 5 - Production/Stable',
78
- 'Environment :: Console',
79
- 'Intended Audience :: Developers',
80
- 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
81
- 'Natural Language :: English',
82
- 'Operating System :: OS Independent',
83
- 'Programming Language :: Python',
84
- 'Topic :: Scientific/Engineering',
85
- ],
86
- #test_suite = "foo_test.suite",
87
- #package_dir = {'': 'src'}
88
- )
File without changes