Symbex

Latest version: v1.4

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

Scan your dependencies

Page 2 of 3

0.7

- `--stdlib` option for searching for code within the Python standard library. [29](https://github.com/simonw/symbex/issues/29)
- `-m modulename` option for searching for code within one or more specific importable modules. [30](https://github.com/simonw/symbex/issues/30)
- `-i/--imports` option causing `symbex` to output comments with ` from module import function_name` comments. [26](https://github.com/simonw/symbex/issues/26)
- Imports are calculated relative to the `-d` option used to run the script, but you can have them calculated against other directories by passing one or more `--sys-path` options.
- `-n/--no-file` option for suppressing the ` File: ...` lines in the output. [28](https://github.com/simonw/symbex/issues/28)
- The `-ni` shortcut can be used to apply both `--imports` and `--no-file` at once.
- `-x/--exclude DIR` option for excluding a directory from being included in the search. [27](https://github.com/simonw/symbex/issues/27)
- `--no-init` option for filtering out `__init__` methods. This is especially useful when combined with `--fully-typed` as it lets you see every class method that has full type annotations, excluding those `__init__` methods: `symbex '*.*' --fully-typed --no-init`
- If a file cannot be read due to a Unicode error a warning will now be shown, unless `--silent` is passed.
- `--docs` is now available as a shortcut for `--docstrings`.
- `symbex` can now be installed using Homebrew: `brew install simonw/llm/symbex`.

0.6

- `--docstrings` causes the signature of each function to be shown with any docstrings included. [25](https://github.com/simonw/symbex/issues/25)
- `--documented` filters for just classes and functions that have docstrings. `--undocumented` shows just classes and functions that do not have docstrings. [25](https://github.com/simonw/symbex/issues/25)

0.5

- New filter options for filtering results to match specific criteria, [documented here](https://github.com/simonw/symbex/tree/0.5#filters): `--function`, `--class`, `--async`, `--typed`, `--untyped`, `--partially-typed`, `--fully-typed` [21](https://github.com/simonw/symbex/issues/21)
- New `--count` option, returning a count of the number of symbols that matched the search criteria. To count every test function in a project: `symbex 'test_*' --count` [22](https://github.com/simonw/symbex/issues/22)
- README now includes a copy of the `--help` output. [24](https://github.com/simonw/symbex/issues/24)

0.4

- Running `symbex` without any arguments now displays usage instructions. [14](https://github.com/simonw/symbex/issues/14)
- Running `symbex` against a huge directory now starts streaming results instantly, rather than pausing for an amount of time before starting to return content. [15](https://github.com/simonw/symbex/issues/15)
- Now correctly handles Python code that has been saved using an encoding other than `utf-8`. [18](https://github.com/simonw/symbex/issues/18)
- `symbex --signatures` mode now handles complex type annotations much better. [16](https://github.com/simonw/symbex/issues/16), [#19](https://github.com/simonw/symbex/issues/19)
- Added a `Justfile` to help run tests and linters. [20](https://github.com/simonw/symbex/issues/20)

0.3.2

- Fixed bug `ValueError: malformed node or string` when running with `-s` against projects containing a specific kind of function signature. [13](https://github.com/simonw/symbex/issues/13)

0.3.1

- Fixed a bug where `async def` functions and class methods were not found or correctly displayed. [12](https://github.com/simonw/symbex/issues/12)

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.