Git Product home page Git Product logo

msgraph-training-python's Introduction

Build Python apps with Microsoft Graph - Completed project

Pylint

This sample will introduce you to working with the Microsoft Graph SDK to access data in Microsoft 365 from Python applications. This code is the result of completing the Python Microsoft Graph tutorial and the Python Microsoft Graph app-only tutorial.

Running the sample

The code for the delegated user authentication sample is in the user-auth folder. Instructions to configure and run the sample can be found in the README in that folder.

The code for the app-only authentication sample is in the app-auth folder. Instructions to configure and run the sample can be found in the README in that folder.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

msgraph-training-python's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jasonjoh avatar microsoft-github-policy-service[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

msgraph-training-python's Issues

broken with kiota-serializers-json 0.3.5

Where did you get the code?

  • [ X] Downloaded from GitHub

Describe the bug
This is not a bug. As the project is written, everything works fine.

The requirements modules are out of date. More recent versions are available for many. Updating all to the latest versions, on python 3.10, I find that microsoft-kiota-serializers-json 0.3.5 breaks this project, while microsoft-kiota-serializers-json 0.3.4 works.

To Reproduce
Steps to reproduce the behavior:

  1. in requirements.txt change:

    'microsoft-kiota-serializers-json==0.3.1'

to

'microsoft-kiota-serializers-json==0.3.5'

  1. run:

    python -m pip install -r requirements.txt
    python main.py

Workaround:

Don't microsoft-kiota-serializers-json past version 0.3.4

Expected behavior
Expect
Hello: (user)
Email: (address)

Get
Hello: None
Email: None

Desktop (please complete the following information):
OS: Debian 11
Python 3.10

Dependency versions

  • msal: 1.22.0
  • msgraph-sdk: 1.0.0a12

Additional context
Not really a bug for this project, but don't know who to contact.

_assign_field_values tries to iterate over a string

Where did you get the code?
[- [ ] Downloaded from GitHub

Describe the bug
_assign_field_values throws AttributeError: 'str' object has no attribute 'items' in kiota_serialization_json/json_parse_node.py

To Reproduce
Steps to reproduce the behavior:

  1. copy the app-only tutorial
  2. run the code
  3. See error

Expected behavior
The code should not throw the exception.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: MacOS 13.0.1
  • Browser no browser involved
  • Version 22

Dependency versions

  • Authentication library (MSAL, etc.) version: 1.21.0
  • Graph library (Graph SDK, REST library, etc.) version: 1.0.0a4

Additional context
My code differs slightly from the tutorial in that I'm getting the information you put in a config file from the environment, but other than that it's identical. If I edit kiota_serialization_json/json_parse_node.py and add print(object_dict) right before the for key, val in object_dict.items(): line, I am getting the expected data, but it's not being parsed (it's still a string.)

SSLCertVerificationError when following the tutorial

Hi,

I cloned the repo and followed the tutorial, but keep getting the following error:
azure.core.exceptions.ServiceRequestError: Cannot connect to host login.microsoftonline.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')]
I'm running Python 3.10 on Macos, using a virtualenv. What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.