Personal tools
Skip to content. | Skip to navigation
Expand functools features to methods, classmethods, staticmethods and even for (unofficial) hybrid methods. For now, methodtools only provides methodtools.lru_cache. Use methodtools module instead of functools module. Than it will work as you expected. from methodtools import lru_cache class A(object): @lru_cache() def cached_method(self, args): ... @lru_cache() # the order is important! @classmethod # always lru_cache on top of classmethod def cached_classmethod(self, args): ... @lru_cache() # the order is important! @staticmethod # always lru_cache on top of staticmethod def cached_staticmethod(self, args): ... @lru_cache() # just same as functools.lru_cache def cached_function(): ... Installation PyPI is the recommended w
Microsoft Kiota Abstractions Library for Python The Microsoft Kiota abstractions library for Python is the python package defining the basic constructs Kiota projects need once an SDK has been generated from an OpenAPI definition. A Kiota generated project will need a reference to the abstraction package to build and run. Read more about Kiota here. Using the Abstractions Library In order to use this library, install the package by running: pip install microsoft-kiota-abstractions Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions prov
Microsoft Kiota Authentication Azure Library for Python The Microsoft Kiota Authentication Azure Library is an implementation to authenticate HTTP requests using @azure/identity. A Kiota generated project will need a reference to an authentication provider to make calls to an API endpoint. Read more about Kiota here. Using the Microsoft Kiota Authentication Azure library In order to use this library, install the package by running: pip install microsoft-kiota-authentication-azure Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provi
Microsoft Kiota HTTP library The Microsoft Kiota HTTP Library is a python HTTP implementation with HTTPX library. A Kiota generated project will need a reference to a http package to to make HTTP requests to an API endpoint. Read more about Kiota here. Using the Microsoft Kiota HTTP library In order to use this library, install the package by running: pip install microsoft-kiota-http Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project ha
Microsoft Kiota URI Form Encoded Serialization Library for Python The Form Serialization Library for Python is the python application/x-www-form-urlencoded serialization library implementation. A Kiota generated project will need a reference to a form serialization package to handle application/x-www-form-urlencoded payloads from a supporting API endpoint. Read more about Kiota here. Using the Microsoft Kiota URI Form Encoded Serialization Library In order to use this library, install the package by running: pip install microsoft-kiota-serialization-form Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR approp
Microsoft Kiota Serialization library for JSON The Microsoft Kiota Serialization Library for JSON is a python implementation to serialize/deserialize JSON. A Kiota generated project will need a reference to a json serialization package to handle json payloads from an API endpoint. Read more about Kiota here. Using the Microsoft Kiota Serialization JSON library In order to use this library, install the package by running: pip install microsoft-kiota-serialization-json Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot
Microsoft Kiota Multipart Serialization Library for Python The Multipart Serialization Library for Python is the python multipart/form-data serialization library implementation. A Kiota generated project will need a reference to a multipart serialization package to handle multipart payloads from a supporting API endpoint. Read more about Kiota here. Using the Microsoft Kiota Multipart Serialization Library In order to use this library, install the package by running: pip install microsoft-kiota-serialization-multipart Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment)
Microsoft Kiota Text Serialization library The Microsoft Kiota Text Serialization Library is a python implementation to serialize/deserialize text/plain. A Kiota generated project will need a reference to a json serialization package to handle json payloads from an API endpoint. Read more about Kiota here. Using the Microsoft Kiota Text Serialization library In order to use this library, install the package by running: pip install microsoft-kiota-serialization-text Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https:/cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot.