Py-basic-commands

Latest version: v0.2.24

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

Scan your dependencies

Page 5 of 7

0.1.41

Changed

- `create_file_dir()`
- returns `bool` if file or directory was created
- return type hint set as `bool`

0.1.32

Added

- `read_file()`
- `remove_empty` function added back
- Was accidentally removed
- `ret_did_create` added back

Changed

- `read_file()`
- Better and more accurate hint typing
- given input variable for `create_file_dir()`
- `file` -> `f`
- `func_timer()`
- `time.time()` -> `time.perf_counter()`

0.1.31

Added

- `fprint()`
- You can add the `end` function to the print
- `read_file()`
- `strip` all lines (default: `True`)
- Only works if `splitlines` is set as `True` (default: `True`)
- Type hints for returned values
- Also for `try_read()`

Changed

- Variables changed
- `dir` -> `d`
- `file` -> `f`
- `filename` -> `fnam`
- `read_file()`
- Removed `ret_did_create`
- Now returns both `lines` and `did_create` as `tuple`
- Due to Pylance giving some errors if `ret_did_create` was used
- Input variable `do_splitlines` -> `splitlines`

0.1.21

Added

- `read_file()` can now return if a file was created (set `ret_did_create`=`True`)

0.1.5

Added

- New class
- `FunctionTimer`
- Includes a function timer decorator (`_func_timer()`) and a function to time other functions (`func_timer()`)

Changed

- `join_path()`
- Removes illegal characters (`<>:"/\|?*`)

**Full Changelog**: https://github.com/RasseTheBoy/Py_Basic_Commands/compare/0.1.441...0.1.5

0.1.4

The JSON update!

Added

- New functions
- `create_json()`
- `read_json()`
- from `typing` import
- `Any`
- `read_file()`
- return type hint set as `Any`

Removed

- from `typing` import
- `List`, `Tuple`
- `read_file().try_reading()`
- return type hint removed

Page 5 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.