Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kovalsky authored Mar 22, 2024
1 parent aa06264 commit be778b1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ for name, member in all_members:
print(name)
```

### Show all functions in a given Python library and their respective parameters
```python
import inspect
import sempy
import sempy.fabric as fabric

functions = inspect.getmembers(fabric,inspect.isfunction) #Enter the library alias

for name, func in functions:
signature = inspect.signature(func)
parameters = list(signature.parameters.keys())
print(f"{name} : {parameters}\n")
```

#### Show useful information about a given function
```python
import sempy
Expand Down

0 comments on commit be778b1

Please sign in to comment.