Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-13-2020, 07:14 AM
wrgeorge1983 wrgeorge1983 is offline
Registered User
 
Join Date: Jan 2020
Posts: 2
Python environment

How can we extend / customize the embedded python environment?

I can see that there's a 'python27.zip' in the installation directory, with what looks like most of the python standard library and a 'site-packages' folder in there, so I assume it should be possible to add new packages, but I was wondering if there's a recommended toolchain / workflow for this before I try to bang my head against it myself.

The packages I'm looking to add are all pure python at this point (requests namely, but maybe a few others).


Also, while I'm here, python 2.7 is going EOS this year. Are there any plans to shift to Python 3?
Reply With Quote
  #2  
Old 01-13-2020, 09:25 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,154
Hi wrgeorge1983,
Quote:
How can we extend / customize the embedded python environment?
What modules, specifically, did you need support for?

Quote:
Also, while I'm here, python 2.7 is going EOS this year. Are there any plans to shift to Python 3?
I have added this thread to a feature request in our product enhancement database to add support for Python 3.x. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #14038 in the subject line or use this form from the support page of our website.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by bgagnon; 01-13-2020 at 11:13 AM. Reason: Removed inaccurate info
Reply With Quote
  #3  
Old 01-13-2020, 02:25 PM
wrgeorge1983 wrgeorge1983 is offline
Registered User
 
Join Date: Jan 2020
Posts: 2
The package I'm most interested in is called 'requests' (https://pypi.org/project/requests/). But in general one of the largest strengths of python is its extensibility and enormous catalog of available packages, so I'd like to be able to add new packages more or less "at will".
Reply With Quote
  #4  
Old 01-15-2020, 09:33 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,154
Hi wrgeorge1983,

It's not currently possible to extend/customize the embedded Python environment.

I have added this thread to a feature request in our product enhancement database to add support for Python requests module. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #14038 in the subject line or use this form from the support page of our website.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 07:17 PM.