Execdmscript

Latest version: v1.1.9

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

Scan your dependencies

Page 1 of 2

1.1.9

=============

- Changing creation of unique persistent tag names from timestamp with milliseconds to using uuids
to fix tag collision in parallel threads or immediately consecutive calls

1.1.8

======================

- Changing default encoding to None using pythons `chr()` function using unicode which seems to be
the correct encoding (not Windows 1252 as assumed by the encoding of dm-script files)

1.1.7

=============

- Escaping synchronized non-ascii characters in `TagGroup` keys and string values and unescaping
them in python again to prevent DigitalMicrograph crashing due to encoding problems
- Removing deprecated structure definition of `TagGroup`s and `TagList`s
- Adding conversion support from `dm-script` UInt32 to python `int` and `dm-script` UInt16 to python
`int`

1.1.6

=============

- Adding `remove_global_tag()` with example in README
- Adding `debug_file` can be any file object which includes `sys.stdout` to directly print out the
code to execute
- Adding `get_persistent_tag()` with example in README
- Adding deprecation warning when defining the strucutre of `TagGroup`s or `TagList`s in the
`readvars` in the `exec_dmscript()` function

1.1.5

=============

- Adding `invalid_taggroup_key_characters` tuple that contains character that are invalid for
DigitalMicrograph TagGroup key names
- Adding `replace_invalid_chars` parameter to `convert_to_taggroup()` to offer automatic replacing
of invalid TagGroup key names
- Improving raised errors and their message in `convert_to_taggroup()` to explain better what the
error is about
- Improve doc comment of `convert_to_taggroup()`
- Fix `convert_to_taggroup()` function by fixing call of a non-existing function due to a typo

1.1.4

=============

- Adding `__file__` variable is now always given in dm-script containing the current dm-script file
path
- Adding ingore markers `execdmscript.ignore.start` and `execdmscript.ignore.end` to allow code
that is only executed in direct dm-script calls
- Adding `convert_from_taggroup()` function that converts `DigitalMicrograph.Py_TagGroup` to
`dict`s, `list`s which is the opposite function to `convert_to_taggroup()`
- Adding helper documentation in README
- Adding examples for `get_dm_type()` and `get_python_type()`
- Adding examples for `escape_dm_variable()` and `escape_dm_string()`
- Adding examples for `convert_from_taggroup()` and `convert_to_taggroup()`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.