Saravanan666/pypi-org huggingface dataset:
Package: wadofstuff-django-views
Wad of Stuff Django Views=========================A set of view functions and classes to extend the functionality of Django'sgeneric views to support inlines.Requirements============Django 1.0 or newer.Functions=========wadofstuff.django.views.create_object(..., inlines=None)--------------------------------------------------------wadofstuff.django.views.update_object(..., inlines=None)--------------------------------------------------------These functions are identical to the Django ones except for the addition of the`inlines` argument. This argument consists of a list of dictionaries that willbe passed as arguments after the `parent_model` argument to`inlineformset_factory(parent_model, ...)`.For example, arguments to a generic view might typically look like:crud_dict = {'model':Author'inlines':[{'model':Book,'extra':2,'form':BookForm,},{'model':Article,}],# ... other generic view arguments}would translate to calls to `inlineformset_factory()` like:inlineformset_factory(Author, model=Book, extra=2, form=BookForm)andinlineformset_factory(Author, model=Article)The view function will create a formset for each inline model and add them tothe template context. In the example above the context variables would be named`book_formset` and `article_formset`.What's new==========Version 1.0.1:- Added ability to import views from wadofstuff.django.views.Version 1.0.0:- First public release.
Package: wadofstuff-ip
IPv4 and IPv6 address summarization toolSummarize  a range of IP Addresses, e.g. 192.168.1.0 to 192.168.1.50, to
a group of networks. e.g. 192.168.1.0/27, 192.168.1.32/28, 192.168.1.48/31,
192.168.1.50.RequirementsThe IPy module is require for this to function. It can be obtained fromhttp://pypi.python.org/pypi/IPy.Functionssummarize(first, last)Summarize a network range given a first and last IP addresses.>>> summarize('192.168.1.0', '192.168.1.50')
['192.168.1.0/27', '192.168.1.32/28', '192.168.1.48/31', '192.168.1.50']
>>> summarize('192.168.0.1', '192.168.2.255')
['192.168.0.1', '192.168.0.2/31', '192.168.0.4/30', '192.168.0.8/29',
'192.168.0.16/28', '192.168.0.32/27', '192.168.0.64/26', '192.168.0.128/25',
'192.168.1.0/24', '192.168.2.0/24']
>>> summarize('192.168.0.1', '192.168.2.254')
['192.168.0.1', '192.168.0.2/31', '192.168.0.4/30', '192.168.0.8/29',
'192.168.0.16/28', '192.168.0.32/27', '192.168.0.64/26', '192.168.0.128/25',
'192.168.1.0/24', '192.168.2.0/25', '192.168.2.128/26', '192.168.2.192/27',
'192.168.2.224/28', '192.168.2.240/29', '192.168.2.248/30',
'192.168.2.252/31', '192.168.2.254']
>>> summarize('192.168.0.0', '192.168.5.253')
['192.168.0.0/22', '192.168.4.0/24', '192.168.5.0/25', '192.168.5.128/26',
'192.168.5.192/27', '192.168.5.224/28', '192.168.5.240/29',
'192.168.5.248/30', '192.168.5.252/31']
>>> summarize('192.168.0.0', '192.168.255.254')
['192.168.0.0/17', '192.168.128.0/18', '192.168.192.0/19',
'192.168.224.0/20', '192.168.240.0/21', '192.168.248.0/22',
'192.168.252.0/23', '192.168.254.0/24', '192.168.255.0/25',
'192.168.255.128/26', '192.168.255.192/27', '192.168.255.224/28',
'192.168.255.240/29', '192.168.255.248/30', '192.168.255.252/31',
'192.168.255.254']
>>> summarize('::', '1::fffe')
['::/16', '1::/113', '1::8000/114', '1::c000/115', '1::e000/116',
'1::f000/117', '1::f800/118', '1::fc00/119', '1::fe00/120', '1::ff00/121',
'1::ff80/122', '1::ffc0/123', '1::ffe0/124', '1::fff0/125', '1::fff8/126',
'1::fffc/127', '1::fffe']Worst case:>>> summarize('0.0.0.0', '255.255.255.254')
['0.0.0.0/1', '128.0.0.0/2', '192.0.0.0/3', '224.0.0.0/4', '240.0.0.0/5',
'248.0.0.0/6', '252.0.0.0/7', '254.0.0.0/8', '255.0.0.0/9',
'255.128.0.0/10', '255.192.0.0/11', '255.224.0.0/12', '255.240.0.0/13',
'255.248.0.0/14', '255.252.0.0/15', '255.254.0.0/16', '255.255.0.0/17',
'255.255.128.0/18', '255.255.192.0/19', '255.255.224.0/20',
'255.255.240.0/21', '255.255.248.0/22', '255.255.252.0/23',
'255.255.254.0/24', '255.255.255.0/25', '255.255.255.128/26',
'255.255.255.192/27', '255.255.255.224/28', '255.255.255.240/29',
'255.255.255.248/30', '255.255.255.252/31', '255.255.255.254']What’s newVersion 1.0.0:First public release.
Package: wadu
WaduWadu implements recurrence rules for calendar events.Featuressane: the implementation is fairly linear and straightforward, making it
easy enough to follow the code paths and make sense of them.compliant: implements theRFC 5545 specificationbut also
with the unambiguousJSCalendar draftfrom IETF.Usage# The 1st Friday of each month, for 10 occurrences.rule=RecurrenceRule(MONTHLY,on_week_days=(FRIDAY(1),),count=10)fordttminrule:print(dttm)# Every other year on January and February, starting on a given date.rule=RecurrenceRule(YEARLY,interval=2,on_months=(JANUARY,FEBRUARY),count=10)start=datetime(1997,3,10,hour=9)fordttminrule.iterate_from(start):print(dttm)Repositoryhttps://github.com/christophercrouzet/waduLicenseUnlicense.
Package: waechter
# Waechter**Job Scheduling Helper**## Installing`pip install waechter`## UsageSee samples directory for example usage.Simple example:```pythonimport waechter.schedulerclass HelloJob1(waechter.scheduler.BaseJob):def __init__(self, interval=None):super(HelloJob1, self).__init__(interval)self.interval = interval if interval else 1@classmethoddef work(cls):print('hello work 1')if __name__ == '__main__':main_worker = waechter.scheduler.JobScheduler().run()```
Package: waelstow
Waelstow[wel stoʊ]  /nounliteral: “death field” or “slaugher field”;Anglo Saxon term for battlefieldsA collection of Python testing utiltiesInstallation$pipinstallwaelstowSupportsTested with Python 3.7 - Python 3.11Docs & SourceDocs:http://waelstow.readthedocs.io/en/latest/Source:https://github.com/cltrudeau/waelstow
Package: wafer
waferA wafer-thin web application for running small conferences. Built using Django.Licensed under theISC License.DocumentationAvailable onreadthedocs.org.Supported Django versionsWafer supports Django 3.2 and Django 4.0 - 4.2.Installationwafer can be installed either from pypi (pip install wafer)
or from the github repository.If installing from github,pip install-rrequirements.txtshould install all the required python and django dependencies.Wafer uses npm to manage front-end dependenciesMake sure you have a recent version of Node.js installed that
includesnpm.Runnpm installto install all dependencies, which also copies
them towafer/static/vendor.Install the wafer applicationsmanage.py migrateIf you don’t have one yet, create a superuser withmanage.py createsuperuser.Examine thesettings.pyfile and create alocalsettings.pyfile overriding the defaults
as required.STATIC_FILES,WAFER_MENUS,MARKITUP_FILTER,WAFER_PAGE_MARKITUP_FILTER,WAFER_TALKS_OPEN,WAFER_REGISTRATION_OPENandWAFER_PUBLIC_ATTENDEE_LISTwill
probably need to be overridden.If you add extensions toMARKITUP_FILTERorWAFER_PAGE_MARKITUP_FILTER, be sure to install the appropriate
python packages as well.Wafer uses the Django caching infrastructure in several places, so
the cache table needs to be created usingmanage.py createcachetable.Create the default ‘Page Editors’, ‘Talk Mentors’ and other useful groups usingmanage.py wafer_add_default_groups.Log in and configure the Site:The domain will be used as the base for e-mails sent during
registration.The name will be the conference’s name.Have a fun conference.Running waferTo run a local server for development and testing, use the standard Djangomanage.py runserver, after doing the installation.For running the server in production, please see theDjango documentationon the various possible approaches.FeaturesSupport for adding and editing sponsors via Django admin.Schedule can be created and updated via Django admin.Pages for static content, news and so forth can be handled via Django admin.Can be delegated to the ‘Page Editors’ group.Pages can be updated via the web interface.Talk submissions, review and acceptance.Generate a static version of the site for archival.TranslationTranslations for wafer are managed atweblate.orgSelenium testswafer includes a small set of selenium tests to test various bits of javascript
used in the site (mostly in the schedule editor).To run the tests, you will need to install selenium -pip install seleniumand also runrpm installto install the required javascript dependencies.The tests can be run using theseleniumtag, or using the individual browser
tags (currentlyfirefoxandchrome).
Package: wafer-view
Wafer map viewer for semi.org XML standards written in PythonSummaryThe Wafer-View utility allows a generic XML wafermap file to be viewed. The tool parses the XML and generates bitmap images corresponding to the die status as defined in the wafermap XML file. Each die status can be individually enabled or disabled as well as their colors modified, to easily distinguish where on the wafer any failures occur. Total die, pass/fail, and yield results are also calculated and reported.wafermapInstallationPre-RequisitesIt is highly recommended to use a VirtualEnv to install the tool. This is done as follows (the location of the venv can be anywhere):python -m ~/venv/waferviewOnce created, you must activate the venv before running the tool:source ~/venv/waferview/bin/activateIf you are running MacOS or Windows, please skip this next section.
For linux systems, you may need to install GTK. This is done as follows (using Debian commands as an example):sudo apt-get update
sudo apt-get install build-essential libgtk-3-devFrom PyPi (Preferred)Note: this should be done _after_ sourcing the venvpip install wafer-viewFrom GithubClone the github repository and installgit clone https://github.com/fronzbot/wafer-view.git
cd wafer\-view
git checkout main
<follow venv instructions here (from above)>
pip install .UsageOnce installed, running the commandwaferviewwill open up the Wafer View GUI. Using the File menu, an xml wafermap can be loaded and viewed. Each bin can be independantly enabled/disabled and the color scheme can be changed on the fly to easily find where failures occur on a die. The wafer image can also be saved as a bitmap.Available keyboard shortcuts:EventKey(s)Pan LeftLeft ArrowhPan RightRight ArrowlPan UpUp ArrowkPan DownDown ArrowjZoom InPage Down]Zoom OutPage Up[Fitf0OpenCtrl/Cmd + OSaveCtrl/Cmd + S
Package: waffle-box
What is Waffle Box.Waffle Box는 기존 Autocare App을 Waffle로 만든 모델로 교체해 새로운 App을 생성해 줍니다.BuildWaffle Box는 python package 관리자인 Poetry를 기반으로 빌드 및 배포합니다.
Install poetry:https://python-poetry.org/docs/poetrybuildDependencypython3.10InstallInstall from codepoetryinstallInstall from PyPIpipinstallwaffle-boxUsageCLIPull Waffle Maker Imagewb--dx-version1.6.2pull--loginConvert Appwb--dx-version1.6.2convertsafety_app_1.0.0.zip-osafety_app_1.0.1.zipConvert Modelwb--dx-version1.6.2bake~/flame.onnx-O~/model.engine--precisionfp32--batch16--shapes3x640x640APIconvert_model시 주의사항Bake와 Convert에 convert_model(s) 메소드가 존재 합니다.
이를 cli가 아닌, api 제공을 위해 사용한다면 다음 인자를 사용하여야 합니다.using_thread (bool): thread 동작 여부.
allow_multiple_containers (bool): convert를 동시에 가능한지 여부.그리고, convert_model(s)은 thread_handler를 return 합니다.
handler.status를 통해 thread의 상태를 확인할 수 있으며 다음의 상태를 가집니다.classThreadStatus(Enum):CREATE=1RUN=2TERMINATE=3EXCEPTION=4thread 옵션을 주면, start하여 CREATE -> RUN 상태가 됩니다.
그리고 작업 종료 후 자동적으로 RUN -> TERMINATE 상태가 되며 에러 발생 시 EXCEPTION 상태가 됩니다.이를 hander.join()을 통해 TERMINATE나 EXCEPTION 상태에서 thread join이 가능합니다.! allow_multiple_containers 주의사항App에서 여러개의 model을 변환할 때, container의 생성과 파괴가 반복됩니다.파괴하고 생성되기 전에 새로운 App 변환을 시도하면, 기존 App의 컨테이너 생성이 실패하여 에러가 발생할 수 있습니다.(docker container의 개수 제한은 있지만, lock이 존재하지 않습니다.)
Package: wafflehaus.iweb
wafflehaus.iweb is a collection of waffles specific to iWeb.See waffles READMEs for more details about each of them.Using wafflehaus.iwebwafflehaus.iweb was created for iWeb specific needs.Backward compatibility isNOTguaranteed. You are using it at your own risk.If you think a feature could be useful to you, please let me know so it can be
proposed to the Wafflehaus project:wafflehaus
Package: waffle-hub
Waffle is a framework that lets you use lots of different deep learning tools through just one interface. When it comes to MLOps (machine learning operations), you need to be able to keep up with all the new ideas in deep learning as quickly as possible. But it's hard to do that if you have to write all the code yourself. That's why we started a project to bring together different tools into one framework.Experience the power of multiple deep learning frameworks at your fingertips with Waffle's seamless integration, unlocking limitless possibilities for your machine learning projects.PrerequisitesWe've tested Waffle on the following environments:OSPythonPyTorchDeviceBackendPassUbuntu 20.043.9, 3.101.13.1CPU, GPUAllWindows3.9, 3.101.13.1CPU, GPUAllUbuntu 20.043.91.13.1Multi GPUUltralyticsWe recommend using above environments for the best experience.InstallationInstall pytorch and torchvisionPyTorch and TorchVision(We recommend using 1.13.1)Install Waffle Hubpip install -U waffle-hubExample UsageWe provide both python module and CLI for Waffle Hub.Following examples do the exact same thing.Python Modulefromwaffle_hub.datasetimportDatasetdataset=Dataset.sample(name="mnist_classification",task="classification",)dataset.split(train_ratio=0.8,val_ratio=0.1,test_ratio=0.1)export_dir=dataset.export("YOLO")fromwaffle_hub.hubimportHubhub=Hub.new(name="my_classifier",task="classification",model_type="yolov8",model_size="n",categories=dataset.get_category_names(),)hub.train(dataset=dataset,epochs=30,batch_size=64,image_size=64,device="cpu")hub.inference(source=export_dir,draw=True,device="cpu")CLIwdsample--namemnist_classification--taskclassification
wdsplit--namemnist_classification--train-ratio0.8--val-ratio0.1--test-ratio0.1
wdexport--namemnist_classification--data-typeYOLO

whnew--namemy_classifier--taskclassification--model-typeyolov8--model-sizen--categories[1,2]whtrain--namemy_classifier--datasetmnist_classification--epochs30--batch-size64--image-size64--devicecpu
whinference--namemy_classifier--sourcedatasets/mnist_classification/exports/YOLO--draw--devicecpuSee ourdocumentationfor more information!
Package: wafflesbot
wafflesbot: Email auto reply bot forJMAPmailboxeswafflesbot sends form replies to unreplied emails in aJMAPmailbox
(such asFastmail).wafflesbot excels at automatically asking tech recruiters for compensation
information.Built on:JMAP client:jmapcQuoted email reply assembly:replyowlInstallation and usage with DockerA Docker container is provided which runs wafflesbot to reply to emails viaJMAP server events. JMAP API authentication and reply
details should be configured using environment variables.Exampledocker-compose.yaml:version:"3.7"secrets:jmap_api_token:file:path/to/file/with/your/jmap_api_tokenservices:waffles:image:ghcr.io/smkent/waffles:latestenvironment:JMAP_HOST:jmap.example.comJMAP_API_TOKEN:/run/secrets/jmap_api_tokenWAFFLES_MAILBOX:folder-or-label-nameWAFFLES_REPLY_FILE:/autoreply.html# WAFFLES_DRY_RUN: "true" # Uncomment to log actions but not send email# WAFFLES_DEBUG: "true"   # Uncomment to increase log verbosity# Set TZ to your time zone. Often same as the contents of /etc/timezone.TZ:PST8PDTrestart:unless-stoppedvolumes:-path/to/your/reply/content.html:/autoreply.html:rosecrets:-jmap_api_tokenStart the container by running:docker-compose up -dDebugging information can be viewed in the container log:docker-compose logs -fInstallation from PyPIwafflesbot is available on PyPI:pip install wafflesbotUsagewafflesbot provides thewafflescommand, which can either:Run as a service and reply to emails received viaJMAP server
events(the default)Run as a script to examine recent emails (such as interactively or via a
cronjob)Environment variables:JMAP_HOST: JMAP server hostnameJMAP_API_TOKEN: JMAP account API tokenRequired arguments:-m/--mailbox: Name of the folder to process-r/--reply-content: Path to file with an HTML reply messageOptional arguments:-d/--debug: Enable debug logging-l/--limit: Maximum number of emails replies to send (only valid with-s/--script)-n/--days: Only process email received this many days ago or newer (only
valid with-s/--script)-p/--pretend: Print messages to standard output instead of sending email-s/--script: Set to run as a script instead of an event-driven serviceInvocation examplesListen for new emails, and reply to unreplied messages that appear in the
"Recruiters" folder with the message inmy-reply.html:JMAP_HOST=jmap.example.com\JMAP_API_TOKEN=ness__pk_fire\waffles\--mailbox"Recruiters"\--reply-contentmy-reply.htmlRun as a script and reply to unreplied messages in the "Recruiters" folder with
the message inmy-reply.html:JMAP_HOST=jmap.example.com\JMAP_API_TOKEN=ness__pk_fire\waffles\--script\--mailbox"Recruiters"\--reply-contentmy-reply.htmlDevelopmentPoetryinstallationViapipx:pip install pipxpipx install poetrypipx inject poetry poetry-dynamic-versioning poetry-pre-commit-pluginViapip:pip install poetrypoetry self add poetry-dynamic-versioning poetry-pre-commit-pluginDevelopment tasksSetup:poetry installRun static checks:poetry run poe lintorpoetry run pre-commit run --all-filesRun static checks and tests:poetry run poe testCreated fromsmkent/cookie-pythonusingcookiecutter
Package: waffleweb
Waffleweb is a WSGI Python web framework for making web applications easily. Waffleweb is highly customizable and doesn’t force any project layout.InstallationYou can install Waffleweb withpip.pipinstallwafflewebA Simple Examplefromwafflewebimportappfromwaffleweb.responseimportHTTPResponse,render@app.route('/index')defindex(request):returnHTTPResponse(request,'index')@app.route('/article/<id:int>/<name:str>')defarticleView(request,id,name):returnrender(request,'articleView.html',context=findArticle(id,name))app.run()DocumentationYou can find the documentation athttps://waffleweb.readthedocs.io.ContributingTo contribute to Waffleweb all you need to do fork the repo and change what you thing needs to be changed. You can then submit a pull request for review.LinksDocumentation-https://waffleweb.readthedocs.ioChanges -https://berserkware.github.io/waffleweb/changesSource Code -https://github.com/Berserkware/wafflewebWebsite -https://berserkware.github.io/wafflewebDiscord -https://discord.gg/U6HjwhkcGr
Package: waffle-window
django-waffle-windowDjango app for managing time-bound django-waffle user-flag membership.BackgroundIf you have useddjango-wafflefor managing feature flags, you will probably have come across the
challenge of managing which users have access to which flags at what point in time. The underlying
model allows you to assign individual users or groups to a flag, leaving you to manage how and when
to add users to a flag, or remove users from a flag. Take the following use case:Give access to user A to feature B for 30 days, starting Monday.This use case can be challenging to manage at scale. Someone has to remember to turn the flag, and
then again to turn it off (which means, in practice, removing the user from the flag, or the
flag-enabled group).This app attempts to tackle this problem by adding aFlagMembermodel that enables you to set a
date window within which a user will be added to a flag, and outside of which they will be removed.
The add / remove process is managed via management command.$ python manage.py update_flag_membershipImplementationThe flag membership is managed using Django Groups. For each flag, a related group calledWAFFLE_<flag_name>is created, and assigned to the flag. The management command then runs through
each flag, checks theFlagMembertable for users who are assigned to the flagon that date, and
assigns them to the relevant group. The user membership window is defined throughFlagMember.start_dateandFlagMember.end_date.classFlagMemberQuerySet(QuerySet):defactive(flag_name:str)->FlagMemberQuerySet:"""Return all users assigned to the flag today."""on_date=datetime.date.today()returnself.filter(name=flag_name,start_date__gte=on_date,end_date__lte=on_date)EachFlagMemberobject can sync its own membership:>>>member=FlagMember(user,flag_name,start_date,end_date)>>>member.save()# save object, but do not add to group>>>member.sync()# add to / remove from group as appropriateThe scheduler clears the entire group and re-adds those members who are active.def_get_or_create_flag_group(flag_name:str)->Group:flag=Flag.objects.get(name=flag_name)group=Group.objects.get_or_create(name=f"WAFFLE_{flag_name}")flag.group_set.add(group)returngroupdefsync_flag_membership(flag_name:str)->None:"""Update the flag group with all members of the queryset."""active_members=FlagMember.objects.active(flag_name)group=_get_or_create_flag_group(flag_name)group.user_set.clear()group.add(*active_members)# this won't scale for large querysetsThe management command updates all Flags:classCommand(BaseCommand):defhandle(self,*args,**options):forflaginFlag.objects.all():sync_flag_membership(flag.name)
Package: waffls
wafflswaterfractionfromLandsat andSentinel-2 imagerywaffls is a collection of algorithms for estimating sub-pixel surface water fraction using medium resolution satellite data. Reader classes for Landsat data (Collection-1 and Pre-Collection), Sentinel-2 (10m or 20m resolution SAFE format) and Harmonized Landsat Sentinel-2 (HLS; 10m S10 or 30m S30/L30) data are included.Installationwafflsis built on top of gdal and a number of python libraries. To install its dependencies using conda:condaconfig--addchannelsconda-forge
condacreate-nwafflsgdalrasteriojoblibcythonscipyscikit-learnYou can then install waffls usingpipin your new environment:condaactivatewaffls
pipinstallwafflsOr to install from source:condaactivatewaffls
gitclonehttps://github.com/bendv/wafflscdwaffls
pythonsetup.pyinstallCheck installation and version:python-c"import waffls; print(waffls.__version__)"ExamplesOpening a Landsat imageUsing a Collection-1 Landsat TM surface reflectance image:importwafflsinfile="LT050300272011042501T1-SC20190710095708"# input directoryimg=waffls.Landsat(infile)Various attributes are stored as object attributes:print(img.filepath)print(img.dataset)# Landsatprint(img.date)# Acquisition dateprint(img.dtype)# data typeprint(img.height,img.width)# dimensions...and more. For convenience, arasterio-style metadata dictionary is also included:print(img.profile)By default, the image data is not read into memory. Do do this, use theread()method:print(img.bands)# should be `None`img.read(verbose=True)print(img.bands)# OrderedDict of Image bands as numpy as arraysTo set the QA mask use theset_mask()method. Several optional boolean arguments can be set to apply a saturation (False by default), cloud (True by default), cloud_shadow (True by default), snow (True by default) and cirrus (True by default). Additionally, you can also mask pixels within a specified pixel buffer around the mask by settingbufferto an integer value (None by default).img.set_mask()print(img.mask)# 1 indicates mask values, 0 unmaskedReferenceDeVries, B., Huang, C-Q., Lang, M.W., Jones, J.W., Huang, W., Creed, I.F. and Carroll, M.L. 2017. Automated quantification of surface water inundation in wetlands using optical satellite imagery. Remote Sensing, 9(8):807.