Saravanan666/pypi-org huggingface dataset:
Package: vcg
VCGInstallpipinstallgit+http://git.hypercube.top/ipic/vcg.gitor through pypipipinstallvcgFunctionslist_dirfromvcgimportlist_dir,get_postfixforname,fileinlist_dir(".",condition=get_postfix(".mp4"),key=lambdax:x[0]):print(name,file)notifyfromvcgimportnotifywithnotify("admin@hypercube.top",debug=True):raiseNotImplementedErrorsetdebug=Trueto disable notify temporary.make_joinimportvcgfolder=vcg.make_join("data","what")print(folder)# so you created a folder named "data/what"mkdirimportvcgvcg.mkdir("data","ping")# create two folders "data" and "ping"partitionReturns a new list with elements of which is a list of certain size.partition([1,2,3,4],3)# you get [[1, 2, 3], [4]]flattenfromvcgimportflattenflatten([[1,2,3],[4]])#[1,2,3,4]save_jsonsave_json(file,obj)load_jsonobj=load_json(file)ClassesHostSpecificfromvcgimportHostSpecificspec=HostSpecific("data/spec.json")print(spec.what)print(spec["what"])ConfigfromvcgimportConfigconfig=Config(key="cfg")config.add_post_arg("name",lambdaargs:args.cfg)config.add_argument("--no_flip",action="store_true",help="specified if no flipping")print(config.parse_args())# Namespace(cfg='data/test.yaml', name='data/test.yaml', no_flip=True)
Package: vChatGPT
vChatGPTYou can talk to and listen to ChatGPT.ScreenshotInstallation$pipinstallvChatGPTHow to run vChatGPT$exportOPENAI_API_KEY="52-DIGIT-YOUR_API_KEY"# Available on https://platform.openai.com/account/api-keys$python-mvChatGPT
Package: vc-hid
#Copyright (c) 2021 lorry_rui#//////////usage://///////////////#for HID use#/////////////////////////////////////////#VC_tde USE only  @ logitech , Lorry RUihttps://pypi.org/project/vc-hidhttps://github.com/Lorrytoolcenter/VC-HID.gitSample code:from vc_hid import vc_hid as hidvid="046D" ## this Logi vid
pid="89a"  ## this is logi Rally bar PIDpid1="867"  ## this is Logi meetup PIDmousepid="c332"
setID="28"
readID="29"
LED=""
mousebutton="a"
controlID=20
readnumber=20test = hid.HID_class()if(name)=="main":
anotherCMD=[0,0,0,0]passflag,data=test.hidset(pid1,setID,controlID,readnumber,anotherCMD)
print(passflag,data)


passflag,data=test.readhid(pid1,readID,controlID,readnumber)  
print(passflag,data)

passflag,data=test.hidset_vpid(vid,pid,setID,controlID,readnumber,anotherCMD)
print(passflag,data)


passflag,data=test.readhid_vpid(vid,pid,readID,controlID,readnumber)  
print(passflag,data)

passflag,data=test.readhid_vpid_all(vid,pid,readID,readnumber)  
print(passflag,data)
Package: vchunk
Voice Of ChunkWhat do we want? Clean vocal acapellas! When do we want them? Now!Cascaded SortingThis repository hosts several models that are meant to cascade results. The output of the final classifier is audio ready to be used in training a Singing Voice Conversion (SVC) model.State of ResearchVoice vs. Non-voice classifierReverb vs. Dry classifierPolyphony vs. Monophony classifierMulti-voice unison vs. Single-voice unisonInstallationThis package was developed using Python 3.11.4, and thus that version of python is recommended.Clone this repository and make it the current directory in the terminal.The, open a new virtual environment and install the requirements.pip install -r requirements.txtModel WeightsDownload model weights from my dropbox.cd voicequalityclassifierwget https://www.dropbox.com/scl/fi/w6yqkhzpq4l8wpw53zrjk/weights.zip?rlkey=3ju9ofcn93wdklzc3sr8nlezz&dl=1 -O weights.zipunzip weights.zipcd ..UsageFor some example audio download a few files with this command:wget https://www.dropbox.com/scl/fi/sclv9z73xobw2hbagjqob/audio.zip?rlkey=3cq04ds7ymt5q7d4v1dzkfgib&dl=1 -O audio.zipunzip audio.zipThevoicequalityclassifieris a package that can also be run as a module. To run the whole classification scheme, run./env/bin/python voicequalityclassifier/main.py --input path/to/audio.wavIn the console, you will see the classification results. If you see:for file path/to/audio.mp3 detected nonvoiceThis means that no voice was detected (i.e. the source is an instrumental stem or stereo mix).
If you see:for file path/to/audio.mp3 detected voicefor file path/to/audio.mp3 detected reverbThis means there was reverb detected on the track.Finally, if you see:for file path/to/audio.mp3 detected voicefor file path/to/audio.mp3 detected dryThen we're in business and we have a dry acapella file.for file path/to/audio.mp3 detected voicefor file path/to/audio.mp3 detected reverbThis means there was reverb detected on the track.Finally, if you see:for file path/to/audio.mp3 detected voicefor file path/to/audio.mp3 detected dryThen we're in business and we have a dry acapella file.
Package: vclibpy
VCLibPyRepository with aVaporCompressionLibrary inPython for steady state process design and simulation.
It enables use of RefProp and CoolProp as well as different compressors, heat exchangers and flowsheet configurations for heat pumps and chillers.InstallationTo install, runpip install vclibpyTo use RefProp, you have to buy the licence and obtain a valid .dll file.In order to help development, install it as an egg:git clone https://github.com/RWTH-EBC/vclibpy
pip install -e vclibpyHow to get started?We recommend running our jupyter-notebook to be guided through ahelpful tutorial.For this, we prepared several examples, which we encourage to check one by one.
To use, you can either run the code locally or in abrowser using juypter-notebook:If the web-hosting is not available, you can run the notebooks locally with the following code:pip install jupyter
git clone https://github.com/RWTH-EBC/vclibpy
jupyter notebook vclibpy/docs/jupyter_notebooksOr, clone this repo and look at the folderexamples.
Those examples are the same as the jupyter notebooks.How to cite vclibpyvclibpyis currently in the process of publication. A corresponding DOI will be added soon.DocumentationVisit our officialDocumentation.Problems?Pleaseraise an issue here.
Package: vclog
VCLog: Minimal and Simple Console LoggingVistor's Console Logger (VCLog) offers a minimal and colorful console logging. Single-script. No dependencies.FeaturesAs every logger in the world, there are four levels of logging:info,debug,warning, anderror.fromvclogimportLoggerLogger.info("info")>>|I|infoLogger.debug("debug")>>|D|debugLogger.warning("warning")>>|W|warningLogger.error("error")>>|E|errorIt also has aplainmethod in which color, background color, and style can be specified.Logger.plain("plain text with format",color="blue",bg_color="green",style="bold")The package also offers aformatmethod to get the formatted string directly.fromvclogimportformatmessage:str=format("Hello, World!",color="red")The main feature of VCLog is that theLoggercan be used as a static class or it can be instantiated. When instantiated, you can provide a name to be displayed.Logger.info("as a static method")>>|I|asastaticmethodlogger=Logger("instance")logger.info("as an instance")>>|I|[instance]asaninstanceInstallationFollow the next steps for installing the simulation on your device.Requierements:Python 3.10.0 or higherNote: VCLog works on Linux, Windows and Mac.Install from pipVCLog is available as a pip package. For installing it just use:pip install vclogInstall from sourceYou can either clone the repositorygitclonehttps://github.com/vistormu/vclog.gitor just copy and paste thelogger.pyfile.DocumentationThe official documentation of the package is available onRead the Docs. Here you will find theinstallation instructions, theAPI referenceand someminimal working examples.
Package: v-cloud-market-cli-user
# V Cloud Market Command Tool For User## Install`pip installv-cloud-market-cli-user`## UsageRun the following command to start the command line:`vcloud`## Wallet Functions:Create new walletReset walletRecover wallet with seedCheck balance of address in the walletExport wallet addresses to csv file## Market Services:Explore service provider informationExplore service category informationExplore service type informationMake order with service type id## Order Services:Pay the order with VSYSCheck the status of orderView order listView specific order informationRefund an orderView refundable order list## user service:Explore running user servicesExplore usable user servicesThe status of usable user services are: ServicePending or ServiceRunning.This function is to get secret information from service provider.Explore expired user services## Run cli in localInstallvirtualenvto run cli tool in local`shell pip3 install virtualenv `Created virtual environment`shell virtualenv venv `Start virtual environment`shell source venv/bin/activate `Run cli in mainnet` python3 market_place_cli/use_main_interface.py `Run cli in testnet` python3 market_place_cli/use_main_interface.py-t`Exit virtual environment` deactivate `
Package: vcloudtools
A set of commandline utilities to aid working with the VMWare vCloud API.At the moment,vcloudtoolsis pretty minimal, but there’s still enough
here to be useful. In addition to a Python API client
(vcloudtools.api.VCloudAPIClient), there’s a series of small command line
utilities to help interact with vCloud Director’s HTTP API.Installationvcloudtoolsis available on thePython Package Index:$ pip install vcloudtoolsUsageFirst, tellvcloudtoolswhere your vCloud Director API is by adding an
environment variable to your.bash_profileor similar:$ echo "export VCLOUD_API_ROOT=https://vcd.example.com/api" >> ~/.bash_profile
$ exec $SHELLThen, login to the VCD API:$ eval `vcloud-login`You can now usevcloudtoolswithout further authentication hassles. So
far, the available tools includevcloud-org:$ vcloud-org list
$ vcloud-org show My-Org-Namevcloud-orgwill emit JSON, which you can parse withjsontoolor similar.You can also manually browse the API withvcloud-browse:$ vcloud-browse /session
$ vcloud-browse /org/7318a9a7-cc79-4f88-b8f8-ddddec6873f8Licensevcloudtoolsis released under the MIT license, a copy of which can be
found inLICENSE.
Package: vcoin
=====
django-vcoindjango-vcoin project is coin application for hehuoya.comvirtual coin for appQuick start安装到特定目录下pip3 install hhycommon --target='~/Library/Python/3.8/site-packages/'Add "vcoin" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'vcoin',
],配置aes密钥，默认为
AES_KEY : "A0UrOf/XVPjdPIKG"Include the class in your project views.py like this::
from vcoin.Checker import HHYAES
from vcoin.views import VCoinManagerand then pass  your user token for vcoinaes_encrypt_data = HHYAES.aes_encrypt(utoken.decode(encoding='utf-8'))
utoken = base64.b64encode(aes_encrypt_data.encode('utf-8'))
VCoinManager.freezeCoin(utoken, 50, 1)Runpython3 manage.py makemigrations vcointo create the vcoin models.Runpython3 manage.py migrateto create the vcoin models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a models if needed (you'll need the Admin app enabled).demo:fromvcoin.CheckerimportHHYAESfromvcoin.viewsimportVCoinManagerdefindex(request):current_milli_time=int(round(time.time()*1000))utoken=('RVAMY>'+str(current_milli_time)).encode("utf-8")aes_encrypt_data=HHYAES.aes_encrypt(utoken.decode(encoding='utf-8'))utoken=base64.b64encode(aes_encrypt_data.encode('utf-8'))# 对base64的tokenAES加密VCoinManager.provideCoin(user_token=utoken,coin_count=10,coin_type=1)returnHttpResponse(utoken)
Package: vcologen
vcologen - vim colorscheme generatorInstallpip install vcologenUsageimportvcologenname="mytheme"vcg=vcologen.Generator(name)vcg.theme="dark"vcg.bg="#000000"# backgroundvcg.fg="#ffffff"# foregroundvcg.c1="#ff0000"# color 1vcg.c2="#00ff00"# color 2vcg.c3="#ffff00"# color 3vcg.c4="#0000ff"# color 4vcg.c5="#ff00ff"# color 5vcg.c6="#00ffff"# color 6vcg.cm="#797979"# comment colorvcg.cl="#333333"# cursor line colorpath="colors/mytheme.vim"vcg.generate(path)LicenseThis project is under the MIT-License.See alsoLICENSE.AuthorLaddge
Package: vcolorpicker
vcolorpickerSimple visual Color Picker with a modern UI created with Qt to easily get color input from the user.InstallationInstall using pip:pip install vcolorpickeror clone the repository yourself and run:pip install .UsageTo ask for a color, import thegetColorfunction and run it:fromvcolorpickerimportgetColorcolor=getColor()CustomizationShowing custom last color:old_color=(255,255,255)picked_color=getColor(old_color)Changing the UI ThemefromvcolorpickerimportuseLightThemeuseLightTheme(True)Adding Alpha selectionfromvcolorpickerimportuseAlphauseAlpha(True)When the ColorPicker uses Alpha, you have to pass a RGBA tupleas the last color, otherwise there wil be an error.old_color=(255,255,255,100)picked_color=getColor(old_color)# => (r,g,b,a)Color Formats and ConversionThe default formatgetColorwill give you is RGB(A),but you can use vcolorpickers color conversion functionsif you have a different format like HSV or HEX.hsv2rgbHSV(A)toRGB(A)rgb2hsvRGB(A)toHSV(A)rgb2hexRGB(A)toHEXhex2rgbHEXtoRGBhex2hsvHEXtoHSVhsv2hexHSV(A)toHEXExample:fromvcolorpickerimportgetColor,hsv2rgb,rgb2hsvold_color=hsv2rgb((50,50,100,100))# => (127,255,255,100)picked_color=rgb2hsv(getColor(old_color))Color Formats:RGBvalues range from0to255HSVvalues range from0to100HEXvalues should be in format:"XXXXXX"or"xxxxxx"Alphavalues range from0to100CompatibilityThis package is compatible withPython 3.7+and above.
It usesqtpyunder the hood, so it should work with all Qt bindings (PyQt5, PySide2, PySide6, PyQt6).Previous versionsIn previous versions you had to create a ColorPicker object first and thencall it'sgetColormethod. This is still supported, you just have toimport theColorPickerclass.The color conversion functions are not methods anymore, you can import themdirectly withfrom vcolorpicker import hsv2rgb, rgb2hsv.You also had to create aQApplicationobject before being able to run theColorPicker, now it automatically creates one by itself if there isn't one yet.If you need to get the auto-created application, you can use this:fromPyQt5.QtWidgetsimportQApplicationapp=QApplication.instance()Bugs and Improvement ideasIf you find a bug, you can open an issue or write me an email (nlfmt@gmx.de)and I will try to get to it as fast as possible, or you can implement ityourself and create a pull request.LicenseThis software is licensed under theMIT License.More information is provided in the dedicated LICENSE file.
Package: vcoml
vcomlImagine a markup language, but worseSyntax ExampleVcoML::"members"
  :297045071457681409
    :"username"
      "vcokltfre"
    :"discriminator"
      6868
    :"mfa"
      ya
    :"verified"
      na
    :"email"
      idk
    :"roles"
      >
        :"id"
          1234
        :"name"
          "Admin"
      >
        :"id"
          5678
        :"name"
          "Moderator"YAML:members:
  297045071457681409:
    username: vcokltfre
    discriminator: 6868
    mfa: true
    verified: false
    email: null
    roles:
      - id: 1234
        name: Admin
      - id: 5678
        name: ModeratorUsagefromvcomlimportpack,unpackdata=unpack(""":"abc"123:"def">"list">"more list"""")print(data)# Re-pack the dataprint(pack(data))TodoCLI
Package: vcomp
VCompA video compressor with bitrate and size selection.GithubPyPITo execute:In Linux|Unix|macOS:GUI:Runvcompin a shell.In Windows:Method 1:In acmdwindow, executevcomp.Method 2:Copy the filevcomp.exefrompythoninstallation\Scripts\to your desired folder and double-click it.To use in your python code:A code that theusersets the compression level.GUIimportvcomp.mainvcomp.main.run()To be quiet:A code thatyouset the compression level.
Set size to your desired height and bitrate to your desired bitrate, and f to the path of the file.importvcomp.compressvcomp.compress.compress(size,bitrate,f)
Package: vcompy
VCompVideo compiler frameworkGetting startedfromvcompyimportVideo,Text,CompilerFPS=60VIDEO_SIZE=(1280,720)vid=Video.from_file("/path/to/file.mp4")text=Text("Hey, this thing is working!",font="/path/to/font",fontsize=16,duration=(2*FPS),position=(0,0))compiler=Compiler.simple([vid,tex])compiler.duration=2*FPScompiler.fps=FPScompiler.size=VIDEO_SIZEforprogressincompiler.save_as("output.mp4"):print(f"{progress}/{compiler.get_duration()}",end='\r')print()
Package: vcons
A simple package to count number of vowels and consonants in a string.How to installpip install vconsIf you are trouble installing, try thispip3 install vconsHow to useBelow example will help youfrom vcons import vcons
sample_string= "python"
vcons.vowels(sample_string)	# returns the number of vowels in the given string

sample_string = "PACKAGE"
vcons.consonants(sample_string)     #returns the number of consonants in the given string
Package: vcontext
vcontextpackage provides single objectContext. Context is
dictionary like datastructure with custom access to items. You can
access your data by dot access. Context does not wrap data in itself,
rather just access them. Context hasdataattribute where data is
stored.Installvcontext is onpypiso you
can simply:pip install vcontext__getitem__vs__getattribute__ForContextI have decided to use__getitem__approach, since I
wanted to have consistent dot access also to lists/tuples. This would be
impossible using__getattr__.ItemItem is dot-separated path to value. This item is splitted and values
have following rules * string - access to dictionary item or object
attribute * integer - access to list item * first part must be string
(since Context is a dictionary)Example:context=Context({'status':200,'message':'OK','result':[{'user':{'username':'phonkee','name':'Peter Vrba'}}]})assertcontext['result.0.user.username']=='phonkee'assertcontext['status']==200If the data is not found,KeyErroris raised on part of item that
was not found. Context providesgetmethod where you can specify
default value if value is not found and that will never raise exception.Build items:Context would be useless if it only supported get of values. Context has
support also to create/delete values on underlying datas by givenitem. Lets build a structure from previous example:context=Context()context['status']=200context['message']='OK'context['result.0.user.username']='phonkee'context['result.0.user.name']='Peter Vrba'assertcontext.data=={'status':200,'message':'OK','result':[{'user':{'username':'phonkee','name':'Peter Vrba'}}]}Now we try to delete itemdelcontext['result.0']assertlen(context['result'])==0Isn’t that cute little helper?.keys(item=None):Context also supportskeysmethod. By calling this method context
traverses recursively object. It has support for dict/list, for custom
object it returns just the object key.context=Context()context['hello.world']='yay'assertcontext.keys()==['hello.world']api:Context provides following methods:.copy()- deepcopies data and returns new context.dumps(item=None)- dump to json, attributes:item - item to be dumped to json.items(**kwargs)- list of key value items (tuple key, value),
**kwargs passed tokeysmethod.iteritems(**kwargs)- generator version of items, **kwargs
passed tokeysmethodkeys(item=None)- returns list of all keys, attributes:item - item to be dumped to jsonContribute:Contributions are welcome, there are still a lot of parts to be
enhanced.TODO:add support for special list keyappendso we can append to list.
e.g:context['result.usernames.__append__']='phonkee'AuthorPeter Vrba (phonkee)
Package: vcore
vcoreAn internal venus protocol package useful for data-analytics team.
This module defines the Vcore class, which is responsible for fetching user and market information from the Venus Protocol.InstallationYou can install the package using pip:pip install vcoreUsageInitialization
vcore = Vcore(bsc_url)
The Vcore class is initialized by passing the Binance Smart Chain URL as a parameter. It uses the web3 library to connect to the blockchain.
Package: vcorelib
vcorelib (3.2.0)A collection of core Python utilities.DocumentationGeneratedBysphinx-apidoc(What'ssphinx-apidoc?)Bypydoc(What'spydoc?)Python Version SupportThis package is tested with the following Python minor versions:python3.11python3.12Platform SupportThis package is tested on the following platforms:ubuntu-latestmacos-latestwindows-latestIntroductionCore technologies shared between a number of other Python packages.Internal Dependency GraphA coarse view of the internal structure and scale ofvcorelib's source.
Generated usingpydeps(viamk python-deps).
Package: vcoutils
vcokltfre/vcoutilsThis is a collection of utlities I have made or adapted for convenience.Current classes:LeakyBucketandLeakyBucketManagerfromleakybucket.pyIntentsfromintents.pyCurrent Decoratorsdiscord.py:has_any_permissions(**perms)andhas_any_guild_permissions(**perms)fromextrachecks.pyCurrent Functions:generate_id_solid()andgeneraie_id_split()fromgenid.py
Package: vcpy
Easily issue verifiable credentials (like Blockcerts)Table of contentsBackgroundQuickstartDocumentationContributingContactBackgroundThere are many kinds of verifiable credentials like W3C's Verifiable Claims, Blockcerts, and others. The goal ofvcpyis to allow you to easily issue these from your own application!Note: this is a WIP, currently only Blockcerts issuing with anchoring to the Ethereum network is provided.QuickstartInstall with:pipinstallvcpyIssue Blockcerts with:fromverifiable_credentialsimportissuebatch=issue.BlockcertsBatch(issuer=issuer,assertion=assertion,recipients=recipients,anchor_handler=eth_anchor_handler,)tx_id,final_certs=batch.run()And done!DocumentationFind our documentationhere.ContributingFork it (https://github.com/docknetwork/vcpy/fork)Create your feature branch (git checkout -b feature/fooBar)Commit your changes (git commit -am 'Add some fooBar')Push to the branch (git push origin feature/fooBar)Create a new Pull RequestContactThis library is maintained byFausto WoelflinatDock.
Package: vcr-langchain
VCR LangChainPatchesVCR.pyto include non-network tooling for use withLangChain. Refactor with confidence as you record and replay all your LLM logic in a contained environment, free from any and all side effects.Quickstartpipinstallvcr-langchainUse it with pytest:importvcr_langchainasvcrfromlangchain.llmsimportOpenAI@vcr.use_cassette()deftest_use_as_test_decorator():llm=OpenAI(model_name="text-ada-001")assertllm("Tell me a surreal joke")=="<put the output here>"The next time you run it:the output is now deterministicit executes a lot faster by replaying from cacheno command executions or other side effects actually happenyou no longer need to have real API keys defined for test execution in CI environmentsFor more examples, seethe usages test file.If you're using the Langchain Playwright browser tools, you can also useget_sync_test_browserandget_async_test_browserto automatically get real browsers during recording but fake browsers on replay. This allows you to skip downloading and installing Playwright browsers on your remote CI server, while still being able to re-record sessions in a real browser when developing locally.PitfallsNote that tools, if initialized outside of thevcr_langchaindecorator, will not have recording capabilities patched in. This is true even if an agent using those tools is initialized within the decorator.DocumentationFor more information on how VCR works and what other options there are, please see theVCR docs.For more information on how to use langchain, please see thelangchain docs.Please note that there is a lot of langchain functionality that I haven't gotten around to hijacking for recording.If there's anything you need to record in a cassette, please open a PR or issue.Projects that use thisLangChain Visualizer