<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Adding libraries to nxshell Jython?]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I'd like to use the python library "requests" with Jython, but I can't seem to find where NetXMS installs it. Is it balled up in the nxshell Jar? Is there a way I could add libraries to Jython? I looked, and apparently requests is compatible with Jython.</p>
<p dir="auto">Thanks,<br />
Zach</p>
]]></description><link>https://forum.netxms.org/topic/4656/adding-libraries-to-nxshell-jython</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:17:28 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4656.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Aug 2016 12:20:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding libraries to nxshell Jython? on Thu, 18 Aug 2016 13:26:45 GMT]]></title><description><![CDATA[<p dir="auto">Worked like a charm! Just had to change something in the python hmac_auth library because Jython is strongly typed, but otherwise it was no sweat.</p>
<p dir="auto">Thanks again for the help!</p>
]]></description><link>https://forum.netxms.org/post/20717</link><guid isPermaLink="true">https://forum.netxms.org/post/20717</guid><dc:creator><![CDATA[zshnet]]></dc:creator><pubDate>Thu, 18 Aug 2016 13:26:45 GMT</pubDate></item><item><title><![CDATA[Reply to Adding libraries to nxshell Jython? on Wed, 17 Aug 2016 14:13:11 GMT]]></title><description><![CDATA[<p dir="auto">Fancy! Thanks for the suggestion. I'll give it a shot.</p>
<p dir="auto">Thanks,<br />
Zach</p>
]]></description><link>https://forum.netxms.org/post/20704</link><guid isPermaLink="true">https://forum.netxms.org/post/20704</guid><dc:creator><![CDATA[zshnet]]></dc:creator><pubDate>Wed, 17 Aug 2016 14:13:11 GMT</pubDate></item><item><title><![CDATA[Reply to Adding libraries to nxshell Jython? on Wed, 17 Aug 2016 14:11:25 GMT]]></title><description><![CDATA[<p dir="auto">Like any  pure-python library, just add it to search path.</p>
<pre><code>mkdir c:\tmp
cd c:\tmp
git clone git://github.com/kennethreitz/requests.git
java -jar nxshell-2.0.5.jar
Server IP [127.0.0.1]:
Login [admin]:
Password [netxms]:
NetXMS 2.0.5 Interactive Shell
&gt;&gt;&gt; import requests
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: No module named requests
&gt;&gt;&gt; import sys
&gt;&gt;&gt; sys.path.append('c:\\tmp\\requests')
&gt;&gt;&gt; import requests
&gt;&gt;&gt; r = requests.get('https://www.netxms.org/')
&lt;Response [200]&gt;
&gt;&gt;&gt; r.status_code
200
&gt;&gt;&gt; r.headers
{'Keep-Alive': 'timeout=15, max=100', 'Server': 'Apache/2.2.16 (Debian)', 'Connection': 'Keep-Alive', 'Date': 'Wed, 17 Aug 2016 14:06:34 GMT', 'Accept-Ranges': 'bytes', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Content-Length': '3237', 'Content-Type': 'text/html'}
</code></pre>
]]></description><link>https://forum.netxms.org/post/20703</link><guid isPermaLink="true">https://forum.netxms.org/post/20703</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 17 Aug 2016 14:11:25 GMT</pubDate></item></channel></rss>