Py-basic-commands

Latest version: v0.2.24

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

Scan your dependencies

Page 1 of 7

0.2.25

Major QOL update!

Added

- New file `file_editor.py`
- Has the class `FileEditor`
- Can read, edit and write to a file with ease
- STILL WIP, so may not work as intended
- New function `try_listdir()`
- Tries to list a directory
- Returns `None` if it fails
- `fprint()`
- New function `error()`
- Prints an error messade to the console, with your own text
- `fprint.error('This is an error message')` -> `--[!]-- This is an error message --[!]--`
- `sep` (separator) variable
- What to join the `*args` with

Changed

- A lot of classes had the problem of "sharing" the same `fprint()`, so `do_print` was shared between all classes.
- This has been fixed, and now each class has its own `fprint()`
- Changed docstring format from my custom created, to NumnPy style
- should make it easier to read and understand
- In a lot of class `__call__()` functions, the default input values were set as `None`. Those are removed, and now are being taken from a kwargs.
- This makes the code a lot more readable, and easier to understand
- `fprint()`
- Total rework of the function
- Should be easier to add more functions in the future

Removed

- Some classes had unnecceary `dataclass` decorators, so those have been removed
- Shouldn't affect anything

0.2.25beta.5

Added required package dependencies to .cfg and .toml file.

**Full Changelog**: https://github.com/RasseTheBoy/Py_Basic_Commands/compare/0.2.25-beta.4...0.2.25-beta.5

0.2.25beta.4

Small update

**Full Changelog**: https://github.com/RasseTheBoy/Py_Basic_Commands/compare/0.2.25-beta.3...0.2.25-beta.4

0.2.25beta.3

Some small QOF changes and a new function to play with.

Added

- New function `try_moving()`
- Tries to move a file
- Returns `False` if it fails, and `True` if it succeeds

**Full Changelog**: https://github.com/RasseTheBoy/Py_Basic_Commands/compare/0.2.25-beta.2...0.2.25-beta.3

0.2.25beta.2

- Removed `_check_input_val()`
- Added some docstrings
- Added missing files to __init__.py

0.2.25beta.01

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.