Handsdown

Latest version: v2.1.0

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

Scan your dependencies

Page 3 of 5

0.3.8

Fixed

- Error on python comment handled as Markdown header
- Incorrect `find to source code` link in automated GitHub actions

Dependencies

- Removed strict `typed-ast` version requirements
- Updated dev dependencies

0.3.5

Changes

- Updated documentation
- Updated dependencies
- Fixed `Read the Docs` deployment

0.3.3

Features

- [x] Add `if` expressions support to expression analyzer
- [x] Add `await` support to expression analyzer
- [x] Add `yield` and `yield from` support to expression analyzer
- [x] Add asynchronous functions and methods support

Bugfixes

- [x] Cleanup orphaned directories after glob iteration to avoid `OSError`
- [x] Simplify main class name lookup
- [x] Fix potential error in comment docstring discovery
- [x] Fix force output path creation if file exists with expected directory name

0.3.2

Features

- [x] Respect `__all__` directive
- [x] Add rendering support for f-strings
- [x] Add rendering support for slices
- [x] Add rendering support for `list`, `set` and `dict` comprehensions
- [x] Add rendering support for generator expressions

Bugfixes

- [x] Split sphinx sections
- [x] Skip private functions in modules
- [x] Change `__main__.py` title to `Module`
- [x] Fix default values for positional only arguments
- [x] Ignore comment docstrings starting with `FIXME` or `TODO`
- [x] Fix starargs rendering for AST2
- [x] Fix comment-style type annotations ordering
- [x] Add warning on unknown operator render

Changes

- [x] Use ToC depth 1 for sub-modules

0.3.1

Features

- [x] Discover related object links inside a class
- [x] Support Sphinx directives, e.g. `..seealso::`

Bugfixes

- [x] Fix related links discovery for attributes
- [x] Remove `pathlib2` dependency
- [x] Fix default values representation for `py2x`
- [x] Set anchor links to module/class header for attributes
- [x] Do not replace attribute names with links inside parent module doc
- [x] Add type annotations placed on a different line
- [x] Allow comment blocks inside each other (remember how the block started)

0.3.0

Features

New Python code parsing approach

Now `handsdown` uses Abstract Syntax Trees (AST) to parse a source code. Code was completely rewritted, but now it is better, faster, and does not require your project dependencies installed. `py27` support is dropped, but you can use a new Docker image for Python 2.x projects.

Comment docstrings

python
Name for main `logging.Logger`
PROJECT_NAME = 'my_project'

Format for logs views.
DATE_FORMAT = '%Y-%m-%d'


Ever had something like this in your source code? Well, now it is added to docs and even is discoverable by referencing from other modules, like

python
from my_project.constants import DATE_FORMAT

def parse_date(date_str, format=DATE_FORMAT):
return datetime.strptime(date_str, format)


This will generate a nice `See also` link to your `constants.md` file.

Same result for all Python version

All `py3x` produce exactly the same result.

New function signature generator

This comes together with AST introduction. Now signature is properly indented and slit to multiple lines if needed.

Bugfixes

- [x] Fix wrong ToC indentation for `mkdocs` (use 4 spaces indent)
- [x] Fix wrong target file for `See also` links
- [x] Fix source code link for `py38`, so it include decorators
- [x] Fix source lookup for `pathlib2` fallback (it is very buggy)
- [x] Fix orphaned docs cleanup for `pathlib2` fallback
- [x] Speed up doc generation on big projects

Changes

- [x] Add `--name` CLI parameter
- [x] Python 3.5.+ is now required

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.