Saravanan666/pypi-org huggingface dataset:
Package: xtrmth
# XTRMTHAll your math.
####One Library.All you functions.
####One Import.## The days of endlessly searching through documentation are over.
XTRMTH uses easy-to-understand syntax, and won’t force memorization of every edge-case.## No more strange, inadequate errors.
All edge-cases* have a detailed, concice, error message. More broad errors will use formatted strings to show exactly where and how you messed up.{Documentation to be added in version 2.0.0, along with xtrmth variables (xmv.py).}*personally found or reported
Package: xtssort
xtssortThis is the ten method of list sorting.installpip install xtssortfromxtssortimport*# Bubble_sortingBubble_sorting(lt=list,Positive_or_reverse_order=2or1)# selectionSortselectionSort(arr=list)# insertionSortinsertionSort(arr=list)# shellSortshellSort(arr=list)# mergeSortmergeSort(arr=list)# quickSortquickSort(arr=list,left=,right=)# heapSortheapSort(arr=list)# countingSortcountingSort(arr=list,maxValue=)# bucket_sortbucket_sort(arr=list,max_num=)# radix_sortradix_sort(data=list)
Package: xt-st-common
XT-STREAMLIT - 1.1.1This repo contains all of the common Streamlit code used by the Exploration Toolkit and CMR's Discovery Program.xt-st-common- Common Framework for XT's Streamlit appsGetting Started UserTODO: Installation guide and pointer to API docsGetting Started DeveloperTODO: Poetry primerThis project recommends usingpoethepoetas a tool for running tasks. Seepypoetry.tomlIn your base python environmentpipinstallpipx# Pipx is a tool for installing python tools globallypipxinstallpoethepoet# Installs poe as a global toolpoe--help# Will show all the available tasks defined for this project
Package: xtsv-word
xtsv-wordThis module provides a special dataclass-like structure to handle tokens inxtsvformat. It is meant to be used withinxtsvmodules to make the processing of token attributes (xtsvfields) more comfortable and transparent.It allows for each token to be represented by aWordobject which is initialised simply by passing the token in itsxtsvrepresentation (i.e. a list of strings, one for each field in the input stream) to aWordFactoryobject. This factory object keeps track of the input and target fields of thextsvmodule, and assigns the items of the list representing the token inxtsvto the respectiveWordobject attributes which are identified by the name of the corresponding field (i.e. thextsvcolumn header).Both the input and the target fields can be accessed as attributes of aWordobject, i.e. they can be both retrieved and modified. (The usual use case is to only read input field attributes and to specify target field attributes. However, theWordobject does not prevent a user from modifying input field values. This is discouraged but not ruled out byxtsv.) When thextsvmodule is done processing a token, theWordobject is simply converted into a list which contains the original input fields followed by the target fields, as expected byxtsv.Disclaimer: This is not an official extension of thextsvmodule.Suggested usageInstallxtsv-wordfrompip:python3 -m pip install xtsv-wordor build locally:makeFor example, assuming that the internal app object defined in thextsvmodulemyXtsvModuleis calledInternalApp, the input stream contains the fields['form', 'wsafter']andmyXtsvModulehas a single target field:['syllables']:CreateWordFactoryobject:# myXtsvModule.py

from xtsv_word import WordFactory

class InternalApp:
	...
	def prepare_fields(self, field_names):
		self.wf = WordFactory(field_names, self.target_fields)
		# self.target_fields is normally set in InternalApp.__init__()UseWordobject:class InternalApp:
	...
	def process_sentence(self, sen, field_values):
		return_sen = []
		for tok in sen:
			# Get Word object from factory
			word = self.wf.get_word(tok)

			# process token by getting and setting its attributes, e.g.:
			word.syllables = split_syllables(word.form)
			...
			# alternatively access attributes as dict keys:
			word['syllables'] = '-'.join(word['syllables'])

			# convert Word object to list of fields for xtsv output stream
			return_sen.append(list(word))

		...
		return return_senSee docstrings for further details.
Package: xtt
# xtt-python[![PyPI version](https://badge.fury.io/py/xtt.svg)](https://badge.fury.io/py/xtt)[![Build Status](https://travis-ci.org/xaptum/xtt-python.svg?branch=master)](https://travis-ci.org/xaptum/xtt-python)A Python module (`xtt`) that encapsulates the [XTT TrustedTransit](https://github.com/xaptum/xtt) protocol for securing Internetof Things (IoT) devices.## Installation``` bashpip install xtt```The package is published to PyPI for Python 2.7 and 3.3+ for Linux andOS X. `pip` installs all dependencies, including `xtt` itself.## Quick-Start``` pythonimport socketimport xtt# In these examples, we assume the id, certs, and keys needed to run# an XTT client handshake are available as files.# Load root certificate, used to authenticate the serverroot_id     = xtt.CertificateRootId.from_file("root_id.bin")root_pubkey = xtt.ED25519PublicKey.from_file("root_pub.bin")# Load the server idserver_id   = xtt.Identity.from_file("server_id.bin")# Load the DAA group informationgroup_basename  = b'BASENAME'group_gpk       = xtt.LRSWGroupPublicKey.from_file("daa_gpk.bin")group_id        = xtt.GroupId(hashlib.sha256(group_gpk.data).digest())group_cred      = xtt.LRSWCredential.from_file("daa_cred.bin")group_secretkey = xtt.LRSWPrivateKey.from_file("daa_secretkey.bin")group_ctx       = xtt.ClientLRSWGroupContext(group_id, group_secretkey,group_cred, group_basename)sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)sock.connect(('192.0.2.1', 4443))xtt_sock = xtt.XTTClientSocket(sock,version = xtt.Version.ONE,suite_spec = xtt.SuiteSpec.XTT_X25519_LRSW_ED25519_CHACHA20POLY1305_SHA512,group_ctx, server_id, root_id, root_pubkey)xtt_sock.start()my_identity    = xtt_sock.identitymy_public_key  = xtt_sock.longterm_public_keymy_private_key = xtt_sock.longterm_private_key```## ContributingPlease submit bugs, questions, suggestions, or (ideally) contributionsas issues and pull requests on GitHub.## LicenseCopyright 2018 Xaptum, Inc.Licensed under the Apache License, Version 2.0 (the "License"); you may notuse this work except in compliance with the License. You may obtain a copy ofthe License from the LICENSE.txt file or at[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS, WITHOUTWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See theLicense for the specific language governing permissions and limitations underthe License.
Package: xt-TimeUtils
This is a tool for processing time.InstallationIt is possible to install the tool with pip:pip install xt-TimeUtilsFeatureTime processing module based ondatetimeandarrowConfigurationThe script itself is currently configuration free.DependenciesarrowdatetimeUsageSample usage:fromxtdate_utils.xtdate_utilsimportTimeUtilsstr_to_datetime=TimeUtils.str_to_datetime('2021-01-01','%Y-%m-%d')ChangesVersion 0.1.3Add two new interfaces(get_after_day,get_before_day)Version 0.1.4Fix the error of importerrorVersion 0.2.0 2021-02-24Fix the error of 'get_last_cycle_list' interfaceInterface 'get_last_cycle_list' add configuration itemis_process, It is used to control the time period. The default time period is the(week + 1)parameter.Version 0.2.1 2021-04-06Initial versionAddIterCycleGearClass, it supports cycle configurable. Three configuration options have been added:day、week、iter.Addupdate_iteration_periodto update_iteration_periodparameter.LicenseThe script is released under the MIT License.The MIT License is registered with and approved by the Open Source Initiative.
Package: xtweet
xtweetxtweetes una biblioteca que te permite interactuar de manera eficiente con la API de Twitter. Con ella, puedes obtener información detallada sobre tweets y medios de manera rápida y sencilla.UsoLa claseTweetrepresenta un tweet de Twitter y proporciona propiedades para acceder a la información del tweet.fromxtweetimportTweettweet=Tweet(url)PropiedadesLa clase Tweet proporciona las siguientes propiedades para acceder a la información del tweet:date: Fecha de publicación del tweet.text: Texto del tweet.thumbnail_url: URL de la miniatura de la primera imagen incluida en el tweet, si está disponible.likes: Número de me gusta del tweet.replies: Número de respuestas al tweet.retweets: Número de retweets del tweet.tweet_id: ID del tweet.user_name: Nombre del usuario que publicó el tweet.user_screen_name: Nombre de pantalla del usuario que publicó el tweet.La claseMediarepresenta los medios incluidos en un tweet y proporciona métodos para descargar imágenes y videos.fromxtweetimportMediamedia=Media(url)MétodosLa claseMediaproporciona los siguientes métodos para descargar imágenes y videos:download_photo(fp, name_file): Descarga todas las imágenes incluidas en el tweet y las guarda en el directorio especificado por el argumentofpcon un nombre de archivo que incluye un índice para distinguir entre las diferentes imágenes. El argumento opcionalname_fileespecifica el nombre base del archivo.download_video(fp, name_file): Descarga todos los videos incluidos en el tweet y los guarda en el directorio especificado por el argumentofpcon un nombre de archivo que incluye un índice para distinguir entre los diferentes videos. El argumento opcionalname_fileespecifica el nombre base del archivo.
Package: xtwine
TWINE: A Lightweight Block Cipher for Multiple PlatformsThis repository is an implementation ofTWINE: A Lightweight Block Cipher for Multiple Platformspaper introduced by Tomoyasu Suzaki, Kazuhiko Minematsu, Sumio Morioka, and Eita Kobayashi.InstallationInstall by pip from PyPI:pip3installtwineOr install latest version from github:python3-mpipinstall-Ugit+https://github.com/amoallim15/TWINE.gitUsageThis repository contains a command line tool that can be used to ecnrypt plaintext samples using either of the supported 80 bits or 128 bits sized keys.Example 1:xtwine"hello world"-k"<o8~I{?3Uz"The output:Encryption Key: "<o8~I{?3Uz"
abb90d4c0a8f67632cec7c01ee409ea1Example 2:xtwine"01bbed92bccc2104b7e12141f1413ad6"-d-k"4ejqxfDL3#"The output:Decryption Key: "4ejqxfDL3#"
hello worldExample 3:xtwine"1 plus 1 equals 2"The output:Encryption Key: "8_D]H[!^M*"
0315a70682ac625cdced6a7ff834d629c2b70de4e2d1fc7bExample 4:xtwine"1 plus 1 equals 2"-z128The output:Encryption Key: "oti,D:H6[5WX|8jS"
7f9c4394decc4c59c94be30b49db5ef66943a2938416382fExample 5:fromxtwineimportTwinetwine=Twine(key_size=0x50)# If the key param is not specified# it will generate a key automatically.ciphertext=twine.encrypt("hello world")print(ciphertext)# > "abb90d4c0a8f67632cec7c01ee409ea1"plaintext=twine.decrypt(ciphertext)print(plaintext)# > "hello world"Release History1.0.2hotfix: from xtwine import Twine1.0.1read/write from/to stdin/stdout.AboutAli MoallimContributingBug reports and pull requests are welcome on GitHub athttps://github.com/amoallim15/xtwine.
I'm also available for questions, feel free to get in touch.LicenseThis code is licensed underMIT.
Package: xtyle
XtylePython (JSX-Toolkit) DocumentationIntroductionWelcome to the Xtyle! This tool allows you to work with JSX components.It ispowered by.Python:py-mini-racer,css-html-js-minify, andlibsassJavaScript:babel, andprettierInstallpipinstall"xtyle"Install for Developmentpipinstall"xtyle[debug]"Example (JSX)importxtylecode_js=xtyle.jsx("const App = () => <div>Hello World</div>")print(code_js)Example (SCSS)importxtylecode_css=xtyle.scss("$color: red; body { color: $color; }")print(code_css)Get Server and Learn More...Example (Client)importxtyleengine=xtyle.client("http://localhost:3000")engine.component(name="kebab-case-name",code="TypeScript Code",props="TypeScript Code",style="SASS/SCSS Code",docs="TypeScript Code",)engine.plugin(name="myPlugin",components=[dict(name="kebab-case-name",code="TypeScript Code",props="TypeScript Code",style="SASS/SCSS Code",docs="TypeScript Code",)],install=dict(init="export default list",store="export default dict",globals="export default dict",directives="export default dict",),)Example (Client-Extended)importxtyleengine=xtyle.client("http://localhost:3000")defcreate_component(name):return{"name":name,"code":"\nexport default function Component(props: Props ={}) {\nreturn (\n<div x-html {...props} class={[$NAME, props.class]}>\n{props.children}\n</div>\n);\n}\n","style":"\n$color: red;\n.#{$NAME} { color: $color; }\n","props":"\ntype Props = {\nclass?: string | string[] | object;\nstyle?: string | string[] | object;\nchildren?: any;\n};\n\nexport default Props;\n","docs":"\n/**\n* Component - This is a my component.\n*/\n",}one_component=create_component("alert")example_components=[create_component("alert"),create_component("custom-button"),]plugin_name="myPlugin"install_code={"init":"""export default [() => console.log("Plugin INIT")]"""}# Componentdemo_component=engine.component(**one_component)# Plugindemo_plugin=engine.plugin(plugin_name,example_components,install_code)print(demo_component)print("\n\n")print(demo_plugin)Browser Usage<!-- Babel & Prettier --><scriptsrc="https://cdn.jsdelivr.net/gh/hlop3z/xtyle-python@main/src/xtyle/babel.min.js"></script><scriptsrc="https://cdn.jsdelivr.net/gh/hlop3z/xtyle-python@main/src/xtyle/prettier-full.min.js"></script>
Package: xu
xuCollection of handy random generators.classesobjectsfunctionsintegerbooleanpicknumbercharstringrandomExamplesfromxuimportstringprint(string(10).lower)print(string(10).upper)print(string(10).digit)print(string(10).alpha)print(string(10).latin)print(string(10).list(2))eoqsalszaj
FCVYJZIDMY
6712277415
oTrbOHkUbd
NcrW4STecT
['euZY9gFrzx', '0AEepSNvAO']fromxuimportbooleanforitinboolean.matrix(2,4):print(it)[False, True]
[True, False]
[True, True]
[False, False]fromxuimportpickdata=[1,2,3,4]print(pick(data))data='1234'print(pick(data,2))3
['2', '3']fromxuimportintegerprint(integer(9)*5)print()forrowininteger(9)**5:print(row)print()forrowininteger(9)**(5,3):print(row)[4, 9, 1, 3, 5]

[4, 2, 0, 8, 8]
[0, 3, 9, 4, 2]
[5, 1, 1, 8, 2]
[1, 5, 3, 5, 6]
[6, 1, 1, 0, 2]

[1, 1, 6, 1, 8]
[4, 0, 2, 3, 9]
[1, 5, 7, 2, 4]
Package: xubib
bibbib is a special library, which aims to organize and standardize bib files, so as to facilitate relevant personnel to read and find the information in the files.The following modules are available. These contain some functions, that can be used by your own codebase.bibcopy.PythonList - 如何如何。bibcopy.qiyuhanshu - 如何如We build and maintain bib, so if we encounter bugs in the process of using it, we can provide relevant information to937207118@qq.com.See thestorehousefor guidelines and code references for using bib.[Compatibility]bib 1.0.6 supports Python3.[Installing Bib]We provide complete source code, so you can download all the relevant information of bib.Instructions are as follows：pip install TestThen in py file, through instruction：from fb inmport bibcopyIn this way, you can use the functions described above.[Contributing]Are you a developer? Do you want to integrate bib into your project and contribute back? Great! Just do it and if you have any questions, please contact me throughit.
Package: xudo
A quality of life tool to help bring up docker containers, access docker logs, generate jooq, run tests and moreInstallationpip3 install xudoorpython3 setup.py installto install with local filesChange/Users/ostralyan/devto the absolute path of where the hbng folder is stored:echo '/Users/ostralyan/dev' >~/.xudo_profileUsagexudo logs [api | changelog | migrations]- This will follow the logs of the chosen containerxudo pull- Pulls the Elastic Search and MySQL contianersxudo build[-c-m-s-a-x]- Deletes the corresponding process(es) and the image(s) and builds the container from scratch-c: Changelog-m: Migrations-s: Sql-a: Api-x: Api no cachexudo test (be | app | admin | core | it)- Runs the backend, frontend or integration testsbe: Backendit: Integration Testsxudo watch- Watches hbngxudo clean- Removes all dangling containersxudo prune- Prompts to removeall stopped containersall networks not used by at least one containerall dangling imagesall build cachexudo-h|--help- Shows the help screenxudo--version- Shows the versionPushing to Pypicd /path/to/xudo-clirm -rf dist/python setup.py sdist bdist_wheeltwine upload dist/*
Package: xudoku
xudoku - Solve sudoku using an 'exact cover' algorithmThis is the sudoku code from @moygit's project 'exact_cover_np'.The package is maintained by me, @jwg4.I separated the code for the 'exact cover' algorithm (now available athttps://github.com/jwg4/exact_cover) from the sudoku code and created this package. At that package you can find more info about the exact cover algorithm, which can be used for lots of combinatoric problems.How to use the package>>> import xudoku
>>> s = xudoku.Sudoku(9)
>>> s.read("tests/files/insight.csv")
>>> sol = s.solve()
>>> sol._sudo.tolist()
[[1, 3, 5, 2, 9, 7, 8, 6, 4], [9, 8, 2, 4, 1, 6, 7, 5, 3], [7, 6, 4, 3, 8, 5, 1, 9, 2], [2, 1, 8, 7, 3, 9, 6, 4, 5], [5, 9, 7, 8, 6, 4, 2, 3, 1], [6, 4, 3, 1, 5, 2, 9, 7, 8], [4, 2, 6, 5, 7, 1, 3, 8, 9], [3, 5, 9, 6, 2, 8, 4, 1, 7], [8, 7, 1, 9, 4, 3, 5, 2, 6]]
>>> s._hardness
'Easy'Currently the puzzle data can only be read from CSV. You could useio.StringIO, which turns a string into a file-like object, if you want to generate your sudoku puzzle in code.
Package: xuebadb
xuebadbTravis CI Status:xuebadbis a python package that allows users to conveniently connect to and query from various database systems using a unified API. Currently, it supports connecting toMySQLandSQL Serverdatabase systems. The queries return Pandas dataframes which can then be cleaned up and analysed using one of the modules in the package.Requirements:In order to be able to use the package, you would have to install the following:Python packages:pyodbcmysql-connectorpandasnumpymissingnomatplotlibMicrosoft ODBC Driver 17Package structure:xuebadb --> package-- dbgeneric --> sub-package-- db_interface --> module-- mysql_interface -->module-- odbc_interface --> module-- dfanalysis --> sub-package-- cleanup --> module-- stats --> module
Package: xueqiudanjuan
WarningThis package only for personal use under the rules of XueQiu.
Please obey the rules of XueQiu, and do not take the bad influence for the XueQiu website.General InformationThis is a Python package designed by BugMakerH, which is used for getting the data on the XueQiu website.
You can import this package using:importxueqiudanjuanHow to use this packagehello.pyhello()This function is nothing but a test for checking whether the package works well.stocks.pyStockThis is a class to get data about stocks.
You can create a Stock class using:st=stocks.Stock()This means to create a Stock object.
And, you can use 'get_realtime_quotec()' to get the real price of a specified stock. Like this:st.get_realtime_quotec("SH000001")Update documentation0.0.11Deleted the function 'get_realtime_quotec_prize' in the class 'Stock'.0.0.10Update the import in '__init__'.0.0.9Updated the test of stocks.py in '__main__'.Added the import of all the files in '__init__'.0.0.8Updated the url of long description.0.0.7Updated the url of long description.0.0.6Added the Github URL of the package.Remove the stock's code from the '__init__' function to the 'get_realtime_quotec' function.0.0.5Updated nothing, cuz I deleted the version 0.0.4 by mistake.0.0.4Created the README file and added the README file to the package.Linked the package's long description to the README file.0.0.3Created the class engine and the class stocks.Finished the first version of the class engine.Added a function of the class stocks, which is called 'get_realtime_quotec' to get the realtime price of the specified stocks.Added a test of the class stocks in the '__main__'.0.0.2Updated nothing, but a joke.0.0.1Added a test for the package, which added a file called "hello.py" with a function called "hello".
Package: xuerui-stat
xuerui-statAn open-source Python package for using statistical tools and methods.Source codehttps://github.com/Xuerui-Yang/xuerui-statInstallationpip install xuerui-statTools and methodsDataManagerDescriptionIt is a tool to manage data files. Once a data file is imported, the tool would move it to a specified data directory automatically. And when importing data, the tool can search files in the data directory.Examplefromxuerui_statimportDataManagerdm=DataManager(enable=True)This command defines a class to name the tool. For the first use, users should use the command 'set_dir(yourpath)' with your prefered path to set your data directory, for example,dm.set_dir('/home/xuerui/Documents/Data/')Once it is done, the directory path is printed like this:Data directory: '/home/xuerui/Documents/Data/'The parameter 'enable' for the class can be set as True or False. When it is True, the data file imported by the command below would be moved to the data directory automatically.df=dm.import_data('/home/xuerui/Documents/PythonProjects/FactorAnalysis/example.csv')Otherwise users can manually move the files using the such command:dm.addto_dir('/home/xuerui/Documents/example.csv')The moved data files are renamed by adding the script names, in order to identify them. For example, 'example.csv' is imported in 'my_example.py' using the above command. So it would be moved to the data directory and renamed as 'MyExample_example.csv'.Users can also check the contents under the data directory usingdm.list_dir()DecisionTree, PlotTree, RandomForestDescriptionThese commands give users tools for data mining by using tree relevant methods.ExampleAs above, the following commands import the data which is to be analyse.fromxuerui_statimport*dm=DataManager(enable=False)data=dm.import_data("/home/xuerui/Documents/PythonProjects/test.csv")The decision tree method can be applied to the data by specifying the name of category.dt=DecisionTree(data,'Cat')dt.train()t=dt.treeprint(t)pt=PlotTree(dt)pt.tree_structure_plot()dt.test()pt.confusion_matrix_plot()The tree and confusion matrix can be plotted via the 'PlotTree' module.Furthermore, the random forest can also be used as follows:rf=RandomForest(data,'Cat')rf.train(num_tree=300,max_depth=0,min_gini=0)print(rf.oob_error)dt.test()print(dt.confusion_matrix)
Package: xuexitong-fileloads
chaoxingxuexitong-fileloads下载学习通课件视频觉得输入太多麻烦可以走极简通道，此时记得至少改个基本目录和链接，其他参数自定义，不改按默认参数。使用方法代码里写了不少只运行代码2即可，代码已作为模块导入大致流程依次：mode_op 模式选择9自定义，中间值仅第一次循环极简,0极简.loop_op 按2自动循环1手动单次.file_class 输入循环下载类型3全部2pdf1mp4不下载0,start_inPage章节内页面跟着提示即可
Package: xugrid
This is a work in progress.See documentation.Xarray extension to work with 2D unstructured grids, for data and topology
stored according toUGRID conventions.Processing structured data with xarray is convenient and efficient. The goal of
Xugrid is to extend this ease to unstructured grids.importmatplotlib.pyplotaspltimportxugrid# Get some sample data as a xugrid UgridDataArrayuda=xugrid.data.elevation_nl()# Get a cross-sectionsection_y=475_000.0section=uda.ugrid.sel(y=section_y)# Plot unstructured grid and cross sectionfig,(ax0,ax1)=plt.subplots(figsize=(22.6,10),ncols=2)uda.ugrid.plot(ax=ax0,vmin=-20,vmax=90,cmap="terrain")ax0.axhline(y=section_y,color="red")section.plot(ax=ax1,x="mesh2d_face_x")InstallationInstall via conda from the conda-forge channel:conda install -c conda-forge xugridOr from the Python Package Index:pip install xugridDocumentation
Package: xuk
metafidxukخوک برای مدل-سازیِ ابزاریِ مالی توسعه داده می‌شه.راهنمایِ خوک رو دراین صفحهبخونید.installputhon-mpipinstallxukمدل‌هایِ کنونی به شرحِ زیر است.اختیارِ معاملهقیمت-گذاریblack-scholes-mertonاستراتژهایِ معاملاتیcovered-callmarried-putbull-call-spreadbear-call-spreadbull-put-spreadbear-put-spreadدرآمدِ-ثابتبازده تا سررسیدcoupon-bondzero-coupon-bondتحلیلِ تکنیکیروندdow