chore(deps): update dependency fire to v0.7.1 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.1.3→==0.7.1Release Notes
google/python-fire (fire)
v0.7.1: Python Fire v0.7.1Compare Source
What's Changed
Full Changelog: google/python-fire@v0.7.0...v0.7.1
v0.7.0: Python Fire v0.7.0Compare Source
Notable in this release:
What's Changed
setup.pyby @Borda in #555New Contributors
Full Changelog: google/python-fire@v0.6.0...v0.7.0
v0.6.0: Python Fire v0.6.0Compare Source
This is the last release supporting Python 2. Subsequent releases will be Python 3 only. The automatically generated release notes follow.
What's Changed
Github->GitHubby @jbampton in #425$sign in bash completion by @maximehk in #472New Contributors
Full Changelog: google/python-fire@v0.5.0...v0.6.0
v0.5.0: Python Fire v0.5.0Compare Source
Changelist
Highlighted change:
fire.Fire(serialize=custom_serialize_fn)#345You can now pass a custom serialization function to fire to control how the output is serialized.
Your serialize function should accept an object as input, and may return a string as output. If it returns a string, Fire will display that string. If it returns None, Fire will display nothing. If it returns something else, Fire will use the default serialization method to convert it to text.
The default serialization remains unchanged from previous versions. Primitives and collections of primitives are serialized one item per line. Objects that define a custom
__str__function are serialized using that. Complex objects that don't define__str__trigger their help screen rather than being serialized and displayed.v0.4.0: Python Fire v0.4.0Compare Source
Changelist
python -m fireHighlighted change:
python -m fireYou can use Python Fire without ever modifying your code. To use it, first install Python Fire with
pip install fire. Then simply runpython -m fire path/to/yourfile.pyorpython -m fire path.to.yourmodule.This is both a fast way to use Python Fire to create a CLI from your code, and a way to apply Python Fire quickly to a codebase you don't have access to.
v0.3.1Compare Source
Removes preexec_fn from pager subprocess call. Resolves #236.
v0.3.0Compare Source
Assorted Improvements in Python Fire v0.3.0
python -m fire <module>f01aad3v0.2.1Compare Source
Bug fixes
v0.2.0Compare Source
Python Fire v0.2.0
If you're new to Python Fire:
e.g. You can call Fire on a function, as in this example (but you can also call Fire on anything else: classes, objects, dicts, etc. -- they all work.)
pip install fireto get started.Improvements in v0.2.0
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.
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.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.
You no longer need to separate --help from your command with an extra --. Simply running
command -horcommand --helpwill give help, provided there isn't an argument namedhelpin your component.You must use flag syntax to call a callable object; you cannot pass their arguments positionally.
You can now specify
-flaginstead of--flagif preferred. Both work.E.g. if your function has argument
alpha, then you can specify its value with-a.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.