gensaschema._util module

Copyright:

Copyright 2014 - 2023 Andrxe9 Malo or his licensors, as applicable

License:

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Misc Utilities

Misc utilities.

gensaschema._util.cmp(a, b)
gensaschema._util.find_public(space)[source]

Determine all public names in space

If the space contains an __all__ sequence, a copy is returned (as a list). Otherwise, all symbol names not starting with an underscore are listed.

Parameters:

space (dict) – Name space to inspect

Returns:

List of public names

Return type:

list