Saravanan666/pypi-org huggingface dataset:
Package: wgdtree
wgdtree Packageinstall with$ pip install wgdtreeimportwgdtreefromete3importPhyloTreeThis package provides the following functions:sim(species_tree,n,path,ssd_rate,loss_rate)| This function accepts a species tree, an integer value 'n', a path, a loss rate floating point and a ssd rate also floating point. The function will simulate n statistically probable gene trees and then write them as newick files to the given path. This function allows for wgd duplications that are labelled on the species tree to be accounted for. Annotations are expected to be in NHX format.path="/home/user/simulated_trees_dir"n=10ssd_rate=0.002loss_rate=0.002species_tree=PhyloTree("example_species_tree.newick")sim(species_tree,n,path,ssd_rate,loss_rate)root(species_tree,gene_tree)| This function accepts a gene tree and species tree. This function will pick the best rooting of the gene tree to minimize the number of loss and duplication events.species_tree=PhyloTree("example_species_tree.newick")gene_tree=PhyloTree("example_gene_tree.newick")rooted_gene_tree=root(species_tree,gene_tree)place_wgd(species_tree, gene_tree)|  This function accepts a rooted gene tree and a species tree labelled with one pair of consecutive whole genome duplication events. The function will return a copy of the gene tree with labels added to nodes that represent wgd events. The added events will either be marked with a 'P' for present or 'M' for missing. All annotations will be made in NHX format.species_tree=PhyloTree("example_species_tree.newick")gene_tree=PhyloTree("example_gene_tree.newick")labelled_gene_tree=place_wgd(species_tree,gene_tree)rrates(labelled_gene_tree, pSpecies)|  This function accepts a gene tree labelled using the place_wgd() method and a string corresponding to a taxa on the given gene tree. This function then returns two floating point values representing the conditional probably of genes being retained retained and lossed retained of the given taxa.pSpecies="Dinosourous_rex"results=rrates(labeled_gene_tree,pSpecies)retained_retained=results[0]lossed_retained=results[1]getRetainedDups(list_of_gene_tree,species_tree)| This function accepts an array of gene tree files in newick format and a species tree labelled with all whole genome duplication events on the lineage. The function will calculate the conditional probability statistic for all consecutive pairs of events on the species tree.list_of_gene_trees=["gene_tree0.newick","gene_tree1.newick","gene_tree2.newick","gene_tree3.newick"]species_tree=PhyloTree("species_tree")results=getRetainedDups(list_of_gene_trees,species_tree)total_retained_retained=results[0]total_lossed_retained=results[1]*all trees must be in .newick format, and the ete3 package is required.
Package: wg-easy-api-wrapper
wg-easy-api-wrapperPython module for convenient interaction with the application APIwg-easyYou can see all the methods in the documentation on GitHubUsageA quick example of creating a client:asyncwithServer("wg.example.com",51821,"SuPerSecret_pass")asserver:awaitserver.create_client("client_name")Or a slightly more complicated way:asyncwithaiohttp.ClientSession()assession:server=Server("wg.example.com",51821,"SuPerSecret_pass",session)awaitserver.login()awaitserver.create_client("client_name")
Package: wgeasywall
What is WGEasywallWGEasywallis a CLI to manage Wireguard networks and IPTables rules using GraphMLHow to Install and Configure WGEasywallWGEasywall needs python version 3.8 or above. It can be installed using following command:pipinstallwgeasywallWGEasywall needs MongoDB database to start working. We should tell it how to access the database using following command:wgeasywallconfiggeneratedatabase--mongodb-address[MongoDBAddress]--mongodb-user[USER]--mongodb-password[PASSWORD]NOTE:WGEasywall access database using default port 27017 and it can not be changedWGEasywall IPTables rule generator needsRule as a CodeActions and Functionmanifest file. These manifest files should be imported to the WGEasywall. These manifest files are located inRaaCManifestfolder.
We can import these files using following commands:# import general functionwgeasywallRaaCimport-function--function-fileGeneral.yaml# import DROP actionwgeasywallRaaCimport-action--action-fileDROP.yaml# import ACCEPT actionwgeasywallRaaCimport-action--action-fileACCEPT.yaml# import LOG actionwgeasywallRaaCimport-action--action-fileLOG.yamlNOTE:These manifest can be changed but they should be compatible with WGEasywallNow wgeasywall is ready for managing WireGuard networks and IPTables rules.
Package: wger
wgerwger (ˈvɛɡɐ) Workout Manager is a free, open source web application that helps
you manage your personal workouts, weight and diet plans and can also be used
as a simple gym management utility. It offers a REST API as well, for easy
integration with other projects and tools.For a live system, refer to the project's site:https://wger.de/Mobile appInstallationThese are the basic steps to install and run the application locally on a Linux
system. There are more detailed instructions, other deployment options as well
as an administration guide available athttps://wger.readthedocs.ioor in thedocs repo.Please consult the commands' help for further information and available
parameters.ProductionIf you want to host your own instance, take a look at the provided docker
compose file. This config will persist your database and uploaded images:https://github.com/wger-project/dockerDemoIf you just want to try it out:dockerrun-ti--namewger.demo--publish8000:80wger/demoThen just openhttp://localhost:8000and log in asadmin, passwordadminadminPlease note that this image will overwrite your data when you pull a new version,
it is only intended as an easy to setup demoDevelopment versionWe provide a docker file that sets everything up for development (however this won't
persist any data)dockerrun-ti\-v/path/to/your/wger/checkout:/home/wger/src\--namewger.dev\--publish8000:8000\wger/serverThen just openhttp://localhost:8000and log in as:admin, passwordadminadminFor more info, check theREADME in wger/extras/developemt.Alternatively you can use the production compose file for development as well,
just bind your local source code into the web container (see the docker-compose.yml
file for details). You will also probably want to set `DJANGO_DEBUG to falseLocal installationIf you prefer a local installation, consult thedevelopment documentationContactFeel free to contact us if you found this useful or if there was something that
didn't behave as you expected. We can't fix what we don't know about, so please
report liberally. If you're not sure if something is a bug or not, feel free to
file a bug anyway.discord:https://discord.gg/rPWFv6Wissue tracker:https://github.com/wger-project/wger/issuestwitter:https://twitter.com/wger_projectSourcesAll the code and the content is available on github:https://github.com/wger-project/wgerTranslationTranslate the app to your language onWeblate.LicenseThe application is licensed under the Affero GNU General Public License 3 or
later (AGPL 3+).The initial exercise and ingredient data is licensed additionally under one of
the Creative Commons licenses, see the individual exercises for more details.The documentation is released under a CC-BY-SA: either version 4 of the License,
or (at your option) any later version.Some images were taken from Wikipedia, see the SOURCES file in their respective
folders for more details.
Package: wget
Usagepython -m wget [options] <URL>options:-o –output FILE|DIR   output filename or directoryAPI Usage>>> import wget
>>> url = 'http://www.futurecrew.com/skaven/song_files/mp3/razorback.mp3'
>>> filename = wget.download(url)
100% [................................................] 3841532 / 3841532>
>> filename
'razorback.mp3'The skew that you see above is a documented side effect.
Alternative progress bar:>>> wget.download(url, bar=bar_thermometer)ChangeLog3.2 (2015-10-22)download(url) can again be unicode on Python 2.7https://bitbucket.org/techtonik/python-wget/issues/83.1 (2015-10-18)it saves unknown files under download.wget filenamehttps://bitbucket.org/techtonik/python-wget/issues/6it prints unicode chars to Windows consoleit downloads unicode urls with Python 33.0 (2015-10-17)it can download and save unicode filenameshttps://bitbucket.org/techtonik/python-wget/issues/72.2 (2014-07-19)it again can download without -o option2.1 (2014-07-10)it shows command line help-o option allows to select output file/directorydownload(url, out, bar) contains out parameter2.0 (2013-04-26)it shows percentageit has usage examplesit changes if being used as a librarydownload shows progress bar by defaultbar_adaptive gets improved algorithmdownload(url, bar) contains bar parameter
* bar(current, total)progress_callback is named callback_progress1.0 (2012-11-13)it runs with Python 30.9 (2012-11-13)it renames file if it already existsit can be used as a librarydownload(url) returns filenamebar_adaptive() draws progress barbar_thermometer() simplified bar0.8 (2011-05-03)it detects filename from HTTP headers0.7 (2011-03-01)compatibility fix for Python 2.5limit width of progress bar to 100 chars0.6 (2010-04-24)it detects console width on POSIX0.5 (2010-04-23)it detects console width on Windows0.4 (2010-04-15)it shows cute progress bar0.3 (2010-04-05)it creates temp file in current dir0.2 (2010-02-16)it tries to detect filename from URL0.1 (2010-02-04)it can download fileRelease Checklist[ ] update version in wget.py[x] update description in setup.py[ ] python setup.py check -mrs[ ] python setup.py sdist upload[ ] tag hg version–
anatoly techtonik <techtonik@gmail.com>
Package: wgetdb
[![PyPi Version](https://badge.fury.io/py/wgetdb.png)](http://badge.fury.io/py/wgetdb)[![Build Status](https://travis-ci.org/akiraak/wgetdb.png?branch=master)](https://travis-ci.org/akiraak/wgetdb)[![PyPi Downloads](https://pypip.in/d/wgetdb/badge.png)](https://crate.io/packages/wgetdb?version=latest)Download and store webpages in a sqlite databaseFeaturesTODOLicenseMIT licensed. See the bundled [LICENSE](https://github.com/akiraak/wgetdb/blob/master/LICENSE) file for more details.
Package: wg-federation
wg-federationA WireGuard federation server and client.Optional dependenciessystemd-python: enable logging into systemd journalDevelopmentPythonvirtualenvmust be installed on your system.# Setuppython-mvenvvenvsource./venv/bin/activate
pipinstall-e".[dev]"pipinstall-e".[build]"# optional: if you want to build locallywg-federation# To run wg-federation# DeactivatedeactivateRun Unit Testspytest-v--spec
pytest-v--cov# To see coverageRun Functional Testsbehavetests/features
behavetests/features-w# To see all outputs of all features tagged @wipRun SAST Testsbandit-cpyproject.toml-r-q.Setup IDE and DebuggerTo avoid having to install the dependencies on your operating system, setup your IDE to use a python virtual environment “SDK”.
E.g. thevenvdirectory you may have created above.Intellij/PyCharm provides this feature.
This will allow the IDE to find the libraries in the virtual environment, run and debug the application.To debug the application, runsrc/wg_federation/__init__.pyDeploy ManuallyBuildpython-mbuildPublish to Test PyPIUse__token__as a username to publish using a tokentwineupload--repositorytestpypidist/*Publish in Production (PyPI)Use__token__as a username to publish using a tokentwineuploaddist/*VERSION_HEREGenerate the Documentationsphinx-apidoc-odoc/src/wg_federation# Generate API documentation directly from the codepyreverse-opng-ddoc/img--colorized--ignorecontainer.py,federation.py,wireguard_interface.py,hq_state.py,controller_events.py,hq_event.py,wireguard_peer.py,constants.py,main.py,status.py,raw_options.py,log_level.py,is_argument_data_class.py,is_data_class.py,interface_status.py,configuration_saver_interface.py,configuration_loader_interface.py,can_save_configuration_interface.py,can_load_configuration_interface.py,user_input.py,command_line_argument.py,configuration_backend.py,argparse_action.py,command_line_option.pysrc/wg_federation# Generate UML diagrammake-Cdochtml# Generate HTML documentation from .rst source code
Package: wg-gesucht-crawler-cli
Python web crawler / scraper for WG-Gesucht. Crawls the WG-Gesucht site for new apartment listings and send a message to the poster, based off your saved filters and saved text template.Installation$ pip install wg-gesucht-crawler-cliOr, if you have virtualenvwrapper installed:$ mkvirtualenv wg-gesucht-crawler-cli
$ pip install wg-gesucht-crawler-cliUseCan be run directly from the command line with:$ wg-gesucht-crawler-cli --helpOr if you want to use it in your own project:fromwg_gesucht.crawlerimportWgGesuchtCrawlerJust make sure to save at least one search filter as well as a template text on your wg-gesucht account.Free software: MIT licenseDocumentation:https://wg-gesucht-crawler-cli.readthedocs.org.FeaturesSearcheshttps://wg-gesucht.defor new WG ads based off your saved filtersSends your saved template message and applies to all matching listingsReruns every ~5 minutesRun on a RPi or free EC2 micro instance 24/7 to always be one of the first to apply for new listingsGetting Caught with reCAPTCHAI’ve made the crawler sleep for 5-8 seconds between each request to try and avoid their reCAPTCHA, but if the crawler does get caught, you can sign into your wg-gesucht account manually through the browser and solve the reCAPTCHA, then start the crawler again.
If it continues to happen, you can also increase the sleep time in theget_page()function inwg_gesucht.pyHistoryPre-release
Package: wglestaapi
WgLestaAPIUnofficial Python library that facilitates working withAPI Wargaming.netandAPI Lesta Gamesfunctionality viaPython.By downloading this library you fully agree with all official documentsLesta GamesandWargaming.netaboutLesta GamesandWargaming.netproducts.The author of the library (Alexander Podstrechny) is not responsible for your actions performed with the help of this program code.Installing the libraryRun the command below at the command linepip install WgLestaAPIExample of useAsync waymain.pycontains:fromWgLestaAPIimportaioimportasynciomethod=aio.Method("account.info","wot",account_id=563982544,application_id="your_app_id")response=asyncio.run(method.execute())print(response)outputis:{"status":"ok","meta":{"count":1},"data":{"563982544":{"client_language":"","last_battle_time":1569011404,"account_id":563982544,"created_at":1564320823,"updated_at":1686648157,..."tanking_factor":0.0},"frags":None},"nickname":"tankalxat34","logout_at":1597741881}No-async wayfromWgLestaAPIimportApplication# Creating a Query with your application_idquery=Application.Query(application_id=APP_ID)# Adding the necessary parametersquery.extend(search="tank",limit=5)# Creating the method `account.list` of the game World of Tanks Blitz on the EU-region with the passed parametersm=Application.Method("account.list",game_shortname="wotb",query=query,region="eu")# Executing the methodmExecuted=m.execute()# Your handing of server responseprint(mExecuted["data"][0]["account_id"])# 58114596# If you wish, you can follow a link to the official website of the API owner with documentationprint(m.docs)# https://developers.wargaming.net/reference/all/wotb/account/list/Library functionalityThe library implements the basic functions ofAPI Lesta GamesandAPI Wargaming.net. All requests are made through your application, which you previously created onLesta Gamesor onWargaming.net. Some features are listed below:Getting information about the player, his equipment and medals.Obtaining information about the clan.Getting information about vehicles.And other methods.Copyright Notice2023 © Alexander Podstrechnyy.tankalxat34@gmail.comVKontakteTelegramGithHub2023 © Wargaming.net. All rights reserved.User Support CenterOfficial websiteLicense AgreementPrivacy Policy2023 © Lesta Games. All rights reserved.User Support CenterOfficial websiteLicense AgreementPrivacy PolicyThis program code is not a product of Lesta Games and was developed according to Lesta Games DPP rules.This program code is not a product of Wargaming.net and is developed according to WG DPP rules.
Package: wgman1ton
1toN-wireguard-managerSimple cli-tool to create the wg0.conf-files for a 1-to-many network infrastructure in which the N-peers can connect to each other via the 1-peer.Note that the keys are stored in an unencrypted sqlite-file and the configs get exported as plain text files – use this on your own risk!installationpip install wgman1tonYou also need wireguard installed (the package is calledwireguard-toolsin many distributions).usage$ wgman1ton
:: Select an option 
   1 edit general settings
   2 add node
   3 remove node
   4 display qr-code for node
   5 export all configs
   6 exit
> █Optionally you can also provide the name of the.db-file that should be opened.$ wgman1ton different.dbThe software will create a database file calledwgman1ton.dbin the current directory to persist the configuration.Navigate through the cli-menu. In the end export the configuration and distribute it to the appropriate peers.Call the software from the same directory later to continue where you left off.
Package: wgnlpy
wgnlpyPython netlink connector to WireGuardA simple control interface forWireGuardvia
Netlink, written in Python.fromwgnlpyimportWireGuardinterface="wg0"peer=b'...'wg=WireGuard()wg.set_peer(interface,peer,endpoint="203.0.113.0:51820",allowedips=["2001:db8::/32"],)assertpeerinwg.get_interface(interface).peerswg.remove_peers(interface,peer)assertpeernotinwg.get_interface(interface).peersRequirescryptography, &pyroute2.Also useful: thesockaddr_inandsockaddr_in6utility classes for
sockaddr manipulation.License:MIT
Package: wgpu-shadertoy
shadertoyShadertoy implementation based onwgpu-py.IntroductionThis library provides an easy to use python utility to run shader programs from the websiteShadertoy.com. It provides the compability to let users copy code from the website directly and run it with the variousGUIs that are supported in wgpu-py. Including Jupyter notebooks.Shadertoys translated to wgsl are also supported using the uniformsi_resolution,i_time, etc.This project is not affiliated with shadertoy.com.Installationpipinstallwgpu-shadertoyUsageThe mainShadertoyclass takes shader code as a string.fromwgpu_shadertoyimportShadertoyshader_code="""void mainImage( out vec4 fragColor, in vec2 fragCoord ){vec2 uv = fragCoord/iResolution.xy;vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));fragColor = vec4(col,1.0);}"""shader=Shadertoy(shader_code,resolution=(800,450))if__name__=="__main__":shader.show()Texture inputs are supported by using theShadertoyChannelclass. Up to 4 channels are supported.fromwgpu_shadertoyimportShadertoy,ShadertoyChannelfromPILimportImageimportnumpyasnpshader_code="""void mainImage( out vec4 fragColor, in vec2 fragCoord ){vec2 uv = fragCoord/iResolution.xy;vec4 c0 = texture(iChannel0, 2.0*uv + iTime * 0.2);fragColor = c0;}"""image_data=np.array(Image.open("./examples/screenshots/shadertoy_star.png"))channel0=ShadertoyChannel(image_data,wrap="repeat")shader=Shadertoy(shader_code,resolution=(800,450),inputs=[channel0])When passingoff_screen=Truethe.snapshot()method allows you to render specific frames.shader=Shadertoy(shader_code,resolution=(800,450),off_screen=True)frame0_data=shader.snapshot()frame10_data=shader.snapshot(10.0)frame0_img=Image.fromarray(np.asarray(frame0_data))frame0_img.save("frame0.png")For more examples seeexamples.StatusThis project is still in development. Some functionality from the Shadertoywebsite is missingandnew featuresare being added. See the issues to follow the development orcontribute yourself! For progress see thechangelog.LicenseThis code is distributed under the2-clause BSD license.Code of ConductOur code of conduct can be found here:Code of Conduct
Package: wg-pyutils
wg-pyutilsThis is a Python package containing lots of small and useful functions for reusebinary-mapping自动构造合适的函数，实现双界数值范围 (a,b)单界数值范围 (-inf, c) 或 (c, inf)无界数值范围 (-inf, inf)之间的一一映射基本用法`
bm = BinaryMapping(x1=x1, x2=x2, y1=y1, y2=y2, refer_points=refer_points)print(bm(x))print(bm.f.plot())
`
Package: wgrep
Whois GrepGather whois information of a website into a file format that
can be parsed into pretty much any programming language.InstallationSimply install this package usingpip:$ pip install wgrepUsageThis package is pretty easy to use, simplyimport wgrepand call the converter function
(it has the formatas_{choosen format}) passing the link of the website to get the whois
information as an argument. Like this:importwgrepdata_json=wgrep.as_json('www.somewebsite.com')data_xml=wgrep.as_xml('www.somewebsite.com')data_toml=wgrep.as_toml('www.somewebsite.com')Currently supported output formatsjsoncsvtoml
Package: wgrib-python
Description-Content-Type: UNKNOWNDescription: wgrib-python - A thin Python wrapper for wgrib==============================================Install-------To build please run:```pip install wgrib-python```For configuring wgrib2, `CC` and `FC` environment variables need to set prior to calling `pip`, e.g.```bashexport CC=gcc-7export FC=gfortran-7```Example-------To use try the following python code:```pythonfrom wgrib import wgrib_main  # wgrib1import shlexoutput = wgrib_main(shlex.split('-text -verf'))print(output)```TODO----- Full wgrib2 support- Fancier wrappings for more flexibilityKeywords: wgrib weather GRIBPlatform: UNKNOWNClassifier: Development Status :: 3 - AlphaClassifier: Intended Audience :: DevelopersClassifier: Topic :: Software Development :: Build ToolsClassifier: Programming Language :: Python :: 2Classifier: Programming Language :: Python :: 2.7Classifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6
Package: wgs-correction
WGS84坐标纠正工具功能用于将定义为WGS_1984坐标系，但实际坐标为bd09或gcj02的shapefile纠正到WGS_1984坐标系下以解决从高德/百度平台获取数据时忘记进行坐标矫正后，可能出现的问题Python库安装由于fiona依赖问题，仅支持Python>=3.8版本在pip中安装pipinstallwgs_correction使用一般使用importwgs_correctionaswgscinput_shp=''output_shp=''# 纠正高德坐标wgsc.correct(input_shp,output_shp,'gd')# 纠正百度坐标wgsc.correct(input_shp,output_shp,'bd')高级使用自定义纠正函数。纠正函数的参数、返回值都必须是两个示例中，定义了t_func，以将整个shapefile的经纬度都加1importwgs_correctionaswgscdeft_func(x,y):returnx+1,y+1input_shp=''output_shp=''# 纠正高德坐标wgsc.correct_core(input_shp,output_shp,t_func)ArcGIS Pro 工具箱将wgs_correction_tool.pyt添加至ArcGIS Pro工程中，直接使用即可考虑到兼容性问题，工具箱逐个读取坐标、逐个转换，没有用numpy，速度比wgs_correction库更慢如果要转换比较大的数据，建议适用wgs_correction库
Package: wg-system
Worldman Games SystemStatusProductionbranch:|Pre-productionbranch:|Developmentbranch:|RepositoriesPyPI repository:wg-systemnpm repository:coming soonDescriptionBackend and frontend (only logic part) of system that is used internally for managingWorldman Gamesevents.Written inPython 3.x(backend) andTypeScript(frontend) and has 100% of code type-annotated andcovered by tests (not yet).Contributions (issues or merge requests) are welcome! :)
Package: wgtool
WireGuard Configuration ToolWGTool is python script to perform basic configuration tasks in a WireGuard Server.It is meant to be used in new deployments and supports the following action:Configure wireguard serverAdd peersRemove peersList peersWhen a peer is added, the tool can display a QR code with the configuration if "qrencode" is available.RequirementsRequired:python 3.7 or newerUpdated python pipOptional:qrencode 4 or newerInstallationpython -m pip install wgtoolCommandsConfiguring new server with default settings:wgtool server myserver012.duckdns.orgConfiguring new server with some custom settings:wgtool server myserver012.duckdns.org --ip 192.168.254.1/24 --port 2345Adding peer "PeerA":wgtool add "PeerA"Adding peer "PeerA" with custom DNS, split-tunnel, and showing QR code:wgtool add "PeerA" --dns 1.1.1.1 1.0.0.1 --split-tunnel --qrcodeListing peers:wgtool listRemoving peer "PeerA":wgtool delete "PeerA"If WireGuard Server is on a Windows machine, you must provide the path to the configuration file. For linux users, the default path is /etc/wireguard/wg0.conf:wgtool --file C:\Wireguard\wg0.conf <arguments>LicenseMIT