microsoftgraph / microsoftgraph/msgraph-sdk-python
Example in README has the wrong import for `GraphServiceClient`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 630
- Forks
- 96
- Avg merge
- 15h 20m
- Merged PRs (30d)
- 3
Description
Describe the bug
In section 2.3, the README has
from msgraph import GraphServiceClient
whereas
from msgraph.graph_service_client import GraphServiceClient
seems to work
Expected behavior
Please clarify or fix README
How to reproduce
install msgraph sdk
In a python repl
import msgraph
dir(msgraph) # this will show no GraphServiceClient
dir(msgraph.graph_service_client) will show GraphServiceClient
SDK Version
1.61.0
Latest version known to work for scenario above?
No response
Known Workarounds
use from msgraph.graph_service_client import GraphServiceClient
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the README and inspect section 2.3, comparing the documented import with the working import from msgraph.graph_service_client. Update the example so it exposes GraphServiceClient correctly, then verify the documented command in a Python REPL using the msgraph SDK version described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 90/100