Fire

Latest version: v0.7.0

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

Scan your dependencies

Page 2 of 2

0.2.1

Bug fixes
- Improves robustness of docstring parser in the face of unexpected format docstrings. 183

0.2.0

- Help and usage screens
Help screens now have a man-page appearance and are shown with less-style pagination. Usage screens are shown when a user-error is encountered. The help and usage screens are considerably cleaner than the default output in previous versions of Fire.
- Custom serialization
If you define a custom `__str__` method on an object, that will be used to serialize the object when it is the final result of a Fire command. This means better support for numpy arrays, and better support for custom types.
- Docstring parsing
Notably, docstrings are parsed in order to determine the descriptions to use for arguments in the help screens. We largely support (but not fully) Google, numpy, and RST style docstrings. These are the three most common styles of docstring used in Python code.
- Access --help naturally
You no longer need to separate --help from your command with an extra --. Simply running `command -h` or `command --help` will give help, provided there isn't an argument named `help` in your component.
- NamedTuples can be indexed both by their field names and by their indexes.
- Callable objects can both be called, and their members can be accessed.
You must use flag syntax to call a callable object; you cannot pass their arguments positionally.
- Single-hyphen flags are supported
You can now specify `-flag` instead of `--flag` if preferred. Both work.
- Short-flags are permitted when their use is unambiguous
E.g. if your function has argument `alpha`, then you can specify its value with `-a`.
- Fish completion support

0.1.3

This release has a few small improvements:
- Do not treat arguments that start with '--' as strings [99]
- Fix for BinOps in args [96]
- six.u for Python 3 compatability in fuzz tests [111]

And a small packaging improvement:
- Files in PyPi archive are world readable. [107]

0.1.2

Improvements
- IPython is fully optional! [7]
Now Fire's only dependency is six (the Python 2, 3 compatibility module) which is fairly light weight.
If you use Fire without IPython, we call it "Fire Lite." Pun intended.
- The command argument accepts lists [53]
fire.Fire's optional `command` argument now accepts either a sequence of arguments or a single string.
Previously the `command` argument only accepted a string.
- New mkdocs documentation
We've started using mkdocs for documentation. The documentation is available at https://google.github.io/python-fire.
- Packaging improvements: the license file is now included in the release.
- Output is no longer force converted to ASCII.

0.1.1

New Features
- [The Python Fire Guide](https://github.com/google/python-fire/blob/master/doc/guide.md) is available
- Support for annotations in functions
- Support for keyword-only arguments in functions
- Faster loading via lazy imports

Bug Fixes
- Serialize empty dictionaries
- Serialize dictionaries with circular dependencies
- Support non-comparable objects, numpy arrays, etc
- Help for objects without source files
- Completion scripts for top-level functions

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.