Saravanan666/pypi-org huggingface dataset:
Package: xnlp-time
xnlp_time处理时间模块集合安装pip install xnlp-time测试fromxnlp_timeimportTimeExtractortime_ext=TimeExtractor()deftime_extractor_parse(query):"""时间提取解析:param query::return:"""result=time_ext.parse(query)returnresultif__name__=='__main__':texts=['去年的今天','明天','后天','去年的五一','去年的五月十一号','明年的今天','明年的十月一日','腊月十三','端午节','十一','劳动节','植树节','双十一','元旦','春节','圣诞节','元宵节','正月十五','八一','六一','儿童节','妇女节','万圣节','大后天','明后两天','下午两点','上午两点','昨晚，前晚，明晚','上月今天天气咋样','昨天夜里两点','大后天','大前天','腊八节']fortextintexts:print('query：{},result：{}'.format(text,time_extractor_parse(text)))print("********the end********")
Package: xnm
xnmxnm is a lightweight networkmanager menu for window managers missing
one, such as xmonad.InstallEither retrieve from pypi using pip:$ pip install xsmsor clone this repo, and install usingsetup.py:$ git clone https://github.com/smcl/xsms
$ cd xsms
$ python setup.py installUsingOnce xnm is installed you can either launch it standalone in an xterm…$ python -m xnm… or you can add it as anactionin your xmobar setup, so that
when you click an icon (I useDynNetwork) like so:template = "... <action=`/home/sean/.xmonad/xnm.py`>%dynnetwork% <fn=1></fn></action> ..."TODONetworkManager can do a lot of things but I do not plan to do all of
them, but my goals are (checkbox indicates whether completed or not):wifi[x] search[x] connect (open and authenticated using wpa-psk)[x] disconnectmobile broadband[ ] configure new[x] connect[x] disconnectbluetooth[ ] search[ ] pairRight now it can search for and connect to open and protected wifi
networks, so there’s quite a way to go :)screenshotwork in progress
Package: xNormal
xNormal WrapperThis is a wrapper for the program xNormal that allows for easy scripting and automation.It is licensed under BSDFor any issues feel free to contact me at:contact@theorangeduck.comBasic UsageThe below generates a normal map and ambient occlusion map for the piano meshes.importxNormalxNormal.run("piano_high.obj","piano_low.obj","piano.png",width=256,height=256,gen_normals=True,gen_ao=True)Extended Usage 1The belows shows some more features.First the path is set. By default the wrapper assumesxNormal.exeis in the PATH variable.Secondly it generates a normal map with a switch coordinate system and an AO map with fewer rays and jitter. Finally is generates a convexity map.For a full list of options have a look in the source code where they are listed and easy to see.Finally it stores the errorcode of xNormal in case of something being wrong.importxNormalxNormal.path="C:\\Program Files\\xNormal\\3.19.3\\x64\\xNormal.exe"err=xNormal.run("piano_high.obj","piano_low.obj","piano.png",width=256,height=256,gen_normals=True,normals_x="+X",normals_y="-Z",normals_z="+Y",gen_ao=True,ao_rays=64,ao_jitter=True,gen_convexity=True,convexity_scale=0.75)Extended Usage 2Scripting xNormal goes via the form of supplying it with a configuration file. These can be generated and saved for later use.To build a configuration filexNormal.configit must be supplied with a list of high mesh options, a list of low mesh options and a list of generation options.importxNormalhigh_config=xNormal.high_mesh_options("piano_high.obj",scale=2.0)low_config=xNormal.low_mesh_options("piano_low.obj",scale=2.0)generation_config=xNormal.generation_options("piano.png",gen_normals=True)config=xNormal.config([high_config],[low_config],generation_config)f=open("later.xml",'w')f.write(config)f.close()
Package: xnote-web
Xnotexnote是一款面向个人的轻量级笔记系统，提供多种维度的数据管理功能，致力于把个人从信息过载中解放出来。它主要有如下特性拥有丰富的数据管理能力，支持多种笔记格式以及文件管理功能默认提供了一些常用的工具，同时提供扩展能力，用户可以编写各种插件满足自己的需求跨平台，支持Windows、Mac、Linux三大平台，可以在云服务上部署，也可以在本地运行100%自由的数据控制权，可以运行在多种数据库环境中支持小规模的多用户，面向多用户的商业场景使用请谨慎目前xnote定位是一个面向个人使用的小型笔记产品，不会重点投入以下方向大规模的多用户支持多用户协作功能如果你热爱技术爱折腾、需要多元的数据处理能力、希望完全掌控自己的文档数据，本产品将会是一个不错的尝试，欢迎试用反馈。体验demo网址https://1k5u680558.goho.co/测试账号 user01/123456, user02/123456 友情提示：管理员会不定期清理数据，请勿存放重要数据打一个广告, xnote现在已经打包上传到pypixnote-web, 这样可以通过模块化的方式进行二次开发, 我们在它的基础上开发了一个AI工具网站https://zhicikeji.com/以下是一些页面展示项目地址githubgitee如果使用过程中遇到问题，欢迎在项目主页提issue或者评论。安装&运行Docker-compose创建持久化数据目录mkdir data创建配置文件mv ./config/boot/boot.default.properties ./boot.properties修改boot.propertiesdocker-compose up -d物理机安装安装依赖环境Python >= 3.6安装依赖的软件包最小化安装(使用sqlite)python3 -m pip install -r config/requirements.min.txtMac/Linux执行python -m pip install -r config/requirements.txtWindows执行python -m pip install -r config/requirements.win.txt配置和启动默认的配置文件位于config/boot/boot.default.properties，具体的功能参考配置的注释# 切换到xnote目录>cdxnote# 复制配置并且进行自定义配置>cpconfig/boot/boot.min.propertiesboot.local.properties# 启动>python3app.py--configboot.local.properties如果不修改端口号，启动之后在浏览器打开http://localhost:1234/就可以使用了，初始化的管理员账号是admin，默认密码是 123456在云服务平台部署新浪SAE TODOCentOS - 百度BAE主要功能笔记管理支持多种格式：markdown/表格/相册/列表组织功能：通过笔记本/标签/优先级来管理文档分享功能：在笔记的详情页面，点击【更多】下拉列表里面的分享，可以将文章分享给未登录用户查看优先级管理：置顶、归档功能备份功能：笔记的修改历史搜索功能：支持整个知识库搜索和项目内搜索评论功能：支持登录用户的评论访问统计：最近、常用的访问统计其他文档工具文件管理多种视图：列表、网格文件操作：文件上传、下载、新建、删除、重命名、移动等操作文件工具：代码编辑器、文本阅读器、二进制查看器、文件内容搜索等等大文件支持：文件下载支持断点续传，支持超大文件上传（测试过1G文件）扩展：支持开发插件扩展工具箱Python文档(pydoc)文本处理(文本对比、代码生成、密码生成)编解码工具(base64、md5、进制转换、等等)条形码、二维码生成器图像处理（合并、拆分、灰度转换）提供扩展能力，开发者可以自己开发插件系统扩展由于每个人的需求不同，单一系统很难满足，开发者可以根据自己需要编写插件来扩展系统的功能。具体可以参考文档插件扩展。具体特性如下插件中可以监听系统消息，包括笔记、提醒、文件、时间、系统五种类型的消息插件可以通过category属性设置分类，显示在笔记、文件、系统等功能的选项入口中可以通过模板创建插件相关文档更新日志系统架构编码规范插件扩展搜索扩展数据库迁移协议GPL
Package: xn-reverser
xn-reverserEnumerate possible ASCII text being spoofed by a particular IDN domain nameHow it worksThe basic algorithm for how this library works is as follows:Convert rawxn--IDN domain to Unicode representation (usingidnalibrary)For each Unicode char in the domain:Check a pre-built mapping for possible ASCII characters that look similar to the Unicode character
(i.e. plaintext ASCII characters that the Unicode character could be spoofing)Compute theCartesian productof the character lists (usingitertools.product) to generate the possible plaintext domain namesUsageimportxn_reverserresult=xn_reverser.xn_reverser("xn--80ak6aa92e.com")print(result["possible_spoofed_ascii"])xn_reverser() returns a dict containing the following elements:domain_raw(string): the actualxn--raw IDN domain provided as the inputdomain_idn_rendered(string): the rendered Unicode form of the IDN domainpossible_spoofed_ascii(list): a list of possible ASCII domains converted from the IDN formCaveatsDoes not parse subdomains. Must provide a base domain
Package: xnrl
Distribution Statement A. Approved for public release. Distribution unlimited.Author:
Naval Research Laboratory, Marine Meteorology DivisionThis program is free software:
you can redistribute it and/or modify it under the terms
of the NRLMMD License included with this program.
If you did not receive the license, seehttps://github.com/U-S-NRL-Marine-Meteorology-Division/for more information.This program is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the included license for more details.xNRLhelps you read NRL NWP output into xarray Datasets nested within Pandas DataFrames.InstallxNRL requires numpy, pandas, and xarray.Install with pippipinstallxnrlClone and install with pipgitclonehttps://github.com/U-S-NRL-Marine-Meteorology-Division/xnrl.gitcdxnrl
pipinstall-e.The-emakes the code editable.You can update the code withcdxnrl
gitpulloriginmainInstall with CondaCopy theenvironment_xnrl.ymlfile and create the Conda environment.condaenvcreate-fenvironment_xnrl.ymlNote: This only installs the current main branch and does not let you edit the code. You can update xnrl (and all packages in the environment) withconda env update -f environment_xnrl.ymlExamplesimportxnrl# Load COAMPS flatfiles into an xarray Datasetfp='<path>/*pre*00120*'ds=xnrl.open_dataset(fp,model='COAMPS')
Package: xnrpc
xnrpcxnrpc is a light-weight, reliable and language-agnostic library for
distributed communication between server-side processes.
It builds on top of zerorpc and gevent, simple ,efficient and robust.featuressupport heartbeat and timeoutgraceful exceptions handlersupport pipeline commandsasynchronous I/O, support large concurrencyvery simple to usedemoa simple server and client example:fromxnrpc.serverimportRpcInterface,ServerManagerfromxnrpc.clientimportopen_clientfromxnrpc.common.logimportget_log_log=get_log(__name__)classOperationRpcInterface(RpcInterface):defls_file(self):_log.info('Operation ls file')returnNonedefcheck_ip(self):_log.info('Operation check ip')returnNoneif__name__=='__main__':# 启动RPC服务器rpc_interface=OperationRpcInterfaceurl='tcp://127.0.0.1:7772'server=ServerManager(url,rpc_interface,name='Test Server')server.start()# 建立一个客户端连接withopen_client(url)asclient:client.ls_file()client.check_ip()# 停止服务器server.stop()ResourcesGitHub repositoryPython User Guide
Package: xntool
xntool has many convenient tools, usexntool--helpto show more examples.installusage:pipinstallxntoolWikishow honey wordsusage:xntoollovetail likeusage:xntooltail/var/log/web.log'python'convert Windows’ CRLF into Unix’s LFusage:xntooldos2unix/var/log/web.logreplace text in fileusage:xntoolreplacedata.txtpythonperlevaluate file’s md5usage:xntoolmd5data.txtupload picture to qiniufirst login <http://www.qiniu.com/>, get your configuration and modify/usr/etc/xntool/xntool.conf:#  Access Key and Secret KeyACCESS_KEY='xxxxxxxxxxxxxxxx'SECRET_KEY='yyyyyyyyyyyyyyyy'# your URLURL_PRE='http://yidaospace.qiniudn.com/'# your bucket nameBUCKET_NAME='yidaospace'usage:xntoolqiniu/tmp/picsyou can fetch the urls of uploaded pictures inurl.txtMorefor more, please usexntool--help…ResourcesGitHub repositoryPython User Guide
Package: xnumpy
xnumpyA Python utility library for working with expanded NumPy arrays.Free software: BSD 3-ClauseDocumentation:https://xnumpy.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand thenanshe-org/nanshe-cookiecutterproject template.History0.1.0 (2016-10-12)First release on PyPI.
Package: xnxx-api
XNXX APIDescriptionXNXX API is an API for xnxx.com. It allows you to fetch information from videos using regexes and requests.Disclaimer[!IMPORTANT] The xxnx API is in violation to xnxx's ToS!Copyright Information: I have no intention of stealing copyright protected content or slowing down
a website. Contact me at my E-Mail, and I'll take this Repository immediately offline.EchterAlsFake@proton.meQuickstartHave a look at theDocumentationfor more detailsInstall the library withpip install xnxx_apifromxnxx_api.xnxx_apiimportClient,Quality,threaded# Initialize a Client objectclient=Client()# Fetch a videovideo_object=client.get_video("<insert_url_here>")# Information from Video objectsprint(video_object.title)print(video_object.likes)# Download the videovideo_object.download(downloader=threaded,quality=Quality.BEST,output_path="your_output_path + filename")# SEE DOCUMENTATION FOR MOREChangelogSeeChangelogfor more details.ContributionDo you see any issues or having some feature requests? Simply open an Issue or talk
in the discussions.Pull requests are also welcome.LicenseLicensed under the LGPLv3 LicenseCopyright (C) 2023–2024 Johannes HabelSupportLeave a star on the repository. That's enough :)
Package: xo1
xo1Python framework for creating terminal applications.Requirements>=python-3.7>=eaf-0.2Installation$pipinstallxo1DevelopmentInstallation$poetryinstallTesting$poetryrunpytest-s-vtests/# run all tests$poetryrunpytest--cov=xo1-s-vtests/# run all tests with coverage$poetryrunblackxo1/tests/# autoformat code$# run type checking$poetryrunpytest--mypy--mypy-ignore-missing-imports-s-vxo1/tests/$# run code linting$poetryrunpytest--pylint-s-vxo1/tests/DocumentationTo be added
Package: xo2
xo2Python framework for creating 3D applications.Requirements>=python-3.7>=eaf-0.2Installation$pipinstallxo2DevelopmentInstallation$poetryinstallTesting$poetryrunpytest-s-vtests/# run all tests$poetryrunpytest--cov=xo2-s-vtests/# run all tests with coverage$poetryrunblackxo2/tests/# autoformat code$# run type checking$poetryrunpytest--mypy--mypy-ignore-missing-imports-s-vxo2/tests/$# run code linting$poetryrunpytest--pylint-s-vxo2/tests/DocumentationTo be added
Package: xoa
xoa is intended to help reading and manipulating observed
and simulated ocean data.
It is heavily based onxarray.InstallationFrom conda:conda install -c conda-forge xoaFrom pypi:pip install xoaDocumentationThe xoa documentation is currently generated and hosted by readthedocs:https://xoa.readthedocs.ioSources and helpSources are available on the xoa github page:https://github.com/shom-fr/xoa.
Here you can also
participate todiscussionsand post tickets forrequestsandissues.Licensexoa is a property ofShomand is published under theApache 2.0 license.
Package: xoak
# xoak[![Tests](https://github.com/xarray-contrib/xoak/workflows/test/badge.svg)](https://github.com/xarray-contrib/xoak/actions?query=workflow%3Atest)
[![Coverage](https://codecov.io/gh/xarray-contrib/xoak/branch/master/graphs/badge.svg?branch=master)](https://codecov.io/github/xarray-contrib/xoak?branch=master)
[![Documentation Status](https://readthedocs.org/projects/xoak/badge/?version=latest)](https://xoak.readthedocs.io/en/latest/?badge=latest)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xoak/master?filepath=doc%2Fexamples)Xoak is an Xarray extension that allows point-wise selection of irregular,
n-dimensional data encoded in coordinates with an arbitrary number of
dimensions.It provides a built-in index adapter for
[Scipy](https://docs.scipy.org/doc/scipy/reference/)’scKDTree, as well as
adapters for index structures implemented in these 3rd-party libraries (optional
dependencies):[Scikit-Learn](https://scikit-learn.org):BallTreeandKDTree, which
support various distance metrics.[pys2index](https://github.com/benbovy/pys2index):S2PointIndexfor
efficient indexing of lat/lon point data, based ons2geometry.Xoak also provides a mechanism for easily adding and registering custom index adapters.## InstallXoak can be installed using conda (or mamba):`bash $ conda install xoak-cconda-forge`or pip:`bash $ python-mpip install xoak `Xoak’s optional dependencies can be installed using conda:`bash $ conda installscikit-learnpys2index-cconda-forge`## DocumentationDocumentation is hosted on ReadTheDocs:https://xoak.readthedocs.io/## LicenseMIT License, see LICENSE file.
Package: xoa-utils
Xena OpenAutomation UtilitiesXena OpenAutomation Utilities (XOA ANLT Utility) provides aninteractive shellfor users to control Xena testers viacommand-line interface(CLI) commands to performance operations such as ANLT testing and resource management in an interactive fashion.InstallationSeeinstallation guideStep-by-Step GuideSeestep-by-step guide
Package: xocr
[toc]普通验证码直接用ddddocr即可识别，如果有识别不了的可以提交可支持纯数字英文+数字数学运算滑块验证码从社区和群里了解目前只通过opencv就可以识别目标位置，特别是需要算出x距离，至于用户行为需要自己写分类淘宝滑块可以通过js或者pymouse及pyautogui实现滑动js代码event=document.createEvent('MouseEvents');event.initEvent('mousedown',true,false);document.querySelector("#nc_1_n1z").dispatchEvent(event);event=document.createEvent('MouseEvents');event.initEvent('mousemove',true,false);Object.defineProperty(event,'clientX',{get(){return260;}})document.querySelector("#nc_1_n1z").dispatchEvent(event);缺口滑块importhashlibimportcv2defget_location(bg_file_path,fg_file_path=r'./files/images/aaa.png'):# 读取背景图片和缺口图片bg_img=cv2.imread(bg_file_path)# 背景图片tp_img=cv2.imread(fg_file_path)# 缺口图片# 识别图片边缘bg_edge=cv2.Canny(bg_img,100,200)tp_edge=cv2.Canny(tp_img,100,200)# 转换图片格式bg_pic=cv2.cvtColor(bg_edge,cv2.COLOR_GRAY2RGB)tp_pic=cv2.cvtColor(tp_edge,cv2.COLOR_GRAY2RGB)# 缺口匹配res=cv2.matchTemplate(bg_pic,tp_pic,cv2.TM_CCOEFF_NORMED)min_val,max_val,min_loc,max_loc=cv2.minMaxLoc(res)# 寻找最优匹配# 绘制方框th,tw=tp_pic.shape[:2]tl=max_loc# 左上角点的坐标br=(tl[0]+tw,tl[1]+th)# 右下角点的坐标cv2.rectangle(bg_img,tl,br,(0,0,255),2)# 绘制矩形hash_data=hashlib.md5((str(bg_file_path)).encode('utf8')).hexdigest()cv2.imwrite(f'../files/out_result/{hash_data}.jpg',bg_img)# 保存在本地returnmax_loc用户行为参考慢->非常快->快->很慢
Package: xoc-utils-python
# xoc-utils-pythonAn XO core project in python that provides utils functionalities, including data processing and Kafka client.----## Kafka### Producer```producer = KProducer('kafka_server_origin', 'service_name')message = json.dumps({'hello': 'world'})producer.produce('topic_name', message)```Example [here](examples/kafka_producer.py)### ConsumerConsumer without retry```consumer = KConsumer('kafka_server_origin', 'group_id', 'service_name', poll_timeout=1, retries=0)# Add handler for a topicdef printMsg(msg):print('consuming message: ', msg)raise Exception('I am Exception.')consumer.add_handler('topic_name', printMsg)consumer.consume()```Example [here](examples/kafka_consumer.py).If you want to use retry feature, you can just set retries to the times you want it to retry, like 3.Example [here](examples/kafka_consumer_retry.py)## Others### SingletonThis provide you a way to create a singleton instance.```from xoc_utils import Singletonclass YourClass(metaclass=Singleton):pass```## DevelopmentYou get start from [here](https://packaging.python.org/tutorials/distributing-packages/#packages).To debug your package, you don't have to release it, you can just run```python setup.py install```then it will be installed on your machine.
Package: xodoo
xodoois collection of various scripts intended to be used for odoo.
It is based onclick-odooto connect and manage odoo.Scriptsxodoo-migrateMigration tool intended to run various migration scripts for Odoo. It should
be used when it does not make sense to run module migrations (e.g. need
to generate some customer specific data that is not directly related with any
module).Usage: xodoo-migrate [OPTIONS] PATH

  PATH:  migration file or directory of migration files.

  Migration file must end with .py extension and must have 'migrate' function
  that expects 'env' and 'shared_data' argument.

  'shared_data' argument is a dictionary that collects previous
  migration scripts returned values (key is migration script name).
  If return (of 'migrate' function) is None, it is not included in
  shared_data.

Options:
  -c, --config FILE          Specify the Odoo configuration file. Other ways
                             to provide it are with the ODOO_RC or
                             OPENERP_SERVER environment variables, or
                             ~/.odoorc (Odoo >= 10) or ~/.openerp_serverrc.
  -d, --database TEXT        Specify the database name. If present, this
                             parameter takes precedence over the database
                             provided in the Odoo configuration file.
  --log-level TEXT           Specify the logging level. Accepted values depend
                             on the Odoo version, and include debug, info,
                             warn, error.  [default: warn]
  --logfile FILE             Specify the log file.
  --rollback                 Rollback the transaction even if the script does
                             not raise an exception. Note that if the script
                             itself commits, this option has no effect. This
                             is why it is not named dry run. This option is
                             implied when an interactive console is started.
  -f, --force TEXT           Specify migration file names (without extension)
                             to force migrate. It will migrate even if it was
                             already migrated. Must be subset of migration
                             files provided in a path.
  -s, --sort-algorithm TEXT  Sort algorithm to sort migration files before
                             migration. Possible choices: sorted, natsorted
  --help                     Show this message and exit.If you use--rollbackoption, make sure you do not runcr.commit()in
your scripts, otherwise it will have no effect (script changes are automatically
committed if they do not fail at the end of transaction).
Package: xo-gd
XObject + GlobalData - Version 3.2.8 - Startlight✨xObject + Global DataUse Python Like You Never Have Before !Easy Acces To:🔔 Events and Triggers💛 Realtime MultiProcessing🏃 Instant Dynamic DB📁 Filesytem & Web Watchdog🌐 Sockets, MQTT, P2P, API Server⚡ Supports Fast Prototyping To Large Scale Systemsxo-gdversion number: 3.2.8 ChatParadise
author: Tami BarOverviewUse Python Like You Never Have Before, Easy Acces To: Events and Triggers, Realtime MultiProcessing, Instant Dynamic DB, Filesytem & Web Watchdog, Sockets, MQTT, P2P, API Server, Supports Fast Prototyping To Large Scale SystemsInstallation / UsageTo install use pip:$ pip install xo-gdOr clone the repo:$ git clone https://github.com/fire17/xo-gd.git
$ python setup.py installTo Use xObject:
In python run:
$ from xo import *
or:
$ import xo ; xo = xo.ok()ContributingTBDExampleTBD
Package: xoinvader
XOInvaderAttempt to create small but serious game usingpythonandncurses.RequirementsGeneral>= python-3.7>= eaf-0.2>= xo1-0.1>= toml-0.10ncurses >=5.9InstallationFrom PyPI$pipinstall--userxoinvaderDevelopment$poetryinstall$poetryrunxoigameTesting$maketest# for all tests$makeview_cov# run all tests and view coverage$# pass additional arguments to pytest via PYTEST_ARGS env variable$# you can pass args such way to test and view_cov make targets$maketestPYTEST_ARGS='-m "not slow"'# don't run slow tests$pytest--markers# show all markers$pytestxoinvader/path/to/test_file.py# run separate fileDocumentationAutogenerated from sourceshere.Developmentwiki.Build documentation from sources:$makedocs$makeview_docs# build and open in firefox
Package: xolib
OverviewThis is a simple helper Python 2 & 3 package to interface with the
JSON-RPC over WebSockets API ofXenOrchestra’sxo-server.Usagefrom xolib import xo, XoError, XoApiError, XoTimeoutError
from __future__ import print_function

xo_instance = xo('ws://localhost', timeout=30)
try:
  xo.session_signInWithPassword(email='lala', password='test')
except XoError:
  print('Wrong password?')

try:
  xo.call('somemethod', somemethod_arg1=arg1, somemethod_arg2=arg2)
except XoTimeoutError:
  print('xo-server did not respond within 30 seconds.')
except XoApiError:
  print('Fix your arguments.')
Package: xolphin-api
Library installationLibrary can be installed viapippip install xolphin-apiAnd updated viapip install xolphin-api --upgradeOr manually from sourcegit clone https://github.com/xolphin/xolphin-api-python.git
cd xolphin-api-python
python setup.py installUsageClient initializationimportxolphinclient=xolphin.Client('<username>','<password>')RequestsGetting list of requestsrequests=client.request().all()forrequestinrequests:printrequest.id,request.product.idGetting request by IDrequest=client.request().get(961992637)print(request.product.brand)Request certificateccr=client.request().create(24,1,'csr string','EMAIL')ccr.address='Address'ccr.approver_first_name='FirstName'ccr.approver_last_name='LastName'ccr.approver_phone='+12345678901'ccr.approver_email='email@domain.com'ccr.zipcode='123456'ccr.city='City'ccr.company='Company'ccr.subject_alternative_names.append('test1.domain.com')ccr.subject_alternative_names.append('test2.domain.com')ccr.dcv.append({'domain':'test1.domain.com','dcvType':'EMAIL','approverEmail':'email@domain.com'})request=client.request().send(ccr)print(request.id)Create a noteresult=client.request().send_note(1234,'My message')print(result.message);Get list of notesresult=client.request().get_notes(1234)fornoteinresult:print(note.messageBody);Send a “Comodo Subscriber Agreement” email//currentlyavailablelanguages:en,de,fr,nlresult=client.request().send_ComodoSA(124,'test@example.com')print(result.message);Request Callback (OV and EV certificates)vc=client.request().configure_validation_call(order_id)vc.date="2024-01-26"vc.time="11:00"vc.timezone="Europe Amsterdam"vc.phoneNumber="132456789"request=client.request().send_validation_call(vc);CertificateCertificates list and expirationscertificates=client.certificate().all()forcertificateincertificates:print(certificate.id,certificate.isExpired())Download certificatecert=client.certificate().download(961983489,'CRT')withopen('crt.crt','wb')asf:f.write(cert)SupportProducts listproducts=client.support().products()forproductinproducts:print(product.id,product.brand)Decode CSRdata=client.support().decode_csr('csr string')print(data.type,data.size)