a3ng7n / altium-schematic-parser Goto Github PK
View Code? Open in Web Editor NEWConverts Altium .SchDoc files into json
License: MIT License
Converts Altium .SchDoc files into json
License: MIT License
Make parser intelligent enough to return a netlist.
Hello,
As a user of Altium Designer, I wonder what are the use cases of your project.
Thanks.
Sebastien
Make parser intelligent enough to return a list of parts, their reference name, their part number, and qty.
python ./altium_schematic_parser/parse.py -o ./hub.json -f all-hierarchy ../../rpi4_rtc_usb/pi_rtc_hat.SchDoc
/run/media/sirus/aux/code/git/Altium-Schematic-Parser/./altium_schematic_parser/parse.py:18: SyntaxWarning: invalid escape sequence '\|'
pattern = re.compile(b'.{3}\x00\x00\|')
/run/media/sirus/aux/code/git/Altium-Schematic-Parser/./altium_schematic_parser/parse.py:95: SyntaxWarning: invalid escape sequence '\d'
p = re.compile('^(?P<prefix>X)(?P<index>\d+)$')
/run/media/sirus/aux/code/git/Altium-Schematic-Parser/./altium_schematic_parser/parse.py:84: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
"records": [ record for record in schematic["records"] if record["RECORD"] is "1" ]
Traceback (most recent call last):
File "/run/media/sirus/aux/code/git/Altium-Schematic-Parser/./altium_schematic_parser/parse.py", line 251, in <module>
main(args)
File "/run/media/sirus/aux/code/git/Altium-Schematic-Parser/./altium_schematic_parser/parse.py", line 228, in main
schematic = parse(**vars(args))
^^^^^^^^^^^^^^^^^^^
File "/run/media/sirus/aux/code/git/Altium-Schematic-Parser/./altium_schematic_parser/parse.py", line 33, in parse
datum[data[0].decode()] = data[1].decode('utf-8', 'ignore')
Traceback (most recent call last):
File "/home/hyh/file_test/SchDoc_demo.py", line 259, in <module>
schematic = parse(SchDoc_path, format)
File "/home/hyh/file_test/SchDoc_demo.py", line 34, in parse
datum[data[0].decode()] = data[1].decode('utf-8', 'ignore')
IndexError: list index out of range
python 3.10.13
Issues showed up in decoding with 3.12 in #12 , and there were a couple syntax warnings that seemed ominous.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.