From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:c02:: with SMTP id k2mr5693276qti.210.1607127196834; Fri, 04 Dec 2020 16:13:16 -0800 (PST) X-Received: by 2002:a05:620a:16cd:: with SMTP id a13mr11862272qkn.11.1607127196664; Fri, 04 Dec 2020 16:13:16 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 4 Dec 2020 16:13:16 -0800 (PST) In-Reply-To: <9e16c42a-b138-427c-81a4-bf5a723d252en@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=124.149.31.79; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 124.149.31.79 References: <7223f058-c593-4905-b9ba-0a5cb3e64de2n@googlegroups.com> <9e16c42a-b138-427c-81a4-bf5a723d252en@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Import Python library into an Ada package? From: Roger Mc Injection-Date: Sat, 05 Dec 2020 00:13:16 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60723 List-Id: On Saturday, December 5, 2020 at 10:57:54 AM UTC+11, Roger Mc wrote: > On Saturday, December 5, 2020 at 10:42:26 AM UTC+11, Roger Mc wrote: > > > What about this: > > > > > > https://docs.adacore.com/gnatcoll-docs/scripting.html > > > > > > I have a rudimentary Python bindings independent on GNATColl, which I > > > use to run Python scripts from Ada. They were designed to load Python > > > dynamically, I did not want to make the application dependent on Python > > > installed. If you want, you can use them as a template. There is no > > > documentation, but the code using them. But as I said, better not... (:-)) > > > -- > > > Regards, > > > Dmitry A. Kazakov > > > http://www.dmitry-kazakov.de gnatcoll-docs/scripting.html seems mostly concerned with exporting Ada resources. I can't find information in it for importing Python modules into Ada. Importing is briefly addressed by Ada Gem #54: Scripting Capabilities in GNAT (Part 2).