google / google/python-fire

Use fire without exposing private members

Open
#282 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
28.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

```python
import fire
class Calculator(object):

def add(self, x, y):
return x + y

def multiply(self, x, y):
return x * y

def _sub(self, x, y):# Privite method
return x -y
```
Now, i dont want to expose _sub method on cli, How can i do this. thanks..

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.