pysym2md 0.1.2__py3-none-any.whl

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.
pysym2md/__init__.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "0.1.2"
pysym2md/_modidx.py ADDED
@@ -0,0 +1,22 @@
1
+ # Autogenerated by nbdev
2
+
3
+ d = { 'settings': { 'branch': 'main',
4
+ 'doc_baseurl': '/pysym2md',
5
+ 'doc_host': 'https://AnswerDotAI.github.io',
6
+ 'git_url': 'https://github.com/AnswerDotAI/pysym2md',
7
+ 'lib_path': 'pysym2md'},
8
+ 'syms': { 'pysym2md.core': { 'pysym2md.core._process_method': ('core.html#_process_method', 'pysym2md/core.py'),
9
+ 'pysym2md.core.format_enum': ('core.html#format_enum', 'pysym2md/core.py'),
10
+ 'pysym2md.core.format_symbol': ('core.html#format_symbol', 'pysym2md/core.py'),
11
+ 'pysym2md.core.generate_markdown': ('core.html#generate_markdown', 'pysym2md/core.py'),
12
+ 'pysym2md.core.get_decorators': ('core.html#get_decorators', 'pysym2md/core.py'),
13
+ 'pysym2md.core.get_params': ('core.html#get_params', 'pysym2md/core.py'),
14
+ 'pysym2md.core.get_public_symbols': ('core.html#get_public_symbols', 'pysym2md/core.py'),
15
+ 'pysym2md.core.is_enum_builtin': ('core.html#is_enum_builtin', 'pysym2md/core.py'),
16
+ 'pysym2md.core.is_public_symbol': ('core.html#is_public_symbol', 'pysym2md/core.py'),
17
+ 'pysym2md.core.is_valid_method': ('core.html#is_valid_method', 'pysym2md/core.py'),
18
+ 'pysym2md.core.log_error': ('core.html#log_error', 'pysym2md/core.py'),
19
+ 'pysym2md.core.process_class': ('core.html#process_class', 'pysym2md/core.py'),
20
+ 'pysym2md.core.process_enum': ('core.html#process_enum', 'pysym2md/core.py'),
21
+ 'pysym2md.core.process_function': ('core.html#process_function', 'pysym2md/core.py'),
22
+ 'pysym2md.core.pysym2md': ('core.html#pysym2md', 'pysym2md/core.py')}}}
pysym2md/core.py ADDED
@@ -0,0 +1,213 @@
1
+ """Create a list of symbols in a python package
2
+
3
+ Docs: https://AnswerDotAI.github.io/pysym2md/core.html.md"""
4
+
5
+ # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/00_core.ipynb.
6
+
7
+ # %% auto #0
8
+ __all__ = ['format_symbol', 'is_public_symbol', 'is_valid_method', 'get_decorators', 'log_error', 'get_params',
9
+ 'process_function', 'process_class', 'is_enum_builtin', 'process_enum', 'get_public_symbols', 'format_enum',
10
+ 'generate_markdown', 'pysym2md']
11
+
12
+ # %% ../nbs/00_core.ipynb #0c94c158
13
+ import importlib
14
+ import pkgutil
15
+ from astroid import MANAGER, FunctionDef, ClassDef
16
+ from fastcore.utils import Path
17
+ from fastcore.script import call_parse, store_true
18
+
19
+ # %% ../nbs/00_core.ipynb #b6f71100
20
+ def format_symbol(name, signature, doc, decorators=None, is_method=False):
21
+ "format the information in markdown"
22
+ params = signature.split('(', 1)[1].rsplit(')', 1)[0] if '(' in signature else ''
23
+ decorator_str = ' '.join(f'@{d}' for d in decorators) + ' ' if decorators else ''
24
+ formatted = f"- `{decorator_str.strip()}{' ' if decorator_str else ''}{'def ' if not is_method else ''}{name}({params})`\n"
25
+ if doc:
26
+ doc_lines = doc.strip().split('\n')
27
+ formatted += ' ' + '\n '.join(doc_lines) + '\n'
28
+ return formatted
29
+
30
+ # %% ../nbs/00_core.ipynb #00add158
31
+ def is_public_symbol(name): return not name.startswith('_') or (name.startswith('__') and name.endswith('__'))
32
+ def is_valid_method(method, method_name): return isinstance(method, FunctionDef) and is_public_symbol(method_name)
33
+ def get_decorators(obj): return [d.as_string() for d in obj.decorators.nodes] if obj.decorators else []
34
+ def log_error(name, error): raise RuntimeError(f"Error processing symbol {name}: {str(error)}")
35
+
36
+ # %% ../nbs/00_core.ipynb #8330c81b
37
+ def get_params(func):
38
+ params = []
39
+ for arg in func.args.args: params.append(arg.name)
40
+ if func.args.vararg: params.append(f"*{func.args.vararg}")
41
+ if func.args.kwarg: params.append(f"**{func.args.kwarg}")
42
+ return ', '.join(params)
43
+
44
+ # %% ../nbs/00_core.ipynb #de26ed48
45
+ def process_function(func, name, include_no_docstring):
46
+ "Parse functions"
47
+ params = get_params(func)
48
+ signature = f"{name}({params})"
49
+ doc = func.doc_node.value if func.doc_node else ""
50
+ decorators = get_decorators(func)
51
+ if include_no_docstring or doc:
52
+ return ('function', name, signature, doc, decorators)
53
+ return None
54
+
55
+ # %% ../nbs/00_core.ipynb #feaa217b
56
+ def _process_method(method, method_name):
57
+ method_params = get_params(method)
58
+ method_signature = f"{method_name}({method_params})"
59
+ method_doc = method.doc_node.value if method.doc_node else ""
60
+ method_decorators = get_decorators(method)
61
+
62
+ # Check if this is a property
63
+ if any(d == 'property' for d in method_decorators):
64
+ method_signature = method_name # Properties don't show parameters
65
+ method_doc = method.doc_node.value if method.doc_node else ""
66
+
67
+ return (method_name, method_signature, method_doc, method_decorators)
68
+
69
+ def process_class(cls, name, include_no_docstring):
70
+ "Parse classes."
71
+ class_doc = cls.doc_node.value if cls.doc_node else ""
72
+ class_decorators = get_decorators(cls)
73
+ methods = [_process_method(method, method_name)
74
+ for method_name, method in cls.items()
75
+ if is_valid_method(method, method_name)]
76
+ return ('class', name, class_doc, class_decorators, methods)
77
+
78
+ # %% ../nbs/00_core.ipynb #bcf2bf2a
79
+ def is_enum_builtin(name):
80
+ "Check if a name is a built-in enum property"
81
+ return name in {'name', 'value', '_name_', '_value_', 'values', 'names'}
82
+
83
+ def process_enum(cls, name, include_no_docstring):
84
+ "Parse Enum classes"
85
+ class_doc = cls.doc_node.value if cls.doc_node else ""
86
+ class_decorators = get_decorators(cls)
87
+ members = [member_name for member_name, member in cls.items()
88
+ if not member_name.startswith('_') and not isinstance(member, FunctionDef)
89
+ and not is_enum_builtin(member_name)]
90
+ methods = [_process_method(method, method_name) for method_name, method in cls.items()
91
+ if is_valid_method(method, method_name) and not is_enum_builtin(method_name)]
92
+ return ('enum', name, (members, methods), class_doc, class_decorators)
93
+
94
+ # %% ../nbs/00_core.ipynb #e6061337
95
+ def get_public_symbols(module, include_no_docstring):
96
+ "Extract all public symbols"
97
+ symbols = []
98
+ for name, obj in module.items():
99
+ if is_public_symbol(name):
100
+ try:
101
+ if isinstance(obj, FunctionDef):
102
+ symbol = process_function(obj, name, include_no_docstring)
103
+ if symbol: symbols.append(symbol)
104
+ elif isinstance(obj, ClassDef):
105
+ # Check if it's an Enum by looking for Enum in bases
106
+ is_enum = any('Enum' in str(base) for base in obj.bases)
107
+ if is_enum:
108
+ symbols.append(process_enum(obj, name, include_no_docstring))
109
+ else:
110
+ symbols.append(process_class(obj, name, include_no_docstring))
111
+ except Exception as e: log_error(name, e)
112
+ return symbols
113
+
114
+ # %% ../nbs/00_core.ipynb #194c2adc
115
+ def get_public_symbols(module, include_no_docstring):
116
+ "Extract all public symbols"
117
+ symbols = []
118
+ for name, obj in module.items():
119
+ if is_public_symbol(name):
120
+ try:
121
+ if isinstance(obj, FunctionDef):
122
+ symbol = process_function(obj, name, include_no_docstring)
123
+ if symbol: symbols.append(symbol)
124
+ elif isinstance(obj, ClassDef):
125
+ # Check if it's an Enum by looking for Enum in bases
126
+ is_enum = any('Enum' in str(base) for base in obj.bases)
127
+ if is_enum:
128
+ symbols.append(process_enum(obj, name, include_no_docstring))
129
+ else:
130
+ symbols.append(process_class(obj, name, include_no_docstring))
131
+ except Exception as e: log_error(name, e)
132
+ return symbols
133
+
134
+ # %% ../nbs/00_core.ipynb #987cc751
135
+ def format_enum(name, members_and_methods, doc, decorators=None):
136
+ "Format an enum class in markdown"
137
+ members, methods = members_and_methods
138
+ decorator_str = ' '.join(f'@{d}' for d in decorators) + ' ' if decorators else ''
139
+ formatted = f"- `{decorator_str.strip()}{' ' if decorator_str else ''}class {name}(Enum)`\n"
140
+ if doc:
141
+ doc_lines = doc.strip().split('\n')
142
+ formatted += ' ' + '\n '.join(doc_lines) + '\n'
143
+ formatted += f' Members: {", ".join(members)}\n\n'
144
+
145
+ # Format methods like regular class methods
146
+ for method_name, method_signature, method_doc, method_decorators in methods:
147
+ method_decorator_str = ' '.join(f'@{d}' for d in method_decorators)
148
+ formatted += f" - `{method_decorator_str + ' ' if method_decorator_str else ''}{method_signature}`\n"
149
+ if method_doc:
150
+ formatted += f" {method_doc.strip()}\n\n"
151
+
152
+ return formatted + '\n'
153
+
154
+ # %% ../nbs/00_core.ipynb #362e33c4
155
+ def generate_markdown(package_name, include_no_docstring, verbose=False):
156
+ markdown = [f"# {package_name} Module Documentation\n\n"]
157
+
158
+ try: package = importlib.import_module(package_name)
159
+ except ImportError: raise ImportError(f"Could not import package {package_name}. Is it installed?")
160
+
161
+ for _, module_name, _ in pkgutil.walk_packages(package.__path__, package.__name__ + '.'):
162
+ try:
163
+ if verbose: print(f"Processing module: {module_name}")
164
+ module = MANAGER.ast_from_module_name(module_name)
165
+ symbols = get_public_symbols(module, include_no_docstring)
166
+ if symbols:
167
+ markdown.append(f"## {module_name}\n\n")
168
+ module_doc = module.doc_node.value if module.doc_node else ""
169
+
170
+ if module_doc:
171
+ markdown.append("> " + "\n> ".join(module_doc.strip().split('\n')) + "\n\n")
172
+
173
+ for symbol in symbols:
174
+ if symbol[0] == 'function':
175
+ _, name, signature, doc, decorators = symbol
176
+ decorator_str = ' '.join(f'@{d}' for d in decorators)
177
+ markdown.append(f"- `{decorator_str + ' ' if decorator_str else ''}def {signature}`\n")
178
+ if doc:
179
+ markdown.append(f" {doc.strip()}\n\n")
180
+ elif symbol[0] == 'class':
181
+ _, name, class_doc, class_decorators, methods = symbol
182
+ decorator_str = ' '.join(f'@{d}' for d in class_decorators)
183
+ markdown.append(f"- `{decorator_str + ' ' if decorator_str else ''}class {name}`\n")
184
+ if class_doc:
185
+ markdown.append(f" {class_doc.strip()}\n\n")
186
+ for method_name, method_signature, method_doc, method_decorators in methods:
187
+ method_decorator_str = ' '.join(f'@{d}' for d in method_decorators)
188
+ markdown.append(f" - `{method_decorator_str + ' ' if method_decorator_str else ''}def {method_signature}`\n")
189
+ if method_doc:
190
+ markdown.append(f" {method_doc.strip()}\n\n")
191
+ markdown.append("\n")
192
+ elif symbol[0] == 'enum':
193
+ _, name, members, doc, decorators = symbol
194
+ markdown.append(format_enum(name, members, doc, decorators))
195
+ else:
196
+ if verbose: print(f"No public symbols found in {module_name}")
197
+ except Exception as e:
198
+ raise RuntimeError(f"Error processing {module_name}: {str(e)}")
199
+
200
+ return ''.join(markdown)
201
+
202
+ # %% ../nbs/00_core.ipynb #93bfa078
203
+ @call_parse
204
+ def pysym2md(
205
+ package_name:str, # Name of the Python package
206
+ include_no_docstring:store_true=False, # Include symbols without docstrings?
207
+ verbose:store_true=False, # Turn on verbose logging?
208
+ output_file:str='filelist.md', # The output file
209
+ ):
210
+ "Generate a list of symbols corresponding to a python package in a markdown format."
211
+ markdown_content = generate_markdown(package_name, include_no_docstring, verbose)
212
+ Path(output_file).write_text(markdown_content)
213
+ if verbose: print(f"Documentation generated in {output_file}")
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: pysym2md
3
+ Version: 0.1.2
4
+ Summary: Generate manifest of public symbols win python projects w/docstrings
5
+ Author-email: Hamel Husain <hamel.husain@gmail.com>
6
+ License: Apache-2.0
7
+ Project-URL: Repository, https://github.com/AnswerDotAI/pysym2md
8
+ Project-URL: Documentation, https://AnswerDotAI.github.io/pysym2md
9
+ Keywords: nbdev,jupyter,notebook,python
10
+ Classifier: Natural Language :: English
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Requires-Python: >=3.7
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: fastcore>=1.14.6
19
+ Requires-Dist: astroid
20
+ Dynamic: license-file
21
+
22
+ # pysym2md
23
+
24
+
25
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
26
+
27
+ ## Developer Guide
28
+
29
+ If you are new to using `nbdev` here are some useful pointers to get you started.
30
+
31
+ ### Install pysym2md in Development mode
32
+
33
+ ``` sh
34
+ # make sure pysym2md package is installed in development mode
35
+ $ pip install -e .
36
+
37
+ # make changes under nbs/ directory
38
+ # ...
39
+
40
+ # compile to have changes apply to pysym2md
41
+ $ nbdev_prepare
42
+ ```
43
+
44
+ ## Usage
45
+
46
+ ### Installation
47
+
48
+ Install latest from the GitHub [repository](https://github.com/AnswerDotAI/pysym2md):
49
+
50
+ ``` sh
51
+ $ pip install git+https://github.com/AnswerDotAI/pysym2md.git
52
+ ```
53
+
54
+ or from [pypi](https://pypi.org/project/pysym2md/)
55
+
56
+ ``` sh
57
+ $ pip install pysym2md
58
+ ```
59
+
60
+ ### Documentation
61
+
62
+ Documentation can be found hosted on this GitHub [repository](https://github.com/AnswerDotAI/pysym2md)’s [pages](https://AnswerDotAI.github.io/pysym2md/). Additionally you can find package manager specific guidelines on [conda](https://anaconda.org/AnswerDotAI/pysym2md) and [pypi](https://pypi.org/project/pysym2md/) respectively.
63
+
64
+ ## How to use
65
+
66
+ ``` python
67
+ !pysym2md -h
68
+ ```
69
+
70
+ usage: pysym2md [-h] [--include_no_docstring] [--verbose]
71
+ [--output_file OUTPUT_FILE]
72
+ package_name
73
+
74
+ Generate a list of symbols corresponding to a python package in a markdown
75
+ format.
76
+
77
+ positional arguments:
78
+ package_name Name of the Python package
79
+
80
+ options:
81
+ -h, --help show this help message and exit
82
+ --include_no_docstring Include symbols without docstrings? (default:
83
+ False)
84
+ --verbose Turn on verbose logging? (default: False)
85
+ --output_file OUTPUT_FILE The output file (default: filelist.md)
@@ -0,0 +1,9 @@
1
+ pysym2md/__init__.py,sha256=YvuYzWnKtqBb-IqG8HAu-nhIYAsgj9Vmc_b9o7vO-js,22
2
+ pysym2md/_modidx.py,sha256=xNjnsNfKGl0wdYmO6D7d8o6k2pttCadA3fLLVXSNqRA,1961
3
+ pysym2md/core.py,sha256=i_i8IdlYQAX6hlUZZrxbiqcT2anUqkagPN1AuqcuTxY,10480
4
+ pysym2md-0.1.2.dist-info/licenses/LICENSE,sha256=xV8xoN4VOL0uw9X8RSs2IMuD_Ss_a9yAbtGNeBWZwnw,11337
5
+ pysym2md-0.1.2.dist-info/METADATA,sha256=UR6Nb1rO1DfLQZ_qsZ7t7C3y2CG0PqY-l13JTEm8Utc,2526
6
+ pysym2md-0.1.2.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
7
+ pysym2md-0.1.2.dist-info/entry_points.txt,sha256=VrPIQpJzxW1sE3T3qfOTbd4yrGSvOnFnXNV0ascAd9Q,91
8
+ pysym2md-0.1.2.dist-info/top_level.txt,sha256=HVyl-UMkY7OiggPJPcYxLqb35J5ULMsVTLQCS0KCuv0,9
9
+ pysym2md-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ pysym2md = pysym2md.core:pysym2md
3
+
4
+ [nbdev]
5
+ pysym2md = pysym2md._modidx:d
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2022, fastai
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ pysym2md