<div><div><div dir="auto">Yes, you need to ‘’’pip install x3d’’’</div><div dir="auto">before running the provided script in previous message.   See link previously posted by Joe.</div><div dir="auto"><br></div><div dir="auto">Thanks for confirmation of received message.</div><div dir="auto"><br></div><div dir="auto">The header is the top of the file.   If you don’t want to run my code, convert your own proto xml to python using X3dToPython.xslt.   I don’t have a JSON converter for this test.</div><div dir="auto"><br></div><div dir="auto">The main purpose is to get proper implementation of Protos in pure python.   I’m guessing it may be a wider problem with x3d.py, because when I patched Protos in my version, there were further issues.   So simply patching Protos won’t fix all the issues.   A full roundtrip XML -> python -> XML needs to be done for the archive.</div><div dir="auto"><br></div><div dir="auto">I’ve freed up some time to work on python, and I plan to start work on a test suite soon.   It would be good to get past my initial issues with the package.   I can reattempt to modify the x3d package generator, but that doesn’t mean my patches will be available when I am done.    It still needs to go through official channels.</div><div dir="auto"><br></div><div dir="auto">If you’re fed up with stylesheets, I can offer a solution, but it’s not as elegant or pythonic and uses Java.   As far as I can tell, XSLT is the declarative transformer of choice for XML.</div><div dir="auto"><br></div><div dir="auto">The main thing I think needs to be done is handle cases where parameters and classes have the same case sensitive name.</div><div dir="auto"><br></div><div dir="auto">If people want to contribute to x3d.py project, now’s your chance.   I’m fairly sure the python binding needs to be standardized.</div><div dir="auto"><br></div><div dir="auto">I know pretty much everyone has been covidized.</div><div dir="auto"><br></div><div dir="auto">After spinning up python, I’ll return to C++ if there’s enough code separated from the standard.</div><div dir="auto"><br></div><div dir="auto">John</div></div></div><div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 24, 2021 at 8:55 PM Joseph D Williams <<a href="mailto:joedwil@earthlink.net" target="_blank">joedwil@earthlink.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word"><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"># Now available: developmental python x3d.py package on PyPi for import.</p><p class="MsoNormal">#   This approach greatly simplifies Python X3D deployment and use.</p><p class="MsoNormal">#   <a href="https://pypi.org/project/x3d" target="_blank">https://pypi.org/project/x3d</a></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The text got here as attachment</p><p class="MsoNormal">Joe</p></div></div><div lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word"><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(225,225,225)"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:yottzumm@gmail.com" target="_blank">John Carlson</a><br><b>Sent: </b>Tuesday, August 24, 2021 3:00 PM<br><b>To: </b><a href="mailto:brutzman@nps.edu" target="_blank">Don Brutzman</a>; <a href="mailto:x3d-public@web3d.org" target="_blank">X3D Graphics public mailing list</a><br><b>Subject: </b>[x3d-public] Fwd: Next, in Python news...</p></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Resend of non-working python code.   No rush,    I don’t want anyone to be surprised.  I do want someone to confirm receipt of email.   I’m guessing things are going to spam?</p><p class="MsoNormal"><u></u> <u></u></p></div></div></blockquote></div></div>
</div>
</div>