Saspy

Latest version: v5.12.0

Safety actively analyzes 624279 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 7

5.3.0

Added

- `None` Nothing added

Changed

- `Tweak` Changed the value of Context in the HTTP config definitions in the example sascfg.py file to use
the more likely `SAS Studio compute context`. This has no effect on any code. It's just an example configuration.

- `Enhanced` df2sd() now raises an exception (SASDFNamesToLongError) if any of the column names are longer than 32 bytes,
in the SAS Session encoding, since the data step will fail for those columns and produce errors in the log, but SAS still create
the SAS Data set, incorrectly. Previously, df2sd returned the SASData object, and issued a message about finding Errors in the log,
but didn't fail. The resultant SAS Data Set wasn't correct so checking for this and raising the exception is what should happen.
I also write a message with each column name that is too long, so you know which one(s) need to be changed. And remember, SAS's
restriction on these names is 32 bytes in the SAS Session encoding, and not necessarily 32 characters of utf-8 from Python.

Fixed

- `Fixed` I found a bug in the code that parses the authinfo file to find the authkey. It was using startswith(authkey)
to find the line to use, for the user and password. But startswith() isn't looking at the first word, only so many characters.
This could result in using the wrong line from the authinfo file. For instance, if you had a line with the authkey of `tom1` and
another line further in the file with authkey of `tom`, then looking for authkey='tom' would use the first line with `tom1` for the
credentials instead of the correct line starting with `tom`. Simple fix to parse it correctly so it compares the whole first
word of the line now.

Removed

- `None` Nothing removed

5.2.3

Added

- `None` Nothing added

Changed

- `Tweak` Cleaned up a few bit of documentation. Fixed a link in one section. Nothing significant or different.

- `Tweak` I moved a couple methods out of the individual Access Method modules and into the base module.
Over time, I had been able to make these be the same code in each access method, so now it's cleaner to have
the single implementation in one place instead of 4 places. No changes are required in user code.

- `Tweak` Modified a lookup in the HTTP access method to be more specific, in case something changes in the
API over time. Just getting a link from the list returned by Compute. Nothing changing from users perspective.

- `Tweak` Added some instructions to a couple of SASsession Exceptions to point users at the documentation.
Added messages pointing to the Configuration Doc, the Troubleshooting Guide in the doc and a message to open
an Issue on the saspy github site if needing more help.

Fixed

- `None` Nothing fixed in this release.

Removed

- `None` Nothing removed

5.2.2

Added

- `None` Nothing added

Changed

- `Tweak` Cleaned up a few bit of documentation. Nothing significant or different.

Fixed

- `Fixed` Some time ago, when the Python process terminated (normally), my __del__ methods on SASsession
objects would be called, and I would cleanly terminate the SAS process that was attached. That isn't behaving
as it used to, at least with the HTTP access method for Viya. So, I've added code to explicitly register
a termination exit routing where I then call my cleanup, and that now is behaving as expected for all three
access methods. The SAS process is cleanly terminated before Python finally terminates. So, this is working
as it used to again.

Removed

- `None` Nothing removed

5.2.1

Added

- `None` Nothing added

Changed

- `None` Nothing changed

Fixed

- `Fixed` A bug was found in df2sd where having a variable of all blanks caused errors in the data step
being used to read in the data. An empty or missing var is handled, but a multibyte blank string wasn't being
handled the same, required, way. This release fixes that bug in all three access methods.

Removed

- `None` Nothing removed

5.2.0

Added

- `None` Nothing added

Changed

- `Enhancement` Added support for Proxy Authentication using user/pw. Support for having a proxy server ahead
of Viya was added in version 4.5.0, and in this release, support for authenticating to that proxy with user/pw
was added based upon a user request. This is documented in the HTTP section of the Configuration documentation.

Fixed

- `Fixed` A minor fix for a case where a unit test was producing a resource warning. I couldn't reproduce this,
but the fix was trivial and it fixed the users case. This was for issue 543.

- `Fixed` A fix in the STDIO access method to explicitly use 'localhost' in the filename statement generated for
dataframe2sasdata() instead of using blank hostname. This was causing an issue for a user with multiple network
adapters and an unusual configuration. Explicitly using localhost is the correct path for this since SAS and Python
are on the same machine, so using the loopback adapter is the right choice.

Removed

- `None` Nothing removed

5.1.2

Added

- `None` Nothing added

Changed

- `Tweak` I adjusted the doc regarding the classpath and the encryption jars; separating the two so that
it was more obvious and so that I could point to the more specific section depending upon the question.

Fixed

- `Fixed` Issue 541 showed a deadlock situation in the STDIO Access Method when the generated code for a
sd2df() call was long enough to block python trying to write that to STDIN because SAS was blocked writing
it out to the LOG, STDERR. So I addressed this so that the deadlock won't happen anymore. This requires no
code changes on your part.

Removed

- `None` Nothing removed

Page 3 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.