Saravanan666/pypi-org huggingface dataset:
Package: xgit
xgitAn opinionated command line tools to make your life easier with Git and GitignoreInstallationInstall as global from pip.pip3 install xgitOr clone the repo, and install from the clone (and you may also edit as you wish).git clone https://github.com/patarapolw/xgit.git
pip3 install -e xgitUsage$ xgit -h
Acceptable commands:
xgit init           Initialize new git along with .gitignore
xgit commit message Commit to git with the following message
xgit cpush message  Commit and push to git with the following message
xgit gi             Generate gitignore from files in the directory
xgit push           Push changes to origin
xgit                Prompt for choices$ xgit
What do you want to do?
1. Initialize Git
2. Commit current changes
3. Commit current changes and push to remote
4. Generate and commit .gitignore
5. Push to remote
Please select [1-5]:Note.gitignoreis generated fromhttps://www.gitignore.io/, but this project also allows me to generate a custom.gitignorebased on/xgit/gitignore/.To learn more about my experience with Git, seehttps://github.com/patarapolw/SimpleGit
Package: xgitberg
# Gitberg![travis status](https://img.shields.io/travis/gitenberg-dev/gitberg.svg)![PyPI version](https://img.shields.io/pypi/v/xgitberg.svg)[GITenberg](gitenberg.org) is a project to collectively curate ebooks on GitHub.[Gitberg](https://github.com/gitenberg-dev/gitberg) is a command line tool to automate tasks on books stored in git repositories.## UsageThis project provides a `gitberg` command that does the following:+ `gitberg fetch <bookid>` fetches books from PG+ `gitberg make <bookid>` makes a local git repo with extra files+ `gitberg push <bookid>` creates a repo on github and pushes to it (one per book)+ `gitberg all <bookid> <bookend>` fetches, makes and pushes a range of books+ `gitberg list <bookid_start>` fetches, makes and pushes a range of books+ `gitberg apply <action> <book_repo_name>` applies an action+ `gitberg metadata <bookid>` prints the yaml metadata### Examples```gitberg list --rdf_library /Documents/gitenberg/cache/epub 181,565,576```### ConfigSome commands require a config file before they can be used.These commands will ask for config values to make a correct configuration.The config file in linux is located at `~/.config/gitberg/config.yaml`.Main config values:gh_user: <your github account name>gh_password: <your github account password>library_path: '~/data/library'rdf_library: location of your cache of the PG RDF demp## TestingTo run project tests do:python setup.py test## PackagingThis project is available as a python package. To install, usepip install xgitbergTo build this python package, use `setup.py`python setup.py sdist
Package: xGitGitlab
GitGitLab allows you to create Gitlab projects and set them as remote source for your git checkouts.Installationsudo pip install gitgitlabUsage$ git init
$ git touch 'readme.txt'
$ git add readme.txt
$ git commit -am 'initial commit'
$ git lab create my_project -t
  Project my_project created on Gitlab
$ git remotes
  gitlabCommand overviewgit lab listList your Gitlab projectsgit lab create <project name>Create a project on Gitlabgit lab track <project name>Set this project as remote for your local repository.git lab open <project name>Open a Gitlab project page. If <project name> is omitted, uses the project on the ‘gitlab’ remote of the repository on the current directory.Listing your projectsgit lab listlists all the projects that you own and their repository url.Creating a new projectgit lab create <project_name>creates a new private project on Gitlab.git lab create <project_name> –trackcreates a new private project and sets it up as remote.Setting up an existing project to track the local repositorygit lab track <project_name>Adds a gitlab project as remote.Obtaining helpgit lab helpOverview.git lab <command> –helpHelp for a specific command.More informationSee also theproject documentation.
Package: x-goals
X-Goals package. Generated with cookiercutter-pylibrary using the command line cookiecutter gh:ionelmc/cookiecutter-
pylibraryThis is V1 of X-Goals which is an alternative method to score a match.XGoals uses the weighting approach of 0.15 (corners), 0.2 (shots on) and -0.1 (cards).Cards increases by 1 for a player’s first yellow card, and by 2.5 for a second yellow or a red (motivated by
sportingindex.com weightings). Currently corners and shots on are modelled using the normal distribution, with
95% of values lying in the range [0, 2 times the expected value]; this means the spread is set to be half the expected
value (this is motivated by historical behaviour for teams over a whole season, and clearly that’s not going to be
ideal as it doesn’t account for the strength of the opposition properly. Don’t judge too harshly as this is just
Version 1!). The distribution for the cards follows a Poisson distribution.Free software: Apache Software License 2.0Installationpip install x-goalsDocumentationTo use the project:Open a Jupyter notebook and paste the followingimportx_goals.appasapplicationxgoals_app=application.dash_appapplic.show_app(xgoals_app)DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.1 (2018-11-12)First release on PyPI.
Package: xgo-pythonlib
XGO-PythonLibXGO2 has built-in motion libraries for controlling the movement and various features of the machine dog, including battery level, firmware version, and servo angle. The motion library enables users to control translation and pose movement, as well as single servo and single-leg movement. The education library facilitates camera, screen, key, microphone, and speaker operations, as well as commonly used AI functions such as gesture recognition, face detection, emotional recognition, and age and gender recognition.  The detailed instructions for use of the library are as follows.PythonLib included xgolib.py and xgoedu.pyLuwu Dynamics · WIKIInstall instructions1 Burn the latest official image2 Run this command:pip install --upgrade xgo-pythonlib
sudo pip install --upgrade xgo-pythonlibExamplesPerform gesture recognition on the current camera and press the "c" key to exit.fromxgoeduimportXGOEDUXGO_edu=XGOEDU()whileTrue:result=XGO_edu.gestureRecognition()print(result)ifXGO_edu.xgoButton("c"):breakxgolib library examplefromxgolibimportXGOdog=XGO('xgomini')dog.action(1)Change Log[0.3.2] - 2024-01-29FixedUpdate xgolib.py to 1.3.9[0.3.1] - 2023-09-16FixedAdd .gitignoreGesture image flip[0.2.8] - 2023-08-22FixedMethods: display_text_on_screen()[0.2.7] - 2023-08-20AddedMethods: posenetRecognition added.FixedMethods: lcd_arc() and lcd_circle()[0.2.5] - 2023-07-19FixedMethods: Change theinitin xgolib.py to add delay to resolve some movement irregularities.[0.2.4] - 2023-07-13FixedMethods: lcd_clear() was fixed.[0.2.3] - 2023-07-04AddedMethods: cap_color_mask added.FixedCircleRecognition renamed BallRecognition and improved.[0.2.2] - 2023-07-03AddedFive Methods: SpeechRecognition SpeechSynthesis QRRecognition CircleRecognition ColorRecognitio added.[0.2.0] - 2023-06-21FixedxgoVideo and xgoVideoRecord method can be used.[0.1.9] - 2023-06-20FixedFixed the issue with the xgoTakePhoto method that was causing abnormal RGB colors in the saved photos.
Package: xgorn-api
Noid APIfromxgorn_apiimportNoidAPIapi=NoidAPI()api.api_key='your-api-key'api.bypass.ouo('https://ouo.io/4ZuwGMc')ExamplesChange endpoint to api feature.For example:/scrape/instagramapi.scrape.instagram('https://www.instagram.com/reel/CqcUdr-ppgT/?igshid=YmMyMTA2M2Y=')Change default api url.For example:api.xgorn.eu.orgapi.base_url='https://api.xgorn.eu.org'Making custom request.For example:/scrape/likee# GET request# method & endpoint: default arguments.method='get'endpoint='/scrape/likee'# url: params because it's **kwargsurl='https://likee.video/@MEKDede/video/7199606118785777185'api.make_request(method=method,endpoint=endpoint,url=url)Installationpip3installxgorn-api
Package: xgp
XGP Python packageThis repository contains Python bindings to theXGP library. It is a simple wrapper that calls the XGP dynamic shared library and exposes a scikit-learn interface.DocumentationPlease refer to thePython section of the XGP website.InstallationInstallation instructions are availablehere.Quick start>>>fromsklearnimportdatasets>>>fromsklearnimportmetrics>>>fromsklearnimportmodel_selection>>>importxgp>>>X,y=datasets.load_boston(return_X_y=True)>>>X_train,X_test,y_train,y_test=model_selection.train_test_split(X,y,random_state=42)>>>model=xgp.XGPRegressor(...flavor='boosting',...loss_metric='mse',...funcs='add,sub,mul,div',...n_individuals=50,...n_generations=20,...parsimony_coefficient=0.01,...n_rounds=8,...random_state=42,...)>>>model=model.fit(X_train,y_train,eval_set=(X_test,y_test),verbose=True)>>>metrics.mean_squared_error(y_train,model.predict(X_train))# doctest: +ELLIPSIS17.794685...>>>metrics.mean_squared_error(y_test,model.predict(X_test))# doctest: +ELLIPSIS17.337693...This will also produce the following output in the shell:00:00:00--trainmse:42.06567--valmse:33.80606--round100:00:00--trainmse:24.20662--valmse:22.73832--round200:00:00--trainmse:22.06328--valmse:18.90887--round300:00:00--trainmse:20.25549--valmse:18.45531--round400:00:00--trainmse:18.86693--valmse:18.22908--round500:00:00--trainmse:17.79469--valmse:17.33769--round600:00:01--trainmse:17.62692--valmse:22.67012--round700:00:01--trainmse:17.24799--valmse:22.77802--round8
Package: xgp-reccomender
xgp-reccomenderApp searches for avaiable Xbox Game Pass games and helps to choose what to play based on Metacritics and your ratings.Instalationpip3 install xgp-reccomenderUsagexgp-reccomenderRating games is done viarated_games. 1 is for liked games and -1 is the opposite. You can type whatever integer you want, but I reccomend to stick with -1, 1 values.OutputThe script output isgame_ranking.html. There is also simple css file written for better visualizing.
Package: xgpy
xgpy: a powerful python wrapper for football dataWhat is it?xgpyis a Python package that aims to aggregate multiple football data sources into a single python module.
Using a single function, one can retrieve data from multple places, compare and perform a more complete analysis.SourceStatusunderstat.comBetafbref.comIn Progressfantasy.premierleague.comPlannedwhoscored.comPlannedInstallationThe source code is currentlyhere.The simplest way to install the package is by pip.pip install xgpyUsagexgpyhas multiple modules, each for every source. For example, in order to get stats from understat:importxgpyfromxgpy.understatimportUnderstatPlayerplayer=UnderstatPlayer(1228)match_data=player.get_player_match_data()And that's it! Look through the documentation and call upon a number of functions.TroubleshootingThere is a known issue of pandas not installing correctly. Please make sure you have pandas
installed before installing xgpy.pipinstallpandas
pipinstallxgpy
Package: xgrads
xgrads1. IntroductionThe Grid Analysis and Display System (GrADSorOpenGrADS) is a widely used software for easy access, manipulation, and visualization of earth science data.  It uses adescriptor (or control) file with a suffix.ctlto  describe a raw binary 4D dataset.  Thectlfile is similar to the header information of aNetCDFfile, containing all the information about dimensions, attributes, and variables except for the variable data.This python packagexgradsis designed for parse and read the.ctlfile commonly used byGrADS.  Right now it can parse various kinds of.ctlfiles.  However, only the commonly used raw binary 4D datasets can be read usingdaskand return as axarray.DatasetOther types of binary data, likedtypeisstationorgrib, may be supported in the future.2. How to installRequirementsxgradsis developed under the environment withxarray(=version 0.15.0),dask(=version 2.11.0),numpy(=version 1.15.4),cartopy(=version 0.17.0), andpyproj(=version 1.9.6).  Older versions of these packages are not well tested.Install via pippip install xgradsInstall from githubgit clone https://github.com/miniufo/xgrads.git
cd xgrads
python setup.py install3. Examples3.1 Parse a.ctlfileParsing a.ctlfile is pretty simple using the following code:fromxgradsimportCtlDescriptorctl=CtlDescriptor(file='test.ctl')# print all the info in ctl fileprint(ctl)If you have already load the ASCII content in the.ctlfile, you can do it as:content=\"dset ^binary.dat\n"\"* this is a comment line\n"\"title 10-deg resolution model\n"\"undef -9.99e8\n"\"xdef 36 linear   0 10\n"\"ydef 19 linear -90 10\n"\"zdef  1 linear   0  1\n"\"tdef  1 linear 00z01Jan2000 1dy\n"\"vars  1\n"\"test  1 99 test variable\n"\"endvars\n"ctl=CtlDescriptor(content=content)# print all the infoprint(ctl)3.2 Read binary data into axarray.DatasetReading a.ctlrelated binary data file is also pretty simple using the following code:fromxgradsimportopen_CtlDatasetdset=open_CtlDataset('test.ctl')# print all the info in ctl fileprint(dset)Then you have thedsetas axarray.Dataset.  This is similar toxarray.open_datasetthat usedaskto chunk (buffer) parts of the whole dataset in physical memory if the whole dataset is too large to fit in.If there are many.ctlfiles in a folder, we can also open all of them in a single call ofopen_mfdatasetas:fromxgradsimportopen_mfDatasetdset=open_mfDataset('./folder/*.ctl')# print all the info in ctl fileprint(dset)assuming that every.ctlfile has similar data structure except the time step is different.  This is similar toxarray.open_mfdataset.3.3 Convert a GrADS dataset to a NetCDF datasetWith the above functionality, it is easy to convert a.ctl(GrADS) dataset to a.nc(NetCDF) dataset:fromxgradsimportopen_CtlDatasetopen_CtlDataset('input.ctl').to_netcdf('output.nc')
Package: xgrid
XGridInstallationpip install xgridTestInvokepython3 test.pyin the root folder to perform the test cases.UsageSee document for more information. Let's start with a simple kernel, the element-wise multiplication of two grid:importxgridimportnumpyasnpimportrandomxgrid.init()fvec=xgrid.grid[float,1]@xgrid.kernel()defelementwise_mul(result:fvec,a:fvec,b:fvec)->None:result[0]=a[0]*b[0]and let's define some data:a=xgrid.Grid((10000,),float)b=xgrid.Grid((10000,),float)foriinrange(10000):a[i]=random.random()b[i]=random.random()and the result:result=xgrid.Grid((10000,),float)and invoke the kernel:elementwise_mul(result,a,b)We could check the result using numpy dot:assert np.sum(result.now) == np.dot(a.now, b.now)ExamplesSolve the 2D Cavity flow withxgrid, see in examples folder.
Package: xgridfit
xgridfit-3A TrueType hinting languageXgridfit is an language for hinting TrueType fonts. It is an XML-based language, similar to (and in fact inspired by) XSLT. It has been around since before 2006, but version 3 was reborn as a (largely) Python program with Python dependencies. Xgridfit through version 2 was verbose and awkward to use. Version 3 featured a new compact syntax, and version 3.2.10 added a YAML-based language focused on describing the positions of points relative to the origin of a glyph's grid or to other points rather than issuing commands for positioning them. This language (call it Ygridfit) is simple and easy to write, but its main purpose is to supportygt, a graphical hinting tool.Documentation of the XML-based language (both full and compact syntax), is available at theGitHub development site.There is no release for the current version (3.2.18) at GitHub. Instead, install by downloading from PyPi:pip install xgridfitAlternatively, download the code from GitHub, change to the project's root directory (the one with the filepyproject.tomlin it), and type:pip install .Version 3.3.0  merges most of main() (command line) and the former compile_all (called from Ygt) into one routine (run()). This enables
merge-mode for Ygt.Version 3.2.18 logs certain errors rather than exiting (an improvement when a backend for Ygt).Version 3.2.17 has its own code for exporting to UFO rather than relying on ufoLib2.Version 3.2.16 adds support for deltas in the YAML notation.Version 3.2.15 fixes a bug that made a muddle of the cvar table, and removes an obnoxious message.Version 3.2.14 is revised to accommmodate the new organization of cvar data in ygt.Version 3.2.13 has small changes to maintain compatibility with ygtVersion 3.2.12 changes from fontTools.ufoLib to ufoLib2 for editing UFOs.Version 3.2.11 adds the ability to save instructions and associated data to a UFO (version 3)Version 3.2.10 supports "min" (minimum distance) attribute for hints and emits fewer messages when run from ygt.
Package: xgt
xGT is a high-performance property graph engine designed to support extremely large in-memory graphs, and thexgtlibrary is the client-side interface which controls it.DocumentationThexgtlibrary is self-documenting, and all external methods and classes have docstrings accessible throughhelp().
A formatted version of the same is available online on the Trovares documentation site:docs.trovares.com.Extra ToolsMost users will find installing the following packages useful:PackageDescriptionjupyterFor an interactive environment to use xgt.pandasFor importing / exporting data to / from pandas frames.The "extra" variant ofxgtis provided to make installing these useful packages along with xgt easy.  Install by doing:pip install xgt[extra].
Package: xguard
xguardXguard is yet another guard clause library.What are Guard ClausesA guard clause is simply a check that immediately exits the function, either with a return statement or an exception. If you're used to writing functions that check to ensure everything is valid for the function to run, then you write the main function code, and then you write else statements to deal with error cases, this involves inverting your current workflow. The benefit is that your code will tend to be shorter and simpler, and less deeply indented.CreditHow to use this packageUsing this package is easy. Just import the package, create an instance of the Xguard class, and start chaining your guard clauses together.In dev mode, if you still encounter a lot of import errors, and you think you know what you are doing, try to add the xguard dir to the python path.export PYTHONPATH=/path/to/parent/directory:$PYTHONPATHHere's an example:fromxguardimportguarddefadd_ten(number:int):guard=guard.Xguard()guard.not_null(number)\.is_type(number,int)\.is_gt(number,0)# if we made it here, we have succeessfully used the guard clause, kudos!returnnumber+10;res:int=add_ten(5)# 120print(res)# Good Issue: Try to use the guard clauses in a factorial functionSee? Easy!For testingpython-munittestdiscovertests/Why I wrote the libraryI wrote xguard because I wanted to create something useful for other developers like myself. As someone who has written a lot of code, I know how frustrating it can be to spend time tracking down errors caused by bad inputs. I wanted to make it easier for developers to catch these issues early on and write more robust code.It was also an opporuinty for me to improve on a similar project by Adrian without wrecking his original idea. I am adding some extra features like custom error messages to make it more powerful and flexible. With custom error messages, developers can quickly understand what went wrong when a guard clause fails.Overall, my main motivation for creating xguard was to write something that I found useful and that I hope other developers will find useful as well. I believe in the power of open source software and I would love for others to contribute to the project. If you have any feedback or suggestions, please feel free to share them or even open a pull request on GitHub. Together, we can make xguard even better.DocumentationEach guard method is documented with a docstring that explains its purpose and usage, following the reST style. You can access the documentation for each method using Python's built-inhelpfunctionLicenseThis library is released under the GNU GPLv3 License. See the LICENSE file for details.AcknowledgementsThis library is based on the ideas and code of Adrian'ssimilar project. Thank you, Adrian!
Package: xh1scr
#ENGHow to useIMPORT AsyncTok modulefromxh1scrimportAsyncTokMake task in asynchronous funcasyncdeffunc():awaitAsyncTok.run('xh1c2')status=awaitAsyncTok.status()likes=awaitAsyncTok.likes()followers=awaitAsyncTok.followers()following=awaitAsyncTok.following()nickname=awaitAsyncTok.nickname()avatar=awaitAsyncTok.getavatar()btw u can get list in runfromxh1scrimportAsyncTok
asyncdeffunc2():awaitAsyncTok.run(['xh1c2','example','example2','and','more'])status=awaitAsyncTok.status()likes=awaitAsyncTok.likes()followers=awaitAsyncTok.followers()following=awaitAsyncTok.following()nickname=awaitAsyncTok.nickname()avatar=awaitAsyncTok.getavatar()andnowthatlibrarycanbenotasyncronousIMPORT TikTok modulefromxh1scrimportTikTokMake task in normal funcdeffunc():TikTok.run('xh1c2')status=TikTok.status()likes=TikTok.likes()followers=TikTok.followers()following=TikTok.following()nickname=TikTok.nickname()avatar=TikTok.getavatar()fromxh1scrimportTikTok
deffunc2():TikTok.run(['xh1c2','example','example2','and','more'])status=TikTok.status()likes=TikTok.likes()followers=TikTok.followers()following=TikTok.following()nickname=TikTok.nickname()avatar=TikTok.getavatar()#RUКак использоватьДля работы с ним надо сделать task в асинхронной функции
(я знаю есть такое же API но с подключенной авторизацией и поиском по id но плюс моего API это удобство использования)fromxh1scrimportTikTok
deffunc():TikTok.run('xh1c2')status=TikTok.status()likes=TikTok.likes()followers=TikTok.followers()following=TikTok.following()nickname=TikTok.nickname()avatar=TikTok.getavatar()Так же в run можно передать список значенийfromxh1scrimportTikTok
deffunc2():TikTok.run(['xh1c2','example','example2','and','more'])status=TikTok.status()likes=TikTok.likes()followers=TikTok.followers()following=TikTok.following()nickname=TikTok.nickname()avatar=TikTok.getavatar()
Package: xhAStar
A*寻路算法pip install xhAStar使用方法importastarw,h=6,3start,goal=(0,0),(3,2)walls=[(2,1),(3,1),(4,1)]obj=astar.AStar(w,h,start,goal,walls,astar.MANHATTAN)print(obj.result)AStar参数说明:w (int): 长h (int): 宽start (Tuple[int, int]): 起始点goal (Tuple[int, int]): 终点walls (List[Tuple[int, int]]): 墙壁坐标列表type (int, optional): 寻路类型. 默认为曼哈顿寻路 MANHATTAN.
Package: xhb2beancount
xhb2beancountHomebank to Beancount converter.InstallI recommend usingpipx.pipxinstallxhb2beancountOr just create a virtualenv and runpip install xhb2beancount.Usagexhb2beancountfile.xhb>file.beancountIf you have beancount installed you can format it with bean-format.xhb2beancountfile.xhb|bean-format-c78>file.beancountYou can customize the conversion passing a config file as an argument.xhb2beancount--configconfig.pyfile.xhbCopy thedefault config fileand edit it to suit your needs.You can also use the option--print-config-dictsto print the categories, accounts, payees and tags
from your Homebank file as dictionares and copy them to your config file.xhb2beancountfile.xhb--print-config-dicts