Saravanan666/pypi-org huggingface dataset:
Package: vpltest
BackgroundVPL (http://vpl.dis.ulpgc.es/) allows customizing evaluation process with custom execution files. This can be used for testing students’ submissions with professional testing frameworks.vpltestmakes this easier for Python assignments by translating output fromnoseorpytestto the format required by VPL.NoteYou may want to usevpltesttogether withedutest.Basic usageWrite normalunittest,noseorpytesttests without worrying about VPL.Test your tests without worrying about VPL.Create a VPL activity and upload your test files underAdvanced settings => Execution files.Upload alsovpltest.pyTovpl_execution.shwrite following lines:#!/bin/bashpython3vpltest.pyReplacepython3withpythonif you’re using Python 2.Command line argumentsYou can tweakvpltestwith following command line arguments:--noseand--pytestselect the framework for collecting and running the tests. If neither flag is present,vpltestuses the one which happens to be installed. It prefers nose if both are installed;--show-grademakesvpltestpropose a grade based on how big part of the tests passed;--show-stacktraceincludes stacktraces in the reports;--allow-deletion(see “Automatically keeping all execution files available”);all other arguments are passed on to the testing framework.Example. If you wantvpltestto compute the grade, run your tests with pytest and make pytest run also doctests, then yourvpl_evaluation.shshould be#!/bin/bashpython3vpltest.py--show-grade--pytest--doctest-modulesTest discoveryBy default all execution files matching*test*.py(exceptvpltest.py) are considered to be test files and are passed on to testing framework. You can override this by specifying test files invpl_evaluation.sh, eg:#!/bin/bashpython3vpltest.py--show-grade--pytestbasic_tests.pystyle_checks.pyTest discovery inside the modules are up to chosen framework.Installing to serverIf you usevpltesta lot, then it makes sense to install it into your testing server so that you don’t need to upload it every time. It can be installed withpip, eg.sudo pip3 install pytest.Note that nowpython3 vpltest.pyin yourvpl_execution.shwon’t do as there won’t bevpltest.pyin testing directory anymore. Usepython3-mvpltestinstead.Automatically creatingvpl_executionVPL is designed so thatvpl_execution.shis not meant for running the tests but for executing the compilation phase, which includes preparingvpl_execution, which will be used to run the tests. This design makes sense with compiled languages, but with Python the compilation phase is just a nuisance.vpltesttries to make its usage experience smoother, by taking care of creatingvpl_executionif necessary. That’s why you need to write only 2 lines intovpl_execution.sh.Automatically keeping all execution files availableAfter compilation phase, VPL by default deletes all original execution files, unless you tick them underAdvanced settings => Files to keep when running.vpltestneeds original test files to be present when running, but you don’t need remember it, because it uses a trick which makes originals always available. If you don’t like this, then run it with--allow-deletion.
Package: vpnauth
EnigmaBridgepython authentication server enables VPN authentication of users connected to the VPN.Mac OSX installationFor new OSX versions (El Capitan and above) the default system python
installation cannot be modified with standard means. There are some
workarounds, but one can also use--userswitch for pip.pip install --user cryptographyPIP update appdirs errorPip may have a problem with updating appdirs due to missing directory. It helps to update this package manuallypip install --upgrade --no-cache appdirsDatabase setupState is stored in MySQL database.CREATEDATABASEvpnauthCHARACTERSETutf8COLLATEutf8_general_ci;GRANTALLPRIVILEGESONvpnauth.*TO'vpnauth'@'localhost'IDENTIFIEDBY'vpnauth_passwd';FLUSHPRIVILEGES;
Package: vpnc
pyvpnc is a Python connector forvpnc, a Cisco VPN concentrator/router client.  The vpnc daemon requires elevated permissions to run; you will be prompted for your admin/sudo password if needed.InstallationFirst, install vpnc.  On Debian/Ubuntu:apt-get install vpncOn OSX:brew install vpncThen install pyvpnc using pip:pip install vpncUsagefromvpncimportVPNCvpn_client=VPNC(config={"IPSec_ID":"my IPSec ID","IPSec_gateway":"my.gateway.com","IPSec_secret":"my IPSec secret","Xauth_username":"my Xauth username","Xauth_password":"my Xauth password","IKE_Authmode":"psk"})withvpn_client.vpn():# do stuff on the VPN!TestsUnit tests are in the test/ directory.
Package: vpn-exclude-sbs
vpn_exclude_sbsThis is a package for excluding DNSs from the VPN connection the PC connected to.You can either pass a domain name to exclude, or a specifiec ip address.How to use ?1. For excluding a url -python -m vpn_exclude_sbs -url < domain name >2. For excluding a specifiec ip address -python -m vpn_exclude_sbs -ip < ip address >Prerequisites:The module uses 'netifaces' module.
For the module to work well, first, you need to install the 'netifaces' module.You can do it by:
pip install netifacesAdditional Information:The modules supports only Windows operating system.The module requires administrator privileges to work well;Since, by default - win os requires admin privileges to modify routing table.
Package: vpnroulette
Vpnroulette🚨NOTE: vpnroulette client is in BETA🚨This is our official command line client build with ❤️  in pythonTable of Contentsgenerated withDocTocVpnroulette🚨NOTE: vpnroulette client is in BETA🚨RequirementsIntallationUsageDisclaimerCommunityRequirementspython3python3-pipYour email and passwordIntallationpip3installvpnrouletteUsagevpnroulette# interactive modeDisclaimervpnroulette--disclaimerCommunityJoin our community and discover how to become a node and build an unstoppable VPN network all around the world.Website:https://vpnroulette.comDiscord server:https://discord.gg/6CCD6P3T
Package: vpn-server
Platform SupportedRepo StatsDeploymentsVPN ServerEstablish a scalable, on-demand VPN Server powered by OpenVPN on AWS EC2.Installpython-mpipinstallvpn-serverUsageimportvpn# Instantiates the objectvpn_server=vpn.VPNServer()# Create a VPN Servervpn_server.create_vpn_server()# Test an existing VPN Server# vpn_server.test_vpn()# Deletes the VPN Servervpn_server.delete_vpn_server():bulb:   Please refer to thewiki pagefor more usage instructions and payload requirements.Coding StandardsDocstring format:GoogleStyling conventions:PEP 8Clean code with pre-commit hooks:flake8andisortRelease NotesRequirementpython-mpipinstallgitverseUsagegitverse-releasereverse-frelease_notes.rst-t'Release Notes'LintingPreCommitwill ensure linting, and the doc creation are run on every commit.Requirementpipinstallsphinx==5.1.1pre-commitrecommonmarkUsagepre-commitrun--all-filesProject LinksWikiRepositoryRunbookPackageLicense & copyright© Vignesh RaoLicensed under theMIT License
Package: v-podman-compose
Podman ComposeAn implementation ofCompose SpecwithPodmanbackend.
This project focus on:rootlessdaemon-less process model, we directly execute podman, no running daemon.This project only depend on:podmanpodman dnsname plugin: It is usually found in thepodman-pluginsorpodman-dnsnamedistro packages, those packages are not pulled by default and you need to install them. This allow containers be able to resolve each other if they are on the same CNI network.Python3PyYAMLpython-dotenvAnd it's formed as a single python file script that you can drop into your PATH and run.References:spec.mddocker-compose compose-file-v3docker-compose compose-file-v2AlternativesAs inthis articleyou can setup apodman.socketand use unmodifieddocker-composethat talks to that socket but in this case you lose the process-model (ex.docker-compose buildwill send a possibly large context tarball to the daemon)For production-like single-machine containerized environment considerk3s|k3s githubMiniKubeFor the real thing (multi-node clusters) check any production
OpenShift/Kubernetes distribution likeOKD.VersionsIf you have legacy version ofpodman(before 3.1.0) you might need to stick with legacypodman-compose0.1.xbranch.
The legacy branch 0.1.x uses mappings and workarounds to compensate for rootless limitations.Modern podman versions (>=3.4) do not have those limitations and thus you can use latest and stable 1.x branch.If you are upgrading frompodman-composeversion0.1.xthen we no longer have global option-tto set mapping type
likehostnet. If you desire that behavior pass it the standard way likenetwork_mode: hostin the YAML.InstallationInstall latest stable version from PyPI:pip3 install podman-composepass--userto install inside regular user home without being root.Or latest development version from GitHub:pip3 install https://github.com/containers/podman-compose/archive/devel.tar.gzorcurl -o /usr/local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/devel/podman_compose.py
chmod +x /usr/local/bin/podman-composeor inside your homecurl -o ~/.local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/devel/podman_compose.py
chmod +x ~/.local/bin/podman-composeor install from Fedora (starting from f31) repositories:sudo dnf install podman-composeBasic UsageWe have included fully functional sample stacks insideexamples/directory.A quick example would becd examples/busybox
podman-compose --help
podman-compose up --help
podman-compose upA more rich example can be found inexamples/awx3which haveA Postgres DatabaseRabbitMQ serverMemCached servera django web servera django tasksWhen testing theAWX3example, if you got errors just wait for db migrations to end.
There is also AWX 17.1.0TestsInsidetests/directory we have many useless docker-compose stacks
that are meant to test as much cases as we can to make sure we are compatibleUnit tests with pytestrun a pytest with following commandpython-mpytestpytests
Package: vpoller
vPoller - Distributed VMware vSphere API ProxyvPoller is a distributed VMware vSphere API Proxy, designed for
discovering and polling of vSphere objects.It uses theVMware vSphere APIin order to perform discovery and polling of vSphere objects.vPoller uses theZeroMQ messaging libraryfor
distributing tasks to workers and load balancing of client requests.vPoller can be integrated with other systems, which require access to
vSphere objects, but do not have native support for it.Possible scenarios where vPoller could be used is integration with
monitoring systems as part of the discovery and polling process
in order to provide monitoring of your VMware vSphere environment.vPoller has been tested with VMware vSphere 5.x and with very limited
testing on vSphere 4.x.vPoller is Open Source and licensed under theBSD License.ContributionsvPoller is hosted onGithub.
Please contribute by reporting issues, suggesting features or by
sending patches using pull requests.DocumentationThe online documentation of vPoller can be found on the link below:http://vpoller.readthedocs.org/en/latest/BugsProbably. If you experience a bug issue, please report it to thevPoller issue tracker on Github.
Package: vpos
# vPOS Python![package](https://github.com/nextbss/vpos-python/workflows/package/badge.svg?branch=main)
[![](https://img.shields.io/badge/nextbss-opensource-blue.svg)](https://www.nextbss.co.ao)This python package allows you to interact with the vPOS API## Installation`python pip install vpos `## Configuration
| Variable | Description | Required |
| — | — | — |
|GPO_POS_ID| The Point of Sale ID provided by EMIS | true |
|GPO_SUPERVISOR_CARD| The Supervisor card ID provided by EMIS | true |
|MERCHANT_VPOS_TOKEN| The API token provided by vPOS | true |
|PAYMENT_CALLBACK_URL| The URL that will handle payment notifications | false |
|REFUND_CALLBACK_URL| The URL that will handle refund notifications | false |
|VPOS_ENVIRONMENT| The vPOS environment, leave empty forsandboxmode and use“prd”forproduction.  | false |Don’t have this information? [Talk to us](suporte@vpos.ao)## Use### Get all transactions
This method retrieves all transactions`python import vpos transactions = vpos.get_transactions() `### Get a specific Transaction
Retrieves a transaction given a valid transaction ID`python import vpos transaction =vpos.get_transaction("1kTFGhJH8i58uD9MdJpMjWnoE")`### New Payment`python import vpos transactions =vpos.new_payment("900111222","123.45") `| Argument | Description | Type |
| — | — | — |
|mobile| The mobile number of the client who will pay |string|amount| The amount the client should pay, eg. “259.99”, “259,000.00” |string### Request Refund`python import vpos transaction =vpos.new_refund("1jHbXEbRTIbbwaoJ6w06nLcRG7X")`### Poll Transaction Status
Poll the status of a transaction given a validrequest_id.Note: Therequest_idin this context is essentially thetransaction_idof an existing request.`python import vpos transaction =vpos.get_request("1jHbXEbRTIbbwaoJ6w06nLcRG7X")`Argument | Description | Type |— | — | — |request_id| The ID of transaction you wish to poll |string### Have any doubts?
In case of any doubts, bugs, or the like, please leave an issue. We would love to help.LicenseThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Package: vppapigen
VPPAPIGENVPPAPIGEN is a Python library for processing the FD.io VPP API grammar.  This is aFORKof vppapigen of the FDIO VPP project.DifferencesCisco decided to redefine theCRCvalue of each api method to a manifest identifier.  To make matters worse, they include no sort of signal to indicate that the value istainted. They mark this within the api as[backward_compatible]for enum flags, since the size of a flag value does not actually change.  However, they are applying [backward_compatible] to true enums.Cisco decidedto introduce a flag day event without providing a signal of any sort as to whether it is a pre or post flag day value.# keep the CRCs of the existing types of messages compatible with the
 # old "erroneous" way of calculating the CRC. For that - make a pointed
 # adjustment of the CRC function.
 # This is the purpose of the first element of the per-message dictionary.
 # The second element is there to avoid weakening the duplicate-detecting
 # properties of crc32. This way, if the new way of calculating the CRC
 # happens to collide with the old (buggy) way - we will still get
 # a different result and fail the comparison.

 fixup_crc_dict = {
         "abf_policy_add_del": {0xc6131197: 0xee66f93e},
         "abf_policy_details": {0xb7487fa4: 0x6769e504},
         "acl_add_replace": {0xee5c2f18: 0x1cabdeab},
         "acl_details": {0x95babae0: 0x7a97f21c},
         "macip_acl_add": {0xce6fbad0: 0xd648fd0a},
         ...This is a python package.Cisco prefers to not make changesto the build system.  See how to install it below.This version adds the version of the generator and the plugin.This version adds a vendor tag so that a client can determine whether the crc information is true.InstallationUse the package managerpipto install vppapigen.python3-mpip[--user]installvppapigenTo build VPP with true api definitions, see example:# which vppapigen/home/pvinci/.local/bin/vppapigen# ln -s ln -s /home/pvinci/.local/bin/vppapigen /vpp/src/tools/vppapigen/vppapigen# cd /vpp# make testUsageThe stock version of vppapigen is called by cmake for each .api file in the source tree.  This version can be directly imported in a python runner.vppapigen can be loaded directly from within python. The basic gist is as follows:importvppapigenargs.output=open(file=p,mode='w',encoding='UTF-8')args.output_module='JSON'vppapigen.main(args)ContributingIt is my goal for all code be made part of VPP.  These changes were submitted to Gerrit and it is my hope that Cisco integrates these changes into VPP.Contributions are welcome.  VPP code is maintained using gerrit athttps://gerrit.fd.io/r/c/vppMy preference is for contributions to be provided to VPP.  Once it is clear that it is their intention to block your submission, let me knowPlease make sure to update tests as appropriate.LicenseApache 2
Package: v-ppocr-onnx
PPOCR-ONNX简介利用 onnxruntime 及 PaddleOCR 提供的模型, 对图片中的文字进行检测与识别.使用模型文字检测:ch_PP-OCRv3_det_infer方向分类:cls mobile v2文字识别:ch_PP-OCRv2_rec_infer参考PaddleOCR手把手教你使用ONNXRunTime部署PP-OCRch_PP-OCRv3_det_infer及ch_PP-OCRv2_rec_infer模型来自RapidAI/RapidOCR安装pipinstallppocr-onnx使用fromppocronnx.predict_systemimportTextSystemimportcv2text_sys=TextSystem()# 识别单行文本res=text_sys.ocr_single_line(cv2.imread('single_line_text.png'))print(res)# 批量识别单行文本res=text_sys.ocr_lines([cv2.imread('single_line_text.png')])print(res[0])# 检测并识别文本img=cv2.imread('test.png')res=text_sys.detect_and_ocr(img)forboxed_resultinres:print("{},{:.3f}".format(boxed_result.ocr_text,boxed_result.score))
Package: vprad
This Django package allows you to rapidly build applications with minimal
effort on the frontend side.It is mainly targeted at Line-Of-Bussiness applications, backend, etc.It borrows ideas from Lino, Apache Isis, Cuba Platform and some others.Documentation is forthcoming.In the meantime you might take a look at the demo_project folder:See the settings,See the partners/actions.pySee the contacts/views.py
Package: vprof
vprofvprof is a Python package providing rich and interactive visualizations for
various Python program characteristics such as running time and memory usage.
It supports Python 3.4+ and distributed under BSD license.The project is in active development and some of its features might not work as
expected.ScreenshotsContributingAll contributions are highly encouraged! You can add new features,
report and fix existing bugs and write docs and tutorials.
Feel free to open an issue or send a pull request!PrerequisitesDependencies to buildvproffrom source code:Python 3.4+pipnpm>= 3.3.12npmis required to buildvproffrom sources only.DependenciesAll Python andnpmmodule dependencies are listed inpackage.jsonandrequirements.txt.Installationvprofcan be installed from PyPIpipinstallvprofTo buildvproffrom sources, clone this repository and executepython3setup.pydeps_install&&python3setup.pybuild_ui&&python3setup.pyinstallTo install justvprofdependencies, runpython3setup.pydeps_installUsagevprof-c<config><src><config>is a combination of supported modes:c- CPU flame graph  ⚠️Not available for windows#62Shows CPU flame graph for<src>.p- profilerRuns built-in Python profiler on<src>and displays results.m- memory graphShows objects that are tracked by CPython GC and left in memory after code
execution. Also shows process memory usage after execution of each line of<src>.h- code heatmapDisplays all executed code of<src>with line run times and execution counts.<src>can be Python source file (e.g.testscript.py) or path to package
(e.g.myproject/test_package).To run scripts with arguments use double quotesvprof-ccmh"testscript.py --foo --bar"Modes can be combinedvprof-ccmtestscript.pyvprofcan also profile functions. In order to do this,
launchvprofin remote mode:vprof-rvprofwill open new tab in default web browser and then wait for stats.To profile a function runfromvprofimportrunnerdeffoo(arg1,arg2):...runner.run(foo,'cmhp',args=(arg1,arg2),host='localhost',port=8000)wherecmhpis profiling mode,hostandportare hostname and port ofvprofserver launched in remote mode. Obtained stats will be rendered in new
tab of default web browser, opened byvprof -rcommand.vprofcan save profile stats to file and render visualizations from
previously saved file.vprof-ccmhsrc.py--output-fileprofile.jsonwrites profile to file andvprof--input-fileprofile.jsonrenders visualizations from previously saved file.Checkvprof -hfor full list of supported parameters.To show UI help, presshwhen visualizations are displayed.Also you can checkexamplesdirectory for more profiling examples.Testingpython3setup.pytest_python&&python3setup.pytest_javascript&&python3setup.pye2e_testLicenseBSD
Package: vprolog
VPrologAn implementation of a subset of the Prolog programming language made for fun.
The language is parsed usingLark.Installationpip install vprologUsageTo run vprolog, usevprolog [<input_file>]where the argument is an optional input file containing facts and rules.Example input files can be found inexamples.ExampleTo run the examples, just clone the repository first:git clone https://github.com/Vekteur/vprolog.git
cd vprolog/examples/$ vprolog example1.pl
?- cousin(bernard, X).
X = pierre
X = veronique$ vprolog example5.pl
?- inverse([1, 2, 3], L).
L = [3, 2, 1]$ vprolog example7.pl
?- gcd2(8, 12, X).
X = 4
Package: vps-backup-utils
vps_backup_utilsBackup Utilities for Linux VPS with MySQL and other data.With this package, you can write Python scripts to call cli tools. (need to install cli tools in advance)Supported climysqldumppg_dumptargziprsync(to remote servers)UsageRunpip install vps_backup_utilson your VPSWrite a Python script like the below one, and save on your VPSAdd this script to your VPS's crontab#!/usr/bin/env pythonfromvps_backup_utilsimportVPSBackupUtilsbackuper=VPSBackupUtils('~/backup')backuper.remove_old_backups(30)backuper.mysqldump_backup(backup_prefix='project1',host='127.0.0.1',port='3306',user='root',password='password',databases=None,gzipped=True)backuper.tar_backup(backup_prefix='project1',src_folder='/path/to/project1/data')backuper.mysqldump_backup(backup_prefix='another_project',host='127.0.0.1',port='3307',user='root',password='password',databases=None,gzipped=True)backuper.rsync_backups_to_remote(host='another.server',user='user',remote_backup_path='~/server1-backup',port='22222',delete_mode=True)developinstall dependenciespip3 install poetry
poetry installtest on host machineWrite your codes tomain.py, and just run.python3 main.pyrun unit tests on host machine (not recommended)poetry run pytestrun unit tests on docker (recommended)docker-compose up -d mysql postgresql
docker-compose up pytest --buildbuild & publishpoetry update && poetry build && poetry publish
Package: vpsc
vpscさくらのVPSの非公式クライアントです。公開APIの情報をコマンドラインもしくはPython上で容易に扱えるようにすることを目標にしています。利用方法詳細はドキュメントをご覧くださいhttps://vpsc.readthedocs.io/ja/latest/その他さくらのVPSマニュアル(API)https://manual.sakura.ad.jp/vps/api/index.html
Package: vpscommacc-core
Core VPScommaccfile.pyОтсортировать csv-файл по определенной колонкеЗаписать одну строку в csv-файлЗаписать несколько строк в csv-файлmix.pyВычесть из первого списка элементы второго спискаНайти элементы присутствующие в обоих спискахpath.pyПолучить все файлы из директории с полными путями (рекурсивно или нет)Получить путь к директории относительно текущейПолучить путь к текущей директорииregexp.pyОчистить строку от всех html-теговПолучить все символы из текста (кириллица или латиница)Получить все цифры из текстаtime.pyПолучить порядковый номер дня неделиПолучить UNIX-меткуПолучить текущие дату и времяДата и время в русском форматеДата и время в английском формате