Saravanan666/pypi-org huggingface dataset:
Package: vkwave
Уважаем все остальные библиотеки. VKWave здесь.Бот не должен быть вашим первым проектом, сначала на достаточном уровне изучите язык и поделайте более простые проектыVkWave:us: English versionVKWave - это фреймворк для создания производительных и лёгких в расширении проектов, взаимодействующих с API ВКонтакте.VKWave вдохновлен многими библиотеками, в частности:aiogram, vk.py и многими другими.Текущий мейнтейнерпроекта:@KurimuzonAkumaДокументацияПримеры использованияПочему VKWave?Максимальная кастомизацияПолная асинхронностьИспользование аннотаций типовУстановкаС GitHub, со всеми свежими обновлениями:pip install https://github.com/fscdev/vkwave/archive/master.zipИли с PyPI (не рекомендуется, давно не обновлялась):pip install vkwaveПроизводительностьVKWave - это не самая быстрая библиотека, из-за нашей уверенности в том, что лёгкая настройка под себя, а также удобство при использовании во всех задачах являются более важными характеристиками библиотеки, чем скорость.Но мы всегда заинтересованы в улучшении производительности, поэтому не стесняйтесь делать Pull Request-ы и обсуждать проблемы производительности.СообществоVKWave - это очень молодой проект.Простая библиотека для быстрого доступа к APIТелеграм чатУчебники для лёгкого стартаДополненияЕсли вы хотите создать дополнение для VKWave (например, более простой способ написания ботов, даже прощеvkwave.bots.addons.easy), то вам следует назвать свой проект так:vkwave-bots-really-easy.Общий паттерн для дополнений:vkwave-<часть-vkwave>-<название-проекта>.
Package: vkwave-api
VKWave-APIAccessing VK API for humans.Installpipinstallvkwave-apiExamplefromvkwave_apiimportAPI,runasyncdefmain():api=API("MY TOKEN")vk=api.get_api()me=awaitvk.users.get()print(me)run(main())Orsynchronousexamplefromvkwave_apiimportSyncAPIdefmain():api=SyncAPI("MYTOKEN")me=api.api_request("users.get")print(me)main()
Package: vl
A URL link checker CLI command for text files. Heavily inspired onawesome_botInstallationInstalling pip version:$pipinstallvlUsageTo use it:Usage:vl[OPTIONS]DOCExamples:simplecall$vlREADME.mdAddingdebugoutputs$vlREADME.md--debugAddingacustomtimeoutforeachurl.timeonseconds.$vlREADME.md-t3Addingacustomsizeparam,toaddmorerequestspertime$vlREADME-s1000Skippingsomeerrorcodes.Thiswillallow500and404responsestobeignored$vlREADME.md-a500,404AddingWhitelists$vlREADME.md-wserver1.com,server2.comOptions:--versionShowtheversionandexit.-t,--timeoutFLOATrequesttimeoutarg.Defaultis2seconds-s,--sizeINTEGERSpecifiesthenumberofrequeststomakeatatime.defaultis100-d,--debugPrintsoutsomedebuginformationlikeexecutiontimeandexceptionmessages-a,--allow-codesTEXTAcommasplittedhttpresponseallowedcodes-w,--whitelistTEXTAcommasplittedwhitelisturls--helpShowthismessageandexit.Do i need this lib?I don’t know! Currently i am using to check for bad links on mymagictoolsREADME file. I hope it can serve for many purposes in the future.RoadmapHow can we make it faster?!API
Package: vl53l5cx-ctypes
VL53L5CX CTypes Python WrapperCTypes wrapper for the Sitronix VL53L5CX Ultra-light Driver- C source mirror can be found athttps://github.com/ST-mirror/VL53L5CX_ULD_driver/tree/lite/enPrerequisitesYou must enable:i2csudo raspi-config nonint do_i2c 0If you're not using any i2c devices for which 400KHz is out of range (trackball), you might also want to increase your i2c baud rate.VL53L5CX requires a firmware upload on startup, and it'sslow. Add a baudrate to the i2c line in/boot/config.txtto speed it up:dtparam=i2c_arm=on,i2c_arm_baudrate=400000Note: The default baudrate is 200000 (200KHz) and a typical maximum for most devices is 400000 (400KHz), but you can also use 1000000 (1MHz) if you're just driving VL53L5CX sensors.InstallingJust runpip3 install vl53l5cx-ctypesIn some cases you may need to usesudoor install pip with:sudo apt install python3-pipLatest/development library from GitHub:`git clonehttps://github.com/pimoroni/vl53l5cx-pythoncd vl53l5cx-python/librarypython3 setup.py install --userChangelog0.0.3Rename to vl53l5cx_ctypes to better reflect the differences between this and the pure Python VL53L5CX driverChange package name to avoid conflicts with Python VL53L5CX driver0.0.2Fix segfault bug in is_alive0.0.1Initial Release
Package: vl6180x-multi
Multiple VL6180X sensors on the same I2C busIntroductionThis module allows operating several VL6180X Time Of Flight sensors on the same I2C bus. This is achieved by reallocating each sensor' address.
The project is intended to run on RaspberryPi. Specifically, it was tested on RaspberryPi 4 with Python 3.7PrerequisitesThe example below is using Raspberry PI default I2C bus and two GPIOs to control two sensors:Running the exampleClone the repository:gitclonehttps://gitlab.com/vitus133/vl6180x_multi&&cdvl6180x_multiCreate and activate Python virtual environment, install dependencies:python3-mvenvvenvsourcevenv/bin/activate
pipinstall-rrequirements.txtInstall the packagepipinstall-e.Run the examplecdexample/
pythonrange.py
Package: vlab
VLabA set of reusable tools for vision researchers.InstallationDependenciesFor a painless installation, we stick topure pythonand limit our dependencies to the following libraries:torch
numpy
opencv2
matplotlib
pyyaml
rich
gdownInstall via pipNote thattorchwill not be installed automatically. Please follow theofficial instructionsto install it.pipinstallvlabInstall locallypipinstall-e.AcknowledgementPart of the code is adapted from some prior works:https://github.com/open-mmlab/mmcvhttps://github.com/facebookresearch/detectron2https://github.com/facebookresearch/pytorch3dhttps://github.com/yanx27/Pointnet_Pointnet2_pytorchhttps://github.com/princeton-vl/RAFThttps://github.com/timbmg/VAE-CVAE-MNISTThanks to the authors for their work!
Package: vlab-api-common
vlab_api_commonCommon logic used by every API within vLab - things like making response
shapes consistent, providing functionality for thedescribeparameter, etc.TherequiresanddenydecoratorsThese decorators are used together to create anAccess Control Listfor your Flask API. You can layer these directorates however you want, but beware -“With great power comes great responsibility.”ExamplesHere are some examples of using therequiresanddenydecorators.Basic SyntaxTo use therequiresordenydecorators in your Flask API, simply add them
to your function before@app.route. You should also accpet**kwargsbecause
additional information like the token and validation information will be passed
along.This example will allow any user with a valid token access:fromvlab_api_commonimportrequires,deny@requires()@app.route('/api/1/foo')defhello(**kwargs):return"hello world"While this example shows how to forbidjordanaccess:fromvlab_api_commonimportrequires,deny@deny(username='jordan')@app.route('/api/1/foo')defhello(**kwargs):return"hello world"VerifyingIn this example, any user with a valid authentication token will be able to
perform an HTTP GET on the API end point.@requires(verify=False)@app.route('/api/1/foo')defhello(**kwargs):return"hello world!"The difference in this next example is that therequiresdecorator will check
with the configured vLab Authentication Service to ensure that the user has not
deleted their token:@requires()@app.route('/api/1/foo')defhello(**kwargs):return"hello world!"Notice how this is the default behavior. If you have a resource that’s not very
sensitive, and have extremely high requirements on availability, consider explicitly
settingverify=Falseon therequiresanddenydecorators.Theverifykeyword argument applies to both therequiresanddenydecorators.OR-ing identitiesYou can specify multiple values in therequiresanddenydecorators.
When you specify more than one value in a single decorator, the identities
areORed. In other words, the moment an identity in the token matches a defined
value, the user is granted access.In this example, if the user is namedbobbut he is not part ofDepartment A,
then the user is still granted access:@requires(username=('bob','sarah'),memberOf='Department A')@app.route('/api/1/foo')defhello(**kwargs):return"Hello World!"AND-ing identitiesWhen you layer multiplerequiresand/ordenydecorators together, youANDthose decoratores. In other words, all decorators must return successfully for
the user to be granted access.In this example, onlyforestandjennyfromDepartment Awill be granted
access. All other members withinDepartment Awill not be granted access@requires(username=('forest','jenny'))@requires(memberOf='Department A')@app.route('/api/1/foo')defhello(**kwargs):return"hello forest or jenny from Department A!"
Package: vlab-inf-common
This library centralizes logic for working with virtual infrastructure providers.VMwareBuilds upon thepyVmomiAPI bindings for vSphere
to create morehuman friendlyobjects like:vCenterIt’s called vCenter because that’s thehostyou’ll connect to. This object
focuses more on interacting with Virtual Machines, than configuring the system.Here’s an example of what using thevCenterobject is like:fromvlab_inf_common.vmwareimportvCenter,vimvc=vCenter(user='Alice',password='iLoveDogs',host='some-vcenter-server.corp')vc.networks{'front-end':'vim.Network:network-14'}# mapping of name -> objectvc.create_vm_folder(path='/some/new/path')# recursively creates the whole pathvms=vc.get_by_type(vim.VirtualMachine)vms(ManagedObject)['vim.VirtualMachine:vm-15']OvaThis object abstracts use of an OVA file when creating new Virtual Machines.
It handles both local paths and URLs for the OVA file location. Deploying the
OVA is a single method call (once you’ve obtained a spec and lease).Here’s an example of using theOvaobject:fromvlab_inf_common.vmwareimportOvaova=Ova('https://some-server/myMachine.ova')ova.networks['eth0']ova.vmdks['disk-1.vmdk','disk-2.vmdk']hasattr(ova,'ovf')# b/c the ovf XML is too long to put in an exampleTrueHere’s an example usingOvaandvCenterto deploy a new Virtual Machine
It’s a bit long, but pyVmomi doesn’t make it easy…importtimefromvlab_inf_common.vmwareimportOva,vCenter,vimvc=vCenter(user='Alice',password='iLoveDogs',host='some-vsphere-server.corp')ova=Ova('/some/path/myMachine.ova')my_folder=vc.get_vm_folder('/users/alice')network_map=vim.OvfManager.NetworkMapping()network_map.name=ova.networks[0]network_map.network=vc.networks['front-end']# assuming you have a network named 'frond-end'resouce_pool=vc.resource_pool['users']# assuming your pool name is 'users'datastore=vc.datastores['general']# another assumption!host=list(vc.host_systems.values())[0]# if you don't care which host you upload tospec_params=vim.OvfManager.CreateImportSpecParams(entityName='myNewVM',networkMapping=[network_map])spec=vc.ovf_manager.CreateImportSpec(ovfDescriptor=ova.ovf,resourcePool=resouce_pool,datastore=datastore,cisp=spec_params)lease=resource_pool.ImportVApp(spec.importSpec,folder=my_folder,host=host)for_inrange(30):iflease.state!='ready':time.sleep(1)else:breakprint('starting deploy')ova.deploy(spec,lease,host.name)print('Upload complete')ova.close()FAQHow do I deal with self-signed TLS certs in vCenter?Set the environment variableINF_VCENTER_VERIFY_CERTto anything, and
we’ll use the default context created by the Python ssl lib. By default, we’ll
ignore self-signed certs.
Package: vlab-ipam-api
This service replaces the existing static gateway used in vLab.The goal of this service is to make it easier for users to access their lab
by removing the need for the jumpbox. This is achieved by exposing a RESTful API
on the gateway that can dynamically port-forward through the NAT firewall that
runs on the gateway. Additionally, vLab clients can leverage this API to programmicallyconnectusers to a given resource. For example the vLab CLI client can potentially:Expose an interface likevlab connect windows--name<name of instance>--protocol=RDPCall the main vLab server toget the IP of the gatewayCall the API on the gateway toget the portthat maps to the specific component and protocolEvoke an applicationon the user’s machinethat understands the specific protocol, and pre-populate the connection information.Clients can also programmically create the port forwarding rules upon component
creation. This would remove the need for users to manually port forwarding
rules, but clients should not prevent users from inputting their own port forwarding
rules.Background ServicesThe IPAM service has two background processes:vlab-workerPeriodically pings IPs stored in the IPAM database. This allows the service to
identify “bad records” and relay that information to the user.vlab-log-senderForwards firewall logs to a remote server. The default iptables config will
log every time a package is FORWARDed. By forwarding the logs for remote processing,
admins of vLab can answer business questions like,“Do they use that resource?”vlab-ddns-updaterRuns on a regular cycle to send Dynamic DNS updates to the vLab DNS service.
Package: vlac
Vectors of Locally Aggregated Concepts (VLAC)PurposeAs illustrated in the Figure below, VLAC clusters word embeddings to createkconcepts. Due to the high dimensionality of word embeddings (i.e., 300) spherical k-means is used to perform the clustering as applying euclidean distance will result in little difference in the distances between samples. The method works as follows. Letwibe a word embedding of sizeDassigned to cluster centerck. Then, for each word in a document, VLAC computes the element-wise sum of residuals of each word embedding to its assigned cluster center. This results inkfeature vectors, one for each concept, and all of sizeD. All feature vectors are then concatenated, power normalized, and finally, l2 normalization is applied. For example, if 10 concepts were to be created out of word embeddings of size 300 then the resulting document vector would contain 10 x 300 values.UsageTested in python 3.5.4.# Train model and transform collection of documentsvlac_model=VLAC(documents=train_docs,model=model,oov=False)vlac_features,kmeans=vlac_model.fit_transform(num_concepts=30)# Create features new documentsvlac_model=VLAC(documents=train_docs,model=model,oov=False)test_features=vlac_model.transform(kmeans=kmeans)
Package: vlawyer
vlawyerAn unofficialvjudgestatistics APIYou can use this package to get:submissions datacontest standings(comming soon)Disclaimer:All rights to the site and its data are reserved by the site owner. This is merely a tool to obtain the already acquirable data in a machine readable format. What you do with this data and it's legallity are entirely your responsibility.InstallationUsing pipAssuming you have pip installed, just run the following command on the terminalpip install vlawyerManuallyClone the repositorygit clone https://github.com/hoenchioma/vlawyer.gitThen install the packagecd vlawyer
python setup.py installUsageAvailable functions:FUNCTIONS
    get_vjudge_data(username: str = '', 
                    oj_id: str = 'All', 
                    problem_no: str = '', 
                    language: str = '', 
                    result: str = 0, 
                    contest_id: str = '', 
                    limit: int = 0)
        Function to return vjudge based on parameters
        
        Parameters:
        username (str): username to search (empty -> all usernames)
        oj_id (str): online judge
            options: All, CodeForces, CodeChef, Gym, LightOJ, UVA, UVALive, 
                     Kattis, AtCoder, SPOJ, TopCoder, etc.
            (ignored if contest_id is specified)
        problem_no (str): problem number (can be found from a problem url in vjudge)
            (if contest id is specified, problem_no is A, B, C, etc. of contest)
        language (str): language of submission
            options: C, CPP, JAVA, PASCAL, PYTHON, CSHARP, RUBY, OTHER (empty -> all)
        result (int): result of submission
            options:
            0 -> All
            1 -> Accepted
            2 -> Presentation Error
            3 -> Wrong Answer
            4 -> Time Limit Exceed
            5 -> Memory Limit Exceed
            6 -> Output Limit Exceed
            7 -> Runtime Error
            8 -> Compile Error
            9 -> Unknown Error
            10 -> Submit Error
            11 -> Queuing && Judging
        contest_id (str): contest id (empty -> no particular contest)
        limit (int): maximum number of returned entries (0 -> no limit)
        
        Returns:
            list: list of dictionaries containing the entriesExample:importvlawyerimportjson# prints the latest 10 submissions from vjudge.net# converted to json for better readabilityprint(json.dumps(vlawyer.get_vjudge_data(limit=10),indent=4,sort_keys=True))# prints the submissions by xxx in contest no yyy# replace xxx with actual username and yyy with an actual contest (otherwise you'll get an error)print(json.dumps(vlawyer.get_vjudge_data(username='xxx',contest_id='yyy'),indent=4,sort_keys=True))response=vlawyer.get_vjudge_data(limit=12)print(len(response))# get length of response (12)print(type(response))# get the type of response (dict)
Package: vlc-ctrl
Lets you control a running instance of vlc player, start a new instance, get track information, etc.Supported platformspython 2.7 / 3.4LinuxFeaturesControls vlc player over dbus.Play, pause, shuffle, toggle, prev, next, stop commands.Play all files in a directory (recursively added).Add files / directories based on inclusion and exclusion patterns.Change volume / fade volume.Print current track info.Quit vlc.Quit based on return code of another command.Can be used as a cron job.Dependenciesvlc player, of course.python-dbus or python3-dbusOn Ubuntu:>apt-get install python-dbusor>apt-get install python3-dbusUsagePause:vlc-ctrl pausePlay a directory:vlc-ctrl play -p /home/user/musicIncrease volume 10%:vlc-ctrl volume +10%
vlc-ctrl volume +0.1Quit when return code of “command” is 0, retrying the command at most 5 times at 30s intervals and fade out in 10s:vlc-ctrl quit -c command -r 5,30 -f 10Get info on currently playing track:vlc-ctrl infoFor more commands, see:vlc-ctrl -hDownloadPyPI:http://pypi.python.org/pypi/vlc-ctrlSource:https://github.com/amol9/vlc-ctrl
Package: vlc-helper
WarningThis isLinux onlyas D-BUS does not work on Mac.You must have the following system packages installedvlc(to play videos)imagemagick(to take screenshots)wmctrl(to determine window name)InstallInstall system requirements fordbus-pythonpackage% sudo apt-get install -y pkg-config libdbus-1-dev libdbus-glib-1-devInstall withpip% pip3 install vlc-helperUsageThevlc-replandmyvlcscripts are provided% venv/bin/vlc-repl --help
Usage: vlc-repl [OPTIONS]

  Start a REPL to control VLC media player

Options:
  --help  Show this message and exit.

% venv/bin/myvlc --help
Usage: myvlc [OPTIONS] [FILENAME] [STARTTIME] [STOPTIME]

  Start filename at specific start time (and/or end at specific end time)

Options:
  --help  Show this message and exit.
Package: vlclient
vlclientAPI Wrapper for VALORANT's client APINOTE: This is a fork of the new inactivevalclient.pywith some edits of my taste.Fork changesSkipped some configurations files I did not even understand and went straight
to using Poetry.InstallationUsingpip:pipinstallvlclientUsingpoetry:poetryaddvlclientUsagefromvlclient.clientimportClientclient=Client(region="na")client.activate()# get MatchID of latest matchhistory=client.fetch_match_history(queue_id="unrated")print(history["History"][0]["MatchID"])DocumentationRefer toTechdoodle's documentationfor exact API details.Most endpoints are implemented in this wrapper, but some are missing.
Please consider contributing.
Package: vlcradio
VLC-Radio Python scriptA tool for streamers to cleanly display song info from VLC Media Player.Built for Python 3.6install withpip install VLCtagExporterand run withpython -m VLCtagExporterRequirementsThe following python packages need to be installed, you can install them using these commands:pip install Imagepip install requestsHow to useFirstly, change the image and text file save directories.Then, while VLC Media player is playing audio, run the program. The song info will be exported into a text file at the location for 'songInfoSaveLocation' specified in the image above. The album art will be resized and exported to the location specified in the 'artSaveLocation' value shown above.You can see a working example by clicking on the image or link below.(https://www.youtube.com/watch?v=DW2mUMJ_63AI used OBS studio for broadcasting, and set it up to display the jpg titled art.jpg in a folder, as well as display the contents of a specific text file. The album art and text file are automatically updated when their contents are changed.VLC SetupYou will need to enable a web interface for VLC media player for this program. You can find instructions on how to do so in this post:https://stackoverflow.com/questions/24178980/how-to-monitor-vlc-media-player-on-windows-7-using-pythonThis link will describe how to:Activating web interface: Open VLC goto Tools--->Preferences-----> Main Interface as shown below tick mark the web option.Then click on Lua option on the left pane. Enter the password in the password field and enter C:\Program Files\VideoLAN\VLC\lua\http in the source directory field as shown below. Verify that you have status.xml file at the location that you provided in the source directory.Start the VLC player and play some file. Visithttp://localhost:8080/requests/status.xmland you shall see a login page, leave the username field blank and enter the password that you entered in the VLC. If you logged in successfully you shall see the XML file!
If you don't see any thing then do the following as shown in the image below: goto View--->Add Interface----->Select web