Saravanan666/pypi-org huggingface dataset:
Package: cxrandomwalk
CXRandomWalkFast library written in C for python to generate sentences based on random walks from networks. Can be used to generate input data for word2vec and other embedding techniques.InstallRequires python headers and a C11 compatible compiler, such as gcc or clang.To install it, simply run:pipinstallcxrandomwalkor clone this repository and install it from master by running:pipinstallgit+git://github.com/filipinascimento/cxrandomwalk.gitUsageThe walking algorithm uses regular random walks and biased random walks according to node2vec ([https://snap.stanford.edu/node2vec/]).Step 1: Import the librariesimportnumpyasnpimportcxrandomwalkasrwStep 2: Convert network to a edgelist and a list of weights (optional)vertexCount=10;edges=np.random.randint(0,vertexCount-1,(vertexCount*2,2))weights=np.random.random(size=vertexCount*2);Step 3: Load the network data in an agent objectagent=rw.Agent(vertexCount,edges,False,weights)To generate the sequences use:sequences=agent.generateWalks(p=2,q=3,verbose=True)The output is a list of lists with the walks.API Documentationcxrandomwalk.Agent(vertexCount,edges,directed=False,weights=None)vertexCount- number of vertices in the networkedges- list of edgesdirected- directed or notweights- list containing the weights of the edges (use the same order as edges)returns a rw.Agent instancecxrandomwalk.Agent.generateWalks(p=1.0,q=1.0,windowSize=80,walksPerNode=10,verbose=False,filename=None,callback=None,updateInterval=1000)p- for p in node2vec walks (1.0 for unbiased)q- for q in node2vec walks (1.0 for unbiased)windowSize- length of each walkwalksPerNode- number of sentences to be generatedverbose- enable verbose modefilename- save sentences to filename instead of returning the sequencescallback- callback function that runsupdateInterval- set the interval between iterations so that python interruptions workreturns a list of lists containing the sequences. If filename is provided, instead of returning a list, the method creates the file and fill with the walks, with words separated by spaces and sentences separated by new lines. It can be used directly on gensim.TODOInclude other kinds of walksBetter documentation and CLI helpExample with tqdm callbackimportnumpyasnpimportcxrandomwalkasrwfromtqdm.autoimporttqdmvertexCount=10000;edges=np.random.randint(0,vertexCount-1,(vertexCount*2,2))weights=np.random.random(size=vertexCount*2);agent=rw.Agent(vertexCount,edges,False,weights)defmake_pbar():pbar=Nonedefinner(current,total):nonlocalpbarif(pbarisNone):pbar=tqdm(total=total);pbar.update(current-pbar.n)returninnerprint(len(agent.generateWalks(q=1.0,p=1.0,verbose=False,updateInterval=1000,callback=make_pbar())))
Package: cx-release
CX ReleaserPackage to interact with docker registriesExamples:Create new release with recently build imagefromcx_releaser.src.releaseimportReleasenew_release=Release.from_remote('my_image')new_release.next().push()Rollback recently created releasefromcx_releaser.src.releaseimportReleaseall_releases=Release.get_all_from_remote('my_image')last,prev=all_releases[0],all_releases[1]last.rollback(prev)Command line script
Package: cx-releaser
CX ReleaserPackage to interact with docker registriesTo interact with AWS registry we should
export credentials as:Examples:export AWS_ACCESS_KEY_ID=my_access_id
export AWS_SECRET_ACCESS_KEY=my_secrte_keyCreate new release with recently build imagefromcx_releaser.src.releaseimportReleasefromcx_releaser.src.docker_registryimportAwsRegistrynew_release=Release.from_remote('my_image',AwsRegistry())new_release.next().push()Rollback recently created releasefromcx_releaser.src.releaseimportReleasefromcx_releaser.src.docker_registryimportAwsRegistryall_releases=Release.get_all_from_remote('my_image',AwsRegistry())last,prev=all_releases[0],all_releases[1]last.rollback(prev)Command line scriptAfter executingpip install cx_releaserexecutable should be available under cx_releaserExamples:
Push:cx_releaser --all_tenants --config_path my_conf.yml --version 1.0.0 push --equal_tags latestRollbackcx_releaser --all_tenants --config_path my_conf.yml --version 1.0.0 rollback --prev_release 0.9.0Example Config File for --config_path:aws_envs:dev:account_id:'131413450532'aws_access_key_id:my_access_keyaws_secret_access_key:my_secretimage_name:my_imagecheck_is_newest_version:true#this will force to push images only with greater versionscheck_is_new_hash:true#this will force to push images only with new content (different sha256 hash)version:0.0.0-betaequal_tags:[beta]#this will add tag beta to all release versionstags_to_move:[beta]#this will move release tag beta during rollback to pointed release
Package: cxroots
cxrootscxroots is a Python package for finding all the roots of a function,f(z), of a single complex variable within a given contour,C, in the complex plane.  It requires only that both:f(z)has no roots or poles onCf(z)is analytic in the interior ofCThe implementation is primarily based on[KB]and evaluates contour integrals involvingf(z)and its derivativef’(z)to determine the roots.  Iff’(z)is not provided then it is approximated using a finite difference method.  The roots are further refined using Newton-Raphson iff’(z)is given or Muller’s method if not.  See thedocumentationfor a more details and a tutorial.WithPythoninstalled you can install cxroots by entering in the terminal/command linepipinstallcxrootsExamplefromnumpyimportexp,cos,sinf=lambdaz:(exp(2*z)*cos(z)-1-sin(z)+z**5)*(z*(z+2))**2fromcxrootsimportCircleC=Circle(0,3)roots=C.roots(f)roots.show()print(roots)Multiplicity |               Root
------------------------------------------------
      2       | -2.000000000000 +0.000000000000i
      1       | -0.651114070264 -0.390425719088i
      1       | -0.651114070264 +0.390425719088i
      3       |  0.000000000000 +0.000000000000i
      1       |  0.648578080954 -1.356622683988i
      1       |  0.648578080954 +1.356622683988i
      1       |  2.237557782467 +0.000000000000iSee alsoThe Fortran 90 packageZEALis a direct implementation of[KB].Citing cxrootsR. Parini.cxroots: A Python module to find all the roots of a complex analytic function within a given contour(2018),https://github.com/rparini/cxrootshttps://doi.org/10.5281/zenodo.7013117BibTex:@misc{cxroots,
  author = {Robert Parini},
  title = {{cxroots: A Python module to find all the roots of a complex analytic function within a given contour}},
  doi = {10.5281/zenodo.7013116},
  url = {https://github.com/rparini/cxroots},
  year = {2018}
}DevelopmentInstall thepre-commitand then runpre-commit install.  The pre-commit scripts can also be run manually withpre-commit run --all-filesThe project uses:Blackto maintain consistent formatting. It is run as part of the pre-commit hook and is recommended to be run on save in the developer’s editor.isortto sensibly order import statements in Python files. It is also run as part of the pre-commit hook.Release ProcedureMaking a release on GitHub with the tag vX.Y.Z will update the documentation onmasterand push cxroots at the tagged commit to PyPI.The documentation can be manually generated by running./create_docsin thedocs_srcdirectory.References[KB](1,2)P. Kravanja and M. Van Barel.Computing the Zeros of Analytic Functions. Springer, Berlin, Heidelberg, 2000.
Package: cxsq
学工平台出校申请本项目为使用命令行提交哈尔滨工业大学学工平台出入校申请的工具。实现了按照配置文件登录，申请出校的功能。如何使用pip install cxsq按照下面模板填写账号密码等信息运行cxsq -c config_file [-d date1 date2 ... | -T | -t]出校日期参数参数可多选，添加多个日期-d date ...申请指定日期的临时出校，date格式为yyyyMMdd-t申请今日出校-T申请明日出校配置文件模板# 统一身份认证账号username:"1200000000"# 统一身份认证密码password:"PASSWORD"# 出校理由, 可选, 默认为空格reasons:["吃饭","睡觉","打豆豆"]开源许可证AGPL-3.0简单来说，建议您做到以下几点：任何基于或与本项目有间接接触的项目均使用 AGPL-3.0 协议当你使用本项目或对其修改时，如果你所服务的对象向您索要源代码，请不要拒绝请不要将本项目用于商业用途免责声明本项目仅为方便通过命令行进行每日上报的工具。按照LICENSE，开发者不对本工具的使用负责。
Package: cxx
CxxA C/C++ source generation package.UsageFirst, some context:Documents contain declarations.Declarations contain other declarations, statements and expressions.Some statements contain other statements and expressions.Expressions are either operators or literals. Operators contain other expressions.The general usage flow is:Populate aDocumentwithDeclarations of your choice.Format it as a string with anyDocumentFormattersubclass.Simple Exampleimportcxxeven_odd_enum=(cxx.EnumBuilder("EvenOdd",scoped=True).add_member("Even").add_member("Odd").build())get_even_odd_function=(cxx.FunctionBuilder("GetEvenOdd","EvenOdd").add_specifier("inline").add_argument("int","value",cxx.literals.integer(0)).add_statement(cxx.statements.return_(cxx.operators.other.conditional(cxx.operators.arithmetic.remainder(cxx.literals.identifier("value"),cxx.literals.integer(2),),cxx.literals.identifier("EvenOdd::Odd"),cxx.literals.identifier("EvenOdd::Even"),))).build())document=(cxx.DocumentBuilder(header=True).add_declaration(even_odd_enum.definition).add_declaration(get_even_odd_function.definition).build())formatter=cxx.ClangFormatter(configuration_style="google")print(formatter.format(document))Output:#pragma onceenumclassEvenOdd{Even,Odd,};inlineEvenOddGetEvenOdd(intvalue=0){returnvalue%2?EvenOdd::Odd:EvenOdd::Even;}"Factory" APIThe "factory" API allows you to create any element:cxx.document(...) -> Documentcxx.declarations.[specific declaration type](...) -> Declarationcxx.literals.[specific literal type](...) -> Literalcxx.operators.[specific operator type](...) -> Operatorcxx.statements.[specific statement type](...) -> StatementSome elements are awkward to create this way - such as functions, which contain arguments, internal statements, specifiers, and so on. For those elements, you should use a builder.Builder APIThere are several builders:cxx.ClassBuildercxx.EnumBuildercxx.FunctionBuildercxx.NamespaceBuildercxx.DocumentBuildercxx.CompoundStatementBuildercxx.FunctionCallOperatorBuildercxx.VariableDeclarationBuilderCurrent Unsupported FeaturesThis is a list of language features this package doesn't currently support.
This is not due to any inherent difficulty - other things were prioritized.Initializer list -int arr[3] = { 0, 1, 2 };For-range loop -for (auto a : vec) { ... }Structured binding -auto [a, b] = ...;Multiple-variable simple declaration -int a=5, b=2;Multiple-type typedef declaration -typedef int INT, *PINT;Typedef-specifier for declaration -typedef struct { ... } S;Exception handling -try,catch,throwTemplate and template specialization -template <typename T>New operator -newDelete operator -deleteFloat/decimal literals -0.123Development SetupInstall and configure poetry:pip3 install poetry
poetry config virtualenvs.in-project trueInstall development dependencies and pre-commit hookpoetry install --with dev
pre-commit installRun the tests:poetry run pytest
Package: cxx2rs
cxx2rsA rust-binding generator for C filesInstallation:pip install cxx2rsUse it like this:cxx2rs glib-2.0 /usr/include/glib-2.0/glib/gmain.h `pkg-config --cflags-only-I glib-2.0` > gmain.rs
       ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    ^^^^^^^^
          |        |                                  |                                       |
          |        |                                  compiler args (optional)                rust include file
          |        C include file
          library name (rust's #[link(name="glib-2.0")]Changelog0.3 (18/04/2015)Use bitflags for C enums0.2 (22/02/2015)Fix packaging0.1 (22/02/2015)Initial version
Package: cxxfilt
Demangling C++ symbols in Python / interface to abi::__cxa_demangleUsageInstall:pip install cxxfiltUsedemangleto demangle a C++ mangled symbol name:>>> import cxxfilt
>>> cxxfilt.demangle('_ZNSt22condition_variable_anyD2Ev')
'std::condition_variable_any::~condition_variable_any()'Non-mangled name will be kept intact:>>> cxxfilt.demangle('main')
'main'To demangle an internal symbol, useexternal_only=False:>>> cxxfilt.demangle('N3foo12BarExceptionE')
'N3foo12BarExceptionE'
>>> cxxfilt.demangle('N3foo12BarExceptionE', external_only=False)
'foo::BarException'Invalid mangled names will trigger anInvalidNameexception:>>> cxxfilt.demangle('_ZQQ')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/path/to/python-cxxfilt/cxxfilt/__init__.py", line 77, in demangle
    return demangleb(mangled_name.encode()).decode()
  File "/path/to/python-cxxfilt/cxxfilt/__init__.py", line 69, in demangleb
    raise InvalidName(mangled_name)
cxxfilt.InvalidName: b'_ZQQ'Usedemanglebto demangle name inbytes:>>> cxxfilt.demangleb(b'_ZNSt22condition_variable_anyD2Ev')
b'std::condition_variable_any::~condition_variable_any()'Make customDemanglerobjects to use specific C/C++ libraries:>>> from ctypes.util import find_library
>>>
>>> d = cxxfilt.Demangler(find_library('c'), find_library('stdc++'))
>>> d
<Demangler libc='libc.so.6' libcxx='libstdc++.so.6'>
>>>
>>> d = cxxfilt.Demangler(find_library('c'), find_library('c++'))
>>> d
<Demangler libc='libc.so.6' libcxx='libc++.so.1'>
>>> d.demangle('_ZNSt22condition_variable_anyD2Ev')
'std::condition_variable_any::~condition_variable_any()'Supported environmentsPython 3.6 or greater.Tested on Linux and macOS (see github actions). Should work on unix systems with libc and libc++/libstdc++.Will not work on Windows (PR welcome though).For Python 2.7 please use cxxfilt version < 0.3.Changelog0.3.0AddedDemanglerclass.import cxxfiltno longer fails when there are no C/C++ libraries available.
To check whether the default demangler is valid,
use the expression:not isinstance(cxxfilt.default_demangler, cxxfilt.DeferedErrorDemangler).Testingrun in shell:pytest
Package: cxxrdp
cxxrdpC++ implementation of RDPInstall via pipRun following command to install cxxrdp on your computerpip install cxxrdpHow to use?.. code:: pythonfrom cxxrdp import rdp

rdp([[0, 5], [5, 5], [10, 5], [15, 5]]).. code:: python[[0, 5], [15, 5]]
Package: cy2py
cy2py: seamless Neo4j integration in Python NotebooksInstallTo install, run:pip install cy2pyOr clone this repository and run:python setup.py installHow you can use itYou can use cy2py in two ways:as a line magic, it returns a Python dataframe that you can than manipulate as you wishas cell magic that will print a graph or dataframe if the result is tabularMagic argumentsYou can check the list of accepted arguments by running the following command:%cypher?%cypher[-aALIAS][-uURI][-usUSERNAME][-pwPASSWORD][-dbDATABASE][-qQUERY][-pPARAMS][-cCLOSE][-coCOLORS][-caCAPTIONS][-laLAYOUT][-l]optionalarguments:-aALIAS,--aliasALIASTheNeo4jconnectionconfigurationalias.YouafteryoudefineditthefirsttimeincombinationwiththeotherargumentsyoucanuseonlyittoconnecttotheNeo4jinstancewithoutrepassingtheargumentseachtime.Ifyoudon't specify it the first time you'llpasstheconfigit'llbecamethedefaultforeachconnection-uURI,--uriURITheNeo4jURI.YoucanusethiskindofURIinordertodefineaspecificdatabasetoquery:neo4j://localhost:7687/my-db-usUSERNAME,--usernameUSERNAMETheNeo4jUser-pwPASSWORD,--passwordPASSWORDTheNeo4jPassword-dbDATABASE,--databaseDATABASETheNeo4jDatabase,ifnotprovidedweusethedefault-qQUERY,--queryQUERYPasstheCypherqueryasargument.Validonlywhenyouuselinemagic.-pPARAMS,--paramsPARAMSAmapofCypherqueryparameters-cCLOSE,--closeCLOSECloseaDriverconnectionbyaliasorURI-coCOLORS,--colorsCOLORSAmaplabel/color-caCAPTIONS,--captionsCAPTIONSAmaplabel/caption-laLAYOUT,--layoutLAYOUTAmapforlayoutconfiguration-l,--listListactiveconfigurationsExampleUnder the examples directory you'll find a Google Colab notebook that shows how to use
cy2py in order to dive into a Neo4j crime dataset showing also how is easy
to seamlessly leverage other visualization libraries such as Ploty.
Package: cyal
Cyal - Cython Wrapper for OpenALCyal is aPythonwrapper forOpenAL, a cross platform, 3D audio API built by Creative Labs. This
project aims to be compatible with any conforming OpenAL 1.1 implementation, but receives the most testing onOpenAL
Soft. It is written inCython.InstallationInstall with pip, just as you would any Python package.pipinstallcyalBinary distributions are available for Windows, macOS and Linux, and include a bundled version of OpenAL Soft.Building from sourceWhen building from source, CMake will try to detect an existing OpenAL implementation on your system, and will use that
if it finds one. If an OpenAL implementation isn't found, OpenAL Soft will be downloaded, compiled, and bundled with
Cyal.Manual installation:# Clone the repositorygitclonehttps://github.com/lower-elements/cyalcdcyal# Install a simple wheel build toolpipinstallbuild# Build both the sdist and bdist (see the options to build if you only want to build one)python-mbuild.# Install the .whl file in the dist directoryContributingThis projectis hosted onGithub. Feel free tosubmit an issueif you find a bug,
open apull requestto contribute, or join our Matrix room, [#cyal:lowerelements.club][matrix-roomfor Cyal
discussion and support.LicenseCyal is licensed under the MIT License.MIT License

Copyright (c) 2023 Michael Connor Buchan <mikey@blindcomputing.org>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: cyanite
A plugin for using graphite with the cassandra-based Cyanite storage
backend.RequiresGraphite-API(preferred)or Graphite-web 0.10.X.Graphite-API is available on PyPI. Read thedocumentationfor more
information.Graphite-web 0.10.X is currently unreleased. You’ll need to install from
source.Installationpip install cyaniteUsing with graphite-apiIn your graphite-api config file:cyanite:
  urls:
    - http://cyanite-host:port
finders:
  - cyanite.CyaniteFinderUsing with graphite-webIn your graphite’slocal_settings.py:STORAGE_FINDERS = (
    'cyanite.CyaniteFinder',
)

CYANITE_URLS = (
    'http://host:port',
)Wherehost:portis the location of the Cyanite HTTP API. If you run
Cyanite on multiple hosts, specify all of them to load-balance traffic:# Graphite-API
cyanite:
  urls:
    - http://host1:port
    - http://host2:port

# Graphite-web
CYANITE_URLS = (
    'http://host1:port',
    'http://host2:port',
)Seepyr/cyanitefor running the Cyanite carbon daemon.Changelog0.4.6(2015-10-05): Return arbitrarily large intervals inget_intervals().0.4.5(2015-05-05): Handle path matches that return no data.0.4.4(2014-10-22): Chunk cyanite requests if they end up being too long
for cyanite.0.4.3(2014-05-15): Fix a KeyError when no data is returned by cyanite
for a given path.0.4.2(2014-04-11): Fix graphite-web compatibility when usingsettings.CYANITE_URLS.0.4.1(2014-04-10): Fix for multiple fetches when the results are empty.0.4.0(2014-04-10): Ability to fetch multiple paths at a time instead of
sequentially (requires graphite-api).0.3.0(2014-04-07): Change configuration syntax to allow multiple-node
cyanite setups.0.2.1(2014-03-07): Prevent breaking graphite rendering when no data is
returned from cyanite.0.2.0(2014-03-06): Graphite-API compatibility.0.1.0(2013-12-08): initial version.
Package: cyanobot
氰机cyanoBot👋即问即答，api请求式bot框架，适用于网页聊天机器人我们的优势无需调用其他api，直接在web对话中返回结果适配器编写简单易上手，快速对接第三方平台储存上下文信息，对话功能更加灵活开始使用1. 安装pip install cyanobot2. 引入from cyanobot.cb import *3. 注册机器人cb.bots_regist( bot_id  )注:bot_id为机器人识别码，必填，该方法请在运行前调用4. 运行cb.run()插件1. 注册插件#注册插件，请在cb.run()前执行cb.pugins_regist(插件名称)2. 编写插件在根目录下创建plugins文件夹在plugins下创建与插件名同名的文件夹在插件名文件夹中创建文件__init__.py现在，如果您想创建一个名为echo的插件，您的目录应该如下所示:┣ main.py   #项目主文件
┗ plugins/
  ┗ echo/
    ┗ __init__.py接下来，您可以在__init.py__中编写插件详细信息，例如:#echo插件plugin_data={'name':'echo',#插件名'version':'1.0',#插件版本'description':'echo',#介绍'commands':{#注册指令'echo':echo#键名为指令名，键值为指令对象}}然后，您应该创建指令对象(请确保该指令已经在plugin_data中注册)，例如:classecho(on_command):#继承指令类@handle_eventdefhandle(self):#必填函数#self.args为传入的参数，例如:用户输入为 /echo hello world ， 则参数列表为["hello","world"] ， 则echo指令返回值为 helloreturnself.send(self.args[0])如果您想对各项参数进行命名，可以进行如下操作:#假设您设计了一个获取天气的指令 weather#您希望用户输入 /weather <城市> <日期>#参数缺少时，您希望机器人进行追问classweather(on_command):#必填，声明该指令的参数名称，第一个参数将被自动命名为'城市'require_arg_names=['城市','日期']#若require arg names不为空，则返回的self.args为一个字典，键名为参数名，键值为参数值@handle_eventdefhandle(self):ifnotself.args['城市']:#require函数将对信息进行标记，并发送回用户#require 第一个参数为返回的文本，第二个参数为请求的参数名称，第三个为当前参数列表returnself.require('请输入城市','城市',self.args)elifnotself.args['日期']:returnself.require('请输入日期','日期',self.args)#参数齐全，返回天气信息returnself.send(...)效果如下:用户输入:/weather

bot返回:请输入城市

用户输入:北京

bot返回:请输入日期

用户输入:1月11日

bot返回:...您还可以自行获取通话的上下文，例如:...@handle_eventdefhandle(self):print(self.context)...更多功能正在开发中...适配器编写文档正在编写中...
Package: cyanobyte
Peripheral CodegenThis project is an example of how to describe peripherals with an intermediary layer (YAML files) which can be used to generate library files for a peripheral.It can also generate reference documentation for a peripheral, useful for embedding into datasheets.The tool works well for I2C devices, while SPI support is in alpha.This is not an official Google product.SetupNote: This project requires Python3. You can install using pippip install cyanobyteRun Codegencyanobyte-codegen -t templates/doc.md -o ./build peripherals/MCP4725.yamlOptions-t- A template file. You can provide multiple template files.-o- The output directory where files will be generated.-e- The directory that emboss folder is stored.-d- Debug flag to print out additional information.-c- Clean the output directory before generating files.One or multiple files can be passed as an argument.Cleanrm -rf ./buildRun Validatorcyanobyte-validator peripherals/MCP9808.yamlOne or multiple files can be passed as an argument.Peripheral YAML fileThe current spec is described indocs/cyanobyte.md. You can find all examples in theperipherals/directory.TestLintpython3 -m pylint --rcfile=test/pylintrc cyanobyte/*.pypython3 -m pylint --rcfile=test/pylintrc test/sampleData/*.pyUnit testpython3 -m unittest test.test_codegenTemplatesThetemplatesdirectory includes a set of canonical templates which can be used with this codegen tool.Theperipheralsdirectory includes a set of peripheral description files that have been created along with
the project. It is not an exhaustive list.Development setuppip install -r requirements.txt --userFor more advanced development, also install the dev list.pip install -r requirements-dev.txt --userContributorsContributions are welcome! SeeCONTRIBUTING.mdfor more information.When a pull request is submitted, a continuous integration task is run. The CI task must
be completed successfully before a patch is merged. You can see the specific rules run incloudbuild.yaml.LicenseSeeLICENSE
Package: cyansdk
简介Cyan 是一个简单易用的 QQ 机器人 Python SDK，基于 Python 的类型注解和异步特性。项目状态项目目前处于测试阶段，这意味着 SDK 所提供的操作不稳定，不建议用于生产环境。仓库HuajiTech GitLab（主仓库）：https://gitlab.huajitech.net/huajitech/cyanGitHub：https://github.com/huajitech/cyan特性异步操作：使用httpx、websockets异步框架及 Python 的异步特性化繁为简：简化 API 繁琐的操作，使用户容易上手类型注释：SDK 100% 使用类型注解，通过Pyright的严格检查，用户可使用支持类型检查的 IDE 减少 Bug 出现的可能性支持扩展：SDK 开放与 API 交互的函数，用户可通过提供的函数与 API 交互，实现 SDK 未实现的功能如何使用安装通过pip安装 Cyan (release)：pipinstallcyansdk通过pip安装 Cyan (nightly)：https://gitlab.huajitech.net/huajitech/cyan/-/packages文档https://huajitech.proj.zone/cyan示例fromcyanimportSession,Ticketfromcyan.eventimportChannelMessageReceivedEventfromcyan.modelimportChannelMessagesession=Session("https://sandbox.api.sgroup.qq.com/",Ticket("{app_id}","{token}"))@session.on(ChannelMessageReceivedEvent)asyncdefmessage_received(data:ChannelMessage):awaitdata.reply("收到消息：\n",data)session.run()更多