Saravanan666/pypi-org huggingface dataset:
Package: mbd-pay
mbd-pay面包多Pay文档封装签名、请求参数与返回值，具体结构参考types.py支持所有requests库执行请求时支持的参数，比如timeoutQuickstartInstall usingpip:$pipinstallmbd-payExamplefrommbd_payimportClientc=Client(app_id="**",app_key="**")# 生成获取openid的链接print("openid_redirect_url:\n",c.get_openid_redirect_url(target_url="baidu.com"))print("wx jsapi:\n",c.wx_jsapi(openid="123",description="321",amount_total=100,callback_url="baidu.com"，),)print("wx h5:\n",c.wx_h5(description="321",amount_total=100))print("alipay:\n",c.alipay(url="baidu.com",description="321",amount_total=100))print("refund:\n",c.refund(order_id="123"))print("search order:\n",c.search_order(out_trade_no="123"))Referencedef_handle_req(self,req)->dict:"""`req` Model to dict, and add sign | 过滤空值、签名、构建请求体"""req=req.dict(exclude_none=True)req.update(app_id=self.app_id)req.update(sign=sign(req,self.app_key))returnreqdef_post(self,_url:str,req,**kwargs):"""build request body for POST, split out requests' kwargs:param url: url:param req: see ***Req in types.py:param kwargs: req + `requests.post`'s kwargs, e.g. timeout=5:return:"""body=self._handle_req(req)# split out requests' kwargs | 抽离出所有面包多Pay以外的参数，并传递给requests执行实际请求other_kwargs={i:kwargs[i]foriinkwargs.keys()ifinotinreq.__fields_set__}returnrequests.post(_url,json=body,**other_kwargs).json()defwx_jsapi(self,**kwargs)->WeChatJSApiRes:"""see：https://doc.mbd.pub/api/wei-xin-zhi-fu:param kwargs: WeChatJSApiReq required fieldsand optional `requests.post`'s kwargs, e.g. timeout=5:return: WeChatJSApiRes"""req=WeChatJSApiReq(**kwargs)# 用kwarg实例化一个WeChatJSApiReq对象api=f"{self.domain}/release/wx/prepay"res=self._post(api,req,**kwargs)returnWeChatJSApiRes(**res)# 用返回值实例化一个WeChatJSApiRes对象ThanksRequestsPydanticTodosWebHooksLicenseMITHell Yeah!
Package: mb-drf-article
Mb-drf-articleMb-drf-article is a simple Django Rest Framework app to add some articles.Quick start1. Add "mb-drf-article" to yourINSTALLED_APPSsettings# settings.pyINSTALLED_APPS=[...'mb-drf-article',]2. Include the articles URLconf in your projecturls.py# urls.pyurlpatterns=[# ...path('articles/',include('mb-drf-article.urls')),]3. Add the models in your DatabaseRunpython manage.py migratein your SHELL.4. Update the Django Rest Framework SettingsUpdate the Django Rest Framework settings to add a pagination.# Django Rest Framework# https://www.django-rest-framework.orgREST_FRAMEWORK={# ...'DEFAULT_PAGINATION_CLASS':('rest_framework.pagination.''LimitOffsetPagination'),'PAGE_SIZE':5}
Package: mbed-build
Mbed BuildOverviewThis package provides the core build system for Mbed OS, which relies onCMakeandNinjaas underlying technologies.The functionality covered in this package includes the following:Execution of Mbed Pre-Build stages to determine appropriate configuration for Mbed OS and the build process.Invocation of the build process for the command line tools and online build service.Export of build instructions to third party command line tools and IDEs.It is expected that this package will be used by developers of Mbed OS tooling rather than by users of Mbed OS. For
a command line interface for Mbed OS please see the packagembed-tools.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a beta release may be removed or changed without notice. Forbetareleases the version will look as
follows:<major>.<minor>.<patch>-beta.<pre-release-number>InstallationIt is recommended that a virtual environment such asPipenvis
used for all installations to avoid Python dependency conflicts.To install the most recent production quality release use:pip install mbed-buildTo install a specific release:pip install mbed-build==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.docs/- Interface definition and usage documentation.examples/- Usage examples.mbed_build/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For ways to contribute to the project, please see theContributions GuidelinesFor a technical introduction into developing this package, please see theDevelopment Guide
Package: mbed-cli
Arm Mbed CLIMbed CLI is the name of theArm Mbedcommand line tool, packaged as mbed-cli, which enables the full mbed workflow: repositories version control, maintaining dependencies, publishing code, updating from remotely hosted repositories (GitHub, GitLab and mbed.com), and invoking Arm Mbed’s own build system and export functions, among other operations.InstallationMbed CLI is a Python script, so you’ll need Python installed in order to use it. mbed CLI was tested with Python 2.7 and Python 3.6.Mbed CLI supports both Git and Mercurial repositories, so you’ll also need to install Mercurial and Git.Get StartedThe best way to get started is toread the documentation on os.mbed.com.LicenseMbed CLI is licensed under Apache-2.0
Package: mbed-cloud-sdk
Thembed-cloud-sdkgives developers access toPelion Device ManagementAPI using
Python.PrerequisitesPython 2.7.10+ / Python 3.4.3, built with SSL support.Use ofvirtual
environmentsorpipenvis recommended to manage python versions and dependencies.Installationpipinstallmbed-cloud-sdkUsageThese instructions can also be found in theofficial
documentation:Create a configuration file.envin your$HOMEor project
directory, and add your API key from the portal:MBED_CLOUD_SDK_API_KEY="your_api_key_here"Import the library and you’re ready to go.frommbed_cloud.foundationimportDevice# List the first 10 devices on your Pelion Device Management account.fordeviceinDevice().list(max_results=10):print("Hello device%s"%device.name)Documentation and examplesThe SDK guide and examples are available atGitHub.The documentation contains many examples covering various Use Cases that you may have. In each
case you can compare the python implementation with alternatives in languages
supported by the other Pelion Device Management SDKs.ContributingThe Pelion Device Management SDK for Python is open source and we would like your help; there
is a brief guide on how to get started inCONTRIBUTING.md.LicenceThe Pelion Device Management SDK for Python is free to use and is licensed under the Apache
License 2.0. SeeLICENCEfor more information.VersioningThe current version scheme used by the SDK follows PEP440:<SDK major>.<SDK minor>.<SDK patch>TroubleshootingSuggestions for issues that have been reported when using the SDK.SSL version /SSLV3_ALERT_HANDSHAKE_FAILUREurllib3.exceptions.MaxRetryError:HTTPSConnectionPool(host='api.mbedcloud.com',port=443):Maxretriesexceededwithurl:/v3/firmware-images/(CausedbySSLError(SSLError(1,u'[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)'),))This probably means the Python interpreter being used has an old version of SSL. The recommended minimum version for the SDK is1.0.2,
however security best practice is to use the latest available version of SSL, which can be found here:https://www.openssl.org.
It is recommended to upgrade/rebuild the Python interpreter with the latest available SSL library.
The SSL version currently in use by the Python interpreter can be found usingpython -c "import ssl; print(ssl.OPENSSL_VERSION)"
Package: mbed-devices
Mbed DevicesOverviewThis package allows to list Mbed OS devices which are connected to the host computer.It is expected that this package will be used by developers of Mbed OS tooling rather than by users of Mbed OS. For
a command line interface for Mbed OS please see the packagembed-tools.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a beta release may be removed or changed without notice. Forbetareleases the version will look as
follows:<major>.<minor>.<patch>-beta.<pre-release-number>InstallationIt is recommended that a virtual environment such asPipenvis
used for all installations to avoid Python dependency conflicts.To install the most recent production quality release use:pip install mbed-devicesTo install a specific release:pip install mbed-devices==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.docs/- Interface definition and usage documentation.examples/- Usage examples.mbed_devices/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For ways to contribute to the project, please see theContributions GuidelinesFor a technical introduction into developing this package, please see theDevelopment Guide
Package: mbed-os-tools
Mbed OS toolsThis repository contains the Python modules needed to work with Mbed OS. Historically, the Mbed OS tools have been delivered in separate packages and repositories. Their APIs have evolved separately over time, each with their own style and syntax. This project unifies these packages into a single intuitive API.PackagesBelow is a table showing what packages are delivered from this repository:PyPI packageSourceDepends onStable APImbed-os-tools(Documentation)src/Nombed-ls(Documentation)packages/mbed-ls/mbed-os-toolsYesmbed-host-tests(Documentation)packages/mbed-host-tests/mbed-os-toolsYesmbed-greentea(Documentation)packages/mbed-greentea/mbed-os-toolsYesAs indicated above,the APImbed-os-toolsprovides is not stable. For this reason, please continue to use the other packages.License and contributionsThe software is provided underApache-2.0 license. Contributions to this project are accepted under the same license. Please seecontributing.mdfor more info.This project contains code from other projects. The original license text is included in those source files. They must comply with ourlicense guide.
Package: mbed-project
Mbed ProjectOverviewThis package supports the creation and management of Mbed OS projects using .Common actions supported by this tooling areCreation of a new Mbed OS applications.Cloning of an existing Mbed OS project.Checkout of a specific version of Mbed OS or library.It is expected that this package will be used by developers of Mbed OS tooling rather than by users of Mbed OS. For
a command line interface for Mbed OS please see the packagembed-tools.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a beta release may be removed or changed without notice. Forbetareleases the version will look as
follows:<major>.<minor>.<patch>-beta.<pre-release-number>InstallationIt is recommended that a virtual environment such asPipenvis
used for all installations to avoid Python dependency conflicts.To install the most recent production quality release use:pip install mbed-projectTo install a specific release:pip install mbed-project==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.docs/- Interface definition and usage documentation.examples/- Usage examples.mbed_project/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For ways to contribute to the project, please see theContributions GuidelinesFor a technical introduction into developing this package, please see theDevelopment Guide
Package: mbed-targets
Mbed TargetsOverviewThis package provides an abstraction layer for boards and platforms supported by Mbed OS.It is expected that this package will be used by developers of Mbed OS tooling rather than by users of Mbed OS. For
a command line interface for Mbed OS please see the packagembed-tools.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a beta release may be removed or changed without notice. Forbetareleases the version will look as
follows:<major>.<minor>.<patch>-beta.<pre-release-number>InstallationIt is recommended that a virtual environment such asPipenvis
used for all installations to avoid Python dependency conflicts.To install the most recent production quality release use:pip install mbed-targetsTo install a specific release:pip install mbed-targets==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.ci_scripts/- Scripts for project management automation and build.docs/- Interface definition and usage documentation.examples/- Usage examples.mbed_targets/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For ways to contribute to the project, please see theContributions GuidelinesFor a technical introduction into developing this package, please see theDevelopment Guide
Package: mbed-tools
Mbed ToolsOverviewThis is thefuturecommand line tool for Mbed OS. It provides the ability to detect Mbed Enabled devices connected
by USB, checkout Mbed projects and perform builds amongst other operations.:warning: While this package is generally available it is not complete. The available functionality can be viewed with
the--helpoption once installed. Please note that the current tools for Mbed OS 5.x and above can be found athttps://github.com/ARMmbed/mbed-cli.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Pre releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a pre release may be removed or changed without notice. For pre releases the version will look as
follows:<major>.<minor>.<patch>.dev<pre-release-number>Installationmbed-toolsrelies on the Ninja build system and CMake.CMake.Install version 3.19.0 or newer for all operating systems.Ninja.Install version 1.0 or newer for all operating systems.We recommend installingmbed-toolsin a Python virtual environment to avoid dependency conflicts.To install the most recent production quality release use:pip install mbed-toolsTo install a specific release:pip install mbed-tools==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.src/mbed_tools/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For how to contribute to the project, including how to develop the project,
please see theContributions Guidelines
Package: mbed-tools-ci-scripts
Mbed Tools CI ScriptsOverviewContinuous Integration scripts used by mbed-tools projects.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a beta release may be removed or changed without notice. Forbetareleases the version will look as
follows:<major>.<minor>.<patch>-beta.<pre-release-number>InstallationIt is recommended that a virtual environment such asPipenvis
used for all installations to avoid Python dependency conflicts.To install the most recent production quality release use:pip install mbed-tools-ci-scriptsTo install a specific release:pip install mbed-tools-ci-scripts==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.docs/- Interface definition and usage documentation.examples/- Usage examples.mbed_tools_ci_scripts/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For ways to contribute to the project, please see theContributions GuidelinesFor a technical introduction into developing this package, please see theDevelopment Guide
Package: mbed-tools-lib
Mbed Tools LibraryOverviewThis package provides a library of common code shared by Mbed OS tooling packages.It is expected that this package will be used by developers of Mbed OS tooling rather than by users of Mbed OS. For
a command line interface for Mbed OS please see the packagembed-tools.ReleasesFor release notes and a history of changes of allproductionreleases, please see the following:ChangelogFor a the list of all available versions please, please see the:PyPI Release HistoryVersioningThe version scheme used followsPEP440andSemantic Versioning. For production quality releases the version will look as follows:<major>.<minor>.<patch>Beta releases are used to give early access to new functionality, for testing and to get feedback on experimental
features. As such these releases may not be stable and should not be used for production. Additionally any interfaces
introduced in a beta release may be removed or changed without notice. Forbetareleases the version will look as
follows:<major>.<minor>.<patch>-beta.<pre-release-number>InstallationIt is recommended that a virtual environment such asPipenvis
used for all installations to avoid Python dependency conflicts.To install the most recent production quality release use:pip install mbed-tools-libTo install a specific release:pip install mbed-tools-lib==<version>UsageInterface definition and usage documentation (for developers of Mbed OS tooling) is available for the most recent
production release here:GitHub PagesProject StructureThe follow described the major aspects of the project structure:azure-pipelines/- CI configuration files for Azure Pipelines.docs/- Interface definition and usage documentation.examples/- Usage examples.mbed_tools_lib/- Python source files.news/- Collection of news files for unreleased changes.tests/- Unit and integration tests.Getting HelpFor interface definition and usage documentation, please seeGitHub Pages.For a list of known issues and possible work arounds, please seeKnown Issues.To raise a defect or enhancement please useGitHub Issues.To ask a question please use theMbed Forum.ContributingMbed OS is an open source project and we are committed to fostering a welcoming community, please see ourCode of Conductfor more information.For ways to contribute to the project, please see theContributions GuidelinesFor a technical introduction into developing this package, please see theDevelopment Guide