Saravanan666/pypi-org huggingface dataset:
Package: vcrpy
This is a Python version ofRuby’s VCR
library.Source codehttps://github.com/kevin1024/vcrpyDocumentationhttps://vcrpy.readthedocs.io/RationaleVCR.py simplifies and speeds up tests that make HTTP requests. The
first time you run code that is inside a VCR.py context manager or
decorated function, VCR.py records all HTTP interactions that take
place through the libraries it supports and serializes and writes them
to a flat file (in yaml format by default). This flat file is called a
cassette. When the relevant piece of code is executed again, VCR.py
will read the serialized requests and responses from the
aforementioned cassette file, and intercept any HTTP requests that it
recognizes from the original test run and return the responses that
corresponded to those requests. This means that the requests will not
actually result in HTTP traffic, which confers several benefits
including:The ability to work offlineCompletely deterministic testsIncreased test execution speedIf the server you are testing against ever changes its API, all you need
to do is delete your existing cassette files, and run your tests again.
VCR.py will detect the absence of a cassette file and once again record
all HTTP interactions, which will update them to correspond to the new
API.Usage with PytestThere is a library to provide some pytest fixtures called pytest-recordinghttps://github.com/kiwicom/pytest-recordingLicenseThis library uses the MIT license. SeeLICENSE.txtfor
more details
Package: vcrpy-unittest
This package providesVCRTestCasefor simple integration betweenVCR.pyand Python’s venerableunittest.InstallationInstall fromPyPI:pipinstallvcrpy-unittestUsageInherit fromVCRTestCasefor automatic recording and playback of HTTP
interactions.fromvcr_unittestimportVCRTestCaseimportrequestsclassMyTestCase(VCRTestCase):deftest_something(self):response=requests.get('http://example.com')Similar to how VCR.py returns the cassette from the context manager,VCRTestCasemakes the cassette available asself.cassette:self.assertEqual(len(self.cassette),1)self.assertEqual(self.cassette.requests[0].uri,'http://example.com')By default cassettes will be placed in thecassettessubdirectory next to the
test, named according to the test class and method. For example, the above test
would read from and write tocassettes/MyTestCase.test_something.yamlThe configuration can be modified by overriding methods on your subclass:_get_vcr_kwargs,_get_cassette_library_dirand_get_cassette_name.
To modify theVCRobject after instantiation, for example to add a matcher,
you can hook on_get_vcr, for example:classMyTestCase(VCRTestCase):def_get_vcr(self,**kwargs):myvcr=super(MyTestCase,self)._get_vcr(**kwargs)myvcr.register_matcher('mymatcher',mymatcher)myvcr.match_on=['mymatcher']returnmyvcrSeethe sourcefor the default implementations of these methods, andVCR.pyfor more
information.VCRMixinIn case inheriting fromVCRTestCaseis difficult because of an existing
class hierarchy containing tests in the base classes, inherit fromVCRMixininstead.fromvcr_unittestimportVCRMixinimportrequestsimportunittestclassMyTestMixin(VCRMixin):deftest_something(self):response=requests.get(self.url)classMyTestCase(MyTestMixin,unittest.TestCase):url='http://example.com'CompatibilityVCRTestCasesupports a subset of the Python versions supported by VCR.py.
Specifically Python 2.6 is excluded, because it lacksTestCase.addCleanup.
Adding support for Python 2.6 would be pretty easy withtearDownbut that
implementation is fragile because it depends on nothing else going wrong in the
inheritance chain. Rather than take on this additional complexity, Python 2.6 is
simply excluded for now.LicenseThis library uses the MIT license, which is the same as VCR.py. SeeLICENSE.txtfor more
details.AcknowledgementsThanks to@kevin1024forVCR.py, and to@IvanMalisonfor his
constructive critique on this package. Also thanks to@nedbatfor hispost
regarding unittest and context managers,
and to@davepeckforhttreplaywhich served me well for so long.
Package: vcr-stub-server
vcr-stub-serverThis is a small tool for setting up a lightweight stub server that replays previously recorded VCR cassettes.Usually VCR is used internally while running the test suite. In that case, the library is responsible for intercepting HTTP requests.But in some cases, it can be useful to be able to spin up a live HTTP server which given a preexisting VCR cassette, would respond to each request with its matching recorded response.One such case might come when implementing usage ofPact, wherevcr-stub-servercan be used to prevent the provider service from making requests to external services during pact verification. This project was inspired by Pact's ownStub Service.CaveatsUnfortunately, there is no one standard for cassette YAML files, each VCR implementation is different. For example, cassette YAML files created by VCR.py won't be compatible with YAML files created by the Ruby implementation of VCR, etc.Therforethis tool currently only supportsVCR.py, using the library's own implementation of parsing the YAML files.The recorded requests in your YAML cassette file must all be made to the same host.Installation$ pip install vcr-stub-serverUsageOnce the package is installed, use thevcr-stub-servercommand to spin up your stub server.$ vcr-stub-server path/to/vcr_cassette.ymlContributingBug reports and pull requests are welcome on GitHub athttps://github.com/thatguysimon/vcr-stub-server. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to theContributor Covenantcode of conduct.LicenseThe gem is available as open source under the terms of theMIT License.
Package: v-crypt
Palette Material DesignUtility to easily store password/secrets. It usesFernetfrom thecryptographymodule instead of reinventing the wheel.Fernet is a symmetric encryption that uses 128-bit AES in CBC mode and PKCS7 padding with HMAC using SHA256 for authentication. You can read more about ithere.Why v-crypt?It is always annoying to deal with secrets and passwords in python especially if you work with other people. What we found that worked best for us was:Create one master private password (ignored from git)Have dict-like file with the rest of passwords encryptedThis module provides the classCipherto handle that easily.The idea behind this module is to be able tocreate ajsonoryamlwith encrypted secrets. The keys will be public but the values won't. This way you canstore the dictionary of secrets in gitand easily share them with other people working in the same project. You will only need toshare themaster.passwordonce. And all the other passwords/secrets will be tracked with git.InstallationYou can install it with pip by running:pip install v-cryptUsagefromv_cryptimportCipher# Create a cipher instancecipher=Cipher()# Create a new master passwordcipher.create_password()# Store a secretcipher.save_secret("secret","I like python")# Retrive a secretcipher.get_secret("secret")CustomizationThere are three paramaters to customize the cipher:secrets_file:path of the file with secrets. Can be ajsonoryaml.filename_master_password:path of the file with the master passwordenviron_var_name:if passed it allows to read the master password from an environ var.Foryamlyou need to installpyyamlFor example you could do:cipher=Cipher(secrets_file="data/secrets.yaml",filename_master_password="data/master.secret")This will allow you to store both themaster.passwordandsecrets.yamlin the folderdata.There is not much more customization since the idea is to keep it simple.Integrating it in other projectsWe usually have one or more python files with utilities, for exampleutilities.py.To use v_crypt we initiallize thecipherthere and then create aget_secretdummy function that will call the cipher.fromv_cryptimportCiphercipher=Cipher(secrets_file="data/secrets.yaml",filename_master_password="data/master.secret")defget_secret(key):returncipher.get_secret(key)Then you can use it elsewhere with:importutilitiesasuu.get_secret("secret")AuthorsArnau 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: vcrypto
Palette Material DesignUtility to easily store password/secrets. It usesFernetfrom thecryptographymodule instead of reinventing the wheel.Fernet is a symmetric encryption that uses 128-bit AES in CBC mode and PKCS7 padding with HMAC using SHA256 for authentication. You can read more about ithere.Why v-crypt?It is always annoying to deal with secrets and passwords in python especially if you work with other people. What we found that worked best for us was:Create one master private password (ignored from git)Have dict-like file with the rest of passwords encryptedThis module provides the classCipherto handle that easily.The idea behind this module is to be able tocreate ajsonoryamlwith encrypted secrets. The keys will be public but the values won't. This way you canstore the dictionary of secrets in gitand easily share them with other people working in the same project. You will only need toshare themaster.passwordonce. And all the other passwords/secrets will be tracked with git.InstallationYou can install it with pip by running:pip install v-cryptUsagefromv_cryptimportCipher# Create a cipher instancecipher=Cipher()# Create a new master passwordcipher.create_password()# Store a secretcipher.save_secret("secret","I like python")# Retrive a secretcipher.get_secret("secret")CustomizationThere are three paramaters to customize the cipher:secrets_file:path of the file with secrets. Can be ajsonoryaml.filename_master_password:path of the file with the master passwordenviron_var_name:if passed it allows to read the master password from an environ var.Foryamlyou need to installpyyamlFor example you could do:cipher=Cipher(secrets_file="data/secrets.yaml",filename_master_password="data/master.secret")This will allow you to store both themaster.passwordandsecrets.yamlin the folderdata.There is not much more customization since the idea is to keep it simple.Integrating it in other projectsWe usually have one or more python files with utilities, for exampleutilities.py.To use v_crypt we initiallize thecipherthere and then create aget_secretdummy function that will call the cipher.fromv_cryptimportCiphercipher=Cipher(secrets_file="data/secrets.yaml",filename_master_password="data/master.secret")defget_secret(key):returncipher.get_secret(key)Then you can use it elsewhere with:importutilitiesasuu.get_secret("secret")DevelopmentThis package relies onpoetryandpre-commit. In order to develop you need to install both libraries with:pipinstallpoetrypre-commit
poetryinstall
pre-commitinstallThen you need to addpoetry runbefore any python shell command. For example:# DOpoetryrunpythonmaster.py# don't dopythonmaster.pyAuthorsArnau 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: vcs
various version control system management abstraction layer for python.Introductionvcsis abstraction layer over various version control systems. It is
designed as feature-richPythonlibrary with cleanAPI.vcs usesSemantic VersioningFeaturesCommonAPIfor SCM backendsFetching repositories data lazilySimple caching mechanism so we don’t hit repo too oftenSimple commit apiSmart and powerfull in memory changesetsWorking directory supportDocumentationOnline documentation for development version is available athttp://packages.python.org/vcs/.You may also build documentation for yourself - go intodocs/and run:make html
Package: vcsdeploy
vcsdeployEasily deploy your applications through your VCSvcsdeployallows you to easily deploy updates of your application to your
customers through your favorite Version Control System.  So far, only
mercurial is supported, but it should be very easy to add support for
additional VCSs.The idea is that the application is installed by cloning the repository.
Every version of the application is represented as a Mercurialtag: whenvcsdeployruns, it pulls changes from the designed remote repository, and
it displays a window showing all the available versions.  The user can then
select the appropriate version and update the application to it.Example of usageSuppose your applicationmyappis installed inc:\\myapp.  You need to
write a basic config file, saymyapp-config.py:class Config(object):
    path = 'c:\\myapp'
    version_regex = '^Version'pathcontains the local repository which contains the application.  The
repository must be configured in a way thathg pullpulls the remote
repository without asking the user for any password, e.g. by using thesshprotocol or bystoring the http password.version_regexis a regular expression which is tested against all the tags
found in the repository, to make sure that the user will see only the tags
that start withVersion.  This way, we can still use Mercurial tags for
internal development reasons, without cluttering what is displayed to the
final user.Then, we just need to launchvcsdeploy.pyw/path/to/myapp-config.pyto
startvcsdeploy.RequirementsTo runvcsdeployyou need:PyQt4mercurial installed as a Python package (i.e., you need to be able to doimport mercurialfrom Python)thepy lib(easy_install py)
Package: vcsinfo
Summaryvcsinfogathers information about a source tree, supporting Git, Mercurial,
and Perforce working directories.Installationpip install vcsinfoUsageExample usage using the vcsinfo project itself (git backend):importvcsinfodata=vcsinfo.detect_vcs(my_path)data.name# project name: 'vcsinfo'data.branch# branch name: 'main'data.id# native commit identification: '4bb323148e43543247afe066db0dbac0fcf45537'data.upstream_repo# upstream repo url: 'git@github.com/adobe/vcsinfo.git'data.user# user who performed the commit: 'saville'data.id_short# a short representation of the id: '4bb323'data.number# same as id if commits have increasing numbers, otherwise simulated an increasing commit number: 77data.modified# none if no local modifications, otherwise the epoch seconds of the most recently modified file: 1629746987data.release# string representing the current state of the branch: '77.I4bb323.M1629746987'data.id_string# string providing a unique id of branch and release: 'main-77.I4bb323.M1629746987'# Retrieves a tuple of lists of modified changes in the changeset, see code# for return formatdata.status()# List the files known to the VCSdata.list_files()# Retrieves VCS information as a dict, optionally including full file informationdata.info()data.info(include_files=True)
Package: vcs.latest
various version control system management abstraction layer for python.Introductionvcsis abstraction layer over various version control systems. It is
designed as feature-richPythonlibrary with cleanAPI.vcs usesSemantic VersioningFeaturesCommonAPIfor SCM backendsFetching repositories data lazilySimple caching mechanism so we don’t hit repo too oftenSimple commit apiSmart and powerfull in memory changesetsWorking directory supportDocumentationOnline documentation for development version is available athttp://packages.python.org/vcs/.You may also build documentation for yourself - go intodocs/and run:make html
Package: vcslinks
vcslinksis a Python package for analyzing a local Git repository to
find a URL for web pages in the hosted services like GitHub, GitLab,
and Bitbucket.  For example, a permalink to the filesetup.pywith
lines 5 to 10 highlighted can be obtained by>>> import vcslinks
>>> vcslinks.file("setup.py", lines=(5, 10))
'https://github.com/USER/PROJECT/blob/55150afe539493d650889224db136bc8d9b7ecb8/setup.py#L5-L10'vcslinksalso comes with command line programvcsbrowsefor
opening relevant pages of GitHub/GitLab/Bitbucket in web browser.
Package: vcs-mirrors
vcs-mirrorsA python-only clone ofhttps://github.com/samrocketman/gitlab-mirrors/with a YAML config file.RequirementsPython 3.5+ (Debian Stretch+, Ubuntu Xenial+)virtualenv if you don’t want to mess with System Pythongit-remote-bzrhttps://github.com/felipec/git-remote-bzrfor Bazaar supportFeaturesMirror different types of source repositories: Bazaar, Git, Subversion. Mirror all into git.GitLab mirror adding.When adding a mirror if the project doesn’t exist in GitLab it will be auto-created.Set project creation defaults (e.g. issues enabled, wiki enabled, etc.)Github mirror adding.Same as with Gitlab.mirror anything to Git (not just Gitlab and Github).Update a single mirror.Update all known mirrors.InstallationOn DebianFor Bazaar support:$aptinstallgit-remote-bzrInstall into a virtualenv:$virtualenv-p/usr/bin/python3--no-site-packagesvenv$venv/bin/pipinstall"vcs-mirrors[gitlab,github]"Then copy vcs-mirrors.yaml.example into your current-working-directory:$cpvenv/lib/python3.6/site-packages/vcs-mirrors/vcs-mirrors.yaml.samplevcs-mirrors.yamlEdit it for your needs.Usagevenv/bin/vcs-mirrors-hvenv/bin/vcs-mirrorsadd-hadd examples:This one try to create a repo “pcdummy/proxmox-dockerfiles” on git.lxch.eu - the identifier must be unique in the config file:$vcs-mirrorsaddme/p-dockerfileshttps://github.com/pcdummy/proxmox-dockerfiles.gitgit.lxch.eu:pcdummy/proxmox-dockerfilesThis doesn’t:$vcs-mirrorsaddme/p-dockerfileshttps://github.com/pcdummy/proxmox-dockerfiles.gitgit@git.lxch.eu:pcdummy/proxmox-dockerfiles.gitFull mirroring include “prune” and “force” pull/push:$vcs-mirrorsadd-f-pme/p-dockerfileshttps://github.com/pcdummy/proxmox-dockerfiles.gitgit.lxch.eu:pcdummy/proxmox-dockerfilesIf you give an host as target “add” creates the repo on the host and translates it to a git URL else add does nothing else than adding the params to your configuration file.Development$pipinstall-e."[development,gitlab,github]"Keywordsgitlab github sync mirror vcs-mirror bazaarChangelogThis document describes changes between each past release.0.0.7 (2018-04-23)Fix pip install by moving away of PEP 420 Namespaces. [pcdummy]0.0.6 (2018-04-23)Fix another typo in MANIFEST.in. [pcdummy]0.0.5 (2018-04-23)Include python files in the pip packages, part2. [pcdummy]0.0.4 (2018-04-23)Include python files in the pip packages. [pcdummy]0.0.3 (2018-04-22)Add another debug line (to show CWD changes). [pcdummy]Add tag pushes. [pcdummy]Make mirroring finaly working by using “–mirror”. [pcdummy]0.0.2 (2018-04-21)Fixup classifiers. [pcdummy]0.0.1 (2018-04-21)Initial Release. [pcdummy]ContributorsSam Gleske - Idea and some code fromhttps://github.com/samrocketmanRené Jochum <rene@jochums.at>
Package: vcspm
VCSPM一个使用简单的C/C++源码包管理器。功能支持本地包、远程包、远程源码文件、远程压缩包、git仓库、hg仓库、svn仓库等包代码位于项目目录中，可以轻松访问能够指定包的任何 git 标签、提交或分支可筛选所需的文件下载的包将缓存到用户目录，避免再次下载要求Python >= 3.6Git >= 2.27HgSvnpatch需要将以上程序路径添加到Path环境变量中用法有关完整示例，请参阅示例。在项目目录中创建一个vcspm.json文件，并在字段中添加所需的包packages作为对象:{"packages":{"package":{"version":"1.0.0","type":"local","path":"D:/package-1.0.0","include":[],"exclude":[]}}}命令行执行vcspm即可。指定包仓库地址包仓库用于存储预定义的包信息及补丁文件。路径格式为包仓库地址/包名首字母小写/包名/版本号/vcspm.json为包信息描述文件。patch.zip为补丁或脚本文件，将自动解压到vcspm/patchs/包名/文件夹中。{"service_url":"包仓库地址url","packages":{}}指定包安装目录{"install_dir":"vcspm/packages","packages":{}}本地包当指定path时将忽略url。{"packages":{"pkg_name":{"version":"版本号","type":"local","url":"本地包路径","path":"本地包路径"}}}远程仓库包只需指定版本号，其余信息自动从service_url地址中获取。{"packages":{"pkg_name":"版本号"}}远程源码文件hash_type可以为SHA1、SHA256。{"packages":{"pkg_name":{"version":"版本号","type":"sourcefile","url":"源文件url","hash_type":"hash类型","file_hash":"文件指纹"}}}远程源码压缩包url中可使用${version}指代版本号。url可以指定为列表，第一个链接下载失败后自动尝试第二个，以此类推。rm_top_dir为true将移除压缩包中的顶层目录。{"packages":{"pkg_name":{"version":"版本号","type":"archive","url":"压缩包url","hash_type":"hash类型-SHA1-SHA256","file_hash":"文件指纹","rm_top_dir":"true"}}}Git仓库当指定git时将忽略url。revision可以为提交、标签、分支。{"packages":{"pkg_name":{"version":"版本号","type":"git","url":"git地址","git":"git地址","revision":"commit或者tag"}}}筛选文件使用include和exclude筛选文件，有选择的将需要的文件复制到包安装目录。
当include和exclude存在相同文件时，排除相应文件。支持Unix shell 风格的通配符，如下：模式含意*匹配所有?匹配任何单个字符[seq]匹配seq中的任何字符[!seq]匹配任何不在seq中的字符对于字面值匹配，请将原字符用方括号括起来。 例如，'[?]'将匹配字符'?'。{"packages":{"pkg_name":{"include":["包含的文件",""],"exclude":["排除的文件",""]}}}命令行参数长选项短选项描述--help-h输出帮助--service-url-s包仓库地址--list-l列出全部可用的包--require获取指定的包--skip跳过指定的包--clean-c获取之前清除指定的包--clean-all-C获取之前清除全部包--debug输出调试信息--break-on-error出现错误立即中断获取
Package: vcstools
The vcstools module provides a Python API for interacting with different version control systems (VCS/SCMs)
It is used in tools likewstoolandrosinstall, which are frequently used in ROS.This should not be confused withvcstool(no trailings), which provides thevcscommand line tool and is otherwise unrelated to this repository, see:https://github.com/dirk-thomas/vcstoolSeehttp://www.ros.org/doc/independent/api/vcstools/html/InstallingSeedocumentation
Package: vcs-uploader
vcs-uploaderGetting Startedusage:vcsup[-h]-fFILE-rREPO[-l{0,1}]-mMESSAGE-vVERSION[-d{0,1}]url

genvcs-uploader

positionalarguments:urlserverapibaseurl

optionalarguments:-h,--helpshowthishelpmessageandexit-fFILE,--fileFILEversion'sfile-rREPO,--repoREPOreponame-l{0,1},--latest{0,1}settolatest?-mMESSAGE,--messageMESSAGEversiondescriptions-vVERSION,--versionVERSIONversioncode-d{0,1},--debug{0,1}debugvcs-uploaderLicenseReleased under theMIT License
Package: vctools
Functions for interfacing with VMware vCloud (both private cloud and vCloud Air).This system is rather rudimentary at the moment, but does provide workable functionality for making remote changes to VApps from within Python. The system also includes a server module, which will launch a Tornado instance and respond to API requests from a web application.More documentation to follow in later releases.ContributorsBen CollierLegal NotesvCloud Suite, vCloud Air and vCloud Director are registered trademarks of VMware, Inc.
Package: vctube
Audio, Caption Crawler and Processor -TTS Data Generator-Downloads and processes the audios and captions(subtitles) from Youtube videos for Speech AIGenerates audio datas from Youtube for TTSRequirementsCurrently requires python == 3.6FFmpegyoutube_dlpydubyoutube_transcript_apiTo Usepip3 install vctubefrom vctube import VCtube

  playlist_name=""
  playlist_url = ""
  lang = ""   #ex) ko, en, fr, de...

  vc = VCtube(playlist_name, playlist_url, lang)

  vc.download_audio()    #download audios from youtube

  vc.download_captions()  #download captions from youtube

  vc.audio_split()       #split audio with captionsResultsdatasets
    |- playlist name
        |- metadata.csv
        |- alignment.json
        |- wavs
             ├── 1.wav
             ├── 2.wav
             ├── 3.wav
             └── ...andmetadata.csvshould look like:{
    "0001.wav|그래서 사람들도 날 핍이라고 불렀다.",
    "0002.wav|크리스마스 덕분에 부엌에 먹을게 가득했다.",
    "0003.wav|조가 자신이 그 사람이라고 나섰다.",
    ...
}andalignment.jsonshould look like:{
    "./datasets/playlist name/wavs/0001.wav": "그래서 사람들도 날 핍이라고 불렀다.",
    "./datasets/playlist name/wavs/0002.wav": "크리스마스 덕분에 부엌에 먹을게 가득했다.",
    "./datasets/playlist name/wavs/0003.wav": "조가 자신이 그 사람이라고 나섰다.",
    ...
}Pypi addresshttps://pypi.org/project/vctube/