Skip to content

Commit

Permalink
black + perf optimizations (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Jun 12, 2024
1 parent 932288c commit e104997
Show file tree
Hide file tree
Showing 10 changed files with 758 additions and 418 deletions.
8 changes: 6 additions & 2 deletions avrogen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
from .schema import write_schema_files
from .protocol import generate_protocol
from .protocol import write_protocol_files
__all__ = ['generate_schema', 'generate_protocol', 'write_schema_files', 'write_protocol_files']


__all__ = [
"generate_schema",
"generate_protocol",
"write_schema_files",
"write_protocol_files",
]
6 changes: 3 additions & 3 deletions avrogen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def main():
if "-o" in argv:
avdl, _, output = argv[1:]
else:
avdl, output = argv[1], './'
write_protocol_files(open(avdl, 'r').read(), output)
avdl, output = argv[1], "./"
write_protocol_files(open(avdl, "r").read(), output)


if __name__ == '__main__':
if __name__ == "__main__":
try:
exit(main())
except Exception:
Expand Down
275 changes: 186 additions & 89 deletions avrogen/avrojson.py

Large diffs are not rendered by default.

Loading

0 comments on commit e104997

Please sign in to comment.