Saravanan666/pypi-org huggingface dataset:
Package: whey-conda
Whey extension for creating Conda packages for Python projects.DocsTestsPyPIAnacondaActivityQAOtherInstallationwhey-condacan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallwhey-condaTo install withconda:First add the required channels$condaconfig--addchannelshttps://conda.anaconda.org/conda-forge$condaconfig--addchannelshttps://conda.anaconda.org/domdfcodingThen install$condainstallwhey-condaTo enablewhey-conda, add the following lines to yourpyproject.tomlfile:[tool.whey.builders]binary="whey_conda"Thewhey-conda-specific configuration is defined in thetool.whey-condatable.
Seethe documentationfor more details.
Package: whey-mixin
whey-mixinA plugin for Whey build system to add simple build stepsUsageFirst, reassign your Whey builders to be handled by mixin. The following are supported, use as many or as few as you like.[tool.whey.builders]sdist="whey_mixin_sdist"wheel="whey_mixin_wheel"binary="whey_mixin_binary"exe="whey_mixin_exe"dmg="whey_mixin_dmg"deb="whey_mixin_deb"rpm="whey_mixin_rpm"Next, make the code for your hooks. We will place ours in abuild_hooks.pyfile in the root directory of our project.fromwhey.mixinimportBuilderMixindefbuild_messages(self:BuilderMixin):# This makes Babel a build depfrombabel.messages.mofileimportwrite_mofrombabel.messages.pofileimportread_po# pkgdir is the base folder for your module, constructed from# the root folder, tool.whey.source-dir, and tool.whey.packagelocales=self.pkgdir/"locales"ifself.verbose:print("  Building messages")# Find all .po files for all languagesforpoinlocales.glob("*/LC_MESSAGES/*.po"):withpo.open("rt",encoding="UTF-8")asf:# po.parts[-3] extracts the language part of the path# po.stem is the domaincatalog=read_po(f,po.parts[-3],po.stem)# Here we construct the path relative to the build directory# (/build by default). Be sure to create the subdirs!mo=self.build_dir/po.relative_to(self.project_dir).with_suffix(".mo")mo.parent.maybe_make(parents=True)withmo.open("wb")asf:write_mo(f,catalog)# This reports to Whey they we've written a file, so that# it will include it in the final packageself.report_written(mo)ifself.verbose:print("    Wrote language file:",mo)Next, configure whey-mixin itself. You can supply global or builder-specific hooks. You may also specify the base class to use per builder. By default, it uses Whey's default SDistBuilder for sdist, and its WheelBuilder for wheel and binary; there is no default for anything else, so those must be specified.Make sure to add any dependencies into you build deps[build-system]requires=["whey","whey-mixin","Babel"]build-backend="whey"[tool.whey.mixin]hooks=["build_hooks:build_messages"][tool.whey.mixin.exe]class="my_builders:ExeBuilder"hooks=[]Both hooks and class areentry pointswhich specify the function or class to load, respectively. For use with this system, they will generally be relative to the root directory of your project. However, that's not required, and they can be from other modules as well.Hooks specified intool.whey.mixinrun before build-specific hooks. They will run for every mixin builder, so if you don't want that, you will have to put the hook in individual build configs.If a module defines its own named entry point that you wish to add hooks to, you may use the keyentry-pointinstead ofclassto specify the entry point name.
Package: whey-pth
Extension to whey to support .pth files.DocsTestsPyPIAnacondaActivityQAOtherInstallationwhey-pthcan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallwhey-pthTo install withconda:First add the required channels$condaconfig--addchannelshttps://conda.anaconda.org/conda-forge$condaconfig--addchannelshttps://conda.anaconda.org/domdfcodingThen install$condainstallwhey-pthTo enablewhey-pth, add the following lines to yourpyproject.tomlfile:[tool.whey.builders]wheel="whey_pth_wheel"Thewhey-pth-specific configuration is defined in thetool.whey-pthtable.
Seethe documentationfor more details.
Package: which
which.py -- a portable GNU which replacement============================================Home            : http://code.google.com/p/which/License         : MIT (see LICENSE.txt)Platforms       : Windows, Linux, Mac OS X, UnixDev Status      : mature, has been heavily used in a commercial product fora number of yearsRequirements    : Python >= 2.3`which.py` is a small GNU-which replacement. It has the followingfeatures:* it is portable (Windows, Linux, Mac OS X, Un*x);* it understands PATHEXT and "App Paths" registration on Windows (i.e. itwill find everything that `start` does from the command shell);* it can print all matches on the PATH;* it can note "near misses" on the PATH (e.g. files that match but may not,say, have execute permissions); and* it can be used as a Python module.
Package: which-cloud
which-cloudGiven an ip address, return which cloud provider it belongs to.Usagefromwhich_cloudimportWhichCloud,Providerswc=WhichCloud()wc.is_ip('52.94.76.10')# Providers.AWSwc.is_ip('104.214.20.0')# Providers.AZUREwc.is_ip('35.185.160.160')# Providers.GCPPreprocessConvert raw ip ranges of different platforms into a single pickle file to speed up data load time.Data SourcesGCPdocument:https://cloud.google.com/compute/docs/faq#find_ip_rangedata:https://www.gstatic.com/ipranges/cloud.jsonAWSdocument:https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.htmldata:https://ip-ranges.amazonaws.com/ip-ranges.jsonAzuredocument:https://www.microsoft.com/en-us/download/details.aspx?id=56519data:https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_20201109.jsonDigital OceanNot implemented yet.No official documented ip ranges (thread)IBMNot implemented yet.document:https://cloud.ibm.com/docs/hardware-firewall-dedicated?topic=hardware-firewall-dedicated-ibm-cloud-ip-rangesdata: no formatted data source
Package: whichcraft
That code in my care
That sly command-line stare
That strips my operating system bare
It's whichcraftThis package provides cross-platform cross-pythonshutil.whichfunctionality.UsageOn Linux, Mac, Windows for Python 2.7 or any of the maintained 3s:>>>fromwhichcraftimportwhich>>>which('date')'/bin/date'>>>which('calendar')'/bin/calendar'>>>which('cookiecutter')'/Users/pydanny/.envs/fun/bin/cookiecutter'>>>which('a-made-up-name')isNoneTrueNotesThis is a shim of theshutil.whichfunction that’s designed to work across
multiple versions of Python and inside of windows. The code for Python 2.x is
based on Python 3 code that I extracted from source. I originally did this forCookiecutterbut pulled it out in order to reduce line count for that project.Edgecase: Date function works perfectly on mac os and linux system, hence returns string.
But is an in-built function in windows hence returns none as value when called in
windows.SponsorThis work is sponsored by BriteCore, which does awesome things with Python, Django, JavaScript, and AWS.Apply for a job if you’re interested!History0.6.1 (2019-09-06)Fix versioning issue0.6.0 (2019-07-12)Remove lingering unicode issuesAdd BriteCore as a sponsor0.5.3 (2018-10-10)Add BriteCore as a sponsor0.5.2 (2018-10-09)Remove any mention of 3.2 and 3.30.5.1 (2018-10-09)Fix setup.py so it works with older Python0.5.0 (2018-10-09)Add 3.7 support thanks to @rooterkyberianRemove any mention of 2.60.4.2 (2018-04-16)Use black for code formattingMove status to production/stableDrop Python 2.6 and 3.3 support0.4.1 (2017-04-25)Added tests to support Python 3.60.3.1 (2016-05-10)Now testing forwhichdirectly, so we can support versions of Python 3 before 3.3 (@nickcoghlan)0.3.1 (2016-04-24)Correcting version in whichcraft.py0.3.0 (2016-04-24)Include tests in release source tarball (@Edwardbetts)0.2.0 (2016-04-23)Python 3.5 compatability0.1.1 (2015-09-09)Added lyrics0.1.0 (2015-09-09)First release on PyPI.
Package: whichimg
whichimgblazing fast template matching when possible images are all known. Handy tool for GUI scripting.How to UseIt supports python 3.6 +pip install whichimgfromwhichimgimportImageTellerteller=ImageTeller([img1,img2,img3,img4])# numpy arraysteller.tell(secret_img)# returns 0 or 1 or 2 or 3 or -1 for not foundif you're suresecret_imgis one of the images, you can set keyword argumentsurprisestoFalse. This will give you a minor performance gain.teller=ImageTeller([img1,img2,img3,img4],surprises=False)This is equivalent to the following naive approachdefnaive_tell(images,sample_img):fori,imginenumerate(images):ifnp.array_equal(img,sample_img):returnireturn-1naive_tell([img1,img2,img3,img4],secret_img)NoteIt'snotgenerally faster than the naive approach. I thought my approach was faster and spent a week writing this shit though. lmfao.They're about equally fast on thetests/fixturestesting data I came up with (10x10 images). Through my rough testing, there could be a magnitude of performance gain when there are many possible images (>10) and when the images are larger (200x200 for example).
Package: which-key
Which-KeyLikeEmacs which-keybut for anything.Which-Key is a customizable command launcher. It lets you define any command,
be it starting an application, running a script, oranythingelse, and bind
it to a memorable sequence of keys. Just bindwhich-keyto some keyboard
shortcut, and then trigger your commands.Note: This is in early development, so the UI doesn't look amazing, and there will be bugs.
Package: whichlang
whichlangwhichlang is a Python library for identifying the language of the given textInstallationUse the package managerpipto install whichlang.pipinstallwhichlangUsagefromwhichlangimportwhichlangaswlf=open('sample-test-files\\sample-hindi.txt','r')data=f.read()# returns tuple of top 3 probable languages, first one being most probable languageprint(wl.which_lang(data))>>>('Hindi','Marathi','Punjabi')#Hindi is most probable.# For training a language model

# assamese.txt is train data

# Assamese is the language model created

python train_lang_models.py -f train-data\as\assamese.txt -l AssameseContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMITAvailable LanguagesHindi, Telugu, Tamil, Kannada, Malayalam, Punjabi, Marathi, Gujarati, Oriya, Assamese.AcknowledgementsWe would like to thank theLeipzig Corpora collectionwhere we collected data for training models.Dirk Goldhahn, Thomas Eckart and Uwe Quasthoff (2012): Building Large Monolingual Dictionaries at the Leipzig Corpora Collection: From 100 to 200 Languages. In: Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12), 2012whichlang is based on N-gram based Text categorization: Cavnar, William B., and John M. Trenkle. "N-gram-based text categorization." Proceedings of   SDAIR-94, 3rd annual symposium on document analysis and information retrieval. Vol. 161175. 1994.The same approach was used in librarylangdetect. We found this approach quite effective and wanted to explore for Indian languages. In whichlang, we train, optimize and make  models readily available for Indian languages since these languages have been less explored.
Package: whichlang-py
whichlang-pyPython bindings forWhichlang, a
natural language detection library library written in Rust.InstallationInstall like any other python package:pipinstallwhichlang-pyUsagefromwhichlang_pyimportdetect_languagedetect_language("A neblina enconbre o Cristo e a lagoa se ilumina"\"com edifícios de cabeça para baixo e refletores do Jockey Club")
Package: which-plates
which_platesCI/CD Status:Calculate weight and plates needed for each set based on one rep max weightian@Ians-MacBook-Pro whichPlates % which-plates
Bar Weight:45
One rep max:250
Percentages for each set, space separated: 50 65
Set 1 @ 50%: 125.0lbs, 80.0lbs in plates
     35: 2
     5: 2
Set 2 @ 65%: 165.0lbs, 120.0lbs in plates
     45: 2
     15: 2
Plates Needed:
     45: 2
     35: 2
     15: 2
     5: 2
Package: whid
What have I done?Let you review things you have done on your computer.Why?Computers are getting so addictive that we all have been entrained at some point. Destop recording let us see how our precious time has been spent. However, normal screen record methods are sometimes heavy on resources, and we can't afford to lose 1 hour reviewing things from the previous one - too unefficient, and hence this module.On the other hand, it can also be used as a TUIpomodoro timer.Exampleshttps://user-images.githubusercontent.com/87116762/140607481-9c0874ac-ef07-4d58-9ff2-7915d4b56e09.mp4There is no sound (obviously), and the FPS is terrible. On the other hand, it is very light on CPU, memory and disk usage. The video quality is high enough to understand what was going on, thou.InstallationYou can install from PyPi:pipinstallwhidDon't forget to check the installation:python-mwhid-hAbout Linux...You need to installscrotfirst for screenshot functionssudoaptinstallscrotscrotisacknowledged for not working on Wayland. So please check yourscrotinstallation beforehand:cd/tmp
scrottest.png
firefoxtest.pngIf you see a black screen, it's time to uninstall the packages.UsageBy default, the program records at 0.2 fps (5 secs/ 1 screenshot), for a duration of 1 hour (3600 seconds). To run default script:python-mwhidFor more optional arguments, check thehelpcommand.python-mwhid--helpDevelopmentThe module's supposed to work cross-platform, but due to the lack of access to Mac devices, I haven't tested it on OSX/MacOS. It would be deeply appreciated if you can test it on your Mac and report back issues (if any).If you have a fix forscrotproblems on Wayland, please open a pull request.Every other issue, pull request or suggestions are also highly valuable.
Package: whiff
WHIFF (WSGI HTTP Integrated Filesystem Frames) is a suite of tools
to help developers create web applications using the Python/WSGI
standard server interface.WHIFF is intended to make it easier to create, deploy, and maintain
large and complex Python based WSGI Web applications.The primary tools which reduce complexity are
an infrastructure for managing web application name spaces,
a configuration template language for wiring named components into an application, and
an applications programmer interface for accessing named components from Python and javascript modules.
Package: whiffle-client
Whiffle clientThis client allows running atmospheric large-eddy simulations (LES) with Whiffle's GPU-resident modelhttps://whiffle.nl/.
The client requires an access token, which you can configure with the command line interface by executing,whiffle config edit user.token <your_token>You can create a new task by executing,whiffle task run <path_to_the_task_specification.[json|yaml]>The client polls the progress of the task until it has finished. The task will run in the background if you abort the client.
You can list the most recent tasks by executing,whiffle task listIf you need an access token or you have any questions, please reach out tosupport@whiffle.nl.Command-line interfaceList the configurationwhiffle config listChange the token in the configurationwhiffle config edit user.token <your_token>NOTE: configuration will be stored on user config directory.Unix  systems~/.config/whiffle/whiffle_config.yamlmacOS systems~/Library/Application Support/whiffle/whiffle_config.yamlWindows systems%USERPROFILE%\AppData\Local\whiffle\whiffle_config.yamlRun a taskwhiffle task run <path_to_the_task_specification.[json|yaml]>List taskswhiffle task list <number of tasks>Download a taskwhiffle task download <task_id>Attach a taskYou can monitor the progress of a task and it will be automatically downloaded once the task has been successfully completed.whiffle task attach <task_id>Cancel a taskA task on a non-finished status can be cancelled with the following command:whiffle task cancel <task_id>Task description file formatsAllowed file formats are JSON and YAML. The YAML format supports includes throughpyyaml-include.Here is an example of a YAML file with include:The task.yaml file describes the task and includes the metmasts value from another filemetmasts: !include example_yaml_include_metmasts.yamland the example_yaml_include_metmasts.yaml file specifies the metmasts:example_metmast_collection:
  id:
  - metmast0
  - metmast1
  lat:
  - 52.1
  - 52.2
  lon:
  - 3.1
  - 3.2
  z:
  - 10
  - 100
Package: whilelang
WhilelangUsage:python while.py source.while [...arguments]Implemented grammarThe grammar implemented here is slightly different to the definitions of While
that can be found online, largely for ease of implementation.<suite> = EOF
        | "(" <suite> ")"
        | <statement> *(";" <statement>)
<statement> = "skip"
            | "while" <expr_a> "do" <suite>
            | "if" <expr_a> "then" <suite> ["else" <suite>]
            | NAME ":=" <expr_a>
            | <directive>
<directive> = "@" ("trace" | "exit" | "print" NAME)
<factor> = [("!" | "¬")] (NAME | NUMBER | BOOLEAN | "(" <expr_a> ")")
<expr_f> = <factor> [("*" | "/") <factor>]
<expr_e> = <expr_f> [("+" | "-") <expr_f>]
<expr_d> = <expr_e> [("<=" | "<" | ">=" | ">") <expr_e>]
<expr_c> = <expr_d> ["=" <expr_d>]
<expr_b> = <expr_c> ["&" <expr_c>]
<expr_a> = <expr_b> ["|" <expr_b>]This logic can be seen implemented as code inparser.py. Compared to the
simpler grammars often quoted, this grammar provides proper operator
precedence.
Package: while-machine
while-machineWhile Abstract Machine implemented in python.While Machine is an abstract machine that is turing complete and can compute any partial recursive function. Find out more herehttps://en.wikipedia.org/wiki/Abstract_machineIts simpler brother is called Random Access Machine and you can find its implementation herehttps://github.com/GabrieleMaurina/random-access-machineInstallRun inside terminal:python -m pip install while-machineUsageTo execute a ram source file:python -m while_machine <while source file> <integer input>To import it in your script:fromwhile_machineimportWhileMachinedata=4program='begin inc 0 inc 0 end'wm=WhileMachine()result=wm.compute(program,data)print(result)# 2How it worksA while machine has 21 registers numbered from 0, 1, 2..., the input is loaded on register 1 before the execution starts, the output is taken from register 0 when the execution ends.Instructions:A while machine supports only 4 basic instructions:Increment register k by 1:inc kDecrement register k by 1:dec kSet register k to zero:zero kWhile register k is not zero, do the following command:while kCommands can be grouped with:begin
	...
	...

endExampleAn example program that will double whatever input you give to the machine:while 1
begin
	inc 0
	inc 0
	dec 1
endRAM compilerIt is possible to compile a While program into a Ram program using the method compile_ram of the class WhileMachine. You can find an implementation of the ram machine herehttps://github.com/GabrieleMaurina/random-access-machineHere is an example of how to compile from While to RAM:fromwhile_machineimportWhileMachineimportsysdefmain():wm=WhileMachine()withopen(sys.argv[1],'r')aswhile_prog,open(sys.argv[2],'w')asram_prog:while_prog=while_prog.read()compiled=wm.compile_ram(while_prog)ram_prog.write(compiled)if__name__=='__main__':main()
Package: whill
pywhill"pywhill" is a Python SDK for WHILL Model CR series.We also haveModel CR Series Technical Supportfor current and potential Model CR series users.For general questions and requests, please visit ourproduct page.Note:"Model CR series" refers to Model CR and Model CR2.RequirementsWHILLModel CR / CR2(NormalModel C / C2does not support serial communication.)Python3.6 or laterpySerial (https://github.com/pyserial/pyserial)OS SupportWindows 10 / 11MacOS XUbuntu 16.04Ubuntu 18.04InstallationClone or download this repository at any place you want, or this package is avalable onPyPI.python3 -m pip install whillAPIsInitializefromwhillimportComWHILL<your_obj_name>=ComWHILL(port=<YourCOMPort>)Initialize WHILL instance with SoftwareSerial.Power Control<your_obj_name>.send_power_on()<your_obj_name>.send_power_off()<your_obj_name>.set_power(power_state_command=<True/False>)Turn on/off a WHILL.power_state_commandis a bool withTrueto power WHILL on.<your_obj_name>.set_battery_voltage_output_mode(vbatt_on_off=<True/False>)Enable/Disable power supply to the interface connector.Trueto enable power supply.For Model CR only.Motor Control<your_obj_name>.send_joystick(front=<Integer-100~100>,side=<Integer-100~100>)Manipulate a WHILL via this command.
Bothfrontandsideare integer values with range -100 ~ 100.<your_obj_name>.send_velocity(front=<Integer-500~1500>,side=<Integer-750~750>)Control the speed of a WHILL directly via this command. (Available since v1.3.0)frontis  integer values with range -500 ~ 1500 [0.004km/h].sideis integer values with range -750 ~ 750 [0.004km/h].Attention:WHILL moves so quickly using SetVelocity command and so pay enough attention to use SetVelocity command. Basically, send this command to increase speed gradually.Data Fetching<your_obj_name>.start_data_stream(interval_msec=<updateintervalinmillisecond>)Command WHILL to start reporting WHILL status.<your_obj_name>.refresh()Fetch serial interface and do internal process.<your_obj_name>.stop_data_stream()Command WHILL to stop report WHILL status.Data ReferenceYou can refer to the value fetched by the above command (Data Fetching).Accelerometer(deprecated)Accelerometer API has been disabled since v1.2.0.Gyro(deprecated)Gyro API has been disabled since v1.2.0.Battery<your_obj_name>.batteryRemaining battery level[%] and consumpting current[mA].Motor State<your_obj_name>.left_motor<your_obj_name>.right_motorMotors angle and speed. The angle range is -PI to +PI, Speed unit is km/h.Note that the speed value is low-pass filterd.Speed Mode<your_obj_name>.speed_mode_indicatorCurrent selected speed mode.Callback<your_obj_name>.register_callback(event=<either'data_set_0'or'data_set_1',func=<yourcallbackfunction>)By registering callback functions, you can hook at status is updated.
See Example:cr_example3_callback.pyLicenseMIT License
Package: whillpy
whillpyUnofficial python package for WHILL Model CK controlDependenciesPython 2 or 3pyserialIt can easily be installed using pip i.e.,pip install pyserial(it will be installed automatically)Installation StepsInstall from sourceClone or download the repositoryUse the following commandpython setup.py installAlternatively the package can be installed to a user directory using the following commandpython setup.py install --userConnection DiagramIn order to control WHILL Model CK, we propose to use Raspberry Pi 3 module. This module can easily be powered up by the provided USB socket in WHILL. Below are the connection diagrams -PowerConnectionsUsageBelow is an example-import whillpy

# initialize Whill by providing the name of the serial port
whill = whillpy.connect(port='/dev/ttyUSB0')

# control the power
whill.set_power(whillpy.power.on)

# move straight while turning left
whill.move(straight=10, turn=-50)Examples can be found inexamplesdirectory of this package.IssuesPlease checkhereand create issues.AuthorRavi Prakash Joshi
Package: whimsylib
whimsylibA game engine for text-based games, inspired byadventurelib.This is currently the game engine behindcronenbroguelike.DevelopSet up a virtualenv and install the dev requirements.python3.8 -m venv venv
source venv/bin/activate
pip install -r requirements/requirements-dev.txtReleaseUpdate the version number insetup.py, and then push a new tag with that version number. This will trigger a Github Action that publishes the new version toPyPI.API DocumentationComing soon!