Saravanan666/pypi-org huggingface dataset:
Package: xxdiff-scripts
This package provides a number of scripts that are used to perform a variety of
tasks that all involve getting user verification and feedback using the xxdiff
graphical differences viewer.For example, there are scripts to perform global renaming of strings within a
large codebase, where each transformed file is viewed by the user with an
xxdiff, accepted, rejected or merged changes written over the original file
(file backups are supported).  Also, this infrastructure is mostly provided as
modules, in order to allow users to write file transformations in Python and to
leverage this interactive confirmation process.There are also scripts that visualize diffs for a number of SCM systems, like
CVS, Subversion, etc.  This package was born after a number of these useful
scripts had sprouted, and it became apparent that sharing the common code for
the scripts would be a great advantage to tools writers.See documentation for a full list of the scripts and their role:http://furius.ca/xxdiff/doc/xxdiff-scripts.html
Package: xxh
Package DescriptionThis package provides a Python interface to the xxHash fast non-cryptographic
hash algorithm. Inspired byexisting Python wrappers for xxHash, this package exposes both the 32 and
64-bit versions of the algorithm and leveragesCythonto
provide better support for incremental updating of a hash using data
encapsulated in a range of Python container classes. The package is compatible
with Python 2.7 and later.Quick StartMake sure you havepipandCythoninstalled; once you do, install
the package as follows:pip install xxhDevelopmentThe latest source code can be obtained from the project website atGitHub.Authors & AcknowledgementsSee the includedAUTHORS.rstfile for
more information.LicenseThis software is licensed under theBSD License.
See the includedLICENSE.rstfile for
more information.
Package: xxj-nameko-dependency
薪行家代付nameko dependencyinstallpipinstallxxj-nameko-dependencyconfig通过yaml文件方式配置nameko环境变量XXJ:
  MCHNT_NUM: ${XXJ_MCHNT_NUM}
  API_BASE_URL: ${XXJ_API_BASE_URL}
  DES_KEY: ${XXJ_DES_KEY}
  PUBLIC_KEY: ${XXJ_PUBLIC_KEY}
  PRIVATE_KEY: ${XXJ_PRIVATE_KEY}How to use?fromxxjimportXXJclassTestService(Base):xxj=XXJ()@rpcdefcreate_package(self,data):returnself.xxj.call("remit/createpackage",data)
Package: xxkcd
An (unofficial) Python wrapper around xkcd APIsPython 2 and 3 compatible. Requires an internet connection.ExamplesFor full usage, see thewiki.>>>fromxxkcdimportxkcd,WhatIf>>>x=xkcd(353)>>>xxkcd(353)>>>print(x.transcript)[[Guy1istalkingtoGuy2,whoisfloatinginthesky]]Guy1:You're flying! How?Guy2:Python!Guy2:Ilearneditlastnight!Everythingissosimple!Guy2:Helloworldisjust'print "Hello, World!" 'Guy1:Idunno...Dynamictyping?Whitespace?Guy2:Comejoinus!Programmingisfunagain!It's a whole new world up here!Guy1:Buthowareyouflying?Guy2:Ijusttyped'import antigravity'Guy1:That's it?Guy2:...Ialsosampledeverythinginthemedicinecabinetforcomparison.Guy2:Butithinkthisisthepython.{{Iwrote20shortprogramsinPythonyesterday.Itwaswonderful.Perl,I'm leaving you. }}>>>print(x.title)Python>>>print(x.alt)Iwrote20shortprogramsinPythonyesterday.Itwaswonderful.Perl,I'm leaving you.>>>what_if=WhatIf(1)>>>print(what_if.title)RelativisticBaseball>>>print(what_if.question)Whatwouldhappenifyoutriedtohitabaseballpitchedat90%thespeedoflight?>>>print(what_if.attribute)-EllenMcManisfromxxkcdimportxkcd,WhatIf# Get random comicxkcd.random()# Get number of latest comicxkcd.latest()# Get random What If? articleWhatIf.random()# Get number of latest What If? articleWhatIf.latest()InstallingFromPyPI$pipinstallxxkcdFrom source$gitclone'https://github.com/MitalAshok/xxkcd.git'$python./xxkcd/setup.pyinstall
Package: xxl-admin-sh
xxl-admin-sh安装要求python>=3.9pipinstallxxl-admin-sh安装成功后可直接用xxl进入程序xxl用法首次使用会使用默认配置，退出后会自动保存到配置文件帮助命令help# 可显示所有可用命令# 此外任意命令、子命令可通过-h选项显示帮助信息，比如job-h
group-h配置命令configenv-set#设置环境配置configlist-clusters#当前环境可用集群列表configadd-cluster#添加集群到当前环境configremove-cluster#从当前环境移除集群切换命令gotoprod#可切环境gotoprodcn#可切环境+集群gotocn#可在当前环境切集群可显示所有可用命令执行器列表grouplist
grouplist-a#显示所有集群下面的任务列表joblist
joblistxxx#模糊搜索joblistxxx-a#模糊搜索所有集群下面的joblistDemoJobHanlder#精确搜索任务执行jobrunDemoJobHanlder
jobrunDemoJobHanlder-a#所有集群都执行jobdebugDemoJobHanlder# 自动使用本地地址触发新增任务jobadd--execDemoJobHanlder--group10--cron"0 0 0 * * ？"--title示例任务2更新任务jobupdateDemoJobHanlder--cron"0 0 10 * * ？"--title示例任务2开启、停止任务jobonDemoJobHanlder#开启joboffDemoJobHanlder#停止
Package: xxmind
** xxmind  新版本已经出来了
xxmind是将xmind固定格式转为xls的转换工具。使用说明：
1） 安装：
pip install xxmind
2） 执行
Python -c "from xxmind.main import  Main; Main()"
3） 按模板xmind格式要求，编写用例
4） 运行工具，把xmind转化为xls、xlsx格式的文件注： 为方便后期操作方便可以 把上面的 运行命令放到bat或shell文件中，下次直接双击运行#######################################################################
Last update time: 2018-11-13
By： 8034.com#######################################################################
0.3.5 修改了模板
0.4.0 支持了python3.7#######################################################################打包 检查python setup.py check打包 生成python setup.py sdist上传twine upload dist/*使用pip install xxmind更新pip install --upgrade xxmind卸载pip uninstall -y xxmind
#######################################################################MANIFEST.ininclude pat1 pat2 ...   #include all files matching any of the listed patterns
exclude pat1 pat2 ...   #exclude all files matching any of the listed patterns
recursive-include dir pat1 pat2 ...  #include all files under dir matching any of the listed patterns
recursive-exclude dir pat1 pat2 ... #exclude all files under dir matching any of the listed patterns
global-include pat1 pat2 ...    #include all files anywhere in the source tree matching — & any of the listed patterns
global-exclude pat1 pat2 ...    #exclude all files anywhere in the source tree matching — & any of the listed patterns
prune dir   #exclude all files under dir
graft dir   #include all files under dir
Package: xx-ner-demo
Feature | Description |— | — |Name|xx_ner_demo|Version|0.0.0|spaCy|>=3.2.2,<3.3.0|Default Pipeline|tok2vec,ner|Components|tok2vec,ner|Vectors| 0 keys, 0 unique vectors (0 dimensions) |Sources| n/a |License| n/a |Author| [n/a]() |### Label Scheme<details><summary>View label scheme (15 labels for 1 components)</summary>Component | Labels |— | — |`ner`|CARDINAL,DATE,GPE,LANGUAGE,LAW,LOC,MONEY,NORP,ORDINAL,ORG,PERCENT,PERSON,PRODUCT,QUANTITY,TIME|</details>### AccuracyType | Score |— | — |ENTS_F| 0.00 |ENTS_P| 0.00 |ENTS_R| 0.00 |TOK2VEC_LOSS| 1600.17 |NER_LOSS| 1439.14 |
Package: xxnlp
XNLP首先是document embedding: 怎么把原始的一个段落/推文给转换成一个embedding, 这里有很多的Embedding模型(bert,xlnet,)和sentence-embedding模型在得到了段落的embedding基础上, 下一步是怎么把信息给整合起来, 这里可以用attn+lstm或者transformer
Package: xxprogram
xxprogram这是一个随机名称生成器，使用程序员相关的梗，可用于生成若干用户名（有重复可能），eg:IN[1]:  import XXProgram as P
        P.Python.faker(k=3)
OUT[1]:  ['自带游标卡尺的Python程序员', 
         '不会修电脑的Python程序员', 
         'import 别人的程序的Python程序员']
IN[2]:  P.faker(k=3)
OUT[2]:  ['0 Error 0 Warning的程序员',
         'IT界首屈一指的的C++程序员',
         '不写文档的Shell程序员']安装pip install xxprogram或cd xxprogram
python setup.py install
Package: xx-swahili-spacy
Feature | Description |— | — |Name|xx_swahili_spacy|Version|0.0.1|spaCy|>=3.2.2,<3.3.0|Default Pipeline|tok2vec,ner|Components|tok2vec,ner|Vectors| 0 keys, 0 unique vectors (0 dimensions) |Sources| n/a |License| n/a |Author| [n/a]() |### Label Scheme<details><summary>View label scheme (15 labels for 1 components)</summary>Component | Labels |— | — |`ner`|CARDINAL,DATE,GPE,LANGUAGE,LAW,LOC,MONEY,NORP,ORDINAL,ORG,PERCENT,PERSON,PRODUCT,QUANTITY,TIME|</details>### AccuracyType | Score |— | — |ENTS_F| 0.00 |ENTS_P| 0.00 |ENTS_R| 0.00 |TOK2VEC_LOSS| 1213.70 |NER_LOSS| 642.62 |
Package: xxt
XXTXXT is a multifunctional Python library designed to enhance various aspects of programming by providing an extensive set of functions and classes related to time, numbers, and randomization.Additional classes for using the chat and image API of OpenAI included (need your own OpenAPI token)UsesWait functionClear functionFunctions to get time and dateClasses for a chatbot, imagebot, numbers and random choicesInstallationpip install xxtChangelog0.0.1 (17/7/2023)First Release0.0.2 (22/07/2023)Better DocumentationChangelog0.0.3 (22/07/2023)Chatbot Class0.0.4 (26/07/2023)Imagebot ClassBetter Documentation (website)0.0.5 (26/07/2023)QR Code Generator
Package: xxtea-py
IntroductionXXTEA is a fast and secure encryption algorithm. This is a XXTEA library for Python.It is based on CFFI, so it is fast and support both cpython and pypy.It is different from the original XXTEA encryption algorithm. It encrypts and decrypts raw binary data instead of 32bit integer array, and the key is also the raw binary data.Installationpip install xxtea-pyUsagePython2:importxxteatext="Hello World! 你好，中国！"key="1234567890"encrypt_data=xxtea.encrypt(text,key)decrypt_data=xxtea.decrypt(encrypt_data,key)print(text==decrypt_data);Python3:importxxteatext="Hello World! 你好，中国！"key="1234567890"encrypt_data=xxtea.encrypt(text,key)decrypt_data=xxtea.decrypt_utf8(encrypt_data,key)print(text==decrypt_data);
Package: xx_wizard
XX精灵1 简介1.使用pynput实现键盘鼠标的监听与控制1.1监听键盘鼠标操作并录制为脚本文件1.2执行录制的脚本文件回放键盘鼠标操作2.图形化界面使用tkinter实现2 安装与使用2.1 安装pip3installxx_wizard2.2 使用fromxx_wizardimportWizardWizard().run()3 功能介绍3.1 录制3.1.0 界面预览3.1.1 脚本名称本次录制存储的脚本名称,名称不存在则新建,已存在则覆盖3.1.2 鼠标轨迹是否记录鼠标轨迹,默认开启3.1.3 鼠标间隔开启鼠标轨迹后,轨迹坐标间隔超过x像素时才会记录到脚本中,数值越小轨迹越平滑,相应的记录的脚本体积也越大3.1.4 录制热键使用键盘控制开始录制和停止录制,按下该键跟鼠标点击按钮起到相同的效果3.1.5 窗口隐藏录制开始时最小化窗口,录制结束后窗口恢复3.2 回放3.2.0 界面预览3.2.1 脚本名称下拉选择一个要回放的脚本,如果没有请先录制3.2.2 重复次数重复执行脚本的次数,默认为0,即不重复执行3.2.3 重复间隔重复次数大于0时,执行完一次脚本延迟x秒后重复下一次执行3.2.4 回放热键使用键盘控制开始回放和停止回放,按下该键跟鼠标点击按钮起到相同的效果3.2.5 窗口隐藏回放开始时最小化窗口,回放结束后窗口恢复更新记录1.1.1修改解决windows系统鼠标样式失效的问题1.1.0修改提示信息改为鼠标悬浮时展示修改切换界面时鼠标样式1.0.4修改修改描述信息修改说明文档1.0.3修改代码结构调整修改使用说明1.0.2修改修改使用说明1.0.1新增增加说明文档1.0新增发布第一个版本
Package: xxx-chat
Englishxxx-chatQuick startUse this command line to install the python packages:pip3installxxxchatOr use the following command line to guide you to a specific python version, if you have multiple versions of python locallypython3.x-mpip3installxxxchatFeatures...RequirementsA terminal with Python and pip installed:Installed python environment and python version >= 3.9Installingpip3installxxxchatUninstallpip3uninstallxxxchatFeedback or questions...LicenseMIT
Package: xxxreport
xxxreportxxxreportis a tools to extract all TODO/XXX comments to generate one plain text or html summary document.xxxreportis inspired by Zope xxxreport tools (http://svn.zope.org/Zope3/trunk/utilities/).How to use :$ easy_install xxxreportExtract comments :$ xxxreport --title=WsgiDAV ~/my_python_projects/
===================================
TODO/XXX Comment report for WsgiDAV
===================================


Generated on Sun, 01 Nov 2009 19:27:33 CET

Summary
=======

There are currently 3 TODO/XXX comments.

Listing
=======

File : wsgidav/addons/virtual_dav_provider.py:220

        # TODO: this is just for demonstration:
        self.resourceData = _resourceData



File : wsgidav/addons/virtual_dav_provider.py:350

#            dict["etag"] = util.getETag(file path), # TODO: should be using the file path here
            dict["contentType"] = res.getContentType()
            dict["contentLength"] = res.getContentLength()
            dict["supportRanges"] = True

File : wsgidav/addons/mysql_dav_provider.py:335

        # TODO: calling exists() makes directory browsing VERY slow.
        #       At least compared to PyFileServer, which simply used string
        #       functions to get displayType and displayRemarks
        if not self.exists(path):More information :$ xxxreport --help0.1.3 (2009-11-06)FeaturesAdd--file-extensionoptionAdd--marker-prefixoption
Package: xxx.scraper
1)algoritm - scrap all posts inline2)bin/scraper_worker3) go to 3 folderfrom imagehash import dhashfrom iso8601 import parse_datefrom PIL import Image as PIL_Imagecur_im1 = PIL_Image.open('/home/t/Desktop/videos/3/test.jpg')cur_hash1 = str(dhash(cur_im1))GO TO REDIS select 1set 2f2b0b2b33232323 "380668111208"4)import osimport redispath = '/home/t/Desktop/videos/images'two_dir = os.listdir(path)r = redis.StrictRedis(host="localhost", port=6379, charset="utf-8", decode_responses=True, db=0)keys = r.keys('*')redis_values_dict = dict()for key in keys:redis_values_dict[r.get(key)] = Nonecount = 0for image in two_dir:if image not in redis_values_dict:os.remove('{}{}{}'.format(path, '/', image ))count += 10.0----  Initial version
Package: xxx.server_api
Getting Startedinstall latest nodejs by curl ->
look into ansibleneed nodejs to be installed lates is installed via curl
#sudo apt-get install nodejs npm  <– this installes bad nodejsnpm install     # installs from package.json
npm run bundle  # generates  bundle.js filefor dev copy static to container
docker cp xxx/server_api/static/. 0efd75c2ae99:/xxx_server_api/static0.0Initial version
Package: xyce
Future location of Python enabled Xyce.In the meantime, check out Xyce-PyMi at:https://github.com/xyce/xycewith instruction details at:https://cfwebprod.sandia.gov/cfdocs/CompResearch/docs/Xyce-PyMi-Guide.pdfAbout Xyce:Xyce (rhymes with "spice") is an open source, SPICE-compatible, high-performance analog circuit simulator, capable of solving extremely large circuit problems by supporting large-scale parallel computing platforms. It also supports serial execution on all common desktop platforms, and small-scale parallel runs on Unix-like systems. In addition to analog electronic simulation, Xyce has also been used to investigate more general network systems, such as neural networks and power grids. In providing an Open Source version of Xyce to the external community, Sandia hopes to contribute a robust and modern electronic simulator to users and researchers in the field.While designed to be SPICE-compatible, Xyce is not a derivative of SPICE. Xyce was designed from scratch to be a parallel simulation code, written in C++ and using a message-passing implementation (MPI). Xyce also leverages Sandia's open-source solver library, Trilinos, which includes a number of circuit-specific solvers, such as the KLU direct solver. With its modular and flexible design, Xyce applies abstract interfaces to enable easy development of different analysis types, solvers and models.Xyce is compatible with SPICE-based codes, in that it supports a canonical set of SPICE compact models and standard SPICE analysis methods, such as steady-state (.DC), transient (.TRAN), small-signal frequency domain (.AC), and noise (.NOISE). However, Xyce goes beyond most SPICE-based codes in a number of ways, including support for a large number of non-traditional models, such as neuron and reaction network models. Xyce also supports Harmonic Balance analysis (.HB), random sampling analysis, sensitivity calculations, and post processing of the simulation metrics (.FOUR and .MEASURE).
Package: xycepymi
Future location of Python enabled Xyce.In the meantime, check out Xyce-PyMi at:https://github.com/xyce/xycewith instruction details at:https://cfwebprod.sandia.gov/cfdocs/CompResearch/docs/Xyce-PyMi-Guide.pdfAbout Xyce:Xyce (rhymes with "spice") is an open source, SPICE-compatible, high-performance analog circuit simulator, capable of solving extremely large circuit problems by supporting large-scale parallel computing platforms. It also supports serial execution on all common desktop platforms, and small-scale parallel runs on Unix-like systems. In addition to analog electronic simulation, Xyce has also been used to investigate more general network systems, such as neural networks and power grids. In providing an Open Source version of Xyce to the external community, Sandia hopes to contribute a robust and modern electronic simulator to users and researchers in the field.While designed to be SPICE-compatible, Xyce is not a derivative of SPICE. Xyce was designed from scratch to be a parallel simulation code, written in C++ and using a message-passing implementation (MPI). Xyce also leverages Sandia's open-source solver library, Trilinos, which includes a number of circuit-specific solvers, such as the KLU direct solver. With its modular and flexible design, Xyce applies abstract interfaces to enable easy development of different analysis types, solvers and models.Xyce is compatible with SPICE-based codes, in that it supports a canonical set of SPICE compact models and standard SPICE analysis methods, such as steady-state (.DC), transient (.TRAN), small-signal frequency domain (.AC), and noise (.NOISE). However, Xyce goes beyond most SPICE-based codes in a number of ways, including support for a large number of non-traditional models, such as neuron and reaction network models. Xyce also supports Harmonic Balance analysis (.HB), random sampling analysis, sensitivity calculations, and post processing of the simulation metrics (.FOUR and .MEASURE).
Package: xychan
xychan is a “chan-style” message board system like Wakaba, Kareha,
Futaba, etc. Unlike these systems it’s written in Python instead of a
mess of Perl or PHP.[Actions speak louder than words. You can try it out here.](http://xychan-beta.mike.verdone.ca/)What is this, really?A “chan board” is a message board that allows for Anonymous
posting. Users can post messages without registering for an account or
even entering a name. However, there are means for them to
authenticate themselves and “prove” their identify if they so desire.Another focus is the ability of users to post images. One image can be
included with every post. A thumbnail of the image appears with the
post.Design Goalsxychan is designed to be:easily deployed on almosy any web server (via CGI, FastCGI, Passenger, or any WSGI runner)easily configured (uses SQLAlchemy to work with any database, from
SQLite3 to MySQL, PostgreSQL, etc.)easily extended and customized with CSS or template modificationscalable (at least compared to those other message boards)small yet powerfulStatusThis is BETA quality software. It is not yet stable. It changes a lot.DownloadsThe latest stable version is v0.2The latest stable version in an easily deployable zip file: [v0.2](http://mike.verdone.ca/xychan/xychan.zip)The easiest way to get xychan if you are a Python pro:$ pip install xychanStable source packages are in the [GitHub files section](http://github.com/sixohsix/xychan/downloads)Bleeding edge source for developers is in the [GitHub repository](http://github.com/sixohsix/xychan)How do I run it? - the EASY way (cgi)Your web server needs Python 2.5Your web server needs ImageMagick to support images on the boardDownload the easily deployable zip file, aboveCopy it to your webserver in an empty directory that supports CGIUnzip itModify xychan.cgi in case there’s anything you want to change thereModify htaccess and copy it to .htaccessAccess path/to/xychan.cgi/setup on your webserverHow do I run it? - the SMART wayYour web server needs Python 2.5Your web server needs ImageMagick to support images in the boardYour web server needs the following Python packages installed:
* bottle
* sqlalchemy
* Some kind of database (eg. sqlite3)Untar the xychan codebaseIn your WSGI server:from xychan import app
app.configure_db("postgres://user:password@host/dbname")
# (or some similar SQLAlchemy db url)
app.configure_image_dir("/some/safe/path/in/your/filesystem")Licensexychan is Free Software available under the GPL3 (GNU General Public
License v3).Those wanting to make closed-source commercial forks should contact me.Why is it called xychan?Characters typed at random.
Package: xy-cli
xy-cliexiahuang/xy-cliis a xy command tools.installinstall from pippip3installxy-cliinstall from gitgitclonehttps://github.com/exiahuang/xy-cli
python3setup.pyinstallgreen installxy_cli=`pwd`exportPYTHONPATH="$xy_cli:$PYTHONPATH"python3-mxy_cliUsagexy clone -f from_directory -t to_directory -d DATA1=NewData1 DATA2=NewData2 DATA3=NewData3packagepython3setup.pysdist
python3setup.pybdist_wininstpy2exe build windows exepy-3.4-mvenv.py34
.py34\Scripts\activate.bat# python -m pip install --upgrade pippipinstallpy2exesetuptools
pipinstallrequestsXlsxWriter
python-V
pythonsetup.pypy2exeAcknowledgementBasic on OpenSourcehistory2020/08/30 init project
Package: xycmap
xycmapBivariate colormap solutions.This package makes it easy to create custom two-dimensional colormaps, apply them to your series, and add bivariate color legends to your plots.Installationpip install xycmapUsageMake a custom interpolated colormap by specifying four corner colors (see recognized formatshere), and dimensionsn:importxycmapcorner_colors=("lightgrey","green","blue","red")n=(5,5)# x, ycmap=xycmap.custom_xycmap(corner_colors=corner_colors,n=n)Or make a colormap by mixing two matplotlib colormaps, and specifying dimensionsn:importmatplotlib.pyplotaspltxcmap=plt.cm.rainbowycmap=plt.cm.Greysn=(5,5)# x, ycmap=xycmap.mean_xycmap(xcmap=xcmap,ycmap=ycmap,n=n)With that in place, apply the colormap to two series that are numeric or categorical:colors=xycmap.bivariate_color(sx=sx,sy=sy,cmap=cmap)Note that you can apply limits to the axes, as well as pass custom bins for the axes (if numerical). See the docstring for details.Then simply passcolorsto your plot. To add a legend, create a new ax and runbivariate_legend()into the ax with the same parameters asbivariate_color(), e.g.:cax=fig.add_axes([1,0.25,0.5,0.5])cax=xycmap.bivariate_legend(ax=cax,sx=sx,sy=sy,cmap=cmap)MetaRemco Bastiaan Jansen –r.b.jansen.uu@gmail.com-https://github.com/rbjansenDistributed under the MIT license. SeeLICENSEfor more information.
Package: xyconvert
xyconvertThis is a python package for converting xy coordinates (in lng,lat order) in numpy array between WGS-84, GCJ-02 and BD-09 system.The conversion in numpy is much more efficient (50-70 times speedup) compared with previous Python implementations such aseviltransformandcoordTransform_pythat convert only a single point at each call.Install the packagepipinstallxyconvertUsagefromxyconvertimportgcj2wgsimportnumpyasnpgcj_xy=np.asarray([[104.07008157,30.73199687],[104.07008159,30.73177709],[104.06999188,30.73147758]])wgs_xy=gcj2wgs(gcj_xy)printwgs_xy'''[[104.06756309  30.73437796][104.06756312  30.73415829][104.06747357  30.73385904]]'''ReferenceThe code is partly copied/modified fromhttps://github.com/Argons/nextlocationandhttps://github.com/wandergis/coordTransform_py.
Package: xycrypto
xycryptoInstallationRequire Python 3.6+.pipinstall-UxycryptoCiphersThexycryptoprovides simple and elegant interfaces for ciphers.The cryptography components for ciphers we support:Availablestream cipher:ChaCha20,RC4.Availableblock cipher:AES,Blowfish,Camellia,CAST5,DES,IDEA,SEED,TripleDES.Availablemode:ECB,CBC,CFB,OFB,CTR.Availablepadding:PKCS7,ANSIX923,ISO10126.UsageFirstly, you should import the cipher class from the packagexycrypto.ciphers. The cipher class follows the following naming conventions:Forstream cipher,<cipher_name>.Forblock cipher,<cipher_name>_<mode>.>>>fromxycrypto.ciphersimportAES_CBCSecondly, you should create the instance of the cipher class. In this case, you should provide some arguments:keyfor all ciphers.ivforblock cipherinECB,CBC,OFB,CFBmode.nonceforblock cipherinCTRmode.paddingforblock cipherinECB,CBCmode.# The len(key) is 16 bytes for AES-128, you can use 32 bytes key for AES-256.>>>key=b'0123456789abcdef'# Note len(iv) should be equal to AES_CBC.block_size.>>>iv=b'0123456789abcdef'# We use PKCS7 padding.>>>cipher=AES_CBC(key,iv=iv,padding='PKCS7')Finally, callencryptordecryptmethod to encrypt or decrypt data respectively.>>>plaintext=b'Welcome to xycrypto!'>>>ciphertext=cipher.encrypt(plaintext)>>>ciphertextb'3\x0f\xad\xa6\x17\xc4}\xb9\t\x17\xf8\xae\xbb\xa2t\xb9o\xf2\xf6\x16\t\x0803\xaci\x0c\x19q\x9d\xa3O'>>>cipher.decrypt(ciphertext)b'Welcome to xycrypto!'Example>>>fromxycrypto.ciphersimportAES_CBC# The len(key) is 16 bytes for AES-128, you can use 32 bytes key for AES-256.>>>key=b'0123456789abcdef'# Note len(iv) should be equal to AES_CBC.block_size.>>>iv=b'0123456789abcdef'# We use PKCS7 padding.>>>cipher=AES_CBC(key,iv=iv,padding='PKCS7')>>>plaintext=b'Welcome to xycrypto!'>>>ciphertext=cipher.encrypt(plaintext)>>>ciphertextb'3\x0f\xad\xa6\x17\xc4}\xb9\t\x17\xf8\xae\xbb\xa2t\xb9o\xf2\xf6\x16\t\x0803\xaci\x0c\x19q\x9d\xa3O'>>>cipher.decrypt(ciphertext)b'Welcome to xycrypto!'