package
stringlengths 1
122
| pacakge-description
stringlengths 0
1.3M
|
---|---|
alibabacloud-vs20181212
|
English |简体中文Alibaba Cloud vs SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_vs20181212pipinstallalibabacloud_vs20181212IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-vs20181212-py2
|
English |简体中文Alibaba Cloud vs SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_vs20181212_py2pipinstallalibabacloud_vs20181212_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20170930
|
English |简体中文Alibaba Cloud waf-openapi SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_waf_openapi20170930pipinstallalibabacloud_waf_openapi20170930IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20180117
|
English |简体中文Alibaba Cloud waf-openapi SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_waf_openapi20180117pipinstallalibabacloud_waf_openapi20180117IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20180117-py2
|
English |简体中文Alibaba Cloud waf-openapi SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_waf_openapi20180117_py2pipinstallalibabacloud_waf_openapi20180117_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20190910
|
English |简体中文Alibaba Cloud waf-openapi SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_waf_openapi20190910pipinstallalibabacloud_waf_openapi20190910IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20190910-py2
|
English | [简体中文](README-CN.md)
## Alibaba Cloud waf-openapi SDK for Python## RequirementsPython >= 2.6## InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/“pip User Guide”) to install pip.`bash # Install the alibabacloud_waf_openapi20190910_py2 pip install alibabacloud_waf_openapi20190910_py2 `## Issues[Opening an Issue](https://github.com/aliyun/alibabacloud-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.## Usage[Quick Examples](https://github.com/aliyun/alibabacloud-python2-sdk/blob/master/docs/0-Usage-EN.md#quick-examples)## ChangelogDetailed changes for each release are documented in the [release notes](./ChangeLog.md).## References[Latest Release](https://github.com/aliyun/alibabacloud-sdk/tree/master/python)## License[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20211001
|
English |简体中文Alibaba Cloud waf-openapi SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_waf_openapi20211001pipinstallalibabacloud_waf_openapi20211001IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-waf-openapi20211001-py2
|
English |简体中文Alibaba Cloud waf-openapi SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_waf_openapi20211001_py2pipinstallalibabacloud_waf_openapi20211001_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-webplus20190320
|
English |简体中文Alibaba Cloud WebPlus SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_webplus20190320pipinstallalibabacloud_webplus20190320IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-webplus20190320-py2
|
English |简体中文Alibaba Cloud WebPlus SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_webplus20190320pipinstallalibabacloud_webplus20190320IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-workorder20200326
|
English |简体中文Alibaba Cloud Workorder SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_workorder20200326pipinstallalibabacloud_workorder20200326IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-workorder20210610
|
English |简体中文Alibaba Cloud Workorder SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_workorder20210610pipinstallalibabacloud_workorder20210610IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-workorder20210610-py2
|
English |简体中文Alibaba Cloud Workorder SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_workorder20210610_py2pipinstallalibabacloud_workorder20210610_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xgippop20220520
|
English |简体中文Alibaba Cloud XgipPop SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xgippop20220520pipinstallalibabacloud_xgippop20220520IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xgippop20220520-py2
|
English |简体中文Alibaba Cloud XgipPop SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xgippop20220520_py2pipinstallalibabacloud_xgippop20220520_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xrengine20221111
|
English |简体中文Alibaba Cloud xrEngine SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xrengine20221111pipinstallalibabacloud_xrengine20221111IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xrengine20230313
|
English |简体中文Alibaba Cloud xrEngine SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xrengine20230313pipinstallalibabacloud_xrengine20230313IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xrengine20230313-py2
|
English |简体中文Alibaba Cloud xrEngine SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xrengine20230313_py2pipinstallalibabacloud_xrengine20230313_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xtrace20190808
|
English |简体中文Alibaba Cloud xtrace SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xtrace20190808pipinstallalibabacloud_xtrace20190808IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-xtrace20190808-py2
|
English |简体中文Alibaba Cloud xtrace SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_xtrace20190808_py2pipinstallalibabacloud_xtrace20190808_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yicconsole20240118
|
English |简体中文Alibaba Cloud YicConsole SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yicconsole20240118pipinstallalibabacloud_yicconsole20240118IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yicconsole20240118-py2
|
English |简体中文Alibaba Cloud YicConsole SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yicconsole20240118_py2pipinstallalibabacloud_yicconsole20240118_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-bastionhost20191209
|
English |简体中文Alibaba Cloud Yundun-bastionhost SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_bastionhost20191209pipinstallalibabacloud_yundun_bastionhost20191209IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-bastionhost20191209-py2
|
English |简体中文Alibaba Cloud Yundun-bastionhost SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_bastionhost20191209_py2pipinstallalibabacloud_yundun_bastionhost20191209_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20180320
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20180320pipinstallalibabacloud_yundun_dbaudit20180320IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20180320-py2
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20180320_py2pipinstallalibabacloud_yundun_dbaudit20180320_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20181029
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20181029pipinstallalibabacloud_yundun_dbaudit20181029IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20181029-py2
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20181029_py2pipinstallalibabacloud_yundun_dbaudit20181029_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20191209
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20191209pipinstallalibabacloud_yundun_dbaudit20191209IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20191209-py2
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20191209_py2pipinstallalibabacloud_yundun_dbaudit20191209_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20210416
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20210416pipinstallalibabacloud_yundun_dbaudit20210416IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yundun-dbaudit20210416-py2
|
English |简体中文Alibaba Cloud Yundun-dbaudit SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yundun_dbaudit20210416_py2pipinstallalibabacloud_yundun_dbaudit20210416_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yunjian20211217
|
English |简体中文Alibaba Cloud yunjian SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yunjian20211217pipinstallalibabacloud_yunjian20211217IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yuqing20210126
|
English |简体中文Alibaba Cloud Yuqing SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yuqing20210126pipinstallalibabacloud_yuqing20210126IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yuqing20210126-py2
|
English |简体中文Alibaba Cloud Yuqing SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yuqing20210126_py2pipinstallalibabacloud_yuqing20210126_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yuqing20220301
|
English |简体中文Alibaba Cloud Yuqing SDK for PythonRequirementsPython >= 3.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yuqing20220301pipinstallalibabacloud_yuqing20220301IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibabacloud-yuqing20220301-py2
|
English |简体中文Alibaba Cloud Yuqing SDK for PythonRequirementsPython >= 2.6InstallationInstall with pipPython SDK uses a common package management tool namedpip. If pip is not installed, see thepip user guideto install pip.# Install the alibabacloud_yuqing20220301_py2pipinstallalibabacloud_yuqing20220301_py2IssuesOpening an Issue, Issues not conforming to the guidelines may be closed immediately.UsageQuick ExamplesChangelogDetailed changes for each release are documented in therelease notes.ReferencesLatest ReleaseLicenseApache-2.0Copyright (c) 2009-present, Alibaba Cloud All rights reserved.
|
alibaba-itag-sdk
|
iTAG内部用的SDK
|
alibaba-pai
|
Alibaba PAI Python SDKAliPAI Python SDK is provided by PAI team of Alibaba computing platform. It provides convenience for users to accessPAI service in Alibaba Cloud.In current, PAI SDK supports PAIFlow(ML Pipeline Service of PAI) service, other PAI services, such as EAS(Elastic Algorithm Service) and Blade will be included soon.InstallationTo install the PAI sdk, use the below command in terminal.python-mpipinstallalipaiUsageSetup default PAI sessionBefore use PAI service via SDK, developer should initialize the default PAI session by providing credential and region_id of service.Pipeline service of PAI is currently provided incn-shanghairegion only.frompai.core.sessionimportsetup_default_sessionsession=setup_default_session(access_key_id="your_access_key",access_key_secret="your_access_secret",region_id="your_region_id")Access Pipeline ServiceUse PipelineTemplatePipelineTemplate instance includes the definition of "Workflow" use in PAI pipeline service. It could be fetched from remote PAI service or constructed from local Pipeline/Component.Saved pipeline template has uniquepipeline_idwhich is generated by pipeline service. Remote pipeline template could be fetched using identifier-provider-version or pipeline_id.PAI provides a list of public pipeline templates which could be used as workflow template to run or to build pipeline. These templates are accessible by the specific providerpai.common.ProviderAlibabaPAIinPipelineTemplate.list.frompai.pipelineimportPipelineTemplatefrompai.commonimportProviderAlibabaPAI# search PipelineTemplate which provide by `PAI` and include `xflow` in identifier.template=next(PipelineTemplate.list(identifie="xflow",provider=ProviderAlibabaPAI))# view template inputs/outputs.templatetemplate.inputstemplate.outputsAfter submitting run job, users are able to inspect the detailed workflow DAG, execution log and outputs of the pipeline by visiting the job detail URL printed in console.frompai.commonimportProviderAlibabaPAIfrompai.pipelineimportPipelineTemplate# Get specific template by Identifier-Provider-Versiontemplate=PipelineTemplate.get_by_identifier(identifier="split-xflow-maxCompute",provider=ProviderAlibabaPAI,version="v1")xflow_execution={"odpsInfoFile":"/share/base/odpsInfo.ini","endpoint":"http://service.cn-shanghai.maxcompute.aliyun.com/api","logViewHost":"http://logview.odps.aliyun.com","odpsProject":"your_odps_project",}# run pipeline use provide arguments.job=template.run(job_name="demo-split-job",arguments={"inputArtifact":"odps://pai_online_project/tables/mnist_data","execution":xflow_execution,"fraction":0.7},wait=True)job.get_outputs()Build runnable and reusable pipelinePAI Pipeline Service supports nested user-defined workflow. Composite pipeline is runnable by providing required arguments. Saved pipeline template could be used as a step to build a new pipeline.defcreate_composite_pipeline():# Definite the inputs parameters in pipelineexecution_input=PipelineParameter(name="execution",typ=dict)cols_to_double_input=PipelineParameter(name="cols_to_double")table_input=PipelineArtifact(name="data_source",metadata=ArtifactMetadata(data_type=ArtifactDataType.DataSet,location_type=ArtifactLocationType.MaxComputeTable))# Pipeline step from remote PAI service.type_transform_step=PipelineStep(identifier="type-transform-xflow-maxCompute",provider=ProviderAlibabaPAI,version="v1",name="typeTransform",inputs={"inputArtifact":table_input,"execution":execution_input,"outputTable":gen_temp_table(),"cols_to_double":cols_to_double_input,})split_template=PipelineTemplate.get_by_identifier(identifier="split-xflow-maxCompute",provider=ProviderAlibabaPAI,version="v1")split_step=split_template.as_step(inputs={"inputArtifact":type_transform_step.outputs[0],"execution":execution_input,"output1TableName":gen_temp_table(),"fraction":0.5,"output2TableName":gen_temp_table(),})# Initialize the pipeline instance by specific the steps and outputs.p=Pipeline(steps=[split_step],outputs=split_step.outputs[:2],)returnpp=create_composite_pipeline()# Run pipeline with required arguments.pipeline_run=p.run(job_name="demo-composite-pipeline-run",arguments={"execution":xflow_execution,"cols_to_double":"time,hour,pm2,pm10,so2,co,no2","data_source":"odps://pai_online_project/tables/wumai_data",},wait=True)# Save Pipelinep.save(identifier="demo-composite-pipeline",version="v1")
|
alibaba-python-sdk
|
UNKNOWN
|
alibaba-sms
|
Alibaba SMS 阿里云短信发送 SDK官方 SDK 过于庞大,如果仅仅是为了发送短信,宁愿自己实现一个。项目特色多次发送复用底层连接。轻量级,只包含短信发送必要代码。适度封装,使用简单,但是可通过参数改变默认行为。快速上手安装pipinstallalibaba-sms使用fromalibaba_smsimportAliSMSclient=AliSMS("access_key_id","access_key_secret")client.send("phone_number","code","sign_name","template_code")更多参数参考源码中的文档和注释。许可证Alibaba SMS 项目基于MIT 许可证发布.
|
alibaba-suanfa
|
algorithm==================`Tornado <http://www.tornadoweb.org>`_ is a Python web framework andasynchronous networking library, originally developed at `FriendFeed<http://friendfeed.com>`_. By using non-blocking network I/O, Tornadocan scale to tens of thousands of open connections, making it ideal for`long polling <http://en.wikipedia.org/wiki/Push_technology#Long_Polling>`_,`WebSockets <http://en.wikipedia.org/wiki/WebSocket>`_, and otherapplications that require a long-lived connection to each user.Hello, world------------This example does not use any of algorithm's asynchronous features; forthat see this `simple chat roomhttps://github.com/lxgithub24/leetcode.git`_.Documentation-------------Documentation and links to additional resources are available athttps://github.com/lxgithub24/leetcode.git
|
alibaby-toolkit
|
alibaby-toolkitTable of ContentsInstallationLicenseInstallationpip install alibaby-toolkitLicensealibaby-toolkitis distributed under the terms of theMITlicense.
|
alibaidhani
|
This is a very simple calculator that takes two numbers and either add, subtract, multiply or divide them.Change Log0.0.1 (19/04/2020)First Release
|
alibi
|
Alibiis an Python library aimed at machine learning model inspection and interpretation.
The focus of the library is to provide high-quality implementations of black-box, white-box, local and global
explanation methods for classification and regression models.DocumentationIf you're interested in outlier detection, concept drift or adversarial instance detection, check out our sister projectalibi-detect.Anchor explanations for imagesIntegrated Gradients for textCounterfactual examplesAccumulated Local EffectsTable of ContentsInstallation and UsageSupported MethodsModel ExplanationsModel ConfidencePrototypesReferences and ExamplesCitationsInstallation and UsageAlibi can be installed from:PyPI or GitHub source (withpip)Anaconda (withconda/mamba)With pipAlibi can be installed fromPyPI:pipinstallalibiAlternatively, the development version can be installed:pipinstallgit+https://github.com/SeldonIO/alibi.gitTo take advantage of distributed computation of explanations, installalibiwithray:pipinstallalibi[ray]For SHAP support, installalibias follows:pipinstallalibi[shap]With condaTo install fromconda-forgeit is recommended to usemamba,
which can be installed to thebaseconda enviroment with:condainstallmamba-nbase-cconda-forgeFor the standard Alibi install:mambainstall-cconda-forgealibiFor distributed computing support:mambainstall-cconda-forgealibirayFor SHAP support:mambainstall-cconda-forgealibishapUsageThe alibi explanation API takes inspiration fromscikit-learn, consisting of distinct initialize,
fit and explain steps. We will use theAnchorTabularexplainer to illustrate the API:fromalibi.explainersimportAnchorTabular# initialize and fit explainer by passing a prediction function and any other required argumentsexplainer=AnchorTabular(predict_fn,feature_names=feature_names,category_map=category_map)explainer.fit(X_train)# explain an instanceexplanation=explainer.explain(x)The explanation returned is anExplanationobject with attributesmetaanddata.metais a dictionary
containing the explainer metadata and any hyperparameters anddatais a dictionary containing everything
related to the computed explanation. For example, for the Anchor algorithm the explanation can be accessed
viaexplanation.data['anchor'](orexplanation.anchor). The exact details of available fields varies
from method to method so we encourage the reader to become familiar with thetypes of methods supported.Supported MethodsThe following tables summarize the possible use cases for each method.Model ExplanationsMethodModelsExplanationsClassificationRegressionTabularTextImagesCategorical featuresTrain set requiredDistributedALEBBglobal✔✔✔Partial DependenceBB WBglobal✔✔✔✔PD VarianceBB WBglobal✔✔✔✔Permutation ImportanceBBglobal✔✔✔✔AnchorsBBlocal✔✔✔✔✔For TabularCEMBB* TF/Keraslocal✔✔✔OptionalCounterfactualsBB* TF/Keraslocal✔✔✔NoPrototype CounterfactualsBB* TF/Keraslocal✔✔✔✔OptionalCounterfactuals with RLBBlocal✔✔✔✔✔Integrated GradientsTF/Keraslocal✔✔✔✔✔✔OptionalKernel SHAPBBlocalglobal✔✔✔✔✔✔Tree SHAPWBlocalglobal✔✔✔✔OptionalSimilarity explanationsWBlocal✔✔✔✔✔✔✔Model ConfidenceThese algorithms provideinstance-specificscores measuring the model confidence for making a
particular prediction.MethodModelsClassificationRegressionTabularTextImagesCategorical FeaturesTrain set requiredTrust ScoresBB✔✔✔(1)✔(2)YesLinearity MeasureBB✔✔✔✔OptionalKey:BB- black-box (only require a prediction function)BB*- black-box but assume model is differentiableWB- requires white-box model access. There may be limitations on models supportedTF/Keras- TensorFlow models via the Keras APILocal- instance specific explanation, why was this prediction made?Global- explains the model with respect to a set of instances(1)- depending on model(2)- may require dimensionality reductionPrototypesThese algorithms provide adistilledview of the dataset and help construct a 1-KNNinterpretableclassifier.MethodClassificationRegressionTabularTextImagesCategorical FeaturesTrain set labelsProtoSelect✔✔✔✔✔OptionalReferences and ExamplesAccumulated Local Effects (ALE,Apley and Zhu, 2016)DocumentationExamples:California housing dataset,Iris datasetPartial Dependence (J.H. Friedman, 2001)DocumentationExamples:Bike rentalPartial Dependence Variance(Greenwell et al., 2018)DocumentationExamples:Friedman’s regression problemPermutation Importance(Breiman, 2001;Fisher et al., 2018)DocumentationExamples:Who's Going to Leave Next?Anchor explanations (Ribeiro et al., 2018)DocumentationExamples:income prediction,Iris dataset,movie sentiment classification,ImageNet,fashion MNISTContrastive Explanation Method (CEM,Dhurandhar et al., 2018)DocumentationExamples:MNIST,Iris datasetCounterfactual Explanations (extension ofWachter et al., 2017)DocumentationExamples:MNISTCounterfactual Explanations Guided by Prototypes (Van Looveren and Klaise, 2019)DocumentationExamples:MNIST,California housing dataset,Adult income (one-hot),Adult income (ordinal)Model-agnostic Counterfactual Explanations via RL(Samoilescu et al., 2021)DocumentationExamples:MNIST,Adult incomeIntegrated Gradients (Sundararajan et al., 2017)Documentation,Examples:MNIST example,Imagenet example,IMDB example.Kernel Shapley Additive Explanations (Lundberg et al., 2017)DocumentationExamples:SVM with continuous data,multinomial logistic regression with continous data,handling categorical variablesTree Shapley Additive Explanations (Lundberg et al., 2020)DocumentationExamples:Interventional (adult income, xgboost),Path-dependent (adult income, xgboost)Trust Scores (Jiang et al., 2018)DocumentationExamples:MNIST,Iris datasetLinearity MeasureDocumentationExamples:Iris dataset,fashion MNISTProtoSelectDocumentationExamples:Adult Census & CIFAR10Similarity explanationsDocumentationExamples:20 news groups dataset,ImageNet dataset,MNIST datasetCitationsIf you use alibi in your research, please consider citing it.BibTeX entry:@article{JMLR:v22:21-0017,
author = {Janis Klaise and Arnaud Van Looveren and Giovanni Vacanti and Alexandru Coca},
title = {Alibi Explain: Algorithms for Explaining Machine Learning Models},
journal = {Journal of Machine Learning Research},
year = {2021},
volume = {22},
number = {181},
pages = {1-7},
url = {http://jmlr.org/papers/v22/21-0017.html}
}
|
alibi-detect
|
Alibi Detectis an Python library focused onoutlier,adversarialanddriftdetection. The package aims to cover both online and offline detectors for tabular data, text, images and time series. BothTensorFlowandPyTorchbackends are supported for drift detection.DocumentationFor more background on the importance of monitoring outliers and distributions in a production setting, check outthis talkfrom theChallenges in Deploying and Monitoring Machine Learning SystemsICML 2020 workshop, based on the paperMonitoring and explainability of models in productionand referencing Alibi Detect.For a thorough introduction to drift detection, check outProtecting Your Machine Learning Against Drift: An Introduction. The talk covers what drift is and why it pays to detect it, the different types of drift, how it can be detected in a principled manner and also describes the anatomy of a drift detector.Table of ContentsInstallation and UsageWith pipWith condaUsageSupported AlgorithmsOutlier DetectionAdversarial DetectionDrift DetectionTensorFlow and PyTorch supportBuilt-in preprocessing stepsReference ListOutlier DetectionAdversarial DetectionDrift DetectionDatasetsSequential Data and Time SeriesImagesTabularModelsIntegrationsCitationsInstallation and UsageThe package,alibi-detectcan be installed from:PyPI or GitHub source (withpip)Anaconda (withconda/mamba)With pipalibi-detect can be installed fromPyPI:pipinstallalibi-detectAlternatively, the development version can be installed:pipinstallgit+https://github.com/SeldonIO/alibi-detect.gitTo install with the TensorFlow backend:pipinstallalibi-detect[tensorflow]To install with the PyTorch backend:pipinstallalibi-detect[torch]To install with the KeOps backend:pipinstallalibi-detect[keops]To use theProphettime series outlier detector:pipinstallalibi-detect[prophet]With condaTo install fromconda-forgeit is recommended to usemamba,
which can be installed to thebaseconda enviroment with:condainstallmamba-nbase-cconda-forgeTo install alibi-detect:mambainstall-cconda-forgealibi-detectUsageWe will use theVAE outlier detectorto illustrate the API.fromalibi_detect.odimportOutlierVAEfromalibi_detect.savingimportsave_detector,load_detector# initialize and fit detectorod=OutlierVAE(threshold=0.1,encoder_net=encoder_net,decoder_net=decoder_net,latent_dim=1024)od.fit(x_train)# make predictionspreds=od.predict(x_test)# save and load detectorsfilepath='./my_detector/'save_detector(od,filepath)od=load_detector(filepath)The predictions are returned in a dictionary with as keysmetaanddata.metacontains the detector's metadata whiledatais in itself a dictionary with the actual predictions. It contains the outlier, adversarial or drift scores and thresholds as well as the predictions whether instances are e.g. outliers or not. The exact details can vary slightly from method to method, so we encourage the reader to become familiar with thetypes of algorithms supported.Supported AlgorithmsThe following tables show the advised use cases for each algorithm. The columnFeature Levelindicates whether the detection can be done at the feature level, e.g. per pixel for an image. Check thealgorithm reference listfor more information with links to the documentation and original papers as well as examples for each of the detectors.Outlier DetectionDetectorTabularImageTime SeriesTextCategorical FeaturesOnlineFeature LevelIsolation Forest✔✔Mahalanobis Distance✔✔✔AE✔✔✔VAE✔✔✔AEGMM✔✔VAEGMM✔✔Likelihood Ratios✔✔✔✔✔Prophet✔Spectral Residual✔✔✔Seq2Seq✔✔Adversarial DetectionDetectorTabularImageTime SeriesTextCategorical FeaturesOnlineFeature LevelAdversarial AE✔✔Model distillation✔✔✔✔✔Drift DetectionDetectorTabularImageTime SeriesTextCategorical FeaturesOnlineFeature LevelKolmogorov-Smirnov✔✔✔✔✔Cramér-von Mises✔✔✔✔Fisher's Exact Test✔✔✔✔Maximum Mean Discrepancy (MMD)✔✔✔✔✔Learned Kernel MMD✔✔✔✔Context-aware MMD✔✔✔✔✔Least-Squares Density Difference✔✔✔✔✔Chi-Squared✔✔✔Mixed-type tabular data✔✔✔Classifier✔✔✔✔✔Spot-the-diff✔✔✔✔✔✔Classifier Uncertainty✔✔✔✔✔Regressor Uncertainty✔✔✔✔✔TensorFlow and PyTorch supportThe drift detectors support TensorFlow, PyTorch and (where applicable)KeOpsbackends.
However, Alibi Detect does not install these by default. See theinstallation optionsfor more details.fromalibi_detect.cdimportMMDDriftcd=MMDDrift(x_ref,backend='tensorflow',p_val=.05)preds=cd.predict(x)The same detector in PyTorch:cd=MMDDrift(x_ref,backend='pytorch',p_val=.05)preds=cd.predict(x)Or in KeOps:cd=MMDDrift(x_ref,backend='keops',p_val=.05)preds=cd.predict(x)Built-in preprocessing stepsAlibi Detect also comes with various preprocessing steps such as randomly initialized encoders, pretrained text
embeddings to detect drift on using thetransformerslibrary and
extraction of hidden layers from machine learning models. This allows to detect different types of drift such ascovariate and predicted distribution shift. The preprocessing steps are again supported in TensorFlow and PyTorch.fromalibi_detect.cd.tensorflowimportHiddenOutput,preprocess_driftmodel=# TensorFlow model; tf.keras.Model or tf.keras.Sequentialpreprocess_fn=partial(preprocess_drift,model=HiddenOutput(model,layer=-1),batch_size=128)cd=MMDDrift(x_ref,backend='tensorflow',p_val=.05,preprocess_fn=preprocess_fn)preds=cd.predict(x)Check the example notebooks (e.g.CIFAR10,movie reviews) for more details.Reference ListOutlier DetectionIsolation Forest(FT Liu et al., 2008)Example:Network IntrusionMahalanobis Distance(Mahalanobis, 1936)Example:Network IntrusionAuto-Encoder (AE)Example:CIFAR10Variational Auto-Encoder (VAE)(Kingma et al., 2013)Examples:Network Intrusion,CIFAR10Auto-Encoding Gaussian Mixture Model (AEGMM)(Zong et al., 2018)Example:Network IntrusionVariational Auto-Encoding Gaussian Mixture Model (VAEGMM)Example:Network IntrusionLikelihood Ratios(Ren et al., 2019)Examples:Genome,Fashion-MNIST vs. MNISTProphet Time Series Outlier Detector(Taylor et al., 2018)Example:Weather ForecastSpectral Residual Time Series Outlier Detector(Ren et al., 2019)Example:Synthetic DatasetSequence-to-Sequence (Seq2Seq) Outlier Detector(Sutskever et al., 2014;Park et al., 2017)Examples:ECG,Synthetic DatasetAdversarial DetectionAdversarial Auto-Encoder(Vacanti and Van Looveren, 2020)Example:CIFAR10Model distillationExample:CIFAR10Drift DetectionKolmogorov-SmirnovExample:CIFAR10,molecular graphs,movie reviewsCramér-von MisesExample:PenguinsFisher's Exact TestExample:PenguinsLeast-Squares Density Difference(Bu et al, 2016)Maximum Mean Discrepancy(Gretton et al, 2012)Example:CIFAR10,molecular graphs,movie reviews,Amazon reviewsLearned Kernel MMD(Liu et al, 2020)Example:CIFAR10Context-aware MMD(Cobb and Van Looveren, 2022)Example:ECG,news topicsChi-SquaredExample:Income PredictionMixed-type tabular dataExample:Income PredictionClassifier(Lopez-Paz and Oquab, 2017)Example:CIFAR10,Amazon reviewsSpot-the-diff(adaptation ofJitkrittum et al, 2016)ExampleMNIST and Wine qualityClassifier and Regressor UncertaintyExample:CIFAR10 and Wine,molecular graphsOnline Maximum Mean DiscrepancyExample:Wine Quality,Camelyon medical imagingOnline Least-Squares Density Difference(Bu et al, 2017)Example:Wine QualityDatasetsThe package also contains functionality inalibi_detect.datasetsto easily fetch a number of datasets for different modalities. For each dataset either the data and labels or aBunchobject with the data, labels and optional metadata are returned. Example:fromalibi_detect.datasetsimportfetch_ecg(X_train,y_train),(X_test,y_test)=fetch_ecg(return_X_y=True)Sequential Data and Time SeriesGenome Dataset:fetch_genomeBacteria genomics dataset for out-of-distribution detection, released as part ofLikelihood Ratios for Out-of-Distribution Detection. From the originalTL;DR:The dataset contains genomic sequences of 250 base pairs from 10 in-distribution bacteria classes for training, 60 OOD bacteria classes for validation, and another 60 different OOD bacteria classes for test. There are respectively 1, 7 and again 7 million sequences in the training, validation and test sets. For detailed info on the dataset check theREADME.fromalibi_detect.datasetsimportfetch_genome(X_train,y_train),(X_val,y_val),(X_test,y_test)=fetch_genome(return_X_y=True)ECG 5000:fetch_ecg5000 ECG's, originally obtained fromPhysionet.NAB:fetch_nabAny univariate time series in a DataFrame from theNumenta Anomaly Benchmark. A list with the available time series can be retrieved usingalibi_detect.datasets.get_list_nab().ImagesCIFAR-10-C:fetch_cifar10cCIFAR-10-C (Hendrycks & Dietterich, 2019) contains the test set of CIFAR-10, but corrupted and perturbed by various types of noise, blur, brightness etc. at different levels of severity, leading to a gradual decline in a classification model's performance trained on CIFAR-10.fetch_cifar10callows you to pick any severity level or corruption type. The list with available corruption types can be retrieved withalibi_detect.datasets.corruption_types_cifar10c(). The dataset can be used in research on robustness and drift. The original data can be foundhere. Example:fromalibi_detect.datasetsimportfetch_cifar10ccorruption=['gaussian_noise','motion_blur','brightness','pixelate']X,y=fetch_cifar10c(corruption=corruption,severity=5,return_X_y=True)Adversarial CIFAR-10:fetch_attackLoad adversarial instances on a ResNet-56 classifier trained on CIFAR-10. Available attacks:Carlini-Wagner('cw') andSLIDE('slide'). Example:fromalibi_detect.datasetsimportfetch_attack(X_train,y_train),(X_test,y_test)=fetch_attack('cifar10','resnet56','cw',return_X_y=True)TabularKDD Cup '99:fetch_kddDataset with different types of computer network intrusions.fetch_kddallows you to select a subset of network intrusions as targets or pick only specified features. The original data can be foundhere.ModelsModels and/or building blocks that can be useful outside of outlier, adversarial or drift detection can be found underalibi_detect.models. Main implementations:PixelCNN++:alibi_detect.models.pixelcnn.PixelCNNVariational Autoencoder:alibi_detect.models.autoencoder.VAESequence-to-sequence model:alibi_detect.models.autoencoder.Seq2SeqResNet:alibi_detect.models.resnetPre-trained ResNet-20/32/44 models on CIFAR-10 can be found on ourGoogle Cloud Bucketand can be fetched as follows:fromalibi_detect.utils.fetchingimportfetch_tf_modelmodel=fetch_tf_model('cifar10','resnet32')IntegrationsAlibi-detect is integrated in the machine learning model deployment platformSeldon Coreand model serving frameworkKFServing.Seldon Core:outlieranddriftdetection worked examples.KFServing:outlieranddriftdetection examples.CitationsIf you use alibi-detect in your research, please consider citing it.BibTeX entry:@software{alibi-detect,
title = {Alibi Detect: Algorithms for outlier, adversarial and drift detection},
author = {Van Looveren, Arnaud and Klaise, Janis and Vacanti, Giovanni and Cobb, Oliver and Scillitoe, Ashley and Samoilescu, Robert and Athorne, Alex},
url = {https://github.com/SeldonIO/alibi-detect},
version = {0.11.5},
date = {2024-01-22},
year = {2019}
}
|
alib-py
|
alib-pyalib.cachePackage cache contains a Python clone ofgo-cache
|
alibuild
|
aliBuildA simple build tool for ALICE experiment software and its externals. Recipes
for the externals and ALICE software are stored inalidist.Instant gratification with:pip install alibuild
git clone https://github.com/alisw/alidist.git
aliBuild build AliRoot
alienv enter AliRoot/latest
aliroot -bFull documentation at:https://alisw.github.io/alibuildPre-requisitesIf you are using aliBuild directly from git clone, you should make sure
you havepyyamlandargparsein your python distribution.
|
aliby
|
ALIBY (Analyser of Live-cell Imaging for Budding Yeast)End-to-end processing of cell microscopy time-lapses. ALIBY automates segmentation, tracking, lineage predictions, post-processing and report production. It leverages the existing Python ecosystem and open-source scientific software available to produce seamless and standardised pipelines.Quickstart DocumentationInstallation ofVS StudioNative MacOS support for is under work, but you can use containers (e.g., Docker, Podman) in the meantime.To analyse local datapipinstallalibyAdd any of the optional flagsomeroandutils(e.g.,pip install aliby[omero, utils]).omeroprovides tools to connect with an OMERO server andutilsprovides visualisation, user interface and additional deep learning tools.See ourinstallation instructionsfor more details.CLIIf installed via poetry, you have access to a Command Line Interface (CLI)aliby-run--expt_idEXPT_PATH--distributed4--tpsNoneAnd to run Omero servers, the basic arguments are shown:aliby-run--expt_idXXX--hostSERVER.ADDRESS--userUSER--passwordPASSWORDThe output is a folder with the original logfiles and a set of hdf5 files, one with the results of each multidimensional inside.For more information, including available options, see the page onrunning the analysis pipelineUsing specific componentsAccess raw dataALIBY's tooling can also be used as an interface to OMERO servers, for example, to fetch a brightfield channel.fromaliby.io.omeroimportDataset,Imageserver_info={"host":"host_address","username":"user","password":"xxxxxx"}expt_id=XXXXtps=[0,1]# Subset of positions to get.withDataset(expt_id,**server_info)asconn:image_ids=conn.get_images()#To get the first positionwithImage(list(image_ids.values())[0],**server_info)asimage:dimg=image.dataimgs=dimg[tps,image.metadata["channels"].index("Brightfield"),2,...].compute()# tps timepoints, Brightfield channel, z=2, all x,yTiling the raw dataATilerobject performs trap registration. It may be built in different ways but the simplest one is using an image and a the default parameters set.fromaliby.tile.tilerimportTiler,TilerParameterswithImage(list(image_ids.values())[0],**server_info)asimage:tiler=Tiler.from_image(image,TilerParameters.default())tiler.run_tp(0)The initialisation should take a few seconds, as it needs to align the images
in time.It fetches the metadata from the Image object, and uses the TilerParameters values (all Processes in aliby depend on an associated Parameters class, which is in essence a dictionary turned into a class.)Get a timelapse for a given tile (remote connection)fpath="h5/location"tile_id=9trange=range(0,10)ncols=8riv=remoteImageViewer(fpath)trap_tps=[riv.tiler.get_tiles_timepoint(tile_id,t)fortintrange]# You can also access labelled trapsm_ts=riv.get_labelled_trap(tile_id=0,tps=[0])# And plot them directlyriv.plot_labelled_trap(trap_id=0,channels=[0,1,2,3],trange=range(10))Depending on the network speed can take several seconds at the moment.
For a speed-up: take fewer z-positions if you can.Get the tiles for a given time pointAlternatively, if you want to get all the traps at a given timepoint:timepoint=(4,6)tiler.get_tiles_timepoint(timepoint,channels=None,z=[0,1,2,3,4])ContributingSeeCONTRIBUTINGon how to help out or get involved.
|
aliby-agora
|
AgoraShared tools for data processing within the aliby pipeline.InstallationIf you just want to use the tools.>pipinstallaliby-argoOr, for development, clone this repository and then install using pip:>pipinstall-eargo/
|
aliby-baby
|
BabyBirth Annotation for Budding YeastNeural network code for segmenting buds from brightfield stacks.InstallationBABY requires Python 3 andTensorFlow. For some
versions of TensorFlow, you specifically need Python 3.6.In any case, it is recommended that you install the package into a virtual
environment (i.e.,conda createif you are using Anaconda, orpython3 -m venvotherwise).By default, BABY will trigger installation of the latest version of
TensorFlow. Our experience, however, is that performance is best with
TensorFlow version 1.14. If you want to use this version, first install that
in your virtual environment by running:>pipinstalltensorflow==1.14NB:To make use of a GPU you should also follow theset up
instructionsfor
installingtensorflow-gpu.Install BABY by first obtaining this repository (e.g.,git clone https://git.ecdf.ed.ac.uk/jpietsch/baby.git), and then using pip:>pipinstallbaby/NB: If you are upgrading, then you may instead need to run:pip install -U baby/.Developers:You may prefer to install an editable version:>pipinstall-ebaby/Run using the Python APICreate a newBabyBrainwith one of the model sets. Thebraincontains
all the models and parameters for segmenting and tracking cells.>>>frombabyimportBabyBrain,BabyCrawler,modelsets>>>modelset=modelsets()['evolve_brightfield_60x_5z']>>>brain=BabyBrain(**modelset)For each time course you want to process, instantiate a newBabyCrawler. The
crawler keeps track of cells between time steps.>>>crawler=BabyCrawler(brain)Load an image time series (from thetestssubdirectory in this example). The
image should have shape (x, y, z).>>>frombaby.ioimportload_tiled_image>>>image_series=[load_tiled_image(...'tests/images/evolve_testG_tp{:d}_Brightfield.png'.format(t))...fortinrange(1,6)]Send images to the crawler in time-order (here a batch of size 1). We
additionally request that outlines are optimised to edge predictions, and that
lineage assignments, binary edge-masks and volume estimates (using the conical
method) should be output at each time point.>>>segmented_series=[crawler.step(...img[None,...],refine_outlines=True,assign_mothers=True,...with_edgemasks=True,with_volumes=True)...forimg,_inimage_series]Finally, save the segmentation outlines, labels, volumes and lineage assignments
as an annotated tiled png:>>>frombaby.ioimportsave_tiled_image>>>fort,sinenumerate(segmented_series):...save_tiled_image(255*s[0]['edgemasks'].astype('uint8').transpose((1,2,0)),...'../segout_tp{:d}.png'.format(t+1),...{k:s[0][k]forkin('cell_label','mother_assign','volumes')})Run via a serverOnce installed, you should be able to start a server to accept segmentation
requests using:>baby-phoneor on windows:> baby-phone.exeServer runs by default onhttp://0.0.0.0:5101. HTTP requests need to be
sent to the correct URL endpoint, but the HTTP API is currently undocumented.
The primary client implementation is in Matlab.Jupyter notebooksTraining scripts are saved in Jupyter notebooks in thenotebooksfolder. To
maintain the repository in a clean state, it's probably best to copy these to
another directory for routine use. If you want to share a notebook, you can
then specifically add it back to the repository at a useful checkpoint.On how to retrain dataAs of mid-2022 we aim to transition to tensorflow 2 (and then to pytorch). This means re-training all networks. We first fetch our data from skye and regenerate the train-val-test pair sets using TrainValTestPairs:frompathlibimportPathfrombaby.ioimportTrainValTestPairstraining_data_path=Path("/home/alan/Documents/dev/training/training-images/")tvt=TrainValTestPairs()tvt.add_from(training_data_path/"traps-prime95b-60x")<!--tvt.add_from(training_data_path/"traps-evolve-60x")-->
|
aliby-extraction
|
No description available on PyPI.
|
aliby-parser
|
No description available on PyPI.
|
aliby-post
|
No description available on PyPI.
|
alicat
|
alicatTCP/Serial driver and command line tool forAlicat mass flow controllers.If you are using Analyt-MTC flow controllers, go tothis repositoryfor more info.Example ConnectionsTypeUsageThe standardDB9 cableconnected directly to a computer (unix:/dev/ttyS0, windows:COM1).Good with older computers that still have the connector.The cable connected to a computer through aUSB converter(unix:/dev/ttyUSB0, windows:COM1).Good for newer computers and maker boards such as Raspberry Pis.Multiple cables connected to one port via asplitterand Alicat's addressing (A-Z).Good when number of ports is limited.Cables routed through aTCP device server(192.168.1.100:23).Installationpip install alicatUsageCommand LineFor basic tasks, this driver includes a command-line interface. Read the help
for more.alicat --helpPythonThis uses Python ≥3.5's async/await syntax to asynchronously communicate with an Alicat. For example:importasynciofromalicatimportFlowControllerasyncdefget():asyncwithFlowController('ip-address:port')asflow_controller:print(awaitflow_controller.get())asyncio.run(get())If the flow controller is communicating on the specified port, this should
return a dictionary of the form:{'setpoint':0.0,# Setpoint, either mass flow rate or pressure'control_point':'flow',# Either 'flow' or 'pressure''gas':'Air',# Can be any option in `flow_controller.gases`'mass_flow':0.0,# Mass flow (in units specified at time of purchase)'pressure':25.46,# Pressure (normally in psia)'temperature':23.62,# Temperature (normally in C)'total_flow':0.0,# Optional. If totalizer function purchased, will be included'volumetric_flow':0.0# Volumetric flow (in units specified at time of purchase)}On flow controllers, you can set the flow or pressure setpoints.awaitflow_controller.set_flow_rate(1.0)awaitflow_controller.set_pressure(20)Gas TypeYou can set the gas type by name or by index. For more on setting by index, see the gas table in your Alicat's manual.awaitflow_controller.set_gas('N2')awaitflow_controller.set_gas(8)For firmware 5v and greater, you can create and set gas mixes. Mixes can contain up to five gases and are stored in gas indices 236-255.awaitflow_controller.create_mix(mix_no=236,name="Mix1",gases={'N2':50,'O2':30,'CO2':20})awaitflow_controller.set_gas(236)awaitflow_controller.delete_mix(236)PID ParametersFor flow controllers, read and write PID loop settings for device tuning.awaitflow_controller.set_pid(p=4000,i=4000,d=10,loop_type='PD2I')print(awaitflow_controller.get_pid()){'loop_type':'PD2I','P':'4000','I':'4000','D':'10',}Other FeaturesAdditional features include override commands to increase device functionality.awaitflow_controller.lock()# Lock the front display.awaitflow_controller.unlock()# Unlock the front display.awaitflow_controller.hold()# Hold the valve in its current position.awaitflow_controller.cancel_hold()# Cancel the valve hold.awaitflow_controller.tare_volumetric()# Tare volumetric flow.awaitflow_controller.tare_pressure()# Tare pressure.awaitflow_controller.reset_totalizer()# Reset totalizer, if totalizer functionality included.AddressingYou can have multiple controllers on the same port by using Alicat'sA-Zaddresses
and anRS-232 splitter.flow_controller_1=FlowController(address='A')flow_controller_2=FlowController(address='B')awaitflow_controller_1.set_flow_rate(1.0)awaitflow_controller_2.set_flow_rate(0.5)awaitflow_controller_1.close()# /dev/ttyUSB0 is still open!awaitflow_controller_2.close()Breaking changes0.5.0Support onlyasyncio. The last version with synchronous code was0.4.1.Renameaddress/-atounit/-uto match Alicat's documentationRename-uto-ul(for--unlock)0.4.1Remove TCP support. Usepip install alicat==0.3.1if needed
|
alice
|
No description available on PyPI.
|
alice-ai
|
Alice the Virtual AssistantCreated to train algorithms and logic in developing AI, and helping someone in practicing their pronunciation in English is the main goal in making this all.InstallingNeed >=python3.5 and pip 20.0.2(iam use it)pip install alice-aiif something goes wrong: try to install cmake first with sudo apt install cmakeStart the ALice AI with python fileimportalice_ai# this is default settingsENGINE=alice_ai.engine()ENGINE.start()# use this for advanced settingsAI_NAME="Alice"# name robot default, change this with your robot namesMASTER_NAME="Maestro Alvardo"# change with your nameENGINE=alice_ai.engine(AI_NAME,MASTER_NAME)ENGINE.start()Run AliceRemember on linux run without SuperUser just:python3alice.pytry to speak with good vocabulary and try to order somethinghellohow are yousearch (something) # will search on googleopen youtube # opening youtubeask the time nowdo you like (something) # ask aliceother will updatesDevelop for the better because Alice is an open source project, make the version better because in this early version still have very little knowledge.@Developed by Maestro Alvardo
|
alice-and-bob
|
Alice and Bob information sharing code challengeDiffie-Hellman coding challenge for secret information exchange using public/private keysBackgroundAlice and Bob use the Diffie-Hellman key exchange algorithm to share secret information. Alice and Bob start with prime numbers, pick private keys, generate and share public keys, finally they then generate a shared secret key.Your code module should take in two prime numbers,pandgand output the value of p and g, the private key a for Alice and b for Bob. Finally your program should print out the Shared Secret key for Alice and Bob.If your implementation is correct, the Shared Secret keys should match.Note: This challenge requires you to perform calculations on large numbers. Further information can be found athttps://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchangeCode requirementsEnsure that your code is clean and uses good practice (e.g. error handling) and is commented well.Ensure that your code can work cross platform and across different versions of Python.Feel free to add as many bells and whistles as you so desired (e.g. Unit Tests)Running the codegitclonehttps://github.com/Liam-Deacon/alice_and_bobcdalice_and_bob
python3-malice_and_bob.key_share--helpCLI Example$python3-malice_and_bob.key_share-p61-g53Sharedsecretkey:60It is also possible to specify the number of bits used for the generated private keys:$python3-malice_and_bob.key_share-p88937-g104729--bits=2048Sharedsecretkey:39885Python Example>>>fromalice_and_bob.key_shareimportmainascode>>>code(p=2,g=3)# only one possibility as primes very smallSharedsecretkey:1>>>code(61,53)Sharedsecretkey:34>>>code(61,53)Sharedsecretkey:37>>>code(61,53)Sharedsecretkey:9>>>code(61,53)Sharedsecretkey:11
|
alice-and-bob3
|
Failed to fetch description. HTTP Status Code: 404
|
alice-and-bobbb
|
Failed to fetch description. HTTP Status Code: 404
|
alice-api
|
Alice apiAlice api its come with sms spammer, truewallet system and host system!DocumentationDocumentationAuthors@fostgod
|
alice-blue
|
Official Python SDK for Alice Blue APIThe Official Python library for communicating with the Alice Blue APIs.Alice Blue Python library provides an easy to use wrapper over the HTTPS APIs.The HTTP calls have been converted to methods and JSON responses are wrapped into Python-compatible objects.Websocket connections are handled automatically within the library.Author:krishnaveluUnofficedis strategic partner of Alice Blue responsible for this git.Alice Blue API trading is free forUnofficedmembers. Followthisto get API free.InstallationThis module is installed via pip:pip install alice_blueTo force upgrade existing installations:pip uninstall alice_blue
pip --no-cache-dir install --upgrade alice_blueGetting started with APIOverviewThere is only one class in the whole library:AliceBlue. Thelogin_and_get_sessionID()static method is used to retrieve session ID from alice blue server. A session ID is valid for 24 hours.
With session ID, you can instantiate an AliceBlue object. Ideally you only need to create a session ID once every day. Once the session ID is created new, it'll be stored in a temporary location. Next time, the same session ID will be used.REST DocumentationThe original REST API documentation is availablehere.Using the APILoggingThe whole library is equipped with python'sloggingmodule for debugging. If more debug information is needed, enable logging using the following code.importlogginglogging.basicConfig(level=logging.DEBUG)Geting API Id and API secretapi_secret is unique for each and every account. You need to enable api trading and get api_secret from alice blue.Login todeveloper console.Click on 'Create New App'.Enter 'App Name' as you like. Enter 'Redirect URL' and 'Post Back URL' ashttps://ant.aliceblueonline.com/plugin/callback.Click on 'Save'.Copy the 'App Code' and 'App Secret'. You will need these to generate a session ID.Getting an session IDImport alice_bluefromalice_blueimport*Createsession_idusinglogin_and_get_sessionID()function with yourusername,password,2FA (2fa is now year of birth),app_idandapi_secret.session_id=AliceBlue.login_and_get_sessionID(username="username",password="password",twoFA="1993",app_id="app_id",api_secret="api_secret")Problem getting access tokenIf you are facing problem getting access token, make sure the following are correct.username.password.2FA.api secret.app id.Even after verifying all these, if you are facing problem, contact alice customer care. They should enable the API access in their end. Don't create a new issue in this library for OAuth Error.Create AliceBlue ObjectOnce you have yoursession_id, you can create an AliceBlue object with yoursession_idandusername.alice=AliceBlue(username="username",session_id=session_id)You can run these commands to check your newly created alice blue object.Get BalanceGet ProfileGet Daywise positionsGet Netwise positionsGet Holding positionsGet BalanceCode:print(alice.get_balance())# get balance / margin limitsSample response[{'symbol': 'ALL', 'cncMarginUsed': '0', 'spanmargin': '159440.00', 'branchAdhoc': '0.000000', 'adhocMargin': '0.000000', 'payoutamount': '0.00', 'cdsSpreadBenefit': '0', 'adhocscripmargin': '0.00', 'exposuremargin': '7774.30', 'scripbasketmargin': '0.00', 'credits': '114028.29', 'segment': 'ALL', 'net': '95012.20', 'turnover': '0.00', 'grossexposurevalue': '0.00', 'mfssAmountUsed': '0.00', 'realizedMtomPrsnt': '-6075.80', 'product': 'ALL', 'stat': 'Ok', 'cncSellCrditPrsnt': '0', 'debits': '243846.09', 'varmargin': '0.00', 'multiplier': '10.00', 'elm': '0.00', 'mfamount': '0.00', 'cashmarginavailable': '119428.29', 'brokeragePrsnt': '355.990260', 'cncRealizedMtomPrsnt': '0', 'notionalCash': '0.000000', 'directcollateralvalue': '0.00', 'cncBrokeragePrsnt': '0', 'valueindelivery': '0', 'nfoSpreadBenefit': '0', 'losslimit': '0', 'subtotal': '243846.09', 'rmsPayInAmnt': '0', 'unrealizedMtomPrsnt': '-0.00', 'coverOrderMarginPrsnt': '0', 'exchange': 'ALL', 'category': 'ABFS-COMMON', 'collateralvalue': '0.00', 'rmsIpoAmnt': '0', 'cncUnrealizedMtomPrsnt': '0', 'premiumPrsnt': '0'}, {'symbol': 'ALL', 'cncMarginUsed': '0', 'spanmargin': '0.00', 'branchAdhoc': '0.000000', 'adhocMargin': '0.000000', 'payoutamount': '0.00', 'cdsSpreadBenefit': '0', 'adhocscripmargin': '0.00', 'exposuremargin': '0.00', 'scripbasketmargin': '0.00', 'credits': '0.00', 'segment': 'COM', 'net': '0.00', 'turnover': '0.00', 'grossexposurevalue': '0.00', 'mfssAmountUsed': '0.00', 'realizedMtomPrsnt': '-0.00', 'product': 'ALL', 'stat': 'Ok', 'cncSellCrditPrsnt': '0', 'debits': '0.00', 'varmargin': '0.00', 'multiplier': '1.00', 'elm': '0.00', 'mfamount': '0.00', 'cashmarginavailable': '0.00', 'brokeragePrsnt': '0', 'cncRealizedMtomPrsnt': '0', 'notionalCash': '0.000000', 'directcollateralvalue': '0.00', 'cncBrokeragePrsnt': '0', 'valueindelivery': '0', 'nfoSpreadBenefit': '0', 'losslimit': '0', 'subtotal': '0.00', 'rmsPayInAmnt': '0', 'unrealizedMtomPrsnt': '-0.00', 'coverOrderMarginPrsnt': '0', 'exchange': 'ALL', 'category': 'NO_VAL', 'collateralvalue': '0.00', 'rmsIpoAmnt': '0', 'cncUnrealizedMtomPrsnt': '0', 'premiumPrsnt': '0'}]Get ProfileCodeprint(alice.get_profile())# get profileSample response{'accountStatus': 'Activated', 'dpType': 'CDSL', 'accountId': 'SP220xx', 'sBrokerName': 'ALICEBLUE', 'product': ['NRML', 'MIS', 'CNC', 'CO', 'BO'], 'accountName': 'xxxx xxxx', 'cellAddr': 'xxxxxxxxxx', 'emailAddr': '[email protected]', 'exchEnabled': 'bcs_fo|mcx_fo|nse_cm|bse_cm|nse_fo'}Get Daywise PositionsCodeprint(alice.get_daywise_positions())# get daywise positionsSample response[{'realisedprofitloss': '-7,217.50', 'Fillsellamt': '292,062.50', 'Netqty': '0', 'Symbol': 'EICHERMOT', 'Instname': 'NA', 'Expdate': 'NA', 'LTP': '3,355.10', 'Opttype': 'XX', 'BLQty': 1.0, 'Token': '910', 'Fillbuyamt': '299,280.00', 'Fillsellqty': '87', 'Tsym': 'EICHERMOT-EQ', 'sSqrflg': 'Y', 'unrealisedprofitloss': '0.00', 'Buyavgprc': '3,440.00', 'MtoM': '-7,217.50', 'stat': 'Ok', 's_NetQtyPosConv': 'N', 'Sqty': '87', 'Sellavgprc': '3,357.04', 'PriceDenomenator': '1', 'PriceNumerator': '1', 'actid': 'SP220xx', 'posflag': 'true', 'Pcode': 'MIS', 'Stikeprc': '0', 'Bqty': '87', 'BEP': '0.00', 'Exchange': 'NSE', 'Series': 'EQ', 'GeneralDenomenator': '1', 'Type': 'DAY1', 'Netamt': '-7,217.50', 'companyname': 'EICHER MOTORS LTD', 'Fillbuyqty': '87', 'GeneralNumerator': '1', 'Exchangeseg': 'nse_cm', 'discQty': '10'}, {'realisedprofitloss': '1,141.70', 'Fillsellamt': '298,216.70', 'Netqty': '0', 'Symbol': 'M&M', 'Instname': 'NA', 'Expdate': 'NA', 'LTP': '1,274.65', 'Opttype': 'XX', 'BLQty': 1.0, 'Token': '2031', 'Fillbuyamt': '297,075.00', 'Fillsellqty': '233', 'Tsym': 'M&M-EQ', 'sSqrflg': 'Y', 'unrealisedprofitloss': '0.00', 'Buyavgprc': '1,275.00', 'MtoM': '1,141.70', 'stat': 'Ok', 's_NetQtyPosConv': 'N', 'Sqty': '233', 'Sellavgprc': '1,279.90', 'PriceDenomenator': '1', 'PriceNumerator': '1', 'actid': 'SP220xx', 'posflag': 'true', 'Pcode': 'MIS', 'Stikeprc': '0', 'Bqty': '233', 'BEP': '0.00', 'Exchange': 'NSE', 'Series': 'EQ', 'GeneralDenomenator': '1', 'Type': 'DAY1', 'Netamt': '1,141.70', 'companyname': 'MAHINDRA & MAHINDRA LTD', 'Fillbuyqty': '233', 'GeneralNumerator': '1', 'Exchangeseg': 'nse_cm', 'discQty': '10'}]Get Netwise PositionsCodeprint(alice.get_netwise_positions())# get netwise positionsSample response[{'Instname': 'NA', 'Expdate': 'NA', 'CFsellqty': '0', 'Opttype': 'XX', 'Token': '910', 'CFSellavgprc': '0.00', 'sSqrflg': 'Y', 'unrealisedprofitloss': '0.00', 's_NetQtyPosConv': 'N', 'FillbuyamtCF': '0.00', 'Sqty': '87', 'Sellavgprc': '3,357.04', 'actid': 'SP220xx', 'netbuyamt': '299,280.00', 'Pcode': 'MIS', 'Bqty': '87', 'NetBuyavgprc': '3440.0', 'Exchange': 'NSE', 'companyname': 'EICHER MOTORS LTD', 'netbuyqty': '87', 'realisedprofitloss': '-7,217.50', 'Fillsellamt': '292,062.50', 'Netqty': '0', 'Symbol': 'EICHERMOT', 'LTP': '3,355.10', 'BLQty': 1.0, 'Fillbuyamt': '299,280.00', 'Fillsellqty': '87', 'Tsym': 'EICHERMOT-EQ', 'CFbuyqty': '0', 'Buyavgprc': '3,440.00', 'netSellamt': '292,062.50', 'MtoM': '-7,217.50', 'stat': 'Ok', 'FillsellamtCF': '0.00', 'PriceDenomenator': '1', 'netsellqty': '87', 'PriceNumerator': '1', 'posflag': 'true', 'Stikeprc': '0', 'BEP': '0.00', 'Series': 'EQ', 'GeneralDenomenator': '1', 'Type': 'DAY1', 'Netamt': '-7,217.50', 'NetSellavgprc': '3357.04', 'CFBuyavgprc': '0.00', 'Fillbuyqty': '87', 'GeneralNumerator': '1', 'Exchangeseg': 'nse_cm', 'discQty': '10'}, {'Instname': 'NA', 'Expdate': 'NA', 'CFsellqty': '0', 'Opttype': 'XX', 'Token': '2031', 'CFSellavgprc': '0.00', 'sSqrflg': 'Y', 'unrealisedprofitloss': '0.00', 's_NetQtyPosConv': 'N', 'FillbuyamtCF': '0.00', 'Sqty': '233', 'Sellavgprc': '1,279.90', 'actid': 'SP220xx', 'netbuyamt': '297,075.00', 'Pcode': 'MIS', 'Bqty': '233', 'NetBuyavgprc': '1275.0', 'Exchange': 'NSE', 'companyname': 'MAHINDRA & MAHINDRA LTD', 'netbuyqty': '233', 'realisedprofitloss': '1,141.70', 'Fillsellamt': '298,216.70', 'Netqty': '0', 'Symbol': 'M&M', 'LTP': '1,274.65', 'BLQty': 1.0, 'Fillbuyamt': '297,075.00', 'Fillsellqty': '233', 'Tsym': 'M&M-EQ', 'CFbuyqty': '0', 'Buyavgprc': '1,275.00', 'netSellamt': '298,216.70', 'MtoM': '1,141.70', 'stat': 'Ok', 'FillsellamtCF': '0.00', 'PriceDenomenator': '1', 'netsellqty': '233', 'PriceNumerator': '1', 'posflag': 'true', 'Stikeprc': '0', 'BEP': '0.00', 'Series': 'EQ', 'GeneralDenomenator': '1', 'Type': 'DAY1', 'Netamt': '1,141.70', 'NetSellavgprc': '1279.9', 'CFBuyavgprc': '0.00', 'Fillbuyqty': '233', 'GeneralNumerator': '1', 'Exchangeseg': 'nse_cm', 'discQty': '10'}, {'Instname': 'OPTIDX', 'Expdate': '1 Sep, 2022', 'CFsellqty': '0', 'Opttype': 'CE', 'Token': '51698', 'CFSellavgprc': '0.00', 'sSqrflg': 'Y', 'unrealisedprofitloss': '555.00', 's_NetQtyPosConv': 'N', 'FillbuyamtCF': '18,570.00', 'Sqty': '0', 'Sellavgprc': '0.00', 'actid': 'SP220xx', 'netbuyamt': '18,570.00', 'Pcode': 'NRML', 'Bqty': '0', 'NetBuyavgprc': '441.0', 'Exchange': 'NFO', 'companyname': '', 'netbuyqty': '50', 'realisedprofitloss': '0.00', 'Fillsellamt': '0.00', 'Netqty': '50', 'Symbol': 'BANKNIFTY', 'LTP': '382.50', 'BLQty': 25.0, 'Fillbuyamt': '0.00', 'Fillsellqty': '0', 'Tsym': 'BANKNIFTY2290139100CE', 'CFbuyqty': '50', 'Buyavgprc': '0.00', 'netSellamt': '0.00', 'MtoM': '555.00', 'stat': 'Ok', 'FillsellamtCF': '0.00', 'PriceDenomenator': '1', 'netsellqty': '0', 'PriceNumerator': '1', 'posflag': 'false', 'Stikeprc': '39100.0', 'BEP': '371.40', 'Series': 'XX', 'GeneralDenomenator': '1', 'Type': 'NET1', 'Netamt': '-18,570.00', 'NetSellavgprc': '0.00', 'CFBuyavgprc': '441.0', 'Fillbuyqty': '0', 'GeneralNumerator': '1', 'Exchangeseg': 'nse_fo', 'discQty': 'NA'}, {'Instname': 'OPTIDX', 'Expdate': '1 Sep, 2022', 'CFsellqty': '100', 'Opttype': 'CE', 'Token': '51731', 'CFSellavgprc': '128.45', 'sSqrflg': 'Y', 'unrealisedprofitloss': '-150.00', 's_NetQtyPosConv': 'N', 'FillbuyamtCF': '0.00', 'Sqty': '0', 'Sellavgprc': '0.00', 'actid': 'SP220xx', 'netbuyamt': '0.00', 'Pcode': 'NRML', 'Bqty': '0', 'NetBuyavgprc': '0.00', 'Exchange': 'NFO', 'companyname': '', 'netbuyqty': '0', 'realisedprofitloss': '0.00', 'Fillsellamt': '0.00', 'Netqty': '-100', 'Symbol': 'BANKNIFTY', 'LTP': '96.00', 'BLQty': 25.0, 'Fillbuyamt': '0.00', 'Fillsellqty': '0', 'Tsym': 'BANKNIFTY2290139900CE', 'CFbuyqty': '0', 'Buyavgprc': '0.00', 'netSellamt': '9,450.00', 'MtoM': '-150.00', 'stat': 'Ok', 'FillsellamtCF': '9,450.00', 'PriceDenomenator': '1', 'netsellqty': '100', 'PriceNumerator': '1', 'posflag': 'false', 'Stikeprc': '39900.0', 'BEP': '94.50', 'Series': 'XX', 'GeneralDenomenator': '1', 'Type': 'NET1', 'Netamt': '9,450.00', 'NetSellavgprc': '128.45', 'CFBuyavgprc': '0.00', 'Fillbuyqty': '0', 'GeneralNumerator': '1', 'Exchangeseg': 'nse_fo', 'discQty': 'NA'}]Get Holding PositionsCodeprint(alice.get_holding_positions())# get holding positionsSample response{'stat': 'Ok', 'HoldingVal': [{'WCqty': '0', 'BSEHOldingValue': '25700.00', 'hsflag': 'Y', 'Series1': 'A', 'HUqty': '200', 'authQty': '0', 'YSXHOldingValue': '0.00', 'CSEHOldingValue': '0.00', 'Ttrind': 'N', 'DaysMTM': '0', 'csflag': 'Y', 'WHqty': '0', 'Pcode': 'CNC', 'Price': '102.78', 'Exch4': '0', 'BuyQty': '0', 'Bsetsym': 'BANKBARODA', 'Exch5': '0', 'LTcse': '0.00', 'MCXHOldingValue': '0.00', 'Holdqty': '0', 'Exch1': 'nse_cm', 'Exch2': 'bse_cm', 'Exch3': '0', 'LTysx': '0.00', 'Haircut': '0.00', 'Scripcode': '532134', 'LTPValuation': '0', 'NSEHOldingValue': '25660.00', 'Ysxtsym': '0', 'Ltp': '128.50', 'Coltype': '--', 'Btst': '0', 'LTmcxsxcm': '0.00', 'Usedqty': '0', 'poaStatus': 'Y', 'Token5': '0', 'Nsetsym': 'BANKBARODA-EQ', 'CUqty': '0', 'Token2': '532134', 'Token1': '4668', 'Token4': '0', 'Token3': '0', 'SellableQty': '200', 'Mcxsxcmsym': '0', 'Csetsym': '0', 'authFlag': True, 'LTnse': '128.30', 'pdc': '125.9', 'Series': 'EQ', 'Colqty': '0', 'ExchSeg5': None, 'ExchSeg2': 'BSE', 'ExchSeg1': 'NSE', 'LTbse': '128.50', 'ExchSeg4': None, 'ExchSeg3': None, 'isin': 'INE028A01039', 'Tprod': 'NA'}, {'WCqty': '0', 'BSEHOldingValue': '772832.75', 'hsflag': 'Y', 'Series1': 'X', 'HUqty': '19345', 'authQty': '0', 'YSXHOldingValue': '0.00', 'CSEHOldingValue': '0.00', 'Ttrind': 'N', 'DaysMTM': '0', 'csflag': 'Y', 'WHqty': '0', 'Pcode': 'CNC', 'Price': '44.60', 'Exch4': '0', 'BuyQty': '0', 'Bsetsym': 'SMIFS', 'Exch5': '0', 'LTcse': '0.00', 'MCXHOldingValue': '0.00', 'Holdqty': '0', 'Exch1': '0', 'Exch2': 'bse_cm', 'Exch3': '0', 'LTysx': '0.00', 'Haircut': '0.00', 'Scripcode': '508905', 'LTPValuation': '0', 'NSEHOldingValue': '0.00', 'Ysxtsym': '0', 'Ltp': '39.95', 'Coltype': '--', 'Btst': '0', 'LTmcxsxcm': '0.00', 'Usedqty': '0', 'poaStatus': 'Y', 'Token5': '0', 'Nsetsym': '0', 'CUqty': '0', 'Token2': '508905', 'Token1': '0', 'Token4': '0', 'Token3': '0', 'SellableQty': '19345', 'Mcxsxcmsym': '0', 'Csetsym': '0', 'authFlag': True, 'LTnse': '0.00', 'pdc': '41.95', 'Series': '---', 'Colqty': '0', 'ExchSeg5': None, 'ExchSeg2': 'BSE', 'ExchSeg1': None, 'LTbse': '39.95', 'ExchSeg4': None, 'ExchSeg3': None, 'isin': 'INE641A01013', 'Tprod': 'NA'}], 'clientid': 'WBK293', 'Totalval': {'TotalMCXHoldingValue': '0.00', 'TotalCSEHoldingValue': '0.00', 'TotalNSEHoldingValue': '25660.00', 'TotalYSXHoldingValue': '0.00', 'TotalBSEHoldingValue': '798532.75'}}Get master contractsGetting master contracts allow you to search for instruments by symbol name and place orders.
Master contracts are stored as an OrderedDict by token number and by symbol name in a local file. Whenever you get a trade update, order update, or quote update, the library will check if master contracts are loaded. If they are, it will attach the instrument object directly to the update. By default all master contracts of all enabled exchanges in your personal profile will be downloaded. i.e. If your profile contains the following as enabled exchanges['NSE', 'BSE', 'MCX', NFO']all contract notes of all exchanges will be downloaded by default. If you feel it takes too much time to download all exchange, or if you don't need all exchanges to be downloaded, you can specify which exchange to download contract notes while creating the AliceBlue object. Master contracts once downloaded is stored in temp location and reused the subsequent times. Master contracts are downloaded newly once a day (because new master contracts are updated everyday around 8:00am).Codealice=AliceBlue(username="username",session_id=session_id,master_contracts_to_download=['NSE','BSE'])This will reduce a few seconds in object creation time of AliceBlue object.Get Scrip infoGet Scrip info from alice server (this is different from instrument object).print(alice.get_scrip_info(alice.get_instrument_by_symbol("NSE","INFY-EQ"))){'optiontype': 'XX', 'SQty': 55, 'vwapAveragePrice': '1499.38', 'LTQ': '40', 'Ltp': '1511.65', 'LTP': '1511.65', 'DecimalPrecision': 2, 'openPrice': '1488.00', 'BRate': '00.00', 'defmktproval': '3', 'BQty': 0, 'symbolname': 'INFY', 'noMktPro': '0', 'LTT': '09/09/2022 15:59:32', 'mktpro': '1', 'TickSize': '5', 'Multiplier': 1, 'strikeprice': '00.00', 'TotalSell': '55', 'High': '1520.00', 'stat': 'Ok', 'BodLotQty': 1, 'yearlyHighPrice': '1953.90', 'yearlyLowPrice': '1367.15', 'exchFeedTime': '09-Sep-2022 16:18:43', 'PrvClose': '1511.65', 'SRate': '1511.65', 'Change': '00.00', 'Series': 'EQ', 'TotalBuy': 'NA', 'Low': '1480.00', 'UniqueKey': 'INFY', 'PerChange': '00.00', 'companyname': 'INFOSYS LIMITED', 'TradeVolume': '4816910', 'TSymbl': 'INFY-EQ', 'Exp': 'NA', 'LTD': 'NA'}Instrument objectInstruments are represented by instrument objects. These are named-tuples that are created while getting the master contracts. They are used when placing an order and subscribing to a symbol. The structure of an instrument tuple is as follows:Instrument=namedtuple('Instrument',['exchange','token','symbol','name','expiry','lot_size'])All instruments have the fields mentioned above. Wherever a field is not applicable for an instrument (for example, equity instruments don't have strike prices), that value will beNone.Get tradable instrumentsSymbols can be retrieved in multiple ways. Once you have the master contract loaded for an exchange, you can get an instrument in many ways.Get a single instrument by it's name:Codetatasteel_nse_eq=alice.get_instrument_by_symbol('NSE','TATASTEEL-EQ')reliance_nse_eq=alice.get_instrument_by_symbol('NSE','RELIANCE-EQ')ongc_bse_eq=alice.get_instrument_by_symbol('BSE','ONGC-EQ')india_vix_nse_index=alice.get_instrument_by_symbol('NSE','India VIX')sensex_nse_index=alice.get_instrument_by_symbol('BSE','SENSEX')nifty50_nse_index=alice.get_instrument_by_symbol('NSE','NIFTY 50')banknifty_nse_index=alice.get_instrument_by_symbol('NSE','NIFTY Bank')Get a single instrument by it's token number (generally useful only for BSE Equities):Codeongc_bse_eq=alice.get_instrument_by_token('BSE',500312)reliance_bse_eq=alice.get_instrument_by_token('BSE',500325)acc_nse_eq=alice.get_instrument_by_token('NSE',22)Get FNO instruments easily by mentioning expiry, strike & call or put.Codebn_fut=alice.get_instrument_for_fno(symbol='BANKNIFTY',expiry_date=datetime.date(2019,6,27),is_fut=True,strike=None,is_CE=False)bn_call=alice.get_instrument_for_fno(symbol='BANKNIFTY',expiry_date=datetime.date(2019,6,27),is_fut=False,strike=30000,is_CE=True)bn_put=alice.get_instrument_for_fno(symbol='BANKNIFTY',expiry_date=datetime.date(2019,6,27),is_fut=False,strike=30000,is_CE=False)Search for symbolsSearch for multiple instruments by matching the name. This works case insensitive and returns all instrument which has the name in its symbol.
Codeall_sensex_scrips=alice.search_instruments('BSE','sEnSeX')print(all_sensex_scrips)The above code results multiple symbol which has 'sensex' in its symbol.
Sample response[Instrument(exchange='BSE', token=532985, symbol='KTKSENSEX', name='KOTAK MAHINDRA MUTUAL FUND', expiry=None, lot_size='1'), Instrument(exchange='BSE', token=535276, symbol='SBISENSEX', name='SBI MUTUAL FUND - SBI ETF SENS', expiry=None, lot_size='1'), Instrument(exchange='BSE', token=538683, symbol='SENSEXBEES', name='NIPPON INDIA ETF SENSEX', expiry=None, lot_size='1'), Instrument(exchange='BSE', token=540154, symbol='IDFSENSEXE', name='IDFC Mutual Fund', expiry=None, lot_size='1'), Instrument(exchange='BSE', token=199040, symbol='SENSEXBINAV', name='INAV NIPPO INDIA ETF SENSE', expiry=None, lot_size='1')]Search for multiple instruments by matching multiple namesCodemultiple_underlying=["INFY","SBIN","BHEL"]all_scripts=alice.search_instruments('NFO',multiple_underlying)print(all_scripts)Live Feed Data and Market Depth DataOnce you have master contracts loaded & a tradable instrument, you can easily subscribe to market feedd/depth data.Two types of Live data are availableYou can subscribe any one type of live data for a given scrip. Using theLiveFeedTypeenum, you can specify what type of live feed you need.LiveFeedType.TICK_DATALiveFeedType.DEPTH_DATAPlease refer to the original documentationherefor more details of different types of live feeds.Subscribe to a live feedCodealice.subscribe(alice.get_instrument_by_symbol('NSE','TATASTEEL-EQ'),LiveFeedType.TICK_DATA)alice.subscribe(alice.get_instrument_by_symbol('BSE','RELIANCE-EQ'),LiveFeedType.DEPTH_DATA)Subscribe to multiple instruments in a single call. Give an array of instruments to be subscribed.Codealice.subscribe([alice.get_instrument_by_symbol('NSE','TATASTEEL-EQ'),alice.get_instrument_by_symbol('NSE','ACC-EQ')],LiveFeedType.TICK_DATA)Start getting live feed via websocketCodedefevent_handler_quote_update(message):print(f"quote update{message}")alice.start_websocket(subscribe_callback=event_handler_quote_update)alice.subscribe(alice.get_instrument_by_symbol('NSE','ONGC-EQ'),LiveFeedType.TICK_DATA)sleep(10)Unsubscribe to a live feedUnsubscribe to an existing live feed.Codealice.unsubscribe(alice.get_instrument_by_symbol('NSE','TATASTEEL-EQ'),LiveFeedType.TICK_DATA)alice.unsubscribe(alice.get_instrument_by_symbol('BSE','RELIANCE-EQ'),LiveFeedType.DEPTH_DATA)Unsubscribe to multiple instruments in a single call. Give an array of instruments to be unsubscribed.Codealice.unsubscribe([alice.get_instrument_by_symbol('NSE','TATASTEEL-EQ'),alice.get_instrument_by_symbol('NSE','ACC-EQ')],LiveFeedType.TICK_DATA)Get All Subscribed SymbolsCodealice.get_all_subscriptions()# AllMarket Status messages & Exchange messages.Subscribe to market status & Exchange messages coming soon.Subscribe to Market Status messagesCodealice.subscribe_market_status_messages()Getting market status messages.Codeprint(alice.get_market_status_messages())Sample Response ofget_market_status_messages()[{'exchange': 'NSE', 'length_of_market_type': 6, 'market_type': b'NORMAL', 'length_of_status': 31, 'status': b'The Closing Session has closed.'}, {'exchange': 'NFO', 'length_of_market_type': 6, 'market_type': b'NORMAL', 'length_of_status': 45, 'status': b'The Normal market has closed for 22 MAY 2020.'}, {'exchange': 'CDS', 'length_of_market_type': 6, 'market_type': b'NORMAL', 'length_of_status': 45, 'status': b'The Normal market has closed for 22 MAY 2020.'}, {'exchange': 'BSE', 'length_of_market_type': 13, 'market_type': b'OTHER SESSION', 'length_of_status': 0, 'status': b''}]Subscribe to exchange messagesCodealice.subscribe_exchange_messages()Getting market status messages.Codeprint(alice.get_exchange_messages())Sample Response ofget_exchange_messages()[{'exchange': 'NSE', 'length': 32, 'message': b'DS : Bulk upload can be started.', 'exchange_time_stamp': 1590148595}, {'exchange': 'NFO', 'length': 200, 'message': b'MARKET WIDE LIMIT FOR VEDL IS 183919959. OPEN POSITIONS IN VEDL HAVE REACHED 84 PERCENT OF THE MARKET WIDE LIMIT. ', 'exchange_time_stamp': 1590146132}, {'exchange': 'CDS', 'length': 54, 'message': b'DS : Regular segment Bhav copy broadcast successfully.', 'exchange_time_stamp': 1590148932}, {'exchange': 'MCX', 'length': 7, 'message': b'.......', 'exchange_time_stamp': 1590196159}]Market Status messages & Exchange messages through callbacksCodesocket_opened=Falsedefmarket_status_messages(message):print(f"market status messages{message}")defexchange_messages(message):print(f"exchange messages{message}")alice.start_websocket(market_status_messages_callback=market_status_messages,exchange_messages_callback=exchange_messages)alice.subscribe_market_status_messages()alice.subscribe_exchange_messages()sleep(10)Place an orderYou can place following types of order through this API.LimitMarketStop Loss LimitStop Loss MarketBracket OrderAMOLimit Order (Intraday Buy)Codeprint(alice.place_order(transaction_type=TransactionType.Buy,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=1,order_type=OrderType.Limit,product_type=ProductType.Intraday,price=500.0))Sample reponse of place order[{'stat':'Ok','NOrdNo':'220909000171482'}]Market Order (Delivery Sell)print(alice.place_order(transaction_type=TransactionType.Sell,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=0,order_type=OrderType.Market,product_type=ProductType.Delivery))Stop Loss Limit orderprint(alice.place_order(transaction_type=TransactionType.Sell,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=1,order_type=OrderType.StopLossLimit,product_type=ProductType.Intraday,price=500.0,trigger_price=490.0))Stop Loss Market orderprint(alice.place_order(transaction_type=TransactionType.Sell,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=1,order_type=OrderType.StopLossMarket,product_type=ProductType.Intraday,trigger_price=490.0))Bracket Orderprint(alice.place_order(transaction_type=TransactionType.Sell,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=1,order_type=OrderType.StopLossLimit,product_type=ProductType.Intraday,price=1464.0,trigger_price=1466.0,stop_loss=1450.0,target=1480.0,trailing_sl=1.0))After Market OrderCodeprint(alice.place_order(transaction_type=TransactionType.Buy,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=1,order_type=OrderType.AfterMarketOrder,product_type=ProductType.Delivery,price=500.0))Sample reponse of AMO order[{'stat': 'Ok', 'NOrdNo': '220909000171690-after market order req received'}]Modify Orderprint(alice.modify_order(order_id=order_id,transaction_type=TransactionType.Buy,instrument=alice.get_instrument_by_symbol("NSE","INFY-EQ"),quantity=2,order_type=OrderType.AfterMarketOrder,product_type=ProductType.Delivery,price=600.0))Sample response of modify order{'stat': 'Ok', 'Result': ' NEST Order Number :220909000171761'}Cancel an orderorder_id=220909000171761print(alice.cancel_order(order_id=order_id))Sample response of cancel order{'stat': 'Ok', 'Result': ' NEST Order Number :220909000171761'}Getting order history and trade detailsGet order history of all orders.print(alice.get_order_history())[{'Prc': '600.00', 'RequestID': '1', 'Cancelqty': 0, 'discQtyPerc': '10', 'customText': 'NA', 'Mktpro': 'NA', 'defmktproval': '3', 'optionType': 'XX', 'usecs': '078218', 'mpro': '1', 'Qty': 2, 'ordergenerationtype': 'AMO', 'Unfilledsize': 0, 'orderAuthStatus': '', 'Usercomments': 'NA', 'ticksize': '5', 'Prctype': 'AMO', 'Status': 'cancelled after market order', 'Minqty': 0, 'orderCriteria': 'NA', 'Exseg': 'nse_cm', 'Sym': 'INFY', 'multiplier': '1', 'ExchOrdID': 'NA', 'ExchConfrmtime': '--', 'Pcode': 'CNC', 'SyomOrderId': '', 'Dscqty': 0, 'Exchange': 'NSE', 'Ordvaldate': 'NA', 'accountId': 'SP220xx', 'exchangeuserinfo': '111111111111130', 'Avgprc': '00.00', 'Trgprc': '00.00', 'Trantype': 'B', 'bqty': '1', 'Trsym': 'INFY-EQ', 'Fillshares': 0, 'AlgoCategory': 'NA', 'sipindicator': 'N', 'strikePrice': '00.00', 'reporttype': 'NA', 'AlgoID': 'NA', 'noMktPro': '0', 'BrokerClient': '--', 'OrderUserMessage': '', 'decprec': '2', 'ExpDate': 'NA', 'COPercentage': 0.0, 'marketprotectionpercentage': '--', 'Nstordno': '220909000171761', 'ExpSsbDate': 'NA', 'OrderedTime': '09/09/2022 15:47:11', 'RejReason': '--', 'modifiedBy': 'SP220xx', 'Scripname': 'INFOSYS LIMITED', 'stat': 'Ok', 'orderentrytime': '', 'PriceDenomenator': '1', 'panNo': 'NA', 'RefLmtPrice': 0.0, 'PriceNumerator': '1', 'token': '1594', 'ordersource': 'NEST_REST_WEB', 'Validity': None, 'GeneralDenomenator': '1', 'series': 'EQ', 'InstName': '', 'GeneralNumerator': '1', 'user': 'SP220xx', 'remarks': '--', 'iSinceBOE': 1662718631}, {'Prc': '378.50', 'RequestID': '1', 'Cancelqty': 0, 'discQtyPerc': '10', 'customText': 'NA', 'Mktpro': 'NA', 'defmktproval': '3', 'optionType': 'XX', 'usecs': '428162', 'mpro': '1', 'Qty': 704, 'ordergenerationtype': '--', 'Unfilledsize': 0, 'orderAuthStatus': '', 'Usercomments': 'NA', 'ticksize': '5', 'Prctype': 'L', 'Status': 'complete', 'Minqty': 0, 'orderCriteria': 'NA', 'Exseg': 'nse_cm', 'Sym': 'HINDALCO', 'multiplier': '1', 'ExchOrdID': '1100000000211421', 'ExchConfrmtime': '09-Sep-2022 09:07:03', 'Pcode': 'MIS', 'SyomOrderId': '', 'Dscqty': 0, 'Exchange': 'NSE', 'Ordvaldate': 'NA', 'accountId': 'SP220xx', 'exchangeuserinfo': '333333333333100', 'Avgprc': '426.00', 'Trgprc': '00.00', 'Trantype': 'S', 'bqty': '1', 'Trsym': 'HINDALCO-EQ', 'Fillshares': 704, 'AlgoCategory': 'NA', 'sipindicator': 'N', 'strikePrice': '00.00', 'reporttype': 'fill', 'AlgoID': 'NA', 'noMktPro': '0', 'BrokerClient': '--', 'OrderUserMessage': '', 'decprec': '2', 'ExpDate': 'NA', 'COPercentage': 0.0, 'marketprotectionpercentage': '--', 'Nstordno': '220909000001363', 'ExpSsbDate': 'NA', 'OrderedTime': '09/09/2022 09:07:03', 'RejReason': '--', 'modifiedBy': '--', 'Scripname': 'HINDALCO INDUSTRIES LTD', 'stat': 'Ok', 'orderentrytime': 'Sep 09 2022 09:06:59', 'PriceDenomenator': '1', 'panNo': 'xxxxx', 'RefLmtPrice': 0.0, 'PriceNumerator': '1', 'token': '1363', 'ordersource': 'NEST_REST_TLAPI', 'Validity': 'DAY', 'GeneralDenomenator': '1', 'series': 'EQ', 'InstName': '', 'GeneralNumerator': '1', 'user': 'SP220xx', 'remarks': '--', 'iSinceBOE': 1662694623}]Get order history of a particular orderprint(alice.get_order_history(220909000171761))Sample Response[{'Prc': '600.00', 'Action': 'B', 'productcode': 'CNC', 'reporttype': 'NA', 'triggerprice': '0.0', 'filledShares': 0, 'disclosedqty': '0', 'exchangetimestamp': '--', 'ExchTimeStamp': '09/09/2022 15:47:11', 'symbolname': 'INFY', 'nestordernumber': '220909000171761', 'duration': None, 'OrderUserMessage': '', 'averageprice': '0.0', 'Qty': 2, 'ordergenerationtype': 'AMO', 'modifiedBy': 'SP220xx', 'filldateandtime': '-- --', 'Status': 'cancelled after market order', 'rejectionreason': '--', 'stat': 'Ok', 'PriceDenomenator': '1', 'exchangeorderid': None, 'PriceNumerator': '1', 'legorderindicator': '', 'customerfirm': 'C', 'ordersource': 'NEST_REST_WEB', 'GeneralDenomenator': '1', 'nestreqid': '1', 'Ordtype': 'AMO', 'unfilledSize': 0, 'scripname': 'INFOSYS LIMITED', 'GeneralNumerator': '1', 'bqty': 1, 'exchange': 'NSE', 'Trsym': 'INFY-EQ'}, {'Prc': '600.00', 'Action': 'B', 'productcode': 'CNC', 'reporttype': 'NA', 'triggerprice': '0.0', 'filledShares': 0, 'disclosedqty': '0', 'exchangetimestamp': '--', 'ExchTimeStamp': '09/09/2022 15:47:10', 'symbolname': 'INFY', 'nestordernumber': '220909000171761', 'duration': None, 'OrderUserMessage': '', 'averageprice': '0.0', 'Qty': 2, 'ordergenerationtype': 'AMO', 'modifiedBy': 'SP220xx', 'filldateandtime': '-- --', 'Status': 'modify after market order req received', 'rejectionreason': '--', 'stat': 'Ok', 'PriceDenomenator': '1', 'exchangeorderid': None, 'PriceNumerator': '1', 'legorderindicator': '', 'customerfirm': 'C', 'ordersource': 'NEST_REST_WEB', 'GeneralDenomenator': '1', 'nestreqid': '1', 'Ordtype': 'AMO', 'unfilledSize': 2, 'scripname': 'INFOSYS LIMITED', 'GeneralNumerator': '1', 'bqty': 1, 'exchange': 'NSE', 'Trsym': 'INFY-EQ'}, {'Prc': '500.00', 'Action': 'B', 'productcode': 'CNC', 'reporttype': 'NA', 'triggerprice': '0.0', 'filledShares': 0, 'disclosedqty': '1', 'exchangetimestamp': '--', 'ExchTimeStamp': '09/09/2022 15:47:09', 'symbolname': 'INFY', 'nestordernumber': '220909000171761', 'duration': 'DAY', 'OrderUserMessage': '', 'averageprice': '0.0', 'Qty': 1, 'ordergenerationtype': 'AMO', 'modifiedBy': '--', 'filldateandtime': '-- --', 'Status': 'after market order req received', 'rejectionreason': '--', 'stat': 'Ok', 'PriceDenomenator': '1', 'exchangeorderid': None, 'PriceNumerator': '1', 'legorderindicator': '', 'customerfirm': 'C', 'ordersource': 'NEST_REST_WEB', 'GeneralDenomenator': '1', 'nestreqid': '1', 'Ordtype': 'AMO', 'unfilledSize': 1, 'scripname': 'INFOSYS LIMITED', 'GeneralNumerator': '1', 'bqty': 1, 'exchange': 'NSE', 'Trsym': 'INFY-EQ'}]Get trade bookprint(alice.get_trade_book())Sample Response[{'Filltime': '15:10:00', 'usecs': '836064', 'Ordduration': 'DAY', 'ExchordID': '1100000022855645', 'Qty': 201, 'ordergenerationtype': '--', 'strikeprice': '00.00', 'AvgPrice': '1499.52', 'Prctype': 'MKT', 'Minqty': 0, 'Exchseg': 'nse_cm', 'Pcode': 'MIS', 'FillLeg': 1, 'Exchange': 'NSE', 'accountId': 'SP220xx', 'Price': '1499.40', 'Trantype': 'S', 'companyname': 'HDFC BANK LTD', 'Exchtime': '09-Sep-2022 15:10:00', 'bqty': 1, 'Filldate': '09-Sep-2022', 'AlgoCategory': 'NA', 'Custofrm': 'C', 'expdate': 'NA', 'optiontype': 'XX', 'AlgoID': 'NA', 'Symbol': '1333', 'Filledqty': 201, 'Time': '09/09/2022 15:10:00', 'symbolname': 'HDFCBANK', 'BrokerClient': '--', 'NOReqID': '1', 'Tsym': 'HDFCBANK-EQ', 'Nstordno': '220909000161876', 'ReportType': 'fill', 'Expiry': 'NA', 'stat': 'Ok', 'PriceDenomenator': '1', 'panNo': 'xxxxxxxxx', 'PriceNumerator': '1', 'posflag': 'false', 'GeneralDenomenator': '1', 'FillId': '29599427', 'Fillqty': 29, 'series': 'EQ', 'GeneralNumerator': '1', 'user': 'SP220xx', 'remarks': '--', 'iSinceBOE': 1662716400}, {'Filltime': '15:10:00', 'usecs': '835977', 'Ordduration': 'DAY', 'ExchordID': '1100000022855645', 'Qty': 201, 'ordergenerationtype': '--', 'strikeprice': '00.00', 'AvgPrice': '1499.55', 'Prctype': 'MKT', 'Minqty': 0, 'Exchseg': 'nse_cm', 'Pcode': 'MIS', 'FillLeg': 1, 'Exchange': 'NSE', 'accountId': 'SP220xx', 'Price': '1499.55', 'Trantype': 'S', 'companyname': 'HDFC BANK LTD', 'Exchtime': '09-Sep-2022 15:10:00', 'bqty': 1, 'Filldate': '09-Sep-2022', 'AlgoCategory': 'NA', 'Custofrm': 'C', 'expdate': 'NA', 'optiontype': 'XX', 'AlgoID': 'NA', 'Symbol': '1333', 'Filledqty': 162, 'Time': '09/09/2022 15:10:00', 'symbolname': 'HDFCBANK', 'BrokerClient': '--', 'NOReqID': '1', 'Tsym': 'HDFCBANK-EQ', 'Nstordno': '220909000161876', 'ReportType': 'fill', 'Expiry': 'NA', 'stat': 'Ok', 'PriceDenomenator': '1', 'panNo': 'xxxxxxxxx', 'PriceNumerator': '1', 'posflag': 'false', 'GeneralDenomenator': '1', 'FillId': '29599425', 'Fillqty': 162, 'series': 'EQ', 'GeneralNumerator': '1', 'user': 'SP220xx', 'remarks': '--', 'iSinceBOE': 1662716400}, {'Filltime': '15:10:00', 'usecs': '836021', 'Ordduration': 'DAY', 'ExchordID': '1100000022855645', 'Qty': 201, 'ordergenerationtype': '--', 'strikeprice': '00.00', 'AvgPrice': '1499.54', 'Prctype': 'MKT', 'Minqty': 0, 'Exchseg': 'nse_cm', 'Pcode': 'MIS', 'FillLeg': 1, 'Exchange': 'NSE', 'accountId': 'SP220xx', 'Price': '1499.45', 'Trantype': 'S', 'companyname': 'HDFC BANK LTD', 'Exchtime': '09-Sep-2022 15:10:00', 'bqty': 1, 'Filldate': '09-Sep-2022', 'AlgoCategory': 'NA', 'Custofrm': 'C', 'expdate': 'NA', 'optiontype': 'XX', 'AlgoID': 'NA', 'Symbol': '1333', 'Filledqty': 172, 'Time': '09/09/2022 15:10:00', 'symbolname': 'HDFCBANK', 'BrokerClient': '--', 'NOReqID': '1', 'Tsym': 'HDFCBANK-EQ', 'Nstordno': '220909000161876', 'ReportType': 'fill', 'Expiry': 'NA', 'stat': 'Ok', 'PriceDenomenator': '1', 'panNo': 'xxxxxxxxx', 'PriceNumerator': '1', 'posflag': 'false', 'GeneralDenomenator': '1', 'FillId': '29599426', 'Fillqty': 10, 'series': 'EQ', 'GeneralNumerator': '1', 'user': 'SP220xx', 'remarks': '--', 'iSinceBOE': 1662716400}]Order properties as enumsOrder properties such as TransactionType, OrderType, and others have been safely classified as enums so you don't have to write them out as strings.TransactionTypeTransaction types indicate whether you want to buy or sell. Valid transaction types are of the following:TransactionType.Buy- buyTransactionType.Sell- sellOrderTypeOrder type specifies the type of order you want to send. Valid order types include:OrderType.Market- Place the order with a market priceOrderType.Limit- Place the order with a limit price (limit price parameter is mandatory)OrderType.StopLossLimit- Place as a stop loss limit orderOrderType.StopLossMarket- Place as a stop loss market orderOrderType.BracketOrder- Place as a bracket orderOrderType.AfterMarketOrder- Place as a after market orderProductTypeProduct types indicate the complexity of the order you want to place. Valid product types are:ProductType.Intraday- Intraday order that will get squared off before market closeProductType.Delivery- Delivery order that will be held with you after market closeExample strategy using alice blue APIHereis an example moving average strategy using alice blue API.
This strategy generates a buy signal when 5-EMA > 20-EMA (golden cross) or a sell signal when 5-EMA < 20-EMA (death cross).Historical APIAlice Blue now supports downloading historical data for back testing.Historical data API will be available from 5:30 PM (evening) to 8 AM (Next day morning) on weekdays (Monday to Friday). Historical data will not be available during market hoursHistorical data API will be available fully during weekends and holidays.For NSE segment, 2 years of historical data will be provided.For NFO, CDS and MCX segments, current expiry data will be provided.Codeprint(alice.historical_data(alice.get_instrument_by_symbol("NSE","INFY-EQ"),datetime.datetime.now(),datetime.datetime.now(),HistoricalDataType.Minute))Sample Reponse{'stat': 'Ok', 'result': [{'volume': 130792.0, 'high': 1489.8, 'low': 1483.1, 'time': '2022-09-09 09:15:00', 'close': 1488.8, 'open': 1488.0}, {'volume': 33730.0, 'high': 1488.95, 'low': 1485.35, 'time': '2022-09-09 09:16:00', 'close': 1486.0, 'open': 1488.05}, {'volume': 28446.0, 'high': 1486.5, 'low': 1484.0, 'time': '2022-09-09 09:17:00', 'close': 1484.8, 'open': 1485.65}, {'volume': 33256.0, 'high': 1486.0, 'low': 1484.55, 'time': '2022-09-09 09:18:00', 'close': 1485.45, 'open': 1484.9}], 'message': None}Read this before creating an issueBefore creating an issue in this library, please follow the following steps.Search the problem you are facing is already asked by someone else. There might be some issues already there, either solved/unsolved related to your problem. Go toissuespage, useis:issueas filter and search your problem.If you feel your problem is not asked by anyone or no issues are related to your problem, then create a new issue.Describe your problem in detail while creating the issue. If you don't have time to detail/describe the problem you are facing, assume that I also won't be having time to respond to your problem.Post a sample code of the problem you are facing. If I copy paste the code directly from issue, I should be able to reproduce the problem you are facing.Before posting the sample code, test your sample code yourself once. Only sample code should be tested, no other addition should be there while you are testing.Have some print() function calls to display the values of some variables related to your problem.Post the results of print() functions also in the issue.Use the insert code feature of github to inset code and print outputs, so that the code is displayed neat.If you have multiple lines of code, use triple grave accent ( ``` ) to insert multiple lines of code.Example:Hereis an example of what I'm expecting while you are creating an issue.
|
aliceblueantpy
|
Python Aliceblue APIAliceblue is set of REST-like APIs based platform of all input and output parameters are based on JSON. Aliceblue rest provide an easy way to place order,and view orderbook.DocumentationAliceblue API DocumentationInstalling the clientYou can install the pre release via pippython3.9 -m pip install --upgrade aliceblueantpyFor more details checkofficial Python documentation.API usage (Sample method calls)importrequestsimportjsonimporthashlibfromaliceblueantpyimportAliceblueAPIsas_api=AliceblueAPI(user_id='Your_user_id',api_key='Your_api_key')# # Method will invoke teh get encryption key and get User session Id methods# # Login with userid and API key and then receive the session Id# # after got the session Id ,obtain the session Id# # as follows.response=sas_api.getEncryptionKey()# # Market Watch Scrips# # Search Scripsscrip_response=sas_api.get_scrips(symbol='search_symbol_name',exchange=['exchange_name'])# ====> Sample input parameters : symbol='TCS', exchange=[sas_api.EXCHANGE_NSE]# Other available exchanges are as below## EXCHANGE_NSE --- For NSE Cash# EXCHANGE_NFO --- For NSE DERIVATIVES# EXCHANGE_CDS --- For NSE Currency Derivatives# EXCHANGE_BSE --- For BSE Cash# EXCHANGE_BSE --- For BSE Derivatives# EXCHANGE_BSE --- For BSE Currency Derivatives# EXCHANGE_MCX --- For MCX Contracts# If the search has to be global, like search on NSE and BSE for example,# send the exchange parameter as below# exchange=[sas_api.EXCHANGE_NSE, sas_api.EXCHANGE_BSE]# SAMPLE RESPONSE# {.....'exch': 'NSE', 'exchange': None, 'exchange_segment': 'nse_cm', 'symbol': 'TCS-EQ', 'token': '11536', 'instrument_name': 'TATA CONSULTANCY SERV LT'....}# There will be more parameters in teh response, but you can ignore them# SYMBOL and TOKEN are the important ones to call further APIs# Market Watch Listmarketwatchrespdata=sas_api.getmarketwatch_list()## =====> Fetch Market Watch List## SAMPLE RESPONSE# {'stat': 'Ok', 'values': ['mwGrpRM', 'mwGrpLN', 'mwGrpFk', 'mwGrpFF'], 'MaxMWCount': 200, 'logindefaultmw': 'mwGrpLN'}# There will be no parameters in teh response,# # Market Watch Scripsmarketwatchresp=sas_api.marketwatch_scripsdata(mwname='Enter_your_market_watch_name')## ====> Sample input parameters :mwname='mwGrpFk'## SAMPLE RESPONSE# {'stat': 'Ok', 'values': [{'tcksize': '5', 'openinterest': '0', 'optiontype': 'XX', 'BestSellPrice': '132.20', 'ExchSeg': 'nse_cm',......}## values are in Json array with watch names and maximum scrip counts are allowed# # Add Scripsaddscripsresp=sas_api.addscrips(mwname='Enter_your_market_watch_name',exchange='exchange_name',token='Enter_your_tokenno')## ====> Sample input parameters : mwname='mwGrpFk', exchange='NSE', token='1235'## SAMPLE RESPONSE# {'emsg': 'Scrip is present in mwGrpFk', 'stat': 'Ok'}## Give the input parameters and status as ok and result as success# # Delete Scripsdeletescripsresp=sas_api.deletescrips(mwname='Enter_your_market_watch_name',exchange='exchange_name',token='Enter_your_tokenno')## Sample input parameters : mwname='mwGrpLn', exchange='NSE', token='245'## SAMPLE RESPONSE# {'emsg': 'Scrip is delete in mwGrpLn', 'stat': 'Ok'}## Delete the parameters value and status as ok then result as success# # Scrip Detailsscripsdetailresp=sas_api.scrips_details(exchange='exchange_name',token='Enter_your_tokenno')# ====> Sample input parameters : exchange=[sas_api.EXCHANGE_NSE],token='777'#### SAMPLE RESPONSE# {'vwapAveragePrice': 'NA', 'LTQ': 'NA', 'DecimalPrecision': 2, 'openPrice': 'NA', 'LTP': 'NA', 'Ltp': 'NA', 'BRate': 'NA', 'defmktproval': '3', 'symbolname': 'UTIRGR28P2',...... }## There given exchange and token numbers are given the bunch of response will be displayed on output format## Order Management# # Position Bookpositionbookresp=sas_api.positionbook(ret='retention_type')# ====> Sample input parameters : ret=[sas_api.RETENTION_DAY]## SAMPLE RESPONSE# {"emsg": "Success","stat": "Ok"}## The Retention type of input parameters DAY/NET will be given after response are bunch of data's are displayed like that stat,exchange,pcode,symbol,token....# # Square of positionsquareoffresp=sas_api.squareoff_positions(exchange='exchange_name',symbol='Enter_your_symbol',qty='Enter_your_Qty',pCode='Entey_your_productcode',tokenno='Enter_your_tokenno')# ====> Sample input parameters : ret=[sas_api.RETENTION_DAY], symbol='ASHOKLEY',qty='0',pCode=[sas_api.PRODUCT_INTRADAY], tokenno='12356'## SAMPLE RESPONSE# {"stat": "Ok","nestOrderNumber:"200626000052824"}# The input parameters are given and response are ok, nestordernumbers are displayed# # Place Orderplaceorderresp=sas_api.place_order(complexty='Enter_your_ordertype',discqty='Enter_your_discqty',exch='exchange_name',pCode='Enter_your_productcode',price='Enter_your_Price',qty='Enter_your_Quantity',prctyp='Enter_your_pricetype',ret='Enter_your_retention_type',symbol_id='Enter_your_symbol_id',trading_symbol='Enter_your_trading_symbol',transtype='Enter_your_transaction_type',trigPrice='Enter_your_trigPrice')# ====> Sample input parameters : ret=[sas_api.RETENTION_DAY], complexity=[sas_api.REGULAR_ORDER], exchange=[sas_api.EXCHANGE_NSE],pCode='MIS',# price='1',Qty='1',prctype=[sas_api.LIMIT_ORDER],ret=[sas_api.RETENTION_DAY],trading_symbol='49234',transtype=[sas_api.BUY_ORDER],# trigprice='1'# SAMPLE RESPONSE# {['stat': 'Ok', 'nestOrderNumber': '191015000018737']}# Same as the process of Square off positions given parameters and response are ok,nestordernumbers are displayed# Bracket Orderbracketorderresp=sas_api.bracket_order(complexty='Enter_your_ordertype',discqty='Enter_your_discqty',exch='exchange_name',pCode='Enter_your_productcode',price='Enter_your_price',qty='Enter_your_qty',prctyp='Enter_your_pricetype',stopLoss='Enter_your_stopLoss',ret='Enter_your_retention_type',symbol_id='Enter_your_symbol_id',trading_symbol='Enter_your_trading_symbol',trailing_stop_loss='Enter_your_trailing_stop_loss_value',target='Enter_your_target_value',transtype='Enter_your_transaction_type',trigPrice='Enter_your_trigPrice')# ====> Sample input parameters : ret=[sas_api.RETENTION_DAY], complexity=[sas_api.REGULAR_ORDER], exchange=[sas_api.EXCHANGE_NSE],pCode='MIS',# price='1',qty='1',prctype=[sas_api.LIMIT_ORDER],ret=[sas_api.RETENTION_DAY],trading_symbol='49234',transtype=[sas_api.BUY_ORDER],# trigprice='1',discqty='0',symbol_id='13611',trailimg_stop_loss='3.4',target='28.0',transtype=[sas_api.BUY_ORDER],stoploss='28.0'# SAMPLE RESPONSE# [{"stat": "Ok", "nestOrderNumber": "210218000070901"}# Same process of previous one input parameters like retention type,complexity,exchange....... and response are ok,nestordernumbers displayed on screen# Fetch Order Bookorderresp=sas_api.order_data()# ===>No Parameters are passed to get response# SAMPLE RESPONSE# [{....... "Prc": "1454.90", "RequestID": "1", "Cancelqty": 0, "discQtyPerc": "10", "Qty": 8, "Prctype": "SL", "Status": "rejected","Exchange": "NSE" ,"Avgprc": "00.00", "Trgprc": "1450.90",.....}]# This one get method and no input parameters and output will be bunch of data's are shown on response# Fetch Trade Booktradebookresp=sas_api.tradebook()# ===>No Parameters are passed to get response# SAMPLE RESPONSE# This one also get method and no input parameters and data's will be shown# # Exit Bracket Orderexitboorderresp=sas_api.exitboorder(nestOrderNumber='Enter_your_nestOrderNumber',symbolOrderId="Enter_your_symbolOrderId",status='Enter_your_status')# ====> Sample input parameters : nestOrderNumber='200626000052824', symbolOrderId='', status='OPEN',## SAMPLE RESPONSE# {"stat":"Ok}# The input parameters are nestordernumber,symbolid,and status will be given and response like ok.# # Modify Ordermodifyorderresp=sas_api.modifyorder(discqty='Your_Quantity_No',qty='Enter_your_Quantity',exch='exchange_name',filledQuantity='Enter_your_Filledquantity',nestOrderNumber='Enter_your_nestordernumber',prctyp='Enter_your_pricetype',price='Enter_your_Price',trading_symbol='Your_Trading_Symbol',trigPrice='Enter_your_trigger_Price',transtype='Enter_your_transaction_type',pCode='Enter_your_productcode'),# ====> Sample input parameters : discqty='0', qty='1', exchange=[sas_api.EXCHANGE_NSE],filledQuantity='0',# nestOrderNumber='191015000018737',prctype=[sas_api.LIMIT_ORDER], price='1'# ,trading_symbol='ASHOKLEY-EQ',trigPrice='00.OO',transtype=[sas_api.BUY_ORDER],# pCode=[sas_api.MARKET_ORDER]## SAMPLE RESPONSE# [{"stat": "Ok", "nestOrderNumber": "210218000070901"}# The Input parameters are given and results are displayed on Sample response# # Market Ordermarketorderresp=sas_api.marketorder(complexty='Enter_your_ordertype',discqty='Enter_your_discqty',exch='exchange_name',pCode='Enter_your_productcode',prctyp='Enter_your_pricetype',price="",qty='Enter_your_qty',ret='Enter_your_retention_type',symbol_id='Enter_your_symbol_id',trading_symbol='Enter_your_trading_symbol',transtype='Enter_your_transaction_type',trigPrice="")# ====> Sample input parameters : complexity=[sas_api.REGULAR_ORDER], discqty='0', qty='1', exchange=[sas_api.EXCHANGE_NSE],filledQuantity='0',nestOrderNumber='191015000018737',prctype=[sas_api.LIMIT_ORDER],price='1',trading_symbol='ASHOKLEY-EQ'# trigPrice='00.OO',transtype=[sas_api.BUY_ORDER],pCode=[sas_api.MARKET_ORDER]# SAMPLE RESPONSE# {"stat": "Ok", "nestOrderNumber": "210218000070991"}# The market order data's can be input and output's are displayed# Cancel Ordercancelresp=sas_api.cancel_order(exchange=sas_api.EXCHANGE_NSE,nestordernmbr='Enter_your_nestordernmbr',tradingsymbol='Enter_your_tradingsymbol')# ====> Sample input parameters : exchange=[sas_api.EXCHANGE_NSE], nestordernumbrr='191015000018737',tradingsymbol='ASHOKLEY-EQ',# SAMPLE RESPONSE# {"stat": "Ok", "nestOrderNumber": "210218000070991"}# The Input parameters exchange,nestordernumber and trading symbol are given after output's are status ok, and nestordernumber are displayed# Order Historyorderhistoryresp=sas_api.order_history(nextorder='Enter_your_nextorder')# =====> Sample input parameter: nestOrderNumber": "200628000000004"# SAMPLE RESPONSE# {'stat':'Ok' ...}# The nestordernumber's are displayed# Fetch Holdingsdataholdingresp=sas_api.holdingsdata()# =====> No parameter are passed to get holdings# SAMPLE RESPONSE# {'stat':'Ok' ...}# This are get method no input parameters and output parameters will be displayed# Funds# Get Limitfundsresp=sas_api.fundsdata()# =====> Fetch Market Watch List# SAMPLE RESPONSE# {'emsg': None, 'stat': 'Ok'}# No parameters to send get fundsdetails
|
aliceblue-fetch-data
|
use aliceblue without api
|
aliceblueindia
|
No description available on PyPI.
|
aliceblue-no-api
|
use alice blue without api
|
aliceblueonlyoption
|
No description available on PyPI.
|
alice-blue-pro
|
Alice Blue API Sample Codes and Unofficial FunctionsSamples of AliceBlue Ant API Sample Codes for Live Algo Trading usingKrishna's Python Wrapper.Unofficedis strategic partner of Alice BlueGithub|Google CollabProgram 1: Connecting to Websocket and Getting Live LTPGithub|Google CollabProgram 2: Making a function to get all Instruments List a Pandas DataFrameGithub|Google CollabProgram 3: Historical Data Download Python Code for any stock of Stock MarketIndicatorsBollinger BandGithub|Google CollabProgram 4: Plotting Bollinger band On Historical data of Infosys Using PythonSimple Moving AverageGithub|Google CollabProgram 5: Coding and Plotting Simple Moving Average Indicator of Infosys Using PythonExponential Moving AverageGithub|Google CollabProgram 6: Coding and Plotting Exponential Moving Average Indicator of Infosys Using PythonSMA/EMA CrossoverGithub|Google CollabProgram 7: How to plot Moving Average Crossover Using Python in Indian Stock MarketAlgoTrading Using Python and Alice Blue API - Complete SeriesArticle 1: How to activate the API in Alice Blue for Automated TradingArticle 2: How to Stream Live Trading data using Python and AliceBlue ANT APIContributingFor Discussion and Improving this Code, Join -https://www.unofficed.com/chat/LicenseMIT
|
aliceblue-subhash
|
Dayend for aliceblue users with accessToken
|
aliceBlueWithoutApi
|
use aliceblue without api
|
alicebot
|
AliceBot简单的 Python 异步多后端机器人框架文档·指南·API 参考·示例简介AliceBot 是一个简单的 Python 异步多后端机器人框架,支持多种协议适配,可以轻松地编写易于学习和使用的插件来拓展其功能。本项目受到了NoneBot项目的启发,您可以在对比小节中查看这两个项目的异同,以便您选择更适合自己的机器人框架。特点简单:AliceBot 使用了非常灵活且易于使用的插件编写方式,您只需要编写两个方法即可实现一个功能强大的插件。灵活:AliceBot 的适配协议并不与任何一种库或网络协议绑定,您可以自由选择或编写适合您的适配器。高效:AliceBot 基于 Python 的异步 I/O,轻松处理大量请求。较少的封装,在保持易用的同时追求最好的性能。目前 AliceBot 官方维护了以下协议适配:OneBot (CQHTTP) 协议(支持 QQ 等)ws和ws-reverse连接方式OneBot v12 协议的ws和ws-reverse连接方式mirai-api-http 协议2.0+ws和reverse-ws连接方式钉钉企业机器人的 outgoing (回调) 连接方式更多协议正在适配中 ...更多信息:简介 - AliceBot 文档即刻开始安装:pipinstallalicebot[all]第一个 AliceBot 项目:fromalicebotimportBotbot=Bot()bot.load_adapters("alicebot.adapter.cqhttp")bot.run()第一个 AliceBot 插件:fromalicebotimportPluginclassEcho(Plugin):asyncdefhandle(self)->None:awaitself.event.reply(self.event.message.replace("echo ",""))asyncdefrule(self)->bool:ifself.event.adapter.name!="cqhttp":returnFalseifself.event.type!="message":returnFalsereturnself.event.message.startswith("echo ")更多信息请参阅 AliceBot文档。对比本项目受到了NoneBot项目的启发,以下简单介绍两者的异同。相同点:两者都是使用 Python 编写的,使用了协程异步的高性能机器人框架。两者都支持多种协议。两者都会对机器人收到的事件进行解析和处理,并按优先级分发给插件 (事件响应器) 来完成具体的功能。两者都基于 MIT 协议开源,这意味着您可以在遵循协议的前提下任意使用本项目。不同点:总的来说,NoneBot 是一个较为全面的机器人框架,而 AliceBot 是一个小巧简洁的机器人框架,它不包含一些复杂的高级特性,但更加灵活且易于学习。AliceBot 的插件编写风格和 NoneBot 不同,相对而言,AliceBot 更加注重于易于入门和“渐进式框架”,这意味着 AliceBot 大部分的功能都是可选的,您只需要了解很少的知识即可开始使用,随着项目规模的扩大和复杂性的增加,您可以继续深入需要的特性,而不需要一开始就掌握全部的特性。“它是一个可以与你共同成长、适应你不同需求的框架。”NoneBot 在实现上与 HTTP / WebSocket 通讯协议深度绑定,它需要一个支持 ASGI 服务器协议的“驱动器”,而 AliceBot 并不与任何协议绑定,它甚至可以用来驱动您的树莓派智能音箱。当然,如果您只需要一个支持常见网络聊天工具的机器人框架的话,它们并没有什么区别。NoneBot 拥有相对庞大的用户基数和社区规模,也拥有数量众多的插件,而 AliceBot 则是一个新生项目,这意味着如果您使用 NoneBot 您可能会更加容易找到已经编写完毕的您感兴趣的插件,并且您当您遇到问题时也能够更快地查找到相关资料或者获得解答。总而言之,两者有着各自的特点,您可以根据需要选用。许可证AliceBot 采用 MIT 许可证开放源代码。本项目的图标由迷糊小梦神绘制,作为本项目的一部分,使用与本项目相同的许可证开放使用。
|
alicebot-adapter-apscheduler
|
AliceBot-Adapter-APSchedulerAPScheduler 定时任务
|
alicebot-adapter-cqhttp
|
AliceBot-Adapter-CQHTTPOneBot(CQHTTP) 协议适配
|
alicebot-adapter-dingtalk
|
AliceBot-Adapter-DingTalk钉钉协议适配
|
alicebot-adapter-mirai
|
AliceBot-Adapter-CQHTTPMirai 协议适配
|
alicebot-adapter-onebot
|
AliceBot-Adapter-OneBotOneBot v12 协议适配
|
alicebot-plugin-template
|
AliceBot-Plugin-TemplateAliceBot 插件模板
|
alicechess
|
Alice ChessThis project allows you to play Alice Chess, a variant of chess.InstallationThe package may be installed throughpip:$pipinstallalicechessRulesHere is adescription of the concept and rules.Notable game rules:A piece's move must be valid on the board it is on, which means that a piece
on Board B can block a check on Board A after teleporting (since the move was
valid on Board B, and the move overall was legal because the king is not
staying in check). See the above link for a more detailed argument on this.Castling: A king and rook may only castle if neither has moved already,
the king is not in check, the squares they will move to are vacant on both
boards, and the king does not move through check (on Board A) or into check.
After the castle, both pieces will teleport to the other board.En passant: A pawn may capture another pawn through en passant if your
pawn is on Board B and the enemy pawn advances two spaces, teleporting to the
space right next to yours on Board B. (This results in a situation that looks
like regular en passant.) Note that due to teleporting to the other board
after each move, this can only be achieved by a pawn thatdoes notadvance
two squares on its first move. Also, if there is a piece on Board B where the
en passant move would go (i.e., your pawn can already capture a piece
normally), then en passant will not take place.Fifty move rule: If both players have made 50 moves each where no piece
has been captured or no pawn moved, then a player may claim a draw. However,
to simplify this case, the game will be automatically ended with a draw
(rather than allowing a player to claim a draw). This therefore overshadows
the 75-move rule, where a draw is automatically applied after 75 moves by both
players with no captures or pawn movements.Threefold repetition rule: If a board position appears three times in a
game (not necessarily in a row), then a player may claim a draw. However, to
simplify this case, the game will be automatically ended with a draw (rather
than allowing a player to claim a draw).How to playCommand LineTo start a game between two human players, you can run the package on the
command line:$python-malicechessA window will come up where the game can be played.You can also change the players you want to play with by specifying any two of
the builtin players (HumanPlayeror any of the bots defined inbots.py):$python-malicechessHumanPlayerRandomPlayerSeepython -m alicechess --helpfor a list of the possible players.ScriptYou can also use a script to run a game. You must initialize aGameobject
with the appropriate players, then call thestart_window()orstart()method.Here is an example:fromalicechessimportGame,HumanPlayerfromalicechess.botsimportRandomPlayerif__name__=="__main__":Game(white=HumanPlayer,black=RandomPlayer).start_window()Note that the class names (not instances) are passed to theGameconstructor.Thestart_window()method will, as implied, start an interactive window where
the game can be played. However, you can also opt to use thestart()method
instead, which will return the firstGameStateof the game, and then use
another way to ask the user(s) for input and play the game; for instance, you
could make the game entirely textual with user input provided with the keyboard.
See theAPI Documentationfor more information onGameStateobjects,
and check outwindow.pyfor how the windowed game is handled.In the interactive window, there is a 3 second delay for non-human player moves,
to simulate realism. This can be changed by passing a value fornon_human_player_delayto thestart_window()method.To play against your own bot, see theWriting a botsection.It is also possible for two bots to play against each other.Writing a botThe code is factored in a way to make it very easy for you to code your own bots
to play against. Simply extend thePlayerclass and implement the two abstract
methods for making a move and promoting a pawn. This class (not an instance) can
then be passed into theGameconstructor to start a game. See theAPI Documentationfor more information.Here is an example:fromalicechessimportGame,HumanPlayer,Player,PromoteTypeclassMyBot(Player):"""A very good bot that I wrote."""defmake_move(self,game_state):forpieceingame_state.yield_player_pieces():formoveinpiece.yield_moves():returnmovedefpromote(self,game_state):returnPromoteType.QUEENif__name__=="__main__":Game(white=HumanPlayer,black=MyBot).start_window()CreditThank you to Artyom Lisitsyn for inspiring me to pursue this project and to
Trung Phan for being my chess consultant and answering all my questions on rules
and technicalities.
|
alice-ci
|
Alice-CIContinous Integration framework with the goal of using the exact same code in CI and local env. Steps can be defined in yaml files, for syntax see the docs. Runs on LInux and Windows, Mac should work too, but not yet tested.UsageInstall with pip:pythom3 -m pip install alice-ciTo run:pythom3 -m alice [-i <ci.yaml>] STEPS
|
alice-client
|
Alice AI ServerLicenseAlice server is licensed under the "GNU General Public License v2.0". For more info, refer to theLICENSEfile in the repository root.
|
alice-core
|
Alice is a bot specialised to do codebase supervising on your behalf to prevent chaos situation in any layer of SDLC cycle.InstallInstalling is simple via pippip install alice-coreHow to useCreate your team specific input config filesetup your config fileStart Alice (any 1 way):modify the commands for particular config.yaml or config.json file path & port numberrun as flask appexport FLASK_APP=alice config=’config.yaml’; flask run –host 0.0.0.0 –port 5005orrun as uwsgi process(Install uwsgi>=2.0.14 on your machine for using this)export config=”config.yaml”; uwsgi –socket 0.0.0.0:5005 –protocol=http -w alice –callable appNote:default port number is ‘5000’ if not specifiedmore details3. Createweb-hook in githubset it to <IP_WHERE_ALICE_IS_LISTNING>:<PORT_NUMBER>/alice
Example:Wh questionswhy, what & howabout AliceWho can use alice on the flyGithub & Slack users
If you are using other projects, look at “how to contribute” sectionWilling to contributeContributingguidelinesBugs/RequestsPlease use the GitHubissuetracker to submit bugs or request features.ChangelogConsult the Changelogpagefor fixes and enhancements of each version.
|
aliceCSV
|
aliceCSV -- A concise and easy-to-use csv modulealiceCSV -- 一个简洁易用的csv模块==这是英文介绍,中文介绍请看中文文档==This module can operate CSV fileas two-dimensional tableand be able toconvert theminto other forms easily.aliceCSV hasstrong compatibilitywith CSVs that does not comply with RFC 4180 or be in incorrect formats.For example, if there is a file named "sheet.csv" and the following is its content.avc,"She said,"I like orange juice.""That is wrong.According to RFC 4180 Definition 7, it's incorrect because the double-quote inside the second field must be escaped by preceding it with another double quote.So the correct version is as following.avc,"She said,""I like orange juice."""If you try to open the wrong one in Excel, it will be interpreted into that one.avcShe said,I like orange juice.""However, aliceCSV can correctly identify the author's true intention for both of them.fromaliceCSVimport*myFile=open("sheet.csv",encoding="utf-8")print(csvTo2dTable(myFile))It will output the following result.[['avc', 'She said,"I like orange juice."']]And don't worry about this kind of compatibility affecting normal reading. For example, even if you want to express the wrong sheet Excel reads out, it shouldn't be done in that erroneous manner. Such writing is merely guesswork for the interpreter to decipher. The interpretation may vary due to text and interpretation program differences, making it uncertain what it's interpreted as. aliceCSV simply outputs results based on commonly made errors, opting for those that likely reflect the author's true intent.InstallYou can use pip to install it.pip install aliceCSVor clone thisgit clone https://github.com/yourusername/your-repo.git
cd your-repo
python setup.py installHow to use1.Create a two-dimonsion table basing on a csv filecsvTo2dTable(file, [optional]delimiter)file:an _io.BufferedReader of the targeted csv file, which is created by open() a csv filedelimiter : The delimiter used in the CSV file. This parameter can be omitted, with the default value being “,”.For example, there is a file named "sheet.csv".Name,Age,City
Alice,25,New York
Bob,30,San Francisco
Charlie,22,Los AngelesTo open this CSV file as a two-dimensional list using thecsvTo2dTable()function, you can follow this format:fromaliceCSVimportcsvTo2dTablefile_path="sheet.csv"# Using default delimiter (`,`), you can omit the delimiter parametertable=csvTo2dTable(open(file_path))print(table)Replace"sheet.csv"with the actual path to your CSV file. This code snippet demonstrates how to usecsvTo2dTable()to open a CSV file and display its content as a two-dimensional list.WARNING:1.If you are having trouble with CSV files like this, it may be because they have a space after the delimiter "," . So the actual delimiter is ", ".name, gender, height, address
John, male, 175cm, "123 Main Street, New York, USA"
Emily, female, 160cm, "45 Oxford Road, London, UK"
Michael, male, 180cm, "10 Rue de la Paix, Paris, France"
Sophia, female, 165cm, "25 Alexanderplatz, Berlin, Germany"If you fix it or learn more about it , you can go to the forth part4.Convert CSV files into other formats.2.Converte two-dimensional table into CSV file:TableToCsv(sheet, [optional]output_path, [optional]sheet_encoding, [optional]delimiter, [optional]line_break)sheet: a two-dimensional tableoutput_path: The location for the output result. It can be omitted, with the default value being “output.csv”.sheet_encoding: The encoding format used in the output file. It can be omitted, with the default value being “utf-8”.delimiter: The delimiter used in the CSV file. It can be omitted, with the default value being “,”.line_break: The line break used in the output file. It can be omitted, with the default value being "\n".To save a two-dimensional list as a CSV file using thetableToCSV()function, you can use the following example:fromaliceCSVimporttableToCsv# Example two-dimensional listtable=[['Name','Age','City'],['Alice',25,'New York'],['Bob',30,'San Francisco'],['Charlie',22,'Los Angeles']]tableToCSV(table)Then it will output the "output.csv"3.Fix the length of a CSV file or a tableThe functionfixLineLength()can be used to fix the length of lines in CSV files according to the RFC 4180 standard.It checks the number of fields in each row. If the number of fields in a row is less than the maximum number of fields, an empty field will be added at the end of the row to ensure that the number of fields in each row is the same.fromaliceCSVimportfixLineLength,csvTo2dTable,tableToCSV# Example CSV file: sheet.csvfile_path="sheet.csv"# Open the CSV file as a two-dimensional listfile=open(file_path)table=csvTo2dTable(file)# Fix the line lengths of the CSV filefixed_table=fixLineLength(table)# Output the resultoutput_file=tableToCSV(fixed_table)Replace 'sheet.csv' with the actual CSV file path.4.Convert into CSV files in other formatsMany CSV files use other delimiters, not commas.The following CSV file named "space.csv", which has a space between every two fields, which means it's delimiter is ", " , a comma with a space following.name, gender, height, address
John, male, 175cm, "123 Main Street, New York, USA"
Emily, female, 160cm, "45 Oxford Road, London, UK"
Michael, male, 180cm, "10 Rue de la Paix, Paris, France"
Sophia, female, 165cm, "25 Alexanderplatz, Berlin, Germany"aliceCSV can convert them easily.fixCSV(path, [optional]output_path, [optional]origin_delimiter, [optional]target_delimiter, [optional]origin_encoding, [optional]target_encoding, [optional]target_line_break)path: The path of the origin CSV file that needs to be convertedoutput_path: The location for the output result. It can be omitted, with the default value being “output.csv”.origin_delimiter: The delimiter of the origin CSV file.It can be omitted, with the default value being “,”.target_delimiter: The delimiter used in the output file.It can be omitted, with the default value being “,”.origin_encoding: The encoding of the the origin file.It can be omitted, with the default value being “utf-8”.target_encoding: The encoding used in the output file.It can be omitted, with the default value being “utf-8”.target_line_break: The line break of the output file.It can be omitted, with the default value being “\n”.You can use the functionfixCSV()to convert CSV files with different formats, as shown in the example below.fromaliceCSVimportfixCSVfixCSV("space.csv",origin_delimiter=", ",target_delimiter=",")This example demonstrates the conversion of the “space.csv” file into the resulting “output.csv” as follows.5.OthersLicensealiceCSV's code in this repo uses the MIT license, see ourLICENSEfile.
|
alice-demo
|
No description available on PyPI.
|
alice-demo1
|
No description available on PyPI.
|
alice-demo2
|
No description available on PyPI.
|
alice-demo3
|
No description available on PyPI.
|
alicefluentcheck
|
alicefluentcheckПодготовка примеров запросов от Яндекс.Алисы в стиле текучих выражений
|
alice-images
|
Alice-imagesWork with alice skills images: upload|list|deleteYandex docsUsageIn codefrom alice_images import upload_image
upload_image(
skill_id='<skill_id>',
oauth_token='<oauth_token>',
image='https://<image_url>/' # or path '/tmp/image.jpg'
)CLIUpload by url:alice_images --skill_id '<skill_id>' --oauth_token '<oauth_token>' upload 'https://<image_url>/'Upload by path:alice_images --skill_id '<skill_id>' --oauth_token '<oauth_token>' upload '/tmp/image.jpg'For more info use--help:$ alice_images --help
Usage: alice_images [OPTIONS] COMMAND [ARGS]...
Options:
--skill-id TEXT Alice skill id [required]
--oauth-token TEXT Account OAuth token [required]
--help Show this message and exit.
Commands:
delete
list
status
upload
|
alice_in_shell
|
AliceAlice is console utilite which helps you manage and define your aliases easy.Installation<!--pipinstallalice-->Put this lines into your shell rcbashif[-f~/.zsh_aliases];then.~/.zsh_aliasesfizshif[-f~/.zsh_aliases];then.~/.zsh_aliasesfiUsageYou can wrap this script in a function in your command shell rc file as sample:bash examplealice(){python3~/path/to/Alice/__main.py__$@source~/.bashrc}or for zshalice(){python3~/follow/the/white_rabbit/Alice/main.py$@source~/.zshrc}ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Make sure to add or update tests as appropriate.ChangelogLicenseMIT
|
aliceio
|
AliceIOАсинхронный фреймворк длянавыков АлисыизЯндекс.ДиалоговBased onaiogram v3ОсобенностиАсинхронность (asyncio docs,PEP 492)Тайп-хинты (PEP 484, может быть использован сmypy)ПоддержкаPyPyРоутеры (Blueprints)Машина состояний (Finite State Machine)Мидлвари (для входящих событий и вызовов API)Мощныемагические фильтрыРеакция надолгое время работыВажно!Настоятельно рекомендуется иметь опыт работы сasyncioперед использованиеaliceioБыстрый стартКак получитьskill_idи подключить навык к Алисе можно прочитатьтут.fromaiohttpimportwebfromaliceioimportDispatcher,Skillfromaliceio.typesimportMessagefromaliceio.webhook.aiohttp_serverimportOneSkillRequestHandler,setup_applicationdp=Dispatcher()skill=Skill(skill_id="...")@dp.message()asyncdefhello(message:Message)->str:returnf"Привет,{message.session.application.application_id}!"defmain()->None:app=web.Application()webhook_requests_handler=OneSkillRequestHandler(dispatcher=dp,skill=skill)WEB_SERVER_HOST="127.0.0.1"WEB_SERVER_PORT=80WEBHOOK_PATH="/alice"webhook_requests_handler.register(app,path=WEBHOOK_PATH)setup_application(app,dp,skill=skill)web.run_app(app,host=WEB_SERVER_HOST,port=WEB_SERVER_PORT)if__name__=="__main__":main()ДокументацияТуториалДокументацияПримерыСвязьЕсли у вас есть вопросы, вы можете посетить чат сообщества в Telegram🇷🇺@aliceio_ruЛицензияCopyright © 2023-2024K1rL3sandZloyKobraЭтот проект используетMITлицензию
|
alicelogs
|
This is a security placeholder package.
If you want to claim this name for legitimate purposes,
please contact us [email protected]@yandex-team.ru
|
alicelue-brocker-wihtoutapi
|
use alice blue without api
|
alice-messagebus-client
|
No description available on PyPI.
|
alice-ml
|
ALICE - Automated Labeling of Independent Components for EEGThe project aims to develop a sustainable algorithm for EEG IC artifact removal and collect a publically available dataset.Read about out project in the recentpublicationalice-mllibrary contains pretrained ML models to label IC. It's compatible withMNElibrary.RequirementsPython >= 3.7InstallationCurrently only pip installation is supportedpip install alice-ml
|
alicemsg
|
alicemsgSimple but yet functional library for building Yandex Alice skills
|
alice-onboarding
|
onboarding-pythonThe aim of this Python package is to manage the authentication and backend operations against Alice Onboarding API.If you want more information about how to integrate with Alice technology, please contact us [email protected] 3.8+Installation :computer:pip install alice-onboardingGetting Started 📈ConfigConfigure your credentials withConfigclassfromaliceimportConfigconfig=Config(api_key="<YOUR-API-KEY>")By default, this configure theproductionenvironment, if you
want to use thesandboxenvironment, you have two options:Addenvironmentparameter onConfigfromaliceimportConfig,Environmentconfig=Config(api_key="<YOUR-API-KEY>",environment=Environment.SANDBOX)OnboardingTo manage the operations with Alice Onboarding API, useOnboardingclass.
This class deals with authentication automatically.export ONBOARDING_API_KEY="<YOUR-API-KEY>"python examples/onboarding.pysee onboarding examplehereAuthentication 🔐To manage authorization and token creations, useAuthclass.Available tokens:Type TokenInfoBACKEND_TOKENUsed to secure global requests.BACKEND_TOKEN_WITH_USERUsed to secure global requests include user_id information embeddedUSER_TOKENUsed to secure requests made by the users on their mobile devices or web clients.To create a BACKEND_TOKEN_WITH_USER and a USER_TOKEN you will need a valid user_id obtained from Alice Onboarding API.export ONBOARDING_API_KEY="<YOUR-API-KEY>"python examples/auth.pysee auth examplehereSandbox (Only for early stages of integration)To manage the operations with the Sandbox API, useSandboxclass.export ONBOARDING_SANDBOX_TOKEN="<YOUR-SANDBOX-TOKEN>"python examples/sandbox.pysee sandbox examplehereAdvanced features 🎩⚠️ These features could not be available by default. If you obtain a HTTP Error (405 method not allowed). Please, contact us to make them available for your credentials.Certified OnboardingIf you need certify your user data, you can retrieve a certified Pdf Report with these feature.export ONBOARDING_API_KEY="<YOUR-API-KEY>"python examples/onboarding_with_certificate.pysee certified onboarding usagehereUser ScreeningAlice Onboarding API bring us the opportunity of screening a user over different databases & lists (sanctions, PEP, etc)..export ONBOARDING_API_KEY="<YOUR-API-KEY>"python examples/onboarding_with_screening.pysee screening onboarding usagehereWebhooksConfigure your webhooks through the api with theWebhooksobject.export ONBOARDING_API_KEY="<YOUR-API-KEY>"python examples/onboarding_with_webhooks.pysee onboarding webhooks usagehereNote: You can configure your webhooks using the Onboarding dashboard.Documentation 📄For more information about Alice Onboarding:https://docs.alicebiometrics.com/onboarding/Contact 📬[email protected]
|
alice-open-source-package
|
No description available on PyPI.
|
aliceoverwatch
|
ALICE OverwatchWelcome to ALICE Overwatch*, a project to provide real-time online data monitoring and
quality assurance using timestamped data from the ALICE High Level Trigger (HLT) and Data Quality Monitoring
(DQM). See theWeb Appto access Overwatch displaying ALICE data.Quick StartSetup OverwatchAlong with a variety of dependencies which can be handled by pip, ROOT is required. ROOT 6 is recommended.Local developmentTo setup for local development is fairly straightforward.$gitclonehttps://github.com/raymondEhlers/OVERWATCH.gitoverwatch
$cdoverwatch# Install webApp static data (Google Polymer and jsRoot)$cdoverwatch/webApp/static&&bowerinstall&&gitclonehttps://github.com/root-project/jsroot.gitjsRoot&&cd-# Probably best to do this in a virtualenv. The overwatch setup.py can't install this automatically.$pipinstallgit+https://github.com/SpotlightKid/flask-zodb.git# Install for local development$pipinstall-e.Docker ImageAs an alternative for advanced users or deployments, a docker image is available on Docker Hub under the namerehlers/overwatch. Be certain to mount a directory containing data into the image so it can be used! Note
that you will likely want to use this image interactively (-it) and may want to remove the container when you
are done (--rm). If the data is in a folder calleddata, it should look something like:$dockerrun-it--rm-vdata:/overwatch/datarehlers/overwatch:latest-py3.6.7/bin/bashInstallation only for running OverwatchFor just running Overwatch (ie. performing no development at all), it is also available onPyPIto install via pip.# Required as a prerequisite since it is not available on PyPI.$pipinstallgit+https://github.com/SpotlightKid/flask-zodb.git# Install the final package$pipinstallaliceOverwatchNote that the Overwatch package on PyPI includes all ofJSRootand Polymer components so that it can run out
of the box! While this is useful, it is important to remember that these dependencies must also be kept up to
date.Using OverwatchRetrieving test dataTo use most parts of the Overwatch project, you need some data provided by the HLT. The latest five runs of data
received by Overwatch can be accessedhere. The login credentials are available on theALICE TWiki. It includes at least the combined
file and the file from which it is built. If the run is sufficiently long, it will include an additional file
for testing of the time slice functionality.Process the data withoverwatchProcessingCreate a basic configuration file namedconfig.yamlcontaining something like:# Main options# Enable debug settings, messages at the debug leveldebug:trueloggingLevel:"DEBUG"# Reprocess the data each time, even if it is not detected as needed. It can be useful# to test modifications to the processingforceReprocessing:true# The directory defaults to "data", which is the recommended namedataFolder:&dataFolder"path/to/data"Then, start processing the data with:$overwatchProcessingVisualizing the data withoverwatchWebAppFor the webApp, add something similar to the following to yourconfig.yaml:# Define users for local usage_users:!bcrypt# The key, (below is "username") is the the name of your user, while the value, (below is "password") is your passwordusername:"password"# Continue to keep debug: true . It often helps with ZODB difficulties.Then, to start the webApp for data visualization, run:$overwatchWebAppBy default, the webApp will be available athttp://127.0.0.1:8850using the flask
development server (not for production). Login with the credentials that were specified in your
configuration file.Table of ContentsOverwatch Overview and ArchitectureProcessingWeb AppData ReceiversOverwatch ConfigurationOverwatch ExecutablesOverwatch DeploymentUsing Overwatch DataCitationAdditional ResourcesOverwatch ArchitectureThe Overwatch architecture is as shown above. Incoming data is handled by the receivers, which then make that data
available to be processed by the processing module. The output of the processing is then visualized via the WebApp.
In terms of code, the dependencies are as follows:python modules
---
base <- processing <- webApp
<- dqmReceiver
c++
---
zmqReceiverFurther information on each component is available in the sections below. More detailed technical information
is available in the READMEs for each package, as well as in the code documentation.Overwatch ProcessingThe main processing component of Overwatch is responsible for transforming the received data into a viewable
form, while also extracting derived quantities and performing checks for alarms. The main processing module is
written in python and depends heavily on PyROOT, with some functionality implemented through numpy. The module
is located inoverwatch/processing, with the fileprocessRuns.pydriving the processing.At a high level, the processing pipeline looks like:Extract run metadata (run number, HLT mode, detector subsystem being processed, available histograms in the particular run, etc).Determine which runs need processing.For example, if a new file has arrived for a particular run, then that run should be processed.If the run is new, determine which objects (histograms) are included and to which groups they belong, which processing functions need to be run, etc.The processing functions are implemented by each detector and called when requested by the particular detector.Apply those processing functions for each object (histogram), and store the outputs.Each detector (also known as a subsystem) is given the opportunity to plug into the processing pipeline at nearly every stage. Each one is identified by the three letter detector name. The detector specific code is located inoverwatch/processing/detectors/and can be enable through the processing configuration.Overwatch WebAppThe web app visualizes the information provided by the processing. The WebApp is based on flask and serves
the various forms of visualization, as well as providing an interface to request on-demand processing of the
data with customized parameters. Note that this causes a direct dependence on the processing module. The main
mode of visualization is via json files displayed usingJSRoot, which provides interactivity with the data.Overwatch Data ReceiversThe receivers are responsible for receiving data from the various input sources and writing them out.
Receivers write out ROOT files with the same filename information, thereby allowing for them to be processed
the same regardless of their source.Note that these receivers need to be deployed in the production environment, but would rarely, if ever,
need to be used by standard Overwatch users!HLT ReceiversData from the HLT consists of ROOT TObject-derived objects sent via ZeroMQ (ZMQ). The receiver is built in C++,
with dependencies on HLT files automatically downloaded, compiled, and linked with the receiver code when the
receiver is compiled.Installation follows the typical CMake pattern for an out of source build. When configuring, remember to specifying
the location of ZMQ and ROOT as necessary. Once built, the receiver executable is namedzmqReceive. A variety of
options are available - for the precise options, see the help (-hor--help).Note that if there is a ROOT version mismatch (for example, ROOT 5 on the HLT but ROOT 6 for Overwatch), it is
imperative to request the relevant ROOT streamers with the '--requestStreamers' option. Note that this option can
potentially trigger an internal ROOT bug, and therefore should not be used too frequently. Thus, the request is only
sent once when the receiver is started, and it should not be frequently restarted.DQM ReceiverData from DQM consists of ROOT files sent via a rest API. The DQM receiver code is written as a flask app.
The web app is installed as part of the Overwatch package and can be run using the flask development server
viaoverwatchDQMReceiver. It is configured using the same system as the rest of the Overwatch package, as
describedhere.For the APIs that are made available, please see the main server code inoverwatch/receiver/dqmReceiver.py.Overwatch ConfigurationOverwatch is configured via options defined in YAML configuration files. There is one configuration file each for
the Overwatch module (DQM receiver, processing, and webApp). Given the dependency of the various module on each
other, the configuration files are also interconnected. For example, if the webApp is loaded, it will also load
the processing configuration, along with the other configurations on which the processing depends. In particular,
below is the ordered precedence for configuration files../config.yaml
~/overwatch{Module}.yaml
overwatch/webApp/config.yaml
overwatch/processing/config.yaml
overwatch/receiver/config.yaml
overwatch/base/config.yamlThe ordering of the configuration files means that values can be overridden in configurations that defined
with a higher precedence. For example, to enable debugging, simply setdebug: truein your./config.yaml(stored in your current working directory) - it will override the definition ofdebugas false in the base
configuration.For a list of the available configuration options, see theconfig.yamlfile in the desired module.Overwatch ExecutablesIn addition to processing and web application, there are a number of other executables available within the
Overwatch project. They predominately play supporting roles for those two main packages.A large number of executables are based on modules defined inoverwatch.base. For further information, see
the documentation and the README inoverwatch.base. The following executables are defined there:overwatchDeploy- Handle execution of Overwatch executables in deployments. Although not recommended, it
can also be used locally. See alsobelowoverwatchUpdateUsers- Simple helper to update the database with the user information defined in the configuration.overwatchReceiverDataTransfer- Transfer data received by the ZMQ and DQM receivers to other Overwatch
sites and EOS.overwatchReplay- Replay processed Overwatch data as if it was newly received. Allows for full trending and
other testing of the data receiving process.overwatchReplayDataTransfer- Replay process Overwatch data to a specified data at a high rate. It is a
more general tool thanoverwatchReplayand is used for moving processed data viaoverwatchReceiverDataTransfer.The DQM receiver is defined inoverwatch.receiver. For further information, see the documentation and the
README inoverwatch.receiver. The following executables are defined there:overwatchDQMReceiver- Receiver data from the AMORE DQM system. Usage requires coordination with the DQM project.overwatchReceiverMonitor- Monitor the ZMQ receivers via timestamps written by the C++ executables to ensure that
they haven't died.The ZMQ receiver is defined inreceiver.src. It is a small C++ code base which receives files from the HLT
and writes them to disk. It automatically downloads and compiles a few minor AliRoot dependency classes as
needed, such that the only dependencies that must be install are ZMQ and ROOT. For further information, see
the documentation and the README inreceiver. The following executables are defined there:zmqReceive- The main executable which handles receiving QA information from the HLT.Overwatch DeploymentAll of the components of Overwatch can be configured and launched by theoverwatchDeployexecutable.
Overwatch is intended to be deployed with a docker image. Within this image, configurations are managed bysupervisord. All web apps are deployed behindnginx.The Dockerfiles and additional information is available in thedockerdirectory.Configuring DeploymentFor a configuration file containing all available options, seeoverwatch/base/deployConfig.yaml. Note that
this particular file isnotconsidered when configuring a deployment - it only considers the file that is passed
to it.Deployment with the docker imageThe role of the image is determined by the configuration passed into the environment variable config.
Available configuration options are described in the section
onconfiguring Overwatch for deployment.The image can then be run with something like (using an external configuration file call config.yaml):$dockerrun-d-vdata:/overwatch/data-econfig="$(config.yaml)"rehlers/overwatchUpdate Users in the DatabaseThere is a simple utility to update the users in the ZODB database. It can be called viaoverwatchUpdateUsers(it takes no arguments). It will use the username/password values stored in theconfig.yaml.Using Overwatch DataOverwatch has time-stamped, persistently stored EMCal and HLT subsystem data dating back to November 2015. The
TPC joined around April 2016 (Note that the HLT contains some data from various subsystems, such as the V0).
This data is available through the end of Run 2 in December 2018, with the exception of the period between
approximately mid-August to mid-October 2018, where some data was lost due to infrastructure issues.For further detailed information no usage of this data, please see theadditional resources.Accessing the dataThis data can be accessed in a few different ways:For small data volumes, the underlying data files can be accessed directly via the Web App. Simply select
the subsystem ROOT files from the main run list, and select the files to download.For larger volumes, there are a few options:The unprocessed data is also archived on EOS. It is stored in/eos/experiment/alice/overwatch. To access
this data, send a request to Raymond and ALICE Offline.REST API file access is also possible under certain circumstances - contact Raymond if this is needed.Utilizing the dataTo successfully use the Overwatch data, a few things must be kept in mind:Each timestamp is in the CERN time zone. For properly handling these times, I recommend thependulumpython package. For a concrete example, seeoverwatch.utilities.base.extractTimeStampFromFilename.Each data file is cumulative. To get the data received between time n and n+1, one must subtract the
histogram, graph, or other object at time n+1 from the object at time n. From examples of and further
information on how to do this, seeoverwatch.processing.mergeFiles.The data was requested every minute, but the data is not from precisely only that minute. The HLT runs the
QA components in a round-robin configuration through the HLT cluster. The new data that is received
corresponds to data the components sent into the mergers within that minute. The rate at which the QA
components send their data depends on the particular subsystem, but is often on the order of every 5
minutes. So the precision of the data is only on the order of approximately a few minutes.In general, Overwatch provides functionality to simplify working with this data, even if you don't want to use
all of the overwatch processing features. A much more detailed information on how all of this is handled can
be found in the documentation and code inoverwatch.processing.moveFiles.CitationPlease cite Overwatch as:@misc{raymond_ehlers_2018_1309376,
author = {Raymond Ehlers and
James Mulligan},
title = {ALICE Overwatch v1.0},
month = jul,
year = 2018,
doi = {10.5281/zenodo.1309376},
url = {https://doi.org/10.5281/zenodo.1309376}
}Additional ResourcesCHEP 2018 PresentationCHEP 2018 ProceedingsOverwatch data at ALICE QC/ML WorkshopName MeaningOVERWATCH:OnlineVisualization ofEmerging tRends andWebAccessible deTectorConditions using theHLT.
|
alice-pi
|
This package is designed to run many sensor monitoring and data pushing events asynchronously. It is inspired by and made to integrate with Home Assistant
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.