summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 21:57:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 21:57:10 +0000
commit9ad84ef5bb5354125c5b48307a63a01056b44fdc (patch)
tree2ffdef3779d5df4bf7f9a31d8d0649532a8e1042
parentd05cfc9343a588b6e2b37926535605c9c3b2094b (diff)
automatic import of python-msgraph-core
-rw-r--r--.gitignore1
-rw-r--r--python-msgraph-core.spec321
-rw-r--r--sources1
3 files changed, 323 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c426aa7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/msgraph-core-0.2.2.tar.gz
diff --git a/python-msgraph-core.spec b/python-msgraph-core.spec
new file mode 100644
index 0000000..33735be
--- /dev/null
+++ b/python-msgraph-core.spec
@@ -0,0 +1,321 @@
+%global _empty_manifest_terminate_build 0
+Name: python-msgraph-core
+Version: 0.2.2
+Release: 1
+Summary: Core component of the Microsoft Graph Python SDK consisting of HTTP/Graph Client and a configurable middleware pipeline (Preview).
+License: MIT License
+URL: https://github.com/microsoftgraph/msgraph-sdk-python-core
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/35/94/e2a15b577044b6b0e4b610a26fcd4439863d8d21bda419e0fd24580316cd/msgraph-core-0.2.2.tar.gz
+BuildArch: noarch
+
+
+%description
+[![CI Actions Status](https://github.com/microsoftgraph/msgraph-sdk-python-core/workflows/msgraph-sdk-python-core/badge.svg)](https://github.com/microsoftgraph/msgraph-sdk-python-core/actions)
+
+## Microsoft Graph Core Python Client Library (preview).
+
+The Microsoft Graph Core Python client library is a lightweight wrapper around the Microsoft Graph API. It provides functionality to create clients with desired configuration and middleware.
+
+**Disclaimer**: Please, be aware that preview versions of `msgraph-core` package are for testing purpose only. Do not use them in a production environment.
+
+## Prerequisites
+
+ Python 3.5+ (this library doesn't support older versions of Python)
+
+## Getting started
+
+### 1. Register your application
+
+To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform. Learn more about this -
+
+- [Authentication and authorization basics for Microsoft Graph](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
+- [Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth-register-app-v2)
+
+
+### 2. Install the required packages
+
+msgraph-core is available on PyPI.
+
+```cmd
+python -m pip install msgraph-core
+python -m pip install azure-identity
+```
+
+### 3. Import modules
+
+```python
+from azure.identity import InteractiveBrowserCredential
+from msgraph.core import GraphClient
+```
+
+### 4. Configure a Credential Object
+
+```python
+# Using InteractiveBrowserCredential for demonstration purposes.
+# There are many other options for getting an access token. See the following for more information.
+# https://pypi.org/project/azure-identity/
+
+browser_credential = InteractiveBrowserCredential(client_id='YOUR_CLIENT_ID')
+```
+
+### 5. Pass the credential object to the GraphClient constructor.
+
+```python
+client = GraphClient(credential=browser_credential)
+```
+
+### 6. Make a requests to the graph using the client
+
+```python
+result = client.get('/me')
+print(result.json())
+```
+
+For more information on how to use the package, refer to the [samples](https://github.com/microsoftgraph/msgraph-sdk-python-core/tree/dev/samples).
+
+
+## Telemetry Metadata
+
+This library captures metadata by default that provides insights into its usage and helps to improve the developer experience. This metadata includes the `SdkVersion`, `RuntimeEnvironment` and `HostOs` on which the client is running.
+
+## Issues
+
+View or log issues on the [Issues](https://github.com/microsoftgraph/msgraph-sdk-python-core/issues) tab in the repo.
+
+## Contributing
+
+Please see the [contributing guidelines](CONTRIBUTING.rst).
+
+## Copyright and license
+
+Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT [license](LICENSE).
+
+This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
+
+
+
+
+%package -n python3-msgraph-core
+Summary: Core component of the Microsoft Graph Python SDK consisting of HTTP/Graph Client and a configurable middleware pipeline (Preview).
+Provides: python-msgraph-core
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-msgraph-core
+[![CI Actions Status](https://github.com/microsoftgraph/msgraph-sdk-python-core/workflows/msgraph-sdk-python-core/badge.svg)](https://github.com/microsoftgraph/msgraph-sdk-python-core/actions)
+
+## Microsoft Graph Core Python Client Library (preview).
+
+The Microsoft Graph Core Python client library is a lightweight wrapper around the Microsoft Graph API. It provides functionality to create clients with desired configuration and middleware.
+
+**Disclaimer**: Please, be aware that preview versions of `msgraph-core` package are for testing purpose only. Do not use them in a production environment.
+
+## Prerequisites
+
+ Python 3.5+ (this library doesn't support older versions of Python)
+
+## Getting started
+
+### 1. Register your application
+
+To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform. Learn more about this -
+
+- [Authentication and authorization basics for Microsoft Graph](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
+- [Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth-register-app-v2)
+
+
+### 2. Install the required packages
+
+msgraph-core is available on PyPI.
+
+```cmd
+python -m pip install msgraph-core
+python -m pip install azure-identity
+```
+
+### 3. Import modules
+
+```python
+from azure.identity import InteractiveBrowserCredential
+from msgraph.core import GraphClient
+```
+
+### 4. Configure a Credential Object
+
+```python
+# Using InteractiveBrowserCredential for demonstration purposes.
+# There are many other options for getting an access token. See the following for more information.
+# https://pypi.org/project/azure-identity/
+
+browser_credential = InteractiveBrowserCredential(client_id='YOUR_CLIENT_ID')
+```
+
+### 5. Pass the credential object to the GraphClient constructor.
+
+```python
+client = GraphClient(credential=browser_credential)
+```
+
+### 6. Make a requests to the graph using the client
+
+```python
+result = client.get('/me')
+print(result.json())
+```
+
+For more information on how to use the package, refer to the [samples](https://github.com/microsoftgraph/msgraph-sdk-python-core/tree/dev/samples).
+
+
+## Telemetry Metadata
+
+This library captures metadata by default that provides insights into its usage and helps to improve the developer experience. This metadata includes the `SdkVersion`, `RuntimeEnvironment` and `HostOs` on which the client is running.
+
+## Issues
+
+View or log issues on the [Issues](https://github.com/microsoftgraph/msgraph-sdk-python-core/issues) tab in the repo.
+
+## Contributing
+
+Please see the [contributing guidelines](CONTRIBUTING.rst).
+
+## Copyright and license
+
+Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT [license](LICENSE).
+
+This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
+
+
+
+
+%package help
+Summary: Development documents and examples for msgraph-core
+Provides: python3-msgraph-core-doc
+%description help
+[![CI Actions Status](https://github.com/microsoftgraph/msgraph-sdk-python-core/workflows/msgraph-sdk-python-core/badge.svg)](https://github.com/microsoftgraph/msgraph-sdk-python-core/actions)
+
+## Microsoft Graph Core Python Client Library (preview).
+
+The Microsoft Graph Core Python client library is a lightweight wrapper around the Microsoft Graph API. It provides functionality to create clients with desired configuration and middleware.
+
+**Disclaimer**: Please, be aware that preview versions of `msgraph-core` package are for testing purpose only. Do not use them in a production environment.
+
+## Prerequisites
+
+ Python 3.5+ (this library doesn't support older versions of Python)
+
+## Getting started
+
+### 1. Register your application
+
+To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform. Learn more about this -
+
+- [Authentication and authorization basics for Microsoft Graph](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
+- [Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth-register-app-v2)
+
+
+### 2. Install the required packages
+
+msgraph-core is available on PyPI.
+
+```cmd
+python -m pip install msgraph-core
+python -m pip install azure-identity
+```
+
+### 3. Import modules
+
+```python
+from azure.identity import InteractiveBrowserCredential
+from msgraph.core import GraphClient
+```
+
+### 4. Configure a Credential Object
+
+```python
+# Using InteractiveBrowserCredential for demonstration purposes.
+# There are many other options for getting an access token. See the following for more information.
+# https://pypi.org/project/azure-identity/
+
+browser_credential = InteractiveBrowserCredential(client_id='YOUR_CLIENT_ID')
+```
+
+### 5. Pass the credential object to the GraphClient constructor.
+
+```python
+client = GraphClient(credential=browser_credential)
+```
+
+### 6. Make a requests to the graph using the client
+
+```python
+result = client.get('/me')
+print(result.json())
+```
+
+For more information on how to use the package, refer to the [samples](https://github.com/microsoftgraph/msgraph-sdk-python-core/tree/dev/samples).
+
+
+## Telemetry Metadata
+
+This library captures metadata by default that provides insights into its usage and helps to improve the developer experience. This metadata includes the `SdkVersion`, `RuntimeEnvironment` and `HostOs` on which the client is running.
+
+## Issues
+
+View or log issues on the [Issues](https://github.com/microsoftgraph/msgraph-sdk-python-core/issues) tab in the repo.
+
+## Contributing
+
+Please see the [contributing guidelines](CONTRIBUTING.rst).
+
+## Copyright and license
+
+Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT [license](LICENSE).
+
+This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
+
+
+
+
+%prep
+%autosetup -n msgraph-core-0.2.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-msgraph-core -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5076bea
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8f1f7faf94d0f2b8324d15eb055a9c9c msgraph-core-0.2.2.tar.gz