Saravanan666/pypi-org huggingface dataset:
Package: veikkaaja
VeikkaajaVeikkaaja is a straight-forward wrapper for theVeikkausbetting API. This package is not affiliated with Veikkaus in any way, use at your own peril. An official description of the API and the entrypoints can be found atVeikkaus reference implementationThe Veikkaus API is quite extensive, endpoints for getting the game information and enabling betting are supported for the following game modes:API Nameoikea nimiimplementedMULTISCOREMoniveto-SCORETulosveto-SPORTVakio-WINNERVoittajavedot-PICKTWOPäivän pari-PICKTHREEPäivän trio-PERFECTASuperkaksari-TRIFECTASupertripla-EBETPitkäveto👍RAVIMoniveikkaus-Currently, only endpoints for EBET (Pitkäveto) are implemented in this wrapper. Contributions for the rest of the endpoints are welcome.InstallationThis package is available atPyPI. Install withpip:pipinstallveikkaajaUsageAccessing your accountFor accessing the API endpoints, you need a valid Veikkaus-account. You can provide the account information as arguments to theVeikkausClientupon initialization or as environment variables. If not provided as arguments to the client, the account information is read from the following environment variables:exportVEIKKAUS_ACCOUNT=user.nameexportVEIKKAUS_PASSWORD=my-passwordBetting is quite straight-forwardfromveikkaajaimportVeikkausClientclient=VeikkausClient('user.name','my-password')Getting you account balanceclient.get_balance())0.0Available gamesGet the available games:fromveikkaaja.veikkaus_clientimportGameTypes# get upcoming EBET (Pitkäveto) drawsgames=client.upcoming_events(GameTypes.EBET)print(games[0])Gametype:'12 '25.10.202002:58:Khabib-J.Gaethjeid:2170768event_id:98816225status:OPEN,odds:(131.0-0-320.0)Placing betsSelect a game and bet:fromveikkaaja.veikkaus_clientimportBetTarget# place bet on the selected gamegame=games[0]success=client.place_bet(game,BetDecision(BetTarget.HOME,100),# The amount to bet is given in centstest=True)Veikkaus API also provides a testing endpoint, which can be used to validate your bets before actually submitting them. If you set thetest=Trueargument in the betting function call, the testing endpoint is used instead.Note: The testing endpoint is the default, set test=False to actually place bets.LoggingBy default, the veikkaaja API logging is quite verbose. Theveikkaajalogging uses a standard library logger namedveikkaaja. You can decrease the verbosity upon the package importimportveikkaaja# or any other import from veikkaaja packageimportlogginglogging.getLogger('veikkaaja').setLevel(logging.WARNING)It is also possible to increase the verbosity to show debug log messages withexportVEIKKAAJA_DEBUG=1ContributingI am happy if someone is interested in adding contributions to other endpoints other than EBET. To run test and install used dev-tools one should clone this repository and install the optional dependenciesgitclonehttps://github.com/miikama/veikkaajacdveikkaaja
pipinstall-e.[dev]See description of our testing approach intesting
Package: veikk-config
VEIKK Linux Driver V3 Configuration toolThe configuration tool for the VEIKK driver (v3).For the old version of the VEIKK driver (v2), seethis configuration tool. These are not compatible.DescriptionTODO lorem ipsumThis includes two command-line scripts:veikk: a daemon that services requests and performs the button mappings -- must be run as rootveikkctl: a CLI to configure the veikk daemonInstallInstall the package globally, so that the root user can access the scripts (necessary for running the daemon).TODO: notes about prerequisites...$sudopython3-mpipinstall--prefix=/usr/localveikk-config(If you have a venv set up, make sure it is not active -- you want to be using the global Python environment.)Uninstall$sudopython3-mpipuninstallveikk-configBuildPrerequisites: Python 3 (tested on 3.8.2), pip 3Initial setupIt's recommended to build this in a venv.Create, activate, and set up the venv.$python3-mvenvvenv
$.venv/bin/activate(venv)$pipinstall-rrequirements.txtYou only have to create the venv and install the requirements once (unless the dependencies change). To deactivate the venv:(venv)$deactivate
$# out of the venv nowTestingTo test the programs withoutpip install-ing them every time, you can use the helper scripts:(venv)$pythonInstall the package (locally)Theveikkandveikkctlpackages will be installed using distutils. These will expose thecommand line scriptsof the same name.(venv)$pipinstall.(venv)$veikk# run veikk config daemon(venv)$veikkctl# run veikk config interface
Package: veilcord
VeilCord.>CustomDiscordToolsGoingToBeUsedForMyProjectsAndAvailableToAnyoneElseWhoWantsToUse<Installationpip install veilcordExample UsagesfromveilcordimportVeilCordveilcord=VeilCord(session=...,# for custom tls_client sessionsdevice_type="browser",# types : browser, mobile, app (aka desktop)user_agent=...# for custom user agent)# GETTING X-Super-Propertiesxsup=veilcord.generateXProp()print(f"(+) Retrieved XSup:{xsup}")# GETTING ALL THE COOKIES AND FINGERPRINTfp,cookies=veilcord.getFingerprint(xsup,withCookies=True,# true or false -- will return cookies that are returned in the expirements reqcookieType="json"# if withCookies is true this can be either "json" or "cookiejar"  -- by default its cookiejar)print(f"(+) Retrieved Fingerprint:{fp}")print(f"(+) Retrieved Cookies:{cookies}")# returns a tuple.  [0] - Fingerprint  |  [1] - COOKIESJAR or JSON# GET THE NEW SESSION ID BS_,sessionID=veilcord.getSession(token="",)ifsessionID=="invalid token":print("invalid token :(")else:print(f"(+) Got Session ID:{sessionID}")## Getting Discord build numberbuildNum=VeilCord.getBuildNum()print(buildNum)Custom Sessionssession=veilcord.openSession(custom_rpc={"status":"online","since":0,"activities":[{"name":"Custom Status","type":4,"state":"vast#1337","emoji":""}],"afk":False})veilcord.getSession(token="",# obv the tokensession=session,# the session returned from veilcord.openSession()  (if u are using keepAlive)keep_alive=True,# keep the session alive until closed with veilcord.closeSession()show_hb=True# prints when it sends the heartbeat and when the next one is)# close the session, if keepAlive is enabled.veilcord.closeSession(session)>imvast@discord|imvast@github|vast.sh<
Package: veiled
veiledA very thin CLI wrapper aroundcryptography.fernet:Fernetfor symmetric encryption.I made this to use in CI things, so I can keep encrypted secrets in my git repositories,
and have my build agents decrypt them using a centralized key.installationpip install veiledIt's recommended to pin the install to a specific versionusageUse--helpto view command-specific usage.Usage: veil [OPTIONS] COMMAND [ARGS]...

Options:
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.

Commands:
  decrypt
  decrypt-file
  decrypt-yaml
  encrypt
  encrypt-file
  encrypt-yaml
  generate-key
  version
Package: veilid
Veilid Bindings for PythonCreate an application in Python using the distributedVeilidframework for app-to-app communication.PrerequisitesA headless Veilid node must be installed on the same host as the Python application. Install instructions can be foundhereVeilid Python makes heavy use of async and other bleeding edge functions requiring Python version >= 3.11.4UsageTo use:poetry add veilidorpip3 install veilidDevelopmentTo run tests:poetry run pytestTo update schema for validation with the latest copy from a runningveilid-server:./update_schema.shBasic Veilid App SetupA demo chat application is available to reviewhere.
Package: veils
Veilsveilsis a python implementation of a rubyveils package.
Long story short, it provides convenient object decorators for data memoization.Installationpip install veilsUsagefromveilsimportveilobj=veil(obj,methods={"__str__":"hello, world!","foo":"42"})str(obj)# returns "hello, world!"obj.foo()# returns "42"The methods__str__andfoowill return "Hello, world!" and "42" respectively
until some other method is called and the veil is "pierced".You can also useunpiercabledecorator, which will never be pierced: a very good instrument for data memoization.And it works the same way for asynchronous methods tooobj=veil(obj,async_methods={"foo":"42"})awaitobj.foo()# returns "42"And also for propertiesobj=veil(obj,props={"bar":"42"})obj.bar# equals "42"This library also extends the original one with a caching decoratormemo. Use it like this:fromveilsimportmemoobj=memo(obj,cacheable={"foo","bar","baz","__str__"}# 'cacheable' is a collection of methods (both regular and asynchronous)# and properties to be cached)Advanced usageThe python implementations of veil is somewhat tricky due to the magic methods which
are being accessed bypassing the__getattribute__method.
Therefore, this implementation, in this particular case, relies on metaclasses in order to define magic methods on the fly in the veil object so that they correspond to those defined in the object being wrapped.veilandunpiercableare just shortcuts toVeilFactory(Veil).veil_ofandVeilFactory(Unpiercable).veil_of.In some advanced cases you may want a different list of magic methods to be transparent or proxied by a veil object. In oder to obtain such behavior
you may create a custom veil factory like so:VeilFactory(Veil, proxied_dunders, naked_dunders).naked_dundersis a list of methods bypassing the veil.proxied_dundersis a list of methods to be veiled.
Package: veinmind
问脉 Python Binding问脉 Python Binding 定义了问脉 SDK 在 Python 语言中接口，使得在 Python 语言中使用问脉 SDK 成为可能。您需要先安装问脉 SDK 以开始使用 Python Binding，安装方式可参考本仓库的 README 文档。问脉 Python Binding 已经上传到 pypi.org，因此可以直接执行以下指令拉取最新版本的 Python 包：pipinstallveinmind或者您也可以通过手动构建的方式，在本目录执行以下指令手动构建并安装问脉 Python Binding（需安装对应的 Python 构建工具）：python-mbuild
pipinstalldist/veinmind-*.whl安装完成后即可在 Python 代码中通过import veinmind的方式导入并开始使用问脉 SDK。
Package: veins-gym
Veins-GymVeins-Gym exports Veins simulations as Open AI Gyms.
This enables the application of Reinforcement Learning algorithms to solve problems in the VANET domain, in particular popular frameworks such as Tensorflow or PyTorch.To install, simply runpip install veins-gym(Veins-Gym on PyPI).LicenseThis project is licensed under the terms of the GNU General Public License 2.0.Hints and FAQHere are some frequent issues with Veins-Gym and its environments.Please also checkout the guide on how to build new environments indoc/getting_started.md.Protobuf Files Out of SyncSometimes the C++ code files generated byprotocget out of sync with the installed version oflibprotobuf.
This leads to errors at link-time of the environment (not veins-gym itself, which does not contain C++-code) like:undefined reference to google::protobuf::internal::ParseContext::ParseMessageSolution:Re-generate the.pb.ccand.pb.hfiles in the environment.check/update the installation ofprotobuf-compilerandlibprotocon your system (package names may differ based on the Linux distribution)remove the generatedsrc/protobuf/veinsgym.pb.handsrc/protobuf/veinsgym.pb.ccfiles (or however they may be called in the environment)re-generate the protobuf-files by runningsnakemake src/protobuf/veinsgym.pb.cc src/protobuf/veinsgym.pb.h(adapt for the files in your environment.Also seeIssue #1 of serpentine-env.Showing the (Debug) Output of Veins through the AgentNormally, Veins-Gym swallows the standard output of veins simulations started by its environments.
This reduces output clutter but makes debugging harder as error messages are not visible.Solution:Enable veins standard output by adjustinggym.registerwhen running your agent:gym.register(# ...kwargs={# ..."print_veins_stdout":True,# enable (debug) output of veins})Starting Veins Simulations SeparatelySometimes you want to run Veins simulations separately, e.g., with custom parameters, in a (different) container, or within a debugger.
This is hard to achieve and less flexible when Veins-Gym launches the Veins simulation, as it does by default.Solution:Disable auto-start of Veins in your agent's environment:gym.register(# ...kwargs={# ..."run_veins":False,# do not start veins through Veins-Gym"port":5555,# pick a port to use})Then run your veins simulation manually, typically from ascenariodirectory, in which theomnetpp.inifile is located:./run-uCmdenv'--*.gym-connection.port=5555'Make sure to use the same port there.
Also, consider starting Veins first in order to avoid timeouts.Avoid TimeoutsVeins-Gym expects a request from the Veins simulation after a certain time afterenv.reset(which may in turn have started the Veins simulation).
If the Veins simulation takes a longer amount of (wall-clock) time to reach the point where the request is sent, the agent's environment may have timed out.
This is intended to notify about stuck simulations, but may not work as intended if the simulation is more complex or the host' hardware is less powerful than expected.Solution:Increase the timeout when registering the gym environment.gym.register(# ...kwargs={# ..."timeout":10.0,# new timeout value (in seconds)})
Package: vektonn
Python client for VektonnVektonnis a high-performance battle-testedkNN vector searchengine for your data science applications.
It helps you manage vectors' lifecycle and radically reduces time to market.Seedocumentationfor more info.InstallationInstall the latest version:$pipinstallvektonnInstall specific version:$pipinstallvektonn==1.2.3Upgrade to the latest version:$pipinstall--upgradevektonnUsageHaving Vektonn running onlocalhost:8081and configured forQuickStartexamples one can access it with synchronous Python client:fromvektonnimportVektonnvektonn_client=Vektonn('http://localhost:8081')or asynchronous one:fromvektonnimportVektonnAsyncvektonn_client_async=VektonnAsync('http://localhost:8081')To upload data to Vektonn useupload()method:fromvektonn.dtosimportAttribute,AttributeValue,InputDataPoint,Vectorvektonn_client.upload(data_source_name='QuickStart.Source',data_source_version='1.0',input_data_points=[InputDataPoint(attributes=[Attribute(key='id',value=AttributeValue(int64=1)),Attribute(key='payload',value=AttributeValue(string='sample data point')),],vector=Vector(is_sparse=False,coordinates=[3.14,2.71]))])To query Vektonn forknearest data points to the givenquery_vectorusesearch()method:fromvektonn.dtosimportVector,SearchQueryk=10query_vector=Vector(is_sparse=False,coordinates=[1.2,3.4])search_results=vektonn_client.search(index_name='QuickStart.Index',index_version='1.0',search_query=SearchQuery(k=k,query_vectors=[query_vector]))print(f'For query vector{query_vector.coordinates}{k}nearest data points are:')forfdpinsearch_results[0].nearest_data_points:attrs={x.key:x.valueforxinfdp.attributes}distance,vector,dp_id,payload=fdp.distance,fdp.vector,attrs['id'].int64,attrs['payload'].stringprint(f' - "{payload}" with id ={dp_id}, vector ={vector.coordinates}, distance ={distance}')
Package: vel
This repository is my project to bring velocity to deep-learning research, by providing tried and tested large pool of
prebuilt components that are known to be working well together.I would like to minimize time to market of new projects, ease experimentation and provide bits of experiment management
to bring some order to the data science workflow.Ideally, for most applications it should be enough to write a config file wiring existing components together.
If that’s not the case writing bits of custom code shouldn’t be unnecessarily complex.This repository is still in an early stage of that journey but it will grow as I’ll be putting some work into it.
Package: vela
Vela (alpha)A simple framework for Gemini servers inspired by Flask and Express.js.fromvelaimportServer# SSL certificate and private key.app=Server(cert='cert.pem',key='key.pem')@app.route('/')defhello(req,res):res.send_file('hello.gmi')PORT=5000print(f'Server is listening on port{PORT}...')app.listen(PORT)
Package: velbus-aio
velbus-aioVelbus Asyncio, a library to support theVelbushome automation system.This Lib is a rewrite in python3 with asyncio of thepython-velbusmodule.
Part of the code from the above lib is reused.
Its also build on top of theopenHab velbus protocol description.The latest version of the library is published as a python package onpypiSupported connections:TypeExampleDescriptionserial/dev/ttyACME0a serial device(tcp://)ip:port192.168.1.9:1234An ip address + tcp port combination, used in combination with any velbus => tcp gateway, the tcp:// part is optionaltls://ip:porttls://192.168.1.9:12345A connection toSignumtls://auth@ip:porttls://iauthKey@192.168.1.9:12345A connection toSignumwith uthenticationDevelopmentSee thecontributingguidelines.
Package: velenium
veleniumInteract with an app using visual definitions of elementssample usageimportunittestfromappiumimportwebdriverimportveleniumasveclassVisualTestCase(unittest.TestCase):defsetUp(self):# given a driverself.driver=webdriver.Remote('http://localhost:4723/wd/hub',desired_capabilities={...})# or for local desktop automationself.driver=ve.VisualDriver()deftearDown(self):self.driver.quit()deftest_visual(self):# create a visual definitionelement=ve.VisualElement(self.driver,'path/to/pattern.png')# create a visual definition using multiple images using glob pathelement=ve.VisualElement(self.driver,'path/to/patterns/**/pattern_*.png')# assert element is visibleself.assertTrue(element.is_visible())# wait until element is visible, raises TimeoutException from selenium if timeoutelement.wait_until_visible()# wait until element is not visible, raises TimeoutException from selenium if timeoutelement.wait_until_not_visible()# find only in de middle regionve.VisualElement(self.driver,'path/to/pattern.png',region=ve.LEFT_SIDE).click()# custom region, upper right in the exampleve.VisualElement(self.driver,'path/to/pattern.png',region=((0.5,0),(1,0.5))).click()# click on element on de right borderve.VisualElement(self.driver,'path/to/pattern.png',target=ve.RIGHT).click()# custom region, center right in the exampleve.VisualElement(self.driver,'path/to/pattern.png',target=(0.5,0)).click()# refresh position of element and clickelement.reset_object().click()# click and wait no visibility of the elementelement.click().wait_until_not_visible()# find with different similarity threshold, by default is 80%ve.VisualElement(self.driver,'path/to/pattern.png',similarity=0.7).click()# click the 2nd best match of elementve.VisualElement(self.driver,'path/to/pattern.png',order=1).click()# click element at 2nd position in vertical orderve.VisualElement(self.driver,'path/to/pattern.png',order=1,disposal=ve.VERTICAL).click()# oritem=ve.VisualElement(self.driver,'path/to/pattern.png',disposal=ve.VERTICAL)item.matches[1].click()# click element at 3er position in horizontal orderve.VisualElement(self.driver,'path/to/pattern.png',order=2,disposal=ve.HORIZONTAL).click()# oritem=ve.VisualElement(self.driver,'path/to/pattern.png',disposal=ve.HORIZONTAL)item.matches[2].click()# use another cv2 method to get the match, by default uses CV_CCOEFFve.VisualElement(self.driver,'path/to/pattern.png',method=ve.CV_SQDIFF).wait_until_visible()# count matchesprint(len(element.matches))# orprint(element.count)# iterate over matchesforeinelement.matches:e.click()# enable debug images in "temp/" folderelement.debug()# disable debug imageselement.debug(False)if__name__=='__main__':unittest.main()
Package: velesresearch
Veles is a free and open source Python research package, primarly for social scientists. It's goal is to provide an interface for surveys and chronometric experiments. It combines the power of Survey.js and PsychoJS (PsychoPy) with Python interface to create self contained research units that can be self-hosted. Veles' own web service for creating and hosting experiments are planned.Veles is in pre-alpha development, but the goal features are:Free and open source.Text-based, so automatable and easily modifiable.Integration with GitHub.Ability to use JavaScript and CSS directly.Open source documentation.Python-based, so every Python tools work.Esay to collaborate through git.VS code extension pack.Custom redirection in the end (for panels).PsychoPy integration.JavaScript code preview.Modifiable themes.InstallationYou can install the current version of Veles with:pipinstallvelesresearchYou can install development version (unstable) with:pipinstallvelesresearch@git+https://github.com/jakub-jedrusiak/VelesResearch.gitNote thatyarnis requiredfor Veles to work. You can download it fromhereor use your package manager.# Ubuntu (and other apt distros)sudoaptinstallnpm# Archsudopacman-Snpm# wingetwingetinstallOpenJS.NodeJS.LTS# Chocolateychocoinstallnodejs-lts# HomebrewbrewinstallnodeAfter installingnode.js, activateyarnwith this command in the terminal:corepack enableIf everything went well, commandyarn -vshould return a version number.
Package: veliberator
Veliberatoris a Python module who provides an API for getting the
informations related to the stations of the Velib’ bike renting network.ContentsAPI UsageTheveliberatorscriptSettingsAPI UsageTo retrieve the informations of a station you only have to have the ID of
the station and a database synchronized with all the available stations.Then in your Python interpreter you can play with the API:>>> from veliberator.stations import Station
>>> station = Station(42008)
>>> station.informations.address
u'128 AVENUE DANIEL CASANOVA'The informations attributes contains many data such as:addresspostal_codecitylat(the latitude of the GPS coordonates)lng(the longitude of the GPS coordonates)opened(True if the station is open)bonus(True if the station is a bonus station)You could retrieve the live status of the station easily:>>> station.status.available
24
>>> station.status.free
1
>>> station.status.total
25
>>> station.status.closed
0More useful, you can retrieve the closest stations sorted by distance:>>> station.stations_around
[<StationInformation "42006" (23 RUE PIERRE BROSSOLETTE)>, <StationInformation "42010" (1 RUE ROBESPIERRE)>, ...]TheveliberatorscriptWrite an API for developers is a nice idea, but write an useful script
who uses the API for the end-user is a much nicer idea.So the package provide a script namedveliberator.For exemple if I need to know the status of the Velib’ station with the ID:42008, I simply need to run this command:$ veliberator 42008This command will display the status of the station and find other stations
around if no parking place are available.Theveliberatorscript can also find the Velib’ stations around an
address, by simply launching the script.Note that at the first run of the script a database will be created for
registering all the available stations.For update or create the database you can run this command:$ veliberator --synchronizeRun this command for more informations:$ veliberator -hSettingsThe veliberator module can be configured by a configuration file.
Take a look on the fileetc/veliberator-sample.cfgfor having a example
of the options availables.The module is going to look in your home directory if a file named.veliberator.cfgis present and inetc/veliberator.cfgfrom your
current working directory.
Package: velib-spot-predictor
Velib Spot PredictorThis project aims at developing an end-to-end project using Paris Open Data on velib stations in order to predict the available Velib spots.Getting startedUsageLaunching the APIuvicornvelib_spot_predictor.api:app--reloadDeploymentDockerImage is published in clementcome/velib repository.PyPIPackage is published under velib-spot-predictor package.