Saravanan666/pypi-org huggingface dataset:
Package: vtece4564-websockets
vtece4564-websocketsThis is a fork of the excellentwebsocketslibrary, created to facilitate use of a patched version that properly
supports the threadedWebSocketServerimplementation on Windows.
Apull requesthas been submitted to the main project to incorporate the fix in the official
distribution.Unless you're a student of Virginia Tech's ECE 4564 Network Applications
Design course in Spring 2023, you almost certainly want to use the officialwebsocketsdistribution. This
distribution will be removed from PyPI in May 2023.BackgroundFor a senior-level university network apps design course, my students are
using the threaded version ofWebSocketServeras part of their final
project. While the project required their work to run successfully in
containers on Linux, many of them use Windows for their development
workstation.We discovered thatserve_foreverthrows an error at startup on Windows due
to the use ofselect.pollas the means to block while waiting for incoming
socket connections. The documentation forpollindicates that it is not
supported on all platforms, and apparently Windows is one such platform.We patchedWebSocketServerto instead useselectors.DefaultSelectorwhich
determines the best supported mechanism for I/O multiplexing on the runtime
platform. The functionality is the same, but it works on a wider range of
platforms.After switching toselectors.DefaultSelector, we discovered that Windows
also doesn't support I/O multiplexing using pipes or files -- only sockets.
we removed the use ofos.pipefor the shutdown mechanism. It was redundant
anyway -- simply closing the listener socket in the shutdown method is
sufficient to cause the selector to return. Subsequently, the call tosocket.accept(on the closed listener socket) causes the loop inserve_foreverto terminate as expected.We tested the change on Windows, Mac OS X, and a Linux container, and it
seems that it correctly supports all three platforms.
Package: vtelem
vtelem (0.3.5)A real-time telemetry library.Command-line Options$ ./venv3.8/bin/vtelem -h

usage: vtelem [-h] [--version] [-v] [-C DIR] [-i {lo,enp0s25,wlo1}] [-p PORT]
              [--ws-cmd-port WS_CMD_PORT] [--ws-tlm-port WS_TLM_PORT]
              [--tcp-tlm-port TCP_TLM_PORT] [-t TICK]
              [--telem-rate TELEM_RATE] [--metrics-rate METRICS_RATE]
              [--time-scale TIME_SCALE] [-a APP_ID] [-u UPTIME]

A real-time telemetry library.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -v, --verbose         set to increase logging verbosity
  -C DIR, --dir DIR     execute from a specific directory
  -i {lo,enp0s25,wlo1}, --interface {lo,enp0s25,wlo1}
                        interface to bind to
  -p PORT, --port PORT  http api port
  --ws-cmd-port WS_CMD_PORT
                        websocket command-interface port
  --ws-tlm-port WS_TLM_PORT
                        websocket telemetry-interface port
  --tcp-tlm-port TCP_TLM_PORT
                        tcp telemetry-interface port
  -t TICK, --tick TICK  lenth of a time tick
  --telem-rate TELEM_RATE
                        rate of the telemetry-servicing loop
  --metrics-rate METRICS_RATE
                        default rate of internal metrics data
  --time-scale TIME_SCALE
                        scalar to apply to the progression of time
  -a APP_ID, --app-id APP_ID
                        a value that forms the basis for the application
                        identifier
  -u UPTIME, --uptime UPTIME
                        specify a finite duration to run the serverDocumentationProject documentation can be found inMarkdownfiles in thedocs/directory.Primitive TypesFrame TypesMessage TypesChannel IdentifiersSerializable Data StructuresInternal Dependency GraphA coarse view of the internal structure and scale ofvtelem's source.
Generated usingpydeps(viamk python-deps).
Package: vtemplate
vtemplateA python library to create a structured directories for different kinds of projectsThis is created for structuring of projects inside virtusa
all projects are roughlt divided into 4 catogeries and a specific structure in proposed for easc. This library helps create the strcuture of one of the 4 kind as specifiedInstallationThis can be installed with pippip install vtemplateOr you can download the git repo and navigate to dist folder vtemplate>vtemplate>dist  and usepip install vtemplate-*.*.*-py3-none-any.whlchange * to respective releaseUsageyou can import the package and call create with the project name
for exampleimport vtemplate as vt
vt.create('project name')this starts creating the project structure
There will be some questions you need to answerto get the full idea see example.ipynb
Package: vtex
VTEXVTEX API Wrapper for PythonExample codeYou just need to pass your credentials to the Vtex instance,
and fetch the endpoints.fromvteximportVtexclient=Vtex(account_name,environment,app_key,app_token)result=client.logistics.get_all_carriers()js=result.jsonstatus_code=result.status_coderesult will be the json response from the get_all_carriers request
Package: vtexpy
VTEXPYUnofficial Python SDK for VTEX APIThis is an unofficial Python SDK designed to facilitate integration with the VTEX API.FeaturesEasy to use Python interface for calling endpoints on the VTEX API.Getting StartedRequirementsPython >= 3.8httpx >= 0.25InstallationpipinstallvtexpyUsagefromvteximportVTEXvtex_client=VTEX(account_name="<ACCOUNT_NAME>",app_key="APP_KEY",app_token="<APP_TOKEN>")carrier_list_response=vtex_client.logistics.list_carriers(page=1,page_size=100)
Package: vtext
vtextThis is a Python wrapper for the Rust vtext crate.This package aims to provide a high performance toolkit for ingesting textual data for
machine learning applications.FeaturesTokenization: Regexp tokenizer, Unicode segmentation + language specific rulesStemming: Snowball (in Python 15-20x faster than NLTK)Token counting: converting token counts to sparse matrices for use
in machine learning libraries. Similar toCountVectorizerandHashingVectorizerin scikit-learn but will less broad functionality.Levenshtein edit distance; Sørensen-Dice, Jaro, Jaro Winkler string similaritiesInstallationvtext requires Python 3.6+, numpy 1.15+ and can be installed with,pip install vtextDocumentationProject documentation:vtext.io/doc/latest/index.htmlLicensevtext is released under theApache License, Version 2.0.
Package: vtf2img
vtf2imgA Python library to convertValve Texture Format (VTF)files to images.InstallationWith pip$ pip install vtf2imgFrom source$ git clone https://github.com/julienc91/vtf2img
$ cd vtf2img
$ python setup.py installQuickStartAs a libraryfromvtf2imgimportParservtf_file="materials/models/weapons/customization/paints/custom/workshop/ak47_asiimov.vtf"parser=Parser(vtf_file)header=parser.headerprint(f"VTF version:{header.version}, Image size:{header.width}x{header.height}")# VTF version: 7.5, Image size: 2048x2048image=parser.get_image()image.show()image.save("ak47_asiimov.png")The result ofget_imageis an instance ofPillow'sImageclass,
which allowsexportingin many different formats (PNG, JPG, BMP, ...).As a CLI commandIf you installed the package as instructed in the previous section, avtf2imgcommand should
be available.$ vtf2img dragon_awp.wtf awp_dragon_lore.pngOtherwise, you can execute the package's__main__.pyfile with:$ python -m vtf2img dragon_awp.wtf awp_dragon_lore.pngLimitationsmany image formats supported by the VTF format are not (yet?) supported by this program (see the section below)this program only considers the hi-res image contained in the VTF fileall the flags that might have been set by the VTF's creator are purely ignoredVTF compatibilityWorks with VTF version 7.2+.Compatibility of image formats:FormatSupportedA8✗ABGR8888✓ARGB8888✓BGR565✗BGR888✓BGR888_BLUESCREEN✗BGRA4444✗BGRA5551✗BGRA8888✓BGRX5551✗BGRX8888✗DXT1✓DXT1_ONEBITALPHA✗DXT3✗DXT5✓I8✗IA88✗P8✗RGB565✗RGB888✓RGB888_BLUESCREEN✗RGBA16161616✗RGBA16161616F✗RGBA8888✓UV88✗UVLX8888✗UVWQ8888✗Most VTF Files are using either DXT1 or DXT5.Note:DXT1 and DXT5 decoding algorithms were adapted fromHarry Jeffery's implementation
onvtf2png.
Package: vt-graph-api
VirusTotal Graph APIVirusTotal Graph API allows you programatically interact with VirusTotal dataset.Installing the APIInstall VirusTotal Graph Python API.git clone https://github.com/VirusTotal/vt_graph_api
cd vt_graph_api
pip install . --userVerifying the installation>>>importvt_graph_api>>>vt_graph_api.__version__X.X.XDocumentationFor more information about how to usevt_graph_apivisit thedocumentationpage.You may also want to take a look at some of ourexample scripts,
which besides doing useful work for you can be used as a guidance on how to usevt_graph_api.In addition, you can find the documentation for the VirusTotal Graph REST API at theAPI referenceTest it!Use tox to test:>>> toxChangelogV2.2.0Support for loading Graphs with special relationships (Groups, Intelligence, Livehunt, Retrohunt, Commonalities).New method for creating groups of nodes.V2.1.0Support for setting Graph representation.V2.0.0Removedcarbonblack_childrenandcarbonblack_parentrelationships in File entity.Create a Collection from a Graph.Addednew entitytypes:collectionreferencewhoisssl_certAddednew relationships:Files:dropped_files, collections, email_attachments, itw_ips, overlay_children, pe_resource_children, references, urls_for_embedded_jsDomains:historical_ssl_certificates,
historical_whois,
caa_records,
cname_records,
mx_records,
ns_records,
soa_records,
collections,
references.IP Addresses:historical_ssl_certificates,
historical_whois,
collections,
references.Urls:contacted_domains,
contacted_ips,
redirects_to,
urls_related_by_tracker_id,
communicating_files,
referrer_files,
embedded_js_files,
collections,
referencesCollections:files,
domains,
ip_addresses,
urls,
references.Whois:network_location.V1.1.3Bug fixing.V1.1.2Bug fixing.V1.1.1Bug fixing.Fixing documentation.V1.1.0Added download graph screenshot from VirusTotal.V1.0.1Fixing documentation.V1.0.0Added autosearch algorithm to find links between graph's nodes.AcceptMD5andSHA1as valid ID for nodes withfile type.AddedVTIntelligencesearch for nodes without any information.Accept custom node types.Added load graph from VirusTotal.Added clone graph from VirusTotal.
Package: vthread
You can implement thread pools by adding a single line of code without changing the order of any previous code.importvthread@vthread.pool(3)# just use this line to make pool, Create a threadpool with three threadsdefcrawl(i):importtime;time.sleep(1)# Simulation time consumingprint("crawl_url:",i)urls=["http://url1","http://url2","http://url3","http://url4"]foruinurls:crawl(u)# This function becomes a function that adds the original function to the thread pool.It provides a method for grouping the thread poolimportvthreadpool_1=vthread.pool(5,gqueue=1)# open a threadpool with 5 threads named 1pool_2=vthread.pool(2,gqueue=2)# open a threadpool with 2 threads named 2@pool_1deffoolfunc1(num):time.sleep(1)print(f"foolstring1, test3 foolnumb1:{num}")@pool_2deffoolfunc2(num):time.sleep(1)print(f"foolstring2, test3 foolnumb2:{num}")@pool_2deffoolfunc3(num):time.sleep(1)print(f"foolstring3, test3 foolnumb3:{num}")foriinrange(10):foolfunc1(i)foriinrange(4):foolfunc2(i)foriinrange(2):foolfunc3(i)# default gqueue is 0
Package: vti-jsonrest
JSONREST is a client library for discoverable REST APIs using JSON payloads.>>>importjsonrest>>>j=jsonrest.JSONREST('http://example/')>>>dir(j)['foo','bar','baz']>>>j.fooJSONREST('http://example/foo/',['x','y','z'])>>>j.foo.x=42>>>print(j.foo.x)42JSONREST exposes the REST API as an object-oriented interface, with the object hierarchy mirroring the directory structure of the URLs. In order to make this work, it depends on the server responding to GET requests on directories with a JSON array containing all available API endpoints (or other directories) that reside there, with directories identified by a trailing forward-slash (/).InstallingJSONREST is available onPyPI:$python-mpipinstallvti-jsonrestDocumentationFull documentation is available atjsonrest.readthedocs.io.Supported VersionsJSONREST officially supports Python 2.7 & 3.6+.FeaturesMakes REST APIs behave like a normal python objectSupports tab-completion in REPLs and Jupyter notebooksKeep-Alive & Connection Pooling
Package: vtils
VTILSUtility functions from VTILSfrom vtils.util import Cipher  
cipher = Cipher(key_text)  
t1 = cipher.encrypt(plain_text)  
t2 = cipher.decrypt(t1)Encrypt Filefrom vtils.util import FileUtils
svc = FileUtils(key_text)
svc.encrypt_file(src, dest)Decrypt Filefrom vtils.util import FileUtils
svc = FileUtils(key_text)
svc.decrypt_file(src, dest)AWS Cloud Utils (AwsCloudtils)Upload Filefrom vtils.cloud import AwsCloudtils
svc = AwsCloudtils(accesskey, secretkey)
success = svc.upload_file(src, s3bucket)
if not success:
    print('Failed to upload file to s3 bucket')Download Filefrom vtils.cloud import AwsCloudtils
svc = AwsCloudtils(accesskey, secretkey)
success = svc.download_file(s3bucket, objname, dest)
if not success:
    print('Failed to download file from s3 bucket')
Package: vtime
PalettesTime related functionsAuthorsArnau VilloroLicenseThe content of this repository is licensed under aMIT.NomenclatureBranches and commits use some prefixes to keep everything better organized.Branchesf/:featuresr/:releasesh/:hotfixsCommits[NEW]new features[FIX]fixes[REF]refactors[PYL]pylintimprovements[TST]tests
Package: v-time
PalettesTime related functionsAuthorsArnau VilloroLicenseThe content of this repository is licensed under aMIT.NomenclatureBranches and commits use some prefixes to keep everything better organized.Branchesf/:featuresr/:releasesh/:hotfixsCommits[NEW]new features[FIX]fixes[REF]refactors[PYL]pylintimprovements[TST]tests
Package: vtivrt
vtivrt is a library for decoding/encoding of VITA Radio Transport (VITA 49) data streams, for use with VTI Instruments products.>>>importvtivrt>>>reader=vtivrt.VtiVrtReader('example.local',9901)>>>packet=reader.read(True)>>>packet.stream_id257>>>packet.timestampDecimal('1646852.220398853')>>>packet.data[-5.2093963623046875,-5.208981990814209,-5.208486080169678,-5.207897663116455]>>>packet.context[0].data.trigger_timestampDecimal('1646852.220391333')The main classes of interest exposed by vtivrt are:vtivrt.reader.VtiVrtReader- Connects to a streaming socket, performs handshaking with the server, and reads data.vtivrt.reader.VtiVrtThread- Creates multiple instances ofvtivrt.reader.VtiVrtReaderand collates data from all of them in a background thread.vtivrt.packet.VtiVrtPacket- Represents one VRT packet, and optionally its associated context packets.Installingvtivrt is available onPyPI:$python-mpipinstallvtivrtDocumentationFull documentation is available atvtivrt.readthedocs.io.Supported Versionsvtivrt officially supports Python 3.6+.FeaturesAllows reading and writing VRT data streams to transfer high speed streaming data to and from VTI Instruments products.
Package: vtk
IntroductionVTK is an open-source software system for image processing, 3D
graphics, volume rendering and visualization. VTK includes many
advanced algorithms (e.g., surface reconstruction, implicit modeling,
decimation) and rendering techniques (e.g., hardware-accelerated
volume rendering, LOD control).VTK is used by academicians for teaching and research; by government
research institutions such as Los Alamos National Lab in the US or
CINECA in Italy; and by many commercial firms who use VTK to build or
extend products.The origin of VTK is with the textbook "The Visualization Toolkit, an
Object-Oriented Approach to 3D Graphics" originally published by
Prentice Hall and now published by Kitware, Inc. (Third Edition ISBN
1-930934-07-6). VTK has grown (since its initial release in 1994) to a
world-wide user base in the commercial, academic, and research
communities.Learning ResourcesGeneral information is available at theVTK Homepage.Community discussion takes place on theVTK Discourseforum.Commercialsupport and trainingare available fromKitware.Doxygen-generated nightly reference documentation is
availableonline.There is now a large collection ofVTK Examplesthat
showcase VTK features and provide a useful learning resource.Reporting BugsIf you have found a bug:If you have a patch, please read theCONTRIBUTING.mddocument.Otherwise, please join theVTK Discourseforum and ask
about the expected and observed behaviors to determine if it is
really a bug.Finally, if the issue is not resolved by the above steps, open
an entry in theVTK Issue Tracker.RequirementsIn general VTK tries to be as portable as possible; the specific configurations below are known to work and tested.VTK supports the following compilers:GCC 4.8 or newerClang 3.3 or newerApple Clang 5.0 (from Xcode 5.0) or newerMicrosoft Visual Studio 2015 or newerIntel 14.0 or newerVTK supports the following operating systems:Windows Vista or newerMac OS X 10.7 or newerLinux (ex: Ubuntu 12.04 or newer, Debian 4 or newer)BuildingSeebuild.md(in Documentation/dev/) for build instructions.ContributingSeeCONTRIBUTING.mdfor instructions to contribute.LicenseVTK is distributed under the OSI-approved BSD 3-clause License.
SeeCopyright.txtfor details.
Package: vtk-addon
vtkAddonOverviewThis module contains general-purpose features that may be integrated into VTK library in the future.ContactQuestions regarding this project should be posted on 3D Slicer forum:https://discourse.slicer.orgHistoryThe original vtkAddon library was created and integrated into Slicer by Andras Lasso (PerkLab, Queen's University)
in March 2015, and maintained by the Slicer community since then.In July 2015, Bill Lorensen copied the vtkAddon sources into adedicated repositoryand added
support to build the library as a VTK remote module. Since this new repository duplicated the content already available
in the Slicer source tree, it was not maintained.Finally, in March 2020, this GitHub project was created by extracting the history from the main Slicer repository
and the project wasintegratedinto Slicer had a remote project.LicenseThis project is distributed under the BSD-style Slicer license allowing academic and commercial use without any restrictions. Please see theLICENSEfile for details.
Package: vtke
vtke====-----.. contents:: **Table of Contents**:backlinks: noneInstallation------------vtke is distributed on `PyPI <https://pypi.org>`_ as a universalwheel and is available on Linux/macOS and Windows and supportsPython 2.7/3.5+ and PyPy... code-block:: bash$ pip install vtkeLicense-------vtke is distributed under the terms of- `Apache License, Version 2.0 <https://choosealicense.com/licenses/apache-2.0>`_
Package: vtk-onepoint
IntroductionVTK is an open-source software system for image processing, 3D
graphics, volume rendering and visualization. VTK includes many
advanced algorithms (e.g., surface reconstruction, implicit modeling,
decimation) and rendering techniques (e.g., hardware-accelerated
volume rendering, LOD control).VTK is used by academicians for teaching and research; by government
research institutions such as Los Alamos National Lab in the US or
CINECA in Italy; and by many commercial firms who use VTK to build or
extend products.The origin of VTK is with the textbook "The Visualization Toolkit, an
Object-Oriented Approach to 3D Graphics" originally published by
Prentice Hall and now published by Kitware, Inc. (Third Edition ISBN
1-930934-07-6). VTK has grown (since its initial release in 1994) to a
world-wide user base in the commercial, academic, and research
communities.Learning ResourcesGeneral information is available at theVTK Homepage.Community discussion takes place on theVTK Discourseforum.Commercialsupportandtrainingare available fromKitware.Doxygen-generated nightly reference documentation is
availableonline.There is now a large collection ofVTK Examplesthat
showcase VTK features and provide a useful learning resource.Reporting BugsIf you have found a bug:If you have a patch, please read theCONTRIBUTING.mddocument.Otherwise, please join theVTK Discourseforum and ask
about the expected and observed behaviors to determine if it is
really a bug.Finally, if the issue is not resolved by the above steps, open
an entry in theVTK Issue Tracker.RequirementsIn general VTK tries to be as portable as possible; the specific configurations below are known to work and tested.VTK supports the following compilers:GCC 4.8 or newerClang 3.3 or newerApple Clang 5.0 (from Xcode 5.0) or newerMicrosoft Visual Studio 2015 or newerIntel 14.0 or newerVTK supports the following operating systems:Windows Vista or newerMac OS X 10.7 or newerLinux (ex: Ubuntu 12.04 or newer, Debian 4 or newer)BuildingSeebuild.md(in Documentation/dev/) for build instructions.ContributingSeeCONTRIBUTING.mdfor instructions to contribute.LicenseVTK is distributed under the OSI-approved BSD 3-clause License.
SeeCopyright.txtfor details.
Package: vtk-u3dexporter
vtk-u3dexportervtk-u3dexporteris a VTK module for exporting a VTK 3D scene to the U3D file format, which can be embedded into PDF files.It is available as both C++ class and a Python package.InstallationYou can installvtk-u3dexportervia pip:pipinstallvtk-u3dexporterUsageHere is a brief example of how to usevtk-u3dexporterto export a simple cube scene:importosimportvtkfromvtkimportvtkU3DExporter# Define the cube sourcecube=vtk.vtkCubeSource()# Define the cube mappercubeMapper=vtk.vtkPolyDataMapper()cubeMapper.SetInputConnection(cube.GetOutputPort())# Define the cube actorcubeActor=vtk.vtkActor()cubeActor.SetMapper(cubeMapper)# Define the render window and rendererrenderWindow=vtk.vtkRenderWindow()renderWindow.OffScreenRenderingOn()renderer=vtk.vtkRenderer()renderWindow.AddRenderer(renderer)# Add the cube to the rendererrenderer.AddActor(cubeActor)# Automatically reset the camerarenderer.ResetCamera()# Define the output file name, which will have the ".u3d" extension appended automaticallyfilePath="cube"# Export to U3Du3dExporter=vtkU3DExporter.vtkU3DExporter()u3dExporter.SetFileName(filePath)u3dExporter.SetInput(renderWindow)u3dExporter.Write()# Check that the file existsassertos.path.exists(f"{filePath}.u3d")In this example, we create a simple cube scene using VTK, add it to a renderer, and then export it to U3D format usingvtk-u3dexporter. We then verify that the output file exists.Licensevtk-u3dexporteris distributed under the Apache License 2.0. Please see theLICENSEfile for details.ResourcesVTK websiteU3D file format specification