Saravanan666/pypi-org huggingface dataset:
Package: understat
A Python package for https://understat.com/.Join theDiscord serveror submitan issuefor help and / or suggestions!Installing understatThe recommended way to install understat is viapip.pip install understatTo install it directly from GitHub you can do the following:git clone git://github.com/amosbastian/understat.gitYou can also install a.tar fileor.zip filecurl -OL https://github.com/amosbastian/understat/tarball/master
curl -OL https://github.com/amosbastian/understat/zipball/master # WindowsOnce it has been downloaded you can easily install it usingpip:cd understat
pip install .UsageAn example of usingunderstatcan be found below:importasyncioimportjsonimportaiohttpfromunderstatimportUnderstatasyncdefmain():asyncwithaiohttp.ClientSession()assession:understat=Understat(session)data=awaitunderstat.get_league_players("epl",2018,{"team_title":"Manchester United"})print(json.dumps(data))if__name__=="__main__":loop=asyncio.new_event_loop()asyncio.set_event_loop(loop)loop.run_until_complete(main())ContributingFork the repository on GitHub.Run the tests withpytest tests/to confirm they all pass on your system.
If the tests fail, then try and find out why this is happening. If you aren't
able to do this yourself, then don't hesitate to either create an issue on
GitHub, or send an email toamosbastian@gmail.com.Either create your feature and then write tests for it, or do this the other
way around.Run all tests again with withpytest tests/to confirm that everything
still passes, including your newly added test(s).Create a pull request for the main repository'smasterbranch.DocumentationDocumentation and examples forunderstatcan be found athttp://understat.readthedocs.io/en/latest/.
Package: understat-package
API Data understat.com by Sports Data CampusA Python package to api data understat.comhttps://pypi.org/project/understat-package/Aviso Importante sobre el Uso de Datos de understat.comEsta librería está diseñada para facilitar el acceso a los datos disponibles enunderstat.comcon propósitos educativos y de investigación. Al utilizar esta librería, los usuarios deben adherirse a los siguientes términos y condiciones:Atribución de DatosTodos los datos obtenidos a través de esta librería provienen de understat.com. Los usuarios deben asegurarse de atribuir claramente a understat.com como la fuente de los datos en cualquier publicación, análisis o proyecto donde se utilicen estos datos.Uso No ComercialEsta librería se proporciona exclusivamente para uso no comercial. Cualquier uso de los datos obtenidos para propósitos comerciales está estrictamente prohibido.Adherencia a los Términos de Uso de understat.comSe insta a los usuarios a revisar y seguir los términos de uso establecidos. El uso indebido de los datos puede resultar en la violación de estos términos.Limitación de ResponsabilidadEl creador de esta librería no se hace responsable del mal uso de la misma ni de cualquier violación de los términos de uso de understat.com por parte de los usuarios. Los usuarios son responsables de asegurar que su uso de los datos cumple con todas las leyes y regulaciones aplicables.Al utilizar esta librería, usted reconoce y acepta estos términos.Usage## Comprobar si understat-package esta instalado y su version# !pip list## Instalar# !pip install understat_package## Actualizar a la ultima version# !pip install understat-package --upgrade## Pre install# !pip install sqlalchemy# !pip install pandas mysql-connector-python## Import packageimportunderstat_packageasunderstat## Ejemplo de uso 1# Obtenemos todos las competicionestable_names=understat.getCompetitions()table_names## Ejemplo de uso 2# Obtenemos la lista de equipos y tabla de posicion de cada liga# df_result = understat.getLigas(season, copetition_id)df_competition=understat.getLigas('2024','Serie A')df_competition## Ejemplo de uso 3# Obtenemos los jugadores por temporada y competicion# df_result = understat.getJugadores_temporadas(season, copetition_id)df_result=getJugadores_temporadas('2024','Serie A')df_result## Ejemplo de uso 4# Obtenemos los disparos por temporada y competicion# df_result = understat.getDisparos(season, copetition_id)df_result=understat.getDisparos('2024','Serie A')df_result## Ejemplo de uso 5# Obtenemos la lista de partidos de cada competicion y temporada# df_result = understat.getPartidos(season, copetition_id)df_result=understat.getPartidos('2024','Serie A')df_resultby Sports Data Campus
Package: understatscraper
understatscraperA Python package to scrape shots data from understat.com for either a single game or a whole season.Author: Shivank Batra(@prstrggr)InstallationUse the package managerpipto install understatscraper.pipinstallunderstatscraperUsageScraping Data For A Single GameYou can get shots data for a single game by calling the single_match() method of the Understat class.The function takes one single parameter which is the match id(int) of the game. Match id of the game can be found in theurlat the end. Here we have taken the example of Liverpool-Leeds game:fromunderstatscraperimportUnderstat# creating an instance of the class Understatunderstat=Understat()#Calling the function to scrape data for a specific game id 16414#returns a dataframe containing all the shots data from the gamedf=understat.single_match(16414)print(df)Scraping Data For A Whole SeasonYou can get shots data for a whole season and for a specified league by calling the season() method of the Understat class.It takes four parameters:league(str)year(int)team(str). Default value as None.player(str). Default value as None.NOTE:Before calling the season function, make sure to download thiscsvfile since it will used as a reference point to easily loop over the match ids according to the specified user input when calling the function.If you want the data for let's say 20/21 season then input the preceding year i.e. 2020 as the year parameter to get the data for 20/21 season.Data is available from the 2014 -2015 to 2021-2022 season.Data for the 2021-2022 is only available till Gameweek 4.Data is only available for five leagues:EPLLa ligaLigue 1BundesligaSerie AInput 'La liga' as the league parameter with a smaller case l in liga when wanting the data for LaLiga. Similarly, for Premier league, input 'EPL'.fromunderstatscraperimportUnderstat# creating an instance of the class Understatunderstat=Understat()#calling a function to scrape shots data for the EPL season 20/21#returns a dataframe containing all the shots data from the EPL season 20/21df=understat.season('EPL',2020)print(df)#calling a function to scrape shots data for Raheem Sterling from the 20/21 EPL season.df=understat.season('EPL',2020,team='Manchester City',player='Raheem Sterling')print(df)NOTE:While inputting the team and player, make sure to input exact team and player name that is available onunderstat.comContributingFor any doubts or suggestions you can contact mehereLicenseMIT
Package: underthesea-core
Underthesea CoreUnderthesea Core is a powerful extension of the popular natural language processing library Underthesea, which includes a range of efficient data preprocessing tools and machine learning models for training. Built with Rust for optimal performance, Underthesea Core offers fast processing speeds and is easy to implement, with Python bindings for seamless integration into existing projects. This extension is an essential tool for developers looking to build high-performance NLP systems that deliver accurate and reliable results.UsageCRFFeaturizer>>>fromunderthesea_coreimportCRFFeaturizer>>>features=["T[-1]","T[0]","T[1]"]>>>dictionary=set(["sinh viên"])>>>featurizer=CRFFeaturizer(features,dictionary)>>>sentences=[[["sinh","X"],["viên","X"],["đi","X"],["học","X"]]]>>>featurizer.process(sentences)[[['T[-1]=BOS','T[0]=sinh','T[1]=viên'],['T[-1]=sinh','T[0]=viên','T[1]=đi'],['T[-1]=viên','T[0]=đi','T[1]=học'],['T[-1]=đi','T[0]=học','T[1]=EOS']]]Release WorkflowChange version inCargo.tomlandpyproject.tomlPush to branchcorewith commitPublish Underthesea CoreThis will triggerrelease-pypi-coreactionCheck latest version inpypiNote*: Run a self-hosted for buildingmacos-arm
Package: underworlds
underworlds is adistributed and lightweight frameworkthat facilitatesbuilding and sharing models of the physical worldsurrounding a robot
amongst independent software modules.These modules can be for instance geometric reasoners (that compute topological
relations between objects), motion planner, event monitors, viewers… any
software that need to access ageometric(based on 3D meshes of objects)
and/ortemporal(based on events) view of the world.One of the main feature of underworlds is the ability to store manyparallelworlds: past models of the environment, future models, models with
some objects filtered out, models that are physically consistent, etc.This package provides the underworlds server, a Python client library, and a set
of tools to interact with the system (viewers, scene loader, ROS bridge, etc.).A handful of useful example applications are also provided, like skeleton
tracking (using OpenNI) or visibility tracking.
Package: undetected-playwright
undetected-playwrightUsageDownload PyPi packagepipinstall-Uundetected-playwrightRun the demoAs before.fromplaywright.sync_apiimportBrowserContext,sync_playwrightfromundetected_playwrightimportstealth_syncheadless=Truedefrun(context:BrowserContext):page=context.new_page()page.goto("https://bot.sannysoft.com/")_suffix="-headless"ifheadlesselse"-headful"page.screenshot(path=f"result/sannysoft{_suffix}.png",full_page=True)defbytedance():withsync_playwright()asp:browser=p.chromium.launch(headless=headless)context=browser.new_context()stealth_sync(context)run(context)if__name__=="__main__":bytedance()Referenceberstend/puppeteer-extraAtuboDad/playwright_stealth: playwright stealth (github.com)Granitosaurus/playwright-stealth (github.com)diprajpatra/selenium-stealth: Trying to make python selenium more stealthy. (github.com)
Package: undetected-playwright-patch
🎭Playwrightfor PythonThis is a patch of the original playwright implementation for Python.It currently passes for sure (tested on Win10):✅ [CloudFare]✅ [Bet365] (shape//F5 I think)[Others] Unknown/Not testedWarnings:theOnly chromiumpart for Playwright is patched.Demos (tested on Win 10)DependenciesGoogle-Chrome installed (channel="chrome"recommended, default)InstallationFrom PyPi (recommended)execute in your shell consolepipinstallundetected-playwright-patchInstallation note for UNIX//LinuxResolve "Permission Denied" error (click to expand)On UNIX-based OS, you might run into the following errorsPermission denied: '...python3.**/site-packages/undetected_playwright/driver/playwright.sh'and...python3.**/site-packages/undetected_playwright/driver/node: Permission deniedTo resolve them, simply runchmod+x<Thepathyourterminaltellsyou>.sh# so smth like: ...python3.**/site-packages/undetected_playwright/driver/playwright.shandchmod +x <The path your terminal tells you for node>
# so smth like: ...python3.**/site-packages/undetected_playwright/driver/nodeBuild from this repo:git clone https://github.com/kaliiiiiiiiii/undetected-playwright-python
cd undetected-playwright-python
python -m pip install -r local-requirements.txt
python build_patched.pyExampleimportasyncio# undetected-playwright here!fromundetected_playwright.async_apiimportasync_playwright,Playwrightasyncdefrun(playwright:Playwright):args=[]# disable navigator.webdriver:true flagargs.append("--disable-blink-features=AutomationControlled")browser=awaitplaywright.chromium.launch(headless=False,args=args)page=awaitbrowser.new_page()awaitpage.goto("https://nowsecure.nl/#relax")input("Press ENTER to continue to Creep-JS:")awaitpage.goto("https://nowsecure.nl/#relax")awaitpage.goto("https://abrahamjuliot.github.io/creepjs/")input("Press ENTER to exit:")awaitbrowser.close()asyncdefmain():asyncwithasync_playwright()asplaywright:awaitrun(playwright)if__name__=="__main__":loop=asyncio.ProactorEventLoop()loop.run_until_complete(main())# asyncio.run(main) # should work for non-Windows as well# undetected-playwright here!fromundetected_playwright.sync_apiimportsync_playwrightwithsync_playwright()asp:args=[]# disable navigator.webdriver:true flagargs.append("--disable-blink-features=AutomationControlled")browser=p.chromium.launch(args=args,headless=False)page=browser.new_page()page.goto("https://nowsecure.nl/#relax")input("Press ENTER to continue to Creep-JS:")page.goto("https://nowsecure.nl/#relax")page.goto("https://abrahamjuliot.github.io/creepjs/")input("Press ENTER to exit:")browser.close()DocumentationSee the originalhttps://playwright.dev/python/docs/introAPI Referencehttps://playwright.dev/python/docs/api/class-playwrightPatchesRuntime.enableremove Runtime.enable occurencespatch _context(world) getterisolatedWorld (utility)main world (main)reset on frame-reload//navigationTODO'sadd GitHub runner to build releases automated
Package: undiscord
⚠️Any tool that automates actions on user accounts, including this one, could result in account termination.Use at your own risk!Installation:pip install undiscordInstructions:This script might not work on Pydroid due to its limitations. Please try running onTermuxwith Python installed instead.Install the Libraries below using any python interpreter on PC or Android.Libraries:Furl - URL manipulation made simple.pip install furlPwinput - A cross-platform Python module that displays **** for password input.pip install pwinputicmplib - The power to forge ICMP packets and do ping and traceroute.pip install icmplibalive-progress - A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!pip install alive-progressDownload the script fromReleasesor install it from PyPi withpip install undiscordRunundiscord <args>(orpython undiscord.py <args>if downloaded from GitHub Releases)Fill "Auth Token", "Guild ID" and "Channel ID" Fields. (Channel ID Isn't mandatory if you're deleting messages from a GUILD)Fill all the other optional fields. you can skip any optional input by pressingENTERTo stop the script, do KeyboardInterrupt by pressing keysCTRL+CType@meon author_id to delete your own messages.Press space to login using password if you don't know your authToken.For additional help, runundiscord --helpUsage:undiscord [-h] [-t <token>] [-e <email>] [-p <password>]
[-g <guild id>] [-c <channel id>] [-a <author id>]
[-min <message id>] [-max <message id>] [-C "text"]
[-hl] [-hf] [-n] [-NC] [-NF] [-S]ℹ️ If you have need additional helpopen a discussion hereℹ️ If you found any bugs or just wanna request a new featureopen a issue hereDO NOT SHARE YOURauthToken!Sharing your authToken on the internet will give full access to your account!There are bots gathering credentials all over the internet.
If you post your token by accident, LOGOUT from discord on thatsame browseryou got that token imediately.
Changing your password will make sure that you get logged out of every device. I advice that you turn on2FAafterwards.If you are unsure do not share screenshots, or copy paste logs on the internet.DISCLAIMER:THE SOFTWARE AND ALL INFORMATION HERE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.By using any code or information provided here you are agreeing to all parts of the above Disclaimer.This project is based onvictornpb's Javascript Undiscord.
Package: undmainchain
Unification Mainnet HelpersMiscellaneous tools to help support the maintenance of Unification
Mainnet EVs can be found here.DefaultsDue to the complexity of the beast, these tools will only work with our
standard environments. This library also only currently supports Linux.
There is some room for differences that the codebase can be modified to
handle.To view what the expected defaults are:python -m undmainchain.cli.defaults showAll the helpers take a--machineoption that loads custom values.
These values are defined in theundmainchain.constmodule.Reset AllThis command will wipe all your chain data, use the latest published und
versions and genesis. Whilst it may take much time to catch up, this is
a good fresh slate if needed.python -m undmainchain.cli.upgrade revertInstall a specific versionpython -m undmainchain.cli.upgrade binaries 1.4.1Export to S3Genesis ExportThe export helper will stop the EV, export the chain data to a JSON file
and upload it to Amazon S3, and start the EV again.python -m undmainchain.cli.export genesis <HEIGHT> <AWSKEY> <AWSSECRET>Chain ExportThe entire chain can be compressed and exported to S3. Warning: chains
can be large and uploading to S3 can incur cost.python -m undmainchain.cli.export chain <AWSKEY> <AWSSECRET>Network upgradesThere is also a helper that support network upgradespython -m undmainchain.cli.upgrade genesis 700000The helper will wait until the specified block and then perform an
upgrade.
Package: undoable
A simple Python list (observed_list) and dict (observed_dict)
with callbacks when they are changed and undo/redo using these
callbacks.Also includesobserved_tree, a labelled tree with ordered children
implemented as Python list with parent pointers and a bit of consistency
check.ImplementationImplemented using thecommand
pattern. Seemy blog
post discussing this.Examplepip install undoableCallbacks>>> from undoable import observed_dict, observed_list
>>> def printargs(*args):
...     print args
...
>>> l = observed_list([1, 2, 3])
>>> l.callbacks.append(printargs)
>>> l.append(4)
([1, 2, 3, 4], 'append', 4)
>>> l.extend([5, 6, 7])
([1, 2, 3, 4, 5, 6, 7], 'extend', [5, 6, 7])
>>> d = observed_dict({1: "one", 2: "two"})
>>> d.callbacks.append(printargs)
>>> d[3] = "three"
({1: 'one', 2: 'two', 3: 'three'}, '__setitem__', 3, 'three')
>>> d2 = observed_dict()
>>> d2.undocallbacks.append(printargs)
>>> d2[1] = "one"
({1: 'one'}, ('__delitem__', 1), ('__setitem__', 1, 'one'))Undo/redo>>> from undoable import UndoLog, observed_dict, observed_list
>>> u = UndoLog()
>>> d = observed_dict({1: "one", 2: "two"})
>>> l = observed_list([1, 2, 3])
>>> u.add(d)
>>> u.add(l)
>>> l.append(1)
>>> d[3] = "Hello"
>>> l
[1, 2, 3, 1]
>>> d
{1: 'one', 2: 'two', 3: 'Hello'}
>>> u.undo()
>>> d
{1: 'one', 2: 'two'}
>>> u.undo()
>>> l
[1, 2, 3]
>>> u.redo()
>>> u.redo()
>>> l
[1, 2, 3, 1]
>>> d
{1: 'one', 2: 'two', 3: 'Hello'}
>>> u.start_group("foo")
True
>>> d[53] = "user"
>>> del d[1]
>>> u.end_group("foo")
>>> d
{2: 'two', 3: 'Hello', 53: 'user'}
>>> u.undo()
>>> d
{1: 'one', 2: 'two', 3: 'Hello'}
Package: undocinclude
undocincludeSphinx plugin that provides a directiveundocinclude, which is basicallyliteralincludebut hacked to omit docstrings.Supports a subset ofliteralinclude's options.InstallationAdd this package to your requirements, and modify your Sphinxconf.py:extensions=[# ...'undocinclude.extension',# ...]Example..undocinclude::/path/to/script.py
Package: undocker
Unpacks a Docker image.Usageusage: undocker.py [-h] [--ignore-errors] [--output OUTPUT] [--verbose]
                   [--debug] [--list] [--layer LAYER]
                   image

positional arguments:
  image

optional arguments:
  -h, --help            show this help message and exit
  --ignore-errors, -i   Ignore OS errors when extracting files
  --output OUTPUT, -o OUTPUT
                        Output directory (defaults to ".")
  --verbose, -v
  --debug, -d
  --list, --ls          List layers in an image
  --layer LAYER, -l LAYER
                        Extract only the specified layerExamplesExtract an entire image:$ docker save busybox | undocker -i -o busybox busyboxThe-ioption is necessary here because I am not running as root,
and the extract operation will fail when it attempts to create device
nodes.List the layers in an image:$ docker save busybox | undocker --list
511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158
df7546f9f060a2268024c8a230d8639878585defcc1bc6f79d2728a13957871b
ea13149945cb6b1e746bf28032f02e9b5a793523481a0a18645fc77ad53c4ea2
4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125Extract only specific layers:$ docker save busybox |
  undocker -o busybox -v \
  -l 4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125 \
  busybox
INFO:undocker:extracting image busybox (4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125)
INFO:undocker:extracting layer 4986bf8c15363d1c5d15512d5266f8777bfba4974ac56e3270e7760f6f0a8125Licenseundocker -- a tool for decomposing Docker imagesCopyright (C) 2015 Lars Kellogg-Stedmanlars@oddbit.comThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, seehttp://www.gnu.org/licenses/.
Package: undoredo
undoredo--------undo/redo functionality for arbitrary python classesSupports Python 3. Might work in Python 2.> Author: Ross Anderson ([rosshamish](https://github.com/rosshamish))### Installation```pip install undoredo```### UsageAny class can gain undo/redo functionality by doing the following:- keep around an instance of UndoManager- annotate undoable methods with the @undoable decorator- implement do(), undo(), and redo() methods as shown in the following example- implement copy(), and restore(obj) methods- where copy() returns a copy of the object (probably a deep copy)- where restore(obj) restores the calling object to the state of the passed object### Example```import undoredoclass Counter(object):def __init__(self, value=0):self.undo_mgr = undoredo.UndoManager()self.value = value@undoredo.undoabledef increment(self):self.value += 1@undoredo.undoabledef decrement(self):self.value -= 1def do(self, command):return self.undo_mgr.do(command)def undo(self):return self.undo_mgr.undo()def redo(self):return self.undo_mgr.redo()def copy(self):return Counter(self.value)def restore(self, counter):self.value = counter.valuec = Counter(0)  # 0c.increment()   # 1c.increment()   # 2c.undo()        # 1c.redo()        # 2```### LicenseGPLv3