Saravanan666/pypi-org huggingface dataset:
Package: wythoff-construct
wythoff-constructConstructs and visualizes hyperdimensional polytopes created using Wythoff constructionINSTALLATIONUSAGEEXAMPLESINSTALLATIONpip install wythoff-constructNote wythoff-construct requires python version 3.6 to 3.8. version 3.9 will be supported as soon
as vtk (a dependancy) supports 3.9.USAGEOnce installed using pip the following command will launch the application from any working directorywythoff-constructfor general information regarding Wythoff Construction seehttps://en.wikipedia.org/wiki/Wythoff_constructionSeed Point SelectionBasic: Use the sliders to smoothly transition between shapes.Advanced: These sliders select the point which is reflected in the kaleidoscope mirrors to get all
the vertices of the polytope. Each slider scales a vector pointing from one intersection of the kaleidoscope
mirrors to all other intersections (the point of intersection are between all but one of the mirrors, and
the unit sphere). They are essentially the coordinates on the spherical triangle which tile sphere (hence their sum is kept to 1).
In higher dimensions the picture is similar, except there are more mirrors and more intersections and more vectors.DimensionSimply used to change the number of spatial dimensions and hence which kaleidoscopes are available
(3,4 and 5 are currently supported).KaleidoscopeBasic: Determines what shapes are created using the seed point selection sliders.Advanced: the coxeter notation for which reflection group (kaleidoscope) is active. For dimension 3 I excluded all
but one dihedral group, as to not clutter the UI (the others are very similar).All kaleidoscopes save after the first time they are generated to allow for faster switching between them afterwards.
I also pre-generated [3²,5] and [3³,4] due to long generation times.RotationRotation in 3 dimensions is done by clicking and dragging the mouse, In higher dimensions I included sliders for the
additional rotations not possible in 3 dimensions there will be 3ⁿ-3 sliders where n is the number of dimensions.ProjectionControls how the program renders n dimensional shapes in 3 dimensions (3 to 2 dimensions is handled by the ui program
which can be changed using the toggle parallel projection button on top).Perspective: Things closer in higher dimensions appear bigger.Orthographic: Size does not depend on distance.For a clear example, load [3²,4], the smaller inner cube when on Perspective projection is further from you in the 4th dimension.OpacityControls how opaque the faces (2D cells) are on the polytope. automatically scales down with dimension to compete with the
growing number of faces.EXAMPLESLooks much better in person!
Package: wyvern
wyvernA [WIP] flexible and easy to use Discord API wrapper for python 🚀.Warning: This library is very unstable and things might not work as expected. Feel free to create an issue.Important LinksSupport server:https://discord.gg/FyEE54u9GFDocumentation:https://sarthhh.github.io/wyvern/PYPI:https://pypi.org/project/wyvernInstallation$python-mpipinstallgit+https://github.com/sarthhh/wyvernExample Code:CommandsClient with commands support.importwyvern# creating a CommandsClient object to interaction with commands.client=wyvern.CommandsClient("TOKEN")# creating a slash command using with_slash_command decorator.@client.with_slash_command(name="hello",description="says a hello")asyncdefhello(interaction:wyvern.ApplicationCommandInteraction)->None:# creating a response to the interaction.awaitinteraction.create_message_response("hi!")# running the bot.client.run()Basic GatewayClient with listener.importwyvern# creating a GatewayClient instance and storing it into the client variable.# this acts as the interface between your bot and the code.client=wyvern.GatewayClient("TOKEN",intents=wyvern.Intents.UNPRIVILEGED|wyvern.Intents.MESSAGE_CONTENT)# creating an EventListener object and adding it to the client's event handler using the# @client.with_listener decorator. You can set the maximum amount of time this listener will get triggered using# the `max_trigger kwarg in the listener decorator.`@client.as_listener(wyvern.Event.MESSAGE_CREATE)asyncdefmessage_create(message:wyvern.Message)->None:"""This coroutine is triggerd whenever the MESSAGE_CREATE event gets dispatched."""ifmessage.contentandmessage.content.lower()=="!ping":awaitmessage.respond("pong!")# runs the bot.client.run()
Package: wyylde-sdk
Wyylde SDKFeaturesTODORequirementsTODOInstallationYou can installWyylde SDKviapipfromPyPI:$pipinstallwyylde-sdkUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Wyylde SDKis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: wyzard
WyzardRun various transformers models from one packages.These packages aim to run various machine learning models using thetransformersfromHugging Face. Made to be user-friendly, concise, easy-to-understand.By default, users don't need to choose a model anymore for various types of models, we have selected the one that fits the class. But the user can still replace it according to the model that the user wants.Can run :Text-to-Image or Image generationusingDiffusers package.GPT/AI output detectorusingGPT2model.Object detectionImage-to-Text or image captioningMore? soon!InstallUsing pip :pip install wyzardExampleExamples code for each class can be seen athere.Licence & CopyrightThis Project under MIT License
Copyright (c) 2023-present LyQuid (LyQuid12)
Package: wyzecam
wyzecamWyzecam is a library for streaming audio and video from your wyze cameras using the wyze native firmware.That means no need to flash rtsp-specific firmware, and full support for the v3 hardware!Basic UsageStreaming video in 11 lines of code!importosimportcv2importwyzecamauth_info=wyzecam.login(os.environ["WYZE_EMAIL"],os.environ["WYZE_PASSWORD"])account=wyzecam.get_user_info(auth_info)camera=wyzecam.get_camera_list(auth_info)[0]withwyzecam.WyzeIOTC()aswyze_iotc:withwyze_iotc.connect_and_auth(account,camera)assess:for(frame,frame_info)insess.recv_video_frame_ndarray():cv2.imshow("Video Feed",frame)cv2.waitKey(1)FeaturesSend local commands (viaWyzeIOTCclass)Support for all wyze camera types (including v3 cameras!)Uses thetutkprotocol for communicating over the
local network.Optional support for opencv and libav for easy decoding of the video feed!Installationpipinstall-UwyzecamYou will then need a copy of the shared librarylibIOTCAPIs_ALL. You will need
todownload this SDK, unzip it, then convert the
appropriate copy of the library to a shared library, and copy the resultant.soor.dylibfile to somewhere
convenient.On Mac:unzipTUTK_IOTC_Platform_14W42P1.zipcdLib/MAC/
g++-fpic-shared-Wl,-all_loadlibIOTCAPIs_ALL.a-olibIOTCAPIs_ALL.dylib
cplibIOTCAPIs_ALL.dylib/usr/local/lib/On Linux:unzipTUTK_IOTC_Platform_14W42P1.zipcdLib/Linux/x64/
g++-fpic-shared-Wl,--whole-archivelibAVAPIs.alibIOTCAPIs.a-Wl,--no-whole-archive-olibIOTCAPIs_ALL.so
cplibIOTCAPIs_ALL.so/usr/local/lib/Note: you will need to pick the appropriate architecture.On Windows:Followguideto install Windows Subsystem for LinuxInstallVcXsrv Windows X ServerRun the following command and add it to/etc/bash.bashrcexportDISPLAY=":0"Follow Linux instructions to compile the shared library🛡 LicenseThis project is licensed under the terms of theMITlicense.
SeeLICENSEfor more details.📃 Citation@misc{wyzecam,
  author = {kroo},
  title = {Python package for communicating with wyze cameras over the local network},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/kroo/wyzecam}}
}CreditsSpecial thanks to the work by folks atnblavoie/wyzecam-api, without which
this project would have been much harder.
Package: wyzely-detect
Wyzely DetectRecognize faces/objects in a video stream (from a webcam or a security camera) and send notifications to your devicesFeaturesRecognize objectsRecognize facesSend notifications to your phone (or other devices) usingntfyOptionally, run headless with DockerEither use a webcam or an RTSP feedUsemrlt8/docker-wyze-bridgeto get RTSP feeds from Wyze CamsPrerequisitesPythonCamera, either a webcam or a Wyze CamAll RTSP feedsshouldwork, however.Python 3.10 or 3.11Poetry (optional)DockerA Wyze CamAny other RTSP feedshouldwork, as mentioned aboveDockerDocker ComposeWhat's not requiredA Wyze subscriptionUsageInstallationCloning the repository is not required when installing from PyPi but is required when installing from sourceClone this repo withgit clone https://github.com/slashtechno/wyzely-detectcdinto the cloned repositoryThen, either install withPoetryor run with DockerDockerModify todocker-compose.ymlto achieve desired configurationRun in the background with `docker compose up -dInstalling from PyPi with pipThis assumes you have Python 3.10 or 3.11 installedpip install wyzely-detecta. You may need to usepip3instead ofpipwyzely-detectPoetrypoetry installpoetry run -- wyzely-detectConfigurationThe following are some basic CLI options. Most flags have environment variable equivalents which can be helpful when using Docker.For face recognition, put images of faces in subdirectories./faces(this can be changed with--faces-directory)Keep in mind, on the first run, face recBy default, notifications are sent for all objects. This can be changed with one or more occurrences of--detect-objectto specify which objects to detectCurrently, all classes in theCOCOdataset can be detectedTo specify where notifications are sent, specify antfyURL with--ntfy-urlTo configure the program when using Docker, editdocker-compose.ymland/or set environment variables.For further information, use--helpHow to uninstallIf you used Docker, rundocker-compose down --rmi allin the cloned repositoryIf you used Poetry, just delete the virtual environment and then the cloned repository
Package: wyzerctl
WyzerctlInstallation$ pip install -r requirements.txt

$ pip install setup.pyDevelopmentThis project includes a number of helpers in theMakefileto streamline common development tasks.Environment SetupThe following demonstrates setting up and working with a development environment:### create a virtualenv for development

$ make virtualenv

$ source env/bin/activate


### run wyzerctl cli application

$ wyzerctl --help


### run pytest / coverage

$ make testReleasing to PyPiBefore releasing to PyPi, you must configure your login credentials:~/.pypirc:[pypi]
username = YOUR_USERNAME
password = YOUR_PASSWORDThen use the included helper function via theMakefile:$ make dist

$ make dist-uploadDeploymentsDockerIncluded is a basicDockerfilefor building and distributingWyzerctl,
and can be built with the includedmakehelper:$ make docker

$ docker run -it wyzerctl --help
Package: wyze-scale-tool
wyze_scale_tool - A utility for reading from and managing a Wyze Scale XThis is a proof-of-concept python library and stand-alone program
for communicating with a Wyze Scale X.Installationpip install wyze_scale_toolCLI UsageThe CLI interface supports most of the functionality of the protocol, including creating, modifying and deleting users,
querying weights, changing scale settings (units, etc.), and even a live-weighing mode that continuously
shows the current measured weight from the scale.Example UsageTo get a list of all cached weights of all users on the scalewyze_scale_tool weightsTo explore more of the options that are available, you can use --helpwyze_scale_tool --helpAPI UsageThis also exposes an API that can be used to communicate with a Wyze Scale Ximportasynciofromwyze_scale_toolimportWyzeScaleasyncdefmain():mac_address="AA:BB:CC:DD:EE:FF"scale=WyzeScale(mac_address)asyncwithscale:users=awaitscale.get_users()foruserinusers:asyncforweightinscale.get_weights(user):print("User:%sTime:%sWeight:%s"%(bytes.hex(user.user_id),weight.timestamp_str(),weight.weight_lbs))if__name__=="__main__":try:asyncio.run(main())exceptasyncio.CancelledError:pass
Package: wzarp
WzarpWzarp is a Python library for outputting of weather of Russian cities to the console.InstallationUse the package managerpipto install wzarp.pipinstallwzarpUsagefromwzarp.CityWeatherimportWeatherOfCitycity=input("Enter the name of the city: ")city_weather=WeatherOfCity(city)# creating object of class WeatherOfCity# During the initialization of an object you need# to put proper name of the city in Englishcity_weather.print_weather()# returns weather in chosen citycity_weather.print_temp()# returns temperature in chosen city
Package: wzone
Wzone is a package for generating zones of armed conflicts. The package contains functionalities
for querying and creating conflict zones in theESRI ASCII raster format. The methodological details
can be foundhere(TBD). The package greatly relies on the UCDPGED (version 17.1) compiled by
theUppsala Conflict Data Program.InstallingInstall and update usingpip:pip install wzoneAn Exampleimportwzoneimporttempfile# list of UCDPGED conflict IDs relevant to state-based violence in Somaliasomalia_ids=wzone.find_ids(country='Somalia',type_of_violence=1)### [329, 337, 418, 13646]# Yearly sequence of dates from the first to the last events for each conflictsomalia_dates=wzone.find_dates(ids=somalia_ids,interval='year')### somalia_dates[1][0] == '1989-01-01'# select a test casetest_id=337test_date='2010-01-01'# create war zonestmp_dir=tempfile.mkdtemp()somalia_path=wzone.gen_wzones(dates=test_date,ids=test_id,out_dir=tmp_dir)printsomalia_path# You can continue this example with a variety of functions in other GIS packages.### For arcpy users, refer to arcpy.ASCIIToRaster_conversion function.### For gdal users, refer to gdal.Open function.LinksWebsite:https://github.com/kyosuke-kkt/wzone/License:GPL-3Releases:https://pypi.org/project/wzone/
Package: wz-uniform-crawler
wz-uniform-crawlerThis is a simple crawler script for downloading images fromUniform Map / 制服地圖InstallationInstall fromPyPI:pip install wz-uniform-crawlerInstall fromGitHub:pip install git+https://github.com/issaclin32/wz_uniform_crawler/Usageimportwz_uniform_crawler# download images according to page urlwz_uniform_crawler.fetch_by_url('https://uniform.wingzero.tw/school/intro/jr/198')# download images with 20 parallel download threads (default = 10), without showing messages.wz_uniform_crawler.fetch_by_url('https://uniform.wingzero.tw/school/intro/jr/198',num_of_parallel_downloads=20,verbose=False)# download all images from Uniform Mapwz_uniform_crawler.fetch_all()# download all images from Uniform Map tagged as type "jr"(Junior High Schools in Taiwan) and "tw" (High Schools in Taiwan)# with 20 parallel download threadswz_uniform_crawler.fetch_all(school_types=['jr','tw'],num_of_parallel_downloads=20)DisclaimerThis crawler script is only made on the purpose of personal programming practice. I do not own the copyright, nor have any affiliation with the maintainer ofUniform Map.