Saravanan666/pypi-org huggingface dataset:
Package: xkcd1172
xkcd1172Rapidly increases CPU temperature when holding down the spacebar.https://xkcd.com/1172Installation$pip3installxkcd1172RequirementsXorg (Wayland works if you are focused on an Xwayland window)SpacebarCPUBuilding$gitclonehttps://git.dawidpotocki.com/dawid/xkcd1172
$cdxkcd1172

$python3-mbuild
$pip3installdist/xkcd1172-<version>-py3-none-any.whlRunning standalone$xkcd1172Autostart$xkcd1172-a# Add to XDG autostart$xkcd1172-r# Remove from XDG autostartRunning as a libraryimportxkcd1172xkcd1172.start_daemon_thread()
Package: xkcd936
xkcd936Convert cumbersome strings into memorable phrases.Installationpip install xkcd936Usagefrom xkcd936 import visualize
memorable_str = visualize('k2dhE4hd@!Y')AboutThis generator performs an MD5 hash of the input. The resulting bits are used
to choose a grammatical template:article adj adj animaladj article adj animalThe dictionary can be upgraded to include patterns like:verb article adj nounarticle adj adj nounarticle adv adj nounadv verb article nounand a word for each slot.The total space is around 43 bits. This may not sound like much, but it
doesn't matter.Software doesn't just run on the computer -- it also runs in each of your
users' heads. For many problems with user-facing software, "adding more bits"
is the wrong solution. The right solution often involves tapping into the
user's natural cognitive and social capabilities.LicenseReleased under MIT license.
Package: xkcd-comics
xkcdThis is a script for downloading all the xkcd comicsHow to use the scriptclone the repo$gitclonehttps://xkcd.com/brayo-pip/xkcd.gitRun this code to install all the dependencies$cdxkcd$pip3install-rrequirements.txtThen run the script.$pythonxkcd/download.pyHow this script is better than most of the other scriptsI can't say for sure that this is the best script for downloading xkcd comics there is,
but I can say it's one of the fastest. The script uses persistent http connections which I haven't yet seen in another xkcd script.
The script skips previously downloaded comics and skips non-image comics such as js-scripts, it however highlights you of this and provides you with a link should you wish to visit the site yourself and see the 'interactive comic'.Other technical featuresThe script maintains a continuity file so that it can 'recall' the last comic it downloaded.
It does updates the continuity file every 10 comics, I didn't want to update too often as this could be a bottleneck.
The continuity file is also updated during this 'sleep' session.The script also has an amateur network congestion control, simply sleeps for 0.5 seconds for every 10 comics downloaded.This may be necessary once I introduce multi-threading.Upcoming featuresI wish to introduce multi-threading so as to be able to fully utilize the a user's bandwidth. Requesting multiple comics simultaneously and writing them to disk/SSD simultaneously.
Package: xkcdpassword
xkcdpassword
=A simple, pure Python, Xkcd-style password generator.e.g: “correct horse battery staple”When invoked, this package will generate a short list of unique words, perhaps to a specified number, and then return them on sys.std.out. The user can also specify to remove spaces so the output can be easily copy-pasted or piped. The word list is customizable (words.txt), and already curated for length.### PrerequisitesPython 2.7
Pyperclip### Installingsudo pip install xkcdpassword### Using$ xkcdpassword->correct horse battery staple$ xkcdpassword -ns->correcthorsebatterystaple$ xkcdpassword 3->correct horse battery$ xkcdpassword -ns 6->correcthorsebatterystaplethingexplainer$ xkcdpassword -h-> Syntax help### AuthorsDoug Walter-dougwritescode@gmail.com### LicenseThis project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details## AcknowledgmentsRandall Patrick Munroe, the ruler of the geek pantheon.
Package: xkcd.py
RequirementsThis module requires the following modules:beautifulsoup4requestsInstallationPython 3.8 or higher is required.To install the stable version, do the following:# Unix / macOSpython3-mpipinstall"xkcd.py"# Windowspy-mpipinstall"xkcd.py"To install the development version, do the following:$gitclonehttps://github.com/Infiniticity/xkcd.pyLinksxkcdDocumentation
Package: xkcd-python
xkcd-pythonxkcd-python is an API wrapper for xkcd.com written in python.InstallationUse the package managerpipto install xkcd-python.pipinstall-Uxkcd-pythonUsageNormal usagefromxkcd_pythonimportClient#creates the clientclient=Client()# returns the comic by idclient.get(1)# returns a random comicclient.random()# returns the latest comicclient.latest_comic()Async usagefromxkcd_pythonimportClientimportasyncioclient=Client()asyncdefmain():tasks=(client.get(x)forxinrange(1,20))returnawaitasyncio.gather(*tasks)asyncio.run(main)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: xkcdrandom
xkcdrandomTable of ContentsAboutInstallationUsageLicenseAboutA random number generator made in accordance withhttps://xkcd.com/221/.This is really just a test project to help me understand Python packaging and distribution withHatchInstallationpip install xkcdrandomUsageimport xkcdrandom

num = xkcdrandom.get_random_number()Licensexkcdrandomis distributed under the terms of theMITlicense.
Package: xkcd-scrape
XKCD Scrapexkcd-scrapeis a Python module to dump the XKCD.com archive and get comic info using BS4. Honestly, it's a very basic module with one premise - easily get information about comics.ExamplesBasic usage:fromxkcdscrapeimportxkcd# Load the archive of comics into a variable# Allows to get the publication date by passing into getComicInfo and getRandomComicarchive=xkcd.parseArchive()# Get info about latest comicinfo=xkcd.getComicInfo(archive=archive)# w/ dateinfo=xkcd.getComicInfo()# w/o date# Get info about specific comic# The comic can either be an int (2000), a str ("2000"|"/2000/"), or a link ("https://xkcd.com/2000")info=xkcd.getComicInfo(2000,archive)# w/ dateinfo=xkcd.getComicInfo(2000)# w/o date# Get info about a random comic# Passing the second paramenter as True makes the module only fetch comics that are present in the archiveinfo=xkcd.getRandomComic(archive,True)# w/ dateinfo=xkcd.getRandomComic()# w/o date# Dump archive to filexkcd.dumpToFile(archive,"dump.json")# Get info using the archive dump.info=xkcd.getComicInfo("dump.json")# latestinfo=xkcd.getComicInfo("dump.json",2000)# specificinfo=xkcd.getRandomComic("dump.json",True)# random# Get latest entry from the RSS feed# Currently VERY raw, just returns the first <item> tag as a stringlastentry=xkcd.getLastRSS()ThegetComicInfofunction (also called inside ofgetRandomComic) returns a dict with following keys:# xkcd.getComicInfo(2000, archive){'date':'2018-5-30','num':'2000','link':'https://xkcd.com/2000/','name':'xkcd Phone 2000','image':'https://imgs.xkcd.com/comics/xkcd_phone_2000.png','title':'Our retina display features hundreds of pixels per inch in the central fovea region.'}As you can see, it returns the following list of keys:num- comic numberlink- hyperlink to comicname- the name of the comicdate- YYYY-MM-DD formatted date of when the comic was posted (not returned if archive is None)image- hyperlink to image used in the comictitle- title (hover) text of the comicArchiveTheXKCD archiveis where we get the list of comics, as well as their names and date of posting. This is the only place where we can get the date of posting, so it's required if you need the date.The archive is a dict containing various dicts with keys of/num/. Example:{...,"/2000/":{"date":"2018-5-30","name":"xkcd Phone 2000"},...}TestsTests can be run from the project's shell after installing and activating the venv usingpoetry run pytest.
Use Python's includedunittestmodule for creating tests (examples are intests/).TODOImprove RSS feed outputAPI and homepage (on one domain?)
Package: xkcd-wrapper
xkcd-wrapperA Python wrapper for thexkcd webcomicAPI.Retrieves xkcd comic data and metadata as python objects.Asynchronous (async) and synchronous implementations.InstallationAt the command line, withpip,synchronous implementation:$pipinstallxkcd-wrapper[sync]async implementation:$pipinstallxkcd-wrapper[async]Usagesynchronous:>>>importxkcd_wrapper>>>client=xkcd_wrapper.Client()>>>specific_comic=client.get(100)# Comic object with comic 100 data>>>latest_comic=client.get_latest()# Comic object containing data of the latest xkcd comic>>>random_comic=client.get_random()# Comic object of a random comic>>>specific_comicxkcd_wrapper.Comic(100)>>>specific_comic.image_url'https://imgs.xkcd.com/comics/family_circus.jpg'async:>>>importxkcd_wrapper,asyncio>>>async_client=xkcd_wrapper.AsyncClient()>>>asyncdefasync_call():...responses=awaitasyncio.gather(...async_client.get(100),# Comic object with comic 100 data...async_client.get_latest(),# Comic object containing data of the latest xkcd comic...async_client.get_random()# Comic object of a random comic...)...print(...responses[0],# async_client.get(100) output...responses[0].image_url,...sep='\n'...)>>>asyncio.run(async_call())xkcd_wrapper.Comic(100)'https://imgs.xkcd.com/comics/family_circus.jpg'DocumentationCheck the documentation for more details:https://xkcd-wrapper.readthedocs.io/en/latestHistory1.0.2 (01-11-2022)Support Python 3.10Update dependencies1.0.1 (28-02-2021)Deprecate Python 3.5Support Python 3.9Update dependencies1.0.0 (06-09-2020)Reworked xkcd API response json decodingReworkedComicClientandAsyncClientcan now retrieve comic images0.2.2 (13-08-2020)Fixed failing to importxkcd_wrapperif either onlyrequestsoraiohttpwere installed0.2.1 (11-08-2020)Separate dependencies
(you can now use the async implementation without having to install the sync dependencies and vice versa)0.2.0 (08-08-2020)Async implementation (AsyncClient)0.1.0 (23-04-2020)First release on PyPIClientandComicclasses
Package: xkey
xKeyxKey provides a set of Novation SysEx utilities. It was intended to allow easy encoding
and decoding of SysEx firmware updates from Novation.Although this project was designed to support FLKey and Launchkey devices, others
Novation firmware updates may be compatible with these utilities. However only software
for these devices has been tested so far.This project was generated by reverse engineering the software update process used by
Novation FLKey MIDI keyboards. As a result of this, the exact use and terminology used
by Novation may differ from that reflected in this project.:warning:Tampering with firmware updates may break your device!Firmware updates encoded and decoded using this utility may result in an unusable and
unrecoverable device. This tool is provided with no warranty or guarantees.InstallationxKey can be installed directly from PyPi. xKey currently has no external runtime
dependencies as it only utilises functions exposed by the Python standard library.pipinstallxkeyExample UsageDecode an input SysEx format firmware update into binary$ xkey decode launchkeymk3-firmware-217.syx 
2023-04-22 17:50:58,705 - [INFO] Reading SysEx from launchkeymk3-firmware-217.syx
2023-04-22 17:50:58,712 - [INFO] SysEx file appears to be for Novation launchkey-mk3
2023-04-22 17:50:58,712 - [INFO] SysEx file appears to contain build 000217
2023-04-22 17:50:58,712 - [INFO] Encoded file size 96788-bytes (CRC32 0x49ca849c)
2023-04-22 17:50:58,821 - [INFO] Writing decoded SysEx to launchkeymk3-firmware-217.syx.binEncode an input binary format firmware update into SysEx$ xkey encode launchkeymk3-firmware-217.syx.bin --model launchkey-mk3 --build 217
2023-04-22 17:52:07,454 - [INFO] Starting encoding of SysEx for launchkey-mk3, build 000217
2023-04-22 17:52:07,454 - [INFO] Reading binary from launchkeymk3-firmware-217.syx.bin
2023-04-22 17:52:07,613 - [INFO] Input binary file size 96788-bytes (CRC32 0x49ca849c)
2023-04-22 17:52:07,613 - [INFO] Writing encoded SysEx to launchkeymk3-firmware-217.syx.bin.syx
Package: xkeysnail
xkeysnailis yet another keyboard remapping tool for X environment.
It’s likexmodmapbut allows more flexible remappings.Has high-level and flexible remapping mechanisms, such asper-application keybindings can be definedmultiple stroke keybindings can be definedsuch asCtrl+x Ctrl+ctoCtrl+qnot only key remapping but arbitrary commands defined by
Python can be bound to a keyRuns in low-level layer (evdevanduinput), makingremapping work in almost all the places
Package: xkiller
py-xkillerA daemon that is intended for use in a “No X sessions” challenge.Essentially, every so often, the daemon:Checks if the system time is past the time stored athttp://time.kaashif.co.uk/endIf it is, quit - the challenge is overChecks if there are any daemons with the binary name “X” or “Xorg”
and kills them.Installing$ pip3 install xkillerRunning$ xkiller(it will daemonize itself)You may want to run it as root, so it can actually kill sessions
started by display managers etc.If run as root, /var/run/xkiller.pid will be the PIDfile, if not,
/tmp/xkiller.pid is the PIDfile. Also, you can specify a PIDfile like
so:$ xkiller /home/kaashif/mypidfile.pid
Package: xkivy
XKivyA kivy and kivymd extension module for easy accessibility, creation of new widgets and also adding more functionality.This module containing new advanced widgets that are readily available to suit your needs.You may use this module with kivymd module for the best experience.This module was built to incorporate new widgets to kivy and kivymd ,to provide flexibility with widgets ,to add functionality and to fix some problems with kivymd.Getting StartedYou can get this module to run on your machine through installing it with pip.Using Pippython -m pip install xkivyPrerequisitesThere is only the need of kivy and kivymd for this module to be running.kivymd >= 1.2.0
kivy >= 2.0.0InstallingInstalling is simple, through downloading the necessary files and then install or through pip.Using Pippip install xkivyDownloading and then installing
Through Gitgit clone https://github.com/digreatbrian/xkivy.git
cd xkivy
python setup.py installorgit clone https://github.com/digreatbrian/xkivy.git
cd xkivy
pip install .Or Through tar.gz filepip install xkivy-1.0.1.tar.gzDeploymentTo use this module, you just have to do the same procedure when creating a kivy/kivymd App.Examplefrom kivy.app import App
    from xkivy.uix.button import XRectangularButton as XButton

    class TestApp(App):
        def build(self):
            return XButton(text='Test Button') 

    app=TestApp() 
    app.run()ContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.AuthorsBrian Musakwa-Initial work-digreatbrianSee also the list ofcontributorswho participated in this project.WidgetsTo see the flexible widgets that xkivy has ,please followUIX-WIDGETSLicenseThis project is licensed under the MIT License - see theLICENSEfile for detailsAcknowledgmentsI hereby thank everyone who has contributed to this software.
Package: xk-mlflow-oss-plugin
Aliyun OSS store plugin for MLflowThis repository provides a MLflow plugin that allows users to use a aliyun oss as the artifact store for MLflow.Implementation overviewaliyunstoreplugin: this package includes theAliyunOssArtifactRepositoryclass that is used to read and write artifacts from Aliyun OSS storage.setup.pyfile defines entrypoints that tell MLflow to automatically associate theossURIs with theAliyunOssArtifactRepositoryimplementation when thealiyunstorepluginlibrary is installed. The entrypoints are configured as follows:entry_points={
        "mlflow.artifact_repository": [
            "oss=aliyunstoreplugin.store.artifact.aliyun_oss_artifact_repo:AliyunOssArtifactRepository"
        ]
    },UsageInstall by pip on both your client and the server, and then use MLflow as normal. The Alibaba Cloud OSS artifact store support will be provided automatically.pipinstallmlflow[aliyun-oss]The plugin implements all of the MLflow artifact store APIs.
It expects Aliyun Storage access credentials in theMLFLOW_OSS_ENDPOINT_URL,MLFLOW_OSS_KEY_IDandMLFLOW_OSS_KEY_SECRETenvironment variables,
so you must set these variables on both your client application and your MLflow tracking server.
To use Aliyun OSS as an artifact store, an OSS URI of the formoss://<bucket>/<path>must be provided, as shown in the example below:importmlflowimportmlflow.pyfuncclassMod(mlflow.pyfunc.PythonModel):defpredict(self,ctx,inp):return7exp_name="myexp"mlflow.create_experiment(exp_name,artifact_location="oss://mlflow-test/")mlflow.set_experiment(exp_name)mlflow.pyfunc.log_model('model_test',python_model=Mod())In the example provided above, thelog_modeloperation creates three entries in the OSS storageoss://mlflow-test/$RUN_ID/artifacts/model_test/, the MLmodel file
and the conda.yaml file associated with the model.
Package: xknx
XKNX - An asynchronous KNX library written in PythonDocumentationSee documentation at:https://xknx.io/HelpWe need your help for testing and improving XKNX. For questions, feature requests, bug reports either open anissue, join theXKNX chat on Discordor write anemail.DevelopmentYou will need at least Python 3.9 in order to use XKNX.Setting up your local environment:Install requirements:pip install -r requirements/testing.txtInstall pre-commit hook:pre-commit installTestingTo run all tests, linters, formatters and type checker calltoxRunning only unit tests is possible withpytestRunning specific unit tests can be invoked by:pytest -vv test/management_tests/procedures_test.py -k test_nm_individual_address_serial_number_write_failHome-AssistantXKNX is the underlying library for the KNX integration inHome Assistant.Example"""Example for switching a light on and off."""importasynciofromxknximportXKNXfromxknx.devicesimportLightasyncdefmain():"""Connect to KNX/IP bus, switch on light, wait 2 seconds and switch it off again."""asyncwithXKNX()asxknx:light=Light(xknx,name='TestLight',group_address_switch='1/0/9')awaitlight.set_on()awaitasyncio.sleep(2)awaitlight.set_off()asyncio.run(main())AttributionsMany thanks toWeinzierl Engineering GmbHandMDT technologies GmbHfor providing us each an IP Secure Router to support testing and development of xknx.
Package: xknxproject
(X)KNX ProjectExtracts KNX projects and parses the underlying XML.This project aims to provide a library that can be used to extract and parse KNX project files and read out useful information including the group addresses, devices, their descriptions and possibly more.DocumentationCurrently, xknxproject supports extracting (password protected) ETS 4, 5 and 6 projects and can obtain the following information:Areas, Lines, Devices and their individual address and channelsCommunicationObjectInstance references for their devices (GA assignments)Group Addresses and their DPT type if setThe application programs communication objects, their respective flags and the DPT TypeLocation information of devices (in which rooms they are)Functions assigned to roomsCaution: Loading a middle-sized project with this tool takes about 1.5 seconds. For bigger projects this might as well be >3s.Not all supported languages are included in project / application data. If the configured language is not found, the default language will be used - which is manufacturer / product dependent.Installationpip install xknxprojectUsage"""Extract and parse a KNX project file."""fromxknxproject.modelsimportKNXProjectfromxknxprojectimportXKNXProjknxproj:XKNXProj=XKNXProj(path="path/to/your/file.knxproj",password="password",# optionallanguage="de-DE",# optional)project:KNXProject=knxproj.parse()The resultingKNXProjectis a typed dictionary and can be used just like a dictionary, or can be exported as JSON.
You can find an example file (exported JSON) in our test suite underhttps://github.com/XKNX/xknxproject/tree/main/test/resources/stubsThe full type definition can be found here:https://github.com/XKNX/xknxproject/blob/main/xknxproject/models/knxproject.py
Package: xktools
"""
##本模块需要外部依赖的库
pip install xlrd           读数据，加快速度
pip install openpyxl       读数据和写数据，主要用于文件保存
pip install pymysql        MySQL数据库支持；如果只是本地SQLite不需要
pip install xktools
"""
"""
##实现目标：
自动对Excel表格进行数据库导入和导出，数据加工、Excel汇总、分发，主要实现自动对应字段。
##实现思路：
为了便于处理数据，把Excel分为基础表和汇总表。通过数据库对基础表进行处理，汇总通过Excel自身功能实现，简化对Excel的处理。
基础表，格式为第一行数据类型（文本、数字、大文本），第二行为字段名称【可以自定义，需要设置字段类型和字段名称】。
数据汇总，基于基础表采用Excel的汇总功能，通过模版提前设置好数据汇总，只更新基础表即可，也可以在数据库中汇总好，直接导出结果。
根据Excel设置，自动生成创建表、插入数据、读取数据的SQL，导入数据库SQLite（MySQL），脚本自动根据字段所在的位置定位。
到如数据库之后，在数据库中存放，加工，可以根据模版导出到Excel，不受字段所在行列限制。
可以实现对Excel汇总合并、分发拆分。
不同人之间，确定明确的对应格式，不论是如何更新表格式，只要字段列名称不变，就可以进行对应.Excel之间只传递基础表
其他的表，采用自动汇总的模式。为了简化，采用SQLite进行数据交换
"""
Package: xk-utils
xk-utilsxk-utils存放星矿公用模块，包括邮件模块, 日志模块等打包python3-mpipinstall--upgradebuild
python3-mbuild发布pipinstall--upgradetwine
python3-mtwineupload--repositorypypidist/*安装pipinstallxk-utils使用1、发送邮件fromxk_utils.mailimportMailProducerredis_config={'host':'127.0.0.1','port':6379,'password':'****','db':99}# 定义邮件key， 在服务端需要配置相关收件人， 邮件标题m=MailProducer(key='log',**redis_config)m.send(f'<邮件内容>')2、记录日志# 记录文件日志importosfromxk_utils.loggerimportget_loggerlogger=get_logger('log','werkzeug',write_file=True,file_path=os.path.join(os.path.dirname(__file__),'log'))logger.info("记录文件")# 记录可以发送邮件的日志logger=get_logger('log','celery',send_mail=True,host='127.0.0.1',port=6379,password='****',db=99)logger.info('这是一条正常日志， 不发送邮件')logger.error('这是一条错误日志， 发送邮件， 邮件联系人、标题，请在服务器端配置， key=<log>')
Package: xkye
IntroducingXkye-Pythonstandard library to provide objective query builder forxkyelanguage. You can easily query the entities from the xkye file using this library. It provides a more convenient and idiomatic way to write and manipulate queries.InstallationInstall library with pypi:$pip3installxkyeUsagefromxkyeimportIOasio#initiate the xkye with iox=io(filename.xky)#read the contents of the filex.read()#get the output of any of the entity from teh xky file
#to get the value of the entityx.get("entityname")#to get the value of the entity in the given clutchx.get("entityname","clutchname")#to get the value of the entity in the given cluth's spanx.get("entityname","clutchname",clutchspan)#to get the span count of the given clusterx.getSpan("clustername")ExamplesPlease use theexamplesdirectory to see some complex examples using xkye-pyhton library. For details about xkye syntax and format, use the officalXkye-langdocumentation.DocumentationDocumentation is available atxkye-python.readthedocs.io.Version matrixXkye versionXkye-Python Library version>= 1.0.0>= 1.0.0Upcoming features on or before v2.0.0Ability to get the span limit of the given cluster (Completed)Ability to add entity, clutch and subclutchContribution GuideWant to hack on Xkye-Python? Awesome! We haveContribution-Guideon our official repo. If you are not familiar with making a pull request using GitHub and/or git, please readthis guide. If you’re looking for ways to contribute, please look at ourissue tracker.LicenseXkye-python is open-source standard python library for xkye language that is released under the MIT License. For details on the license, see theLICENSEfile.If you like this library, help me to develop it by buying a cup of coffee