Saravanan666/pypi-org huggingface dataset:
Package: vertool
Project versioning controllerA small utility for a simple version of the project and maintaining their format in the right state.Installationinstall package via pip toolkit:pip install vertoolrun to get the project actual version:vertoolHow it workIf you are trying to get a version on a local machine, you need to get the current version of the project based on a guitar, if you do not have any tags, the program will consider that the version does not exist yet and gives you an unknown version. When trying to get the version in the pipeline, the utility will use the variable in the environment of the package, which is guaranteed to be present.Integration with projectTo use the utility in ansible and other tools, you must call the utility in the root after which the current version of the project will be displayed on stdout:# .# |# |-- .git/# |-- apps/#     |#     |-- module_0#     |-- module_1#     ...$vertool1.0.0.dev21+12345To use the utility in setuptool, you must connect the module to the installation file and call the function to get the current version:fromsetuptoolsimportsetupfromvertoolimportversioningsetup(version=versioning.get_version(),//...)Update pip packageLogin to the PiPy repositoryIncrease version in thevertool/__init__.pyfileCreate a python package distUpdate package on the PyPi repository# Create a package dist.pythonsetup.pysdistbdist_wheel# Upload package to repository.pipinstalltwine
twineupload-u$VT_PYPI_USERNAME-p$VT_PYPI_PASSWORDdist/*DevelopmentSetup git hook to linting the project before commit.chmoda+xpre-commit&&cppre-commit.git/hooksTo run the test and verify the code, follow the commands below:# To run the project linting.flake8vertooltests# To run the project testing.python-mcoveragerun-munittestdiscovertests/
python-mcoveragereport-m
Package: vertopal
Vertopal-CLIVertopal-CLIis a small yet powerful utility that allows you to convert
digital files into various formats using theVertopal public API.You can use Vertopal-CLI by eitherterminal commandsorimporting as a Python package.Installing Vertopal-CLIVertopal-CLI is available onPyPI:python-mpipinstallvertopalYou can also download the most recent version of Vertopal-CLI binaries formacOS,Windows, andLinuxfrom thereleases pageor
theproduct page.InstallerAn automatic installer is available for each different platform. It will run an
install script that downloads and copy Vertopal-CLI binaries to the correct
location.Using macOS Terminal:curlhttps://run.vertopal.com/cli/macos|bashOn Windows using PowerShell:(curlhttps://run.vertopal.com/cli/windows).Content|iexIf you are getting anyUnauthorizedAccesserror, then start Windows
PowerShell with the "Run as administrator" option and runSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine.
Now re-run the above installation command. To change theExecution Policiesto its default, you can runSet-ExecutionPolicy -ExecutionPolicy Default -Scope LocalMachine.Using Linux Terminal:curlhttps://run.vertopal.com/cli/linux|bashUsing Vertopal-CLITo use Vertopal-CLI you need toobtain an App-ID and a Security Token.Converting files using terminal commands are very simple:vertopalconvertdocument.ipynb--topdfTo view full command-line help, executevertopal --helpandvertopal convert --helpin terminal.Setting App ID and Security TokenBefore executingvertopal convertcommands in terminal, you need to set
your obtained App-ID and Security Token in global configuration file:vertopalconfig--app"your-app-id"--token"your-security-token"Importing as Python packageImporting vertopal as a Python package makes it easy
to implement file conversions in your projects.The following code illustratesGIF to APNGconversion using
the Vertopal Python package.importvertopalconverter=vertopal.Converter("MickeyMouse.gif",app="your-app-id",token="your-security-token",)converter.convert("apng")converter.wait()ifconverter.is_converted():converter.download()
Package: ver-to-semver
Welcome to ver-to-semver 👋Convert any version string to a semver string🏠HomepageInstallpipinstallver-to-semverUsagefromvertosemverimporttoSemVerAuthor👤Maciej @mbledkowski BłędkowskiWebsite: mble.dkTwitter:@mbledkowskiGithub:@mbledkowskiLinkedIn:@mbledShow your supportGive a ⭐️ if this project helped you!This README was generated with ❤️ byreadme-md-generator
Package: vert-tree
vert_treeThis simple library displays conventional Python binary trees in an intuitive, vertical manner to either the terminal
or a curses pad (useful for large trees!).A compatible Tree representation class:classTreeNode:def__init__(self,val=0,left=None,right=None):self.val=valself.left=leftself.right=rightand example tree:root=TreeNode("a")root.left=TreeNode("b")root.right=TreeNode("c")terminal displayusing our simple example tree, we can display it to terminal, attempt to mirror it, and display it again:fromvert_treeimportTerminalDisplaydefmirror(node):if(node==None):returnelse:temp=nodemirror(node.left)mirror(node.right)temp=node.leftnode.left=node.rightnode.right=tempterminal=TerminalDisplay()terminal.display_vert_tree(root)mirror(root)print('after mirroring...')terminal.display_vert_tree(root)execution output:$pythontest.pya/\bc
aftermirroring...a/\cbcurses displayterminal display is restricted by the width of the current terminal. Should a tree be too large, it can be displayed
vertically in a curses pad instead.the basic format is similar to our terminal display:fromvert_treeimportCursesDisplaycurses_display=CursesDisplay()curses_display.display_vert_tree(root)except when executed a curses window will allow for scrolling around the displayed tree. Arrow keys will move the screen
and 'q' will exit the window.Additionally, a curses display can be configured to exit automatically after a number of seconds by passing a timeout
argument to the CursesDisplay constructor.from vert_tree import CursesDisplay
curses_display = CursesDisplay(5)
curses_display.display_vert_tree(root)in the above case the curses window will exit automatically after 5 seconds.arrow spacingsome trees with considerable depth may take up a lot of space if we print consistent edge lines. For example:SnCKkZLvPBMe/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ajjUMZsoDBUgCsWpwWbjnIUXLjqqWHQS/\/\/\/\/\/\/\/\/\/\/\/\/\/\hKqilKPwIcaDXsPtwlruMAXoxKHLIMHdg/\/\/\dENnQtEJbRNCWxmJmgnMQyF\PjhmeuYPGZRyfby passing the arrow_spacing argument to either Terminal or Curses Displays, we can eliminate some of the depth by
spacing out the edge representations to only print slashes every 'n'  number of chars. For instance the same tree can be
displayed in a much more compact format:terminal.display_vert_tree(root,arrow_spacing=4)output:SnCKkZLvPBMe/\/\/\ajjUMZsoDBUgCsWpwWbjnIUXLjqqWHQS/\/\hKqilKPwIcaDXsPtwlruMAXoxKHLIMHdg/\dENnQtEJbRNCWxmJmgnMQyF\PjhmeuYPGZRyflimitationsTerminalDisplay can only handle Trees that can fit within the current terminal screen width. If the tree is too wide
it will exit.CursesDisplay can handle LARGE trees (up to 32767x32767 on my system) but the underlying curses lib will eventually
crash given a large enough tree.TreeNode vals can be of any length, the displays will attempt to center them to the extent that they can. Any
collision with the bounds of the display or other TreeNode val's will result in the longer val getting trimmed.
Package: vertvideo
vertvideopython package to help you convert video/audio filesHow to installpip install vertvideoHow to runvertvideo was designed to run on multiple files, so you have to put then inside a folder so they can get processed in one single loop.input_folderis a mandatory arg.output_formatalways defaults to mp3 unless a different value is provided.vertvideo <input_folder> <output_format:?mp3>
Package: vertx-eventbus
TCP-eventbus-client-PythonIntroductionThis is a TCP eventbus implementation for python clients. The protocol is quite simple.
for more information visit !https://github.com/jaymine/TCP-eventbus-client-Python4bytes int32 message length (big endian encoding)json stringbuilt-in keystype: (String, required) One of “send”, “publish”, “register”, “unregister”.headers: (Object, optional) Headers with JSON format. Value of string type is supported.body: (Object, optional) Message content in JSON format.address: (String, required) Destination addressreplyAddress: (String, optional) Address for replying.exampleclass Client():#Handlerdef Handler(self,message):if message != None:print(message[‘body’][‘result’],’4’);eb=Eventbus.Eventbus(Client(),’localhost’, 7000)#jsonObject -bodybody={‘msg’:’add 4 to 0’,}#DeliveryOptiondo=DeliveryOption.DeliveryOption();
do.addHeader(‘type’,’text’)
do.addHeader(‘size’,’small’)
do.addReplyAddress(‘add’)
do.setTimeInterval(5)#register handlereb.registerHandler(‘add’,Client.Handler);#sendeb.send(‘add’,body,do)#close after 5 secondseb.closeConnection(5)samplesSimple example,
TimeKeeper
Package: vertx-eventbus-bridge-starter
test-eventbus-bridgeA vertx eventbus bridge that is used for testingHow to used itInstall using pip:pip install vertx-eventbus-bridge-starterimportunittestfromtesteventbusimportEventBusBridgeStarter,CountDownLatchfromvertximportEventBusclassEventBusClientTests(unittest.TestCase):"""This is the tests against a local test eventbus bridge"""starter=Nonedef__init__(self,*args,**kwargs):super(EventBusClientTests,self).__init__(*args,**kwargs)@classmethoddefsetUpClass(cls):print("Start EventBus Bridge")cls.starter=EventBusBridgeStarter(debug=True)cls.starter.start()cls.starter.wait_started()print("yes, Bridge started !!")@classmethoddeftearDownClass(cls):print("Now stop the bridge")cls.starter.stop()deftest_send(self):latch=CountDownLatch()ebus=EventBus()ebus.connect()defhandler(message):self.assertEqual(message['body']['hello'],'world')ebus.close()latch.count_down()ebus.register_handler('echo-back',handler)ebus.send("echo",reply_address="echo-back",body={"hello":"world"})latch.awaits(5)TODO
Package: vertx-python-client
vertx-python-clientAn asynchronous TCP eventbus Python client other than the thread-basedofficial clientFeatureUse the event loop from Python 3 for high performanceNo dependencyProvide a command line interfaceInstallpip install vertx-python-clientUsageUse as a standard Python libraryfromvertximportEventBus,Payloadeb=EventBus(host='localhost',port=1234)eb.connect()eb.add_listen_func(address="api.versions",action=lambdax:print(x))# Send the JSON binaryreg=Payload(type="register",address="api.versions")eb.send(reg)pub=Payload(type="publish",address="api.versions.get",replyAddress="api.versions")eb.send(pub)# Quit the connectioneb.disconnect()Instead use from the command line interfacepython -m vertx localhost:1234
> {"type": "register", "address": "api.versions"}
> {"type": "publish", "address": "api.versions.get", "replyAddress": "api.versions"}
> exitTestpytest --log-cli-level=DEBUG tests
Package: verumverify
Verum Verify: Authenticity Verifier for VerumJourno.. image::https://github.com/Ethosym/verumverify/actions/workflows/ci.yml/badge.svg:target:https://travis-ci.org/cgdeboer/verumverify.. image::https://img.shields.io/pypi/v/verumverify.svg:target:https://pypi.org/project/verumverify/.. image::https://img.shields.io/conda/vn/conda-forge/verumverify.svg:target:https://anaconda.org/conda-forge/verumverifyVerum Verify is a public, open-source library that provides tools for verifying the authenticity
of content posted to verumjourno.com.. image::https://github.com/Ethosym/verumverify/blob/main/docs/verumverify.png?raw=trueExample Code:.. code-block::$ verumverify --hash_id 7708e5e103f71fd65af14a33747755836690545b8873f228dd43bbf17ee42a21

Verify Authenticity of Hash: 7a06d927e5f16f96d22f681b6ceaf6c8b12aab14523012bd3c215c7f11b19ae2

Locating and retrieving files...OK
Loading data and signature files...OK
Loading public key files...OK

        Video 'A bright and sunny day' was recording on
        an Android T2Q on Samsung
        called Chris's Android
        at around 2023-11-16 23:05:54.

Verifying Timestamps Authenticity
2023-11-16 23:05:54...OK
Verifying Sensor Authenticity
| TEMPERATURE |...OK
| PROXIMITY |...OK
| ACCELEROMETER |...OK
| GPS |...OK
| GYROSCOPE |...OK
| HUMIDITY |...OK
| LIGHT |...OK
| DATE |...OK
| PRESSURE |...OK
Verifying Recording Authenticity
| recording |...OK
Verifying Device Authenticity
| device |...OKHow It WorksVerum Verify provides a single command line callable, :code:verumverifythat takes one of
of the following inputs:hash_id:
The hash value of a recording from verumjourno.comid:
The ID of a recording from verumjourno.comurl:
The full URL of a recording from verumjourno.comzipfile:
A zipfile of all recorded sensor data (downloadable from verumjourno.com)videofile:
A original full-resolution MP4 videoThe :code:verumverifycommand will verify the authenticity of the recording, the device that
made the recording, all sensor data associated with the recording, and an external timestamp
of when the recording occurred.Verum Verify officially supports Python 3.6+.InstallationTo install Verum Verify, use:pipenv <http://pipenv.org/>_ (or pip, of course)conda <https://docs.conda.io/en/latest/>_ (or anaconda, or course)or wherever you get your python packages... code-block:: bash$ pip install verumverify

$ verumverify --hash_id <hash>

$ verumverify --videofile /path/to/your/video.mp4DocumentationSeehttps://verumjourno/posts/faqfor more information.Verum Verify relies on these open-source libraries for cryptography and timestamping:cryptography <https://github.com/pyca/cryptography>_rfc3161ng <https://github.com/trbs/rfc3161ng>_How to Contribute#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
#. Forkthe repository_ on GitHub to start making your changes to themainbranch (or branch off of it).
#. Send a pull request. Make sure to add yourself to AUTHORS_... _the repository:https://github.com/cgdeboer/verumverify.. _AUTHORS:https://github.com/cgdeboer/verumverify/blob/master/AUTHORS.rst
Package: verup
verupIts a simple script to bump any package version.
You have local package or package on pypi or on githubuse verup and specify version increment type major, minor, patchSetup> pip install verupUsage> verup --helpusage: verup [-h] [-t {major,minor,patch}] [-n PACKAGE_NAME] [-c CURRENT_VERSION] [-r {pypi,testpypi,github}]version bump programoptions:-h, --help            show this help message and exit-t {major,minor,patch}, --type {major,minor,patch}specify what type of semver increment you want-n PACKAGE_NAME, --package-name PACKAGE_NAMEspecify package name and if its github repo then specify user/repo-name-c CURRENT_VERSION, --current-version CURRENT_VERSIONif you want to version bump locally then specify your current version of the package-r {pypi,testpypi,github}, --repo {pypi,testpypi,github}if you want to version bump any package which is on pypi or github then use this optionHappy Coding :)
Package: verusdb
VerusVerus is a powerful, lightweight and flexible vector store that is designed to work seamlessly with multiple databases. It is built with LLM in mind, making it an ideal choice for natural language processing, information retrieval, and recommendation systems.One of the key benefits of Verus is its agnostic design, which allows it to integrate with a wide range of databases. This means that you can use Verus with your existing database infrastructure, without having to worry about compatibility issues.InstallationYou can install VerusDB using pip:pip install verusdbUsagefromverusdb.settingsimportSettingsfromverusdb.clientimportVerusClient# Create a new VerusDB clientsettings=Settings(folder='data',engine='polars')client=VerusClient(settings)# Add some documents to the databaseclient.add(collection='MyCollection',texts=['This is my first document','This is my second document'],metadata=[{'source':'input','pages':'3'},{'source':'input','pages':'5'}])# Search for documentsresponse=client.search(text='what is my first document?')This will output a list of documents that match the search query, along with their metadata and a cosine similarity score. You can adjust the the number of results you obtain by relevance[{"collection":"MyCollection","text":"This is my first document","metadata":{"source":"input","pages":"5"},"score":0.937450967393278},{"collection":"MyCollection","text":"This is my second document","metadata":{"source":"input","pages":"5"},"score":0.8927016698439493}]ConfigurationYou can configure VerusDB by passing a Settings object to the VerusClient constructor. The Settings object allows you to specify the folder where the database files will be stored, the storage engine to use (currently Polars and Redis are supported),Polarsfromverusdb.settingsimportSettingsfromverusdb.clientimportVerusClientfromverusdb.embeddings.openaiimportOpenAIEmbeddingsEngine# Create a new VerusDB client with custom settingssettings=Settings(folder='data',engine='polars',embeddings=OpenAIEmbeddingsEngine(key='my-openai-api-key'))client=VerusClient(settings)Redisfromverusdb.settingsimportSettingsfromverusdb.clientimportVerusClientfromverusdb.embeddings.openaiimportOpenAIEmbeddingsEngine# Create a new VerusDB client with custom settingssettings=Settings(engine='redis',redis={'host':'localhost','port':6379,'db':0,'password':None,'prefix':'doc:','index':'verusdb'},embeddings=OpenAIEmbeddingsEngine(key='my-openai-api-key'))client=VerusClient(settings)PostgreSQLfromverusdb.settingsimportSettingsfromverusdb.clientimportVerusClientfromverusdb.embeddings.openaiimportOpenAIEmbeddingsEngine# Create a new VerusDB client with custom settingssettings=Settings(engine='redis',postgres={"host":"localhost","port":5432,"db":"verus","username":"verus","password":"verus","table":"verusdb"},embeddings=OpenAIEmbeddingsEngine(key='my-openai-api-key'))client=VerusClient(settings)ContributingIf you find a bug or have a feature request, please open an issue on theGitHub repository. Pull requests are also welcome!LicenseVerusDB is licensed under theMIT License.
Package: verve-flake8-mock
Remember that a mock’s job is to say, “You got it, boss” whenever anyone calls
it. It will do real work, like raising an exception, when one of its
convenience methods is called, likeassert_called_once_with. But it won’t
do real work when you call a method that onlyresemblesa convenience method,
such asassert_called_once(no_with!). Sometimes developers may not
notice that they are using a non-existent mock method, because they are not
getting an output error telling them so. And for some reason they can also
forget to verify that the test cases fail before writing implementation code.This plugin checks for possible non-existent mock methods when you runflake8, the Python code checker.Inspired byhttp://engineeringblog.yelp.com/2015/02/assert_called_once-threat-or-menace.html.InstallationYou can install or upgradeverve-flake8-mockwith these commands:$ pip install verve-flake8-mock
$ pip install --upgrade verve-flake8-mockPlugin for Flake8When bothflake8 3.5.0andverve-flake8-mockare installed, the plugin is
available inflake8:$ flake8 --version
3.5.0 (verve-flake8-mock: 0.4, pyflakes: 0.8.1)Example outputOnce you run flake8, you can have something like:$ flake8 test_file.py
test_file.py:55:5: M201 called_once is a non-existent mock property
test_file.py:56:5: M200 called_once_with is a non-existent mock methodCreditsAlejandro Gabriel Pereira is the original author.Ania Warzecha has rewritten it for flake8 3 and with support for more methodsChanges0.4 (25-04-2019)Forked by Verve toverve-flake8-mockAddedhas_callsto checked methodsAdded a check for not existent properties on mocksAdded compatibility for flake8 3.xAdded tests0.3 (09-10-2016)Don’t warn onassert_not_called,assert_calledorassert_called_once.Use ASCII only in README.rst0.2 (12-16-2015)Add Python 3 compatibility.0.1 (10-20-2015)First release.0.1dev0 (10-19-2015)First dev release.
Package: verx
sdirDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nsdir--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallsdirnbdev# activate conda environment$condaactivatesdir# make sure the sdir package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the sdir package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/sdir.gitor fromconda$condainstall-cdsm-72sdiror frompypi$pipinstallsdirDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: veryacademy-sql-tools
veryacademy-sql-toolsA simple middleware tool for analyzing Django ORM SQL execution. You can learn how to build this middleware package on our course at Udemy.UsageAdd the follow line of code to your middleware in your project settings.py file.veryacademy-sql-tools.middleware.new_middlewareHow it worksThe tool uses Django built in features to inspect the SQL genrated from queries executed by the application. 3rd party tools are used to format and highlight the SQL presented in the terminal window.
Package: very-easy-recommendation-engine
A Very Easy Recommendation Engine for DjangoInstallationpip install very-easy-recommendation-engine-djangoConfigurationLet's say you have a model for movies and ratings of movies like so:"""
movies/models.py
"""

class Movie(models.Model):
    title = models.CharField()


class Rating(models.Model):
    created = models.DateTimeField(auto_now_add=True)
    value = models.IntegerField(min=1, max=5)
    movie = models.ForeignKey(Movie, on_delete=models.CASCADE)
    user = models.ForeignKey(User, on_delete=models.CASCADE)We will build a recommendation engine to show movies a user might like based on their ratings."""
settings.py
"""

VERY_EASY_RECOMMENDATION_ENGINE = {
    "APPLICATION_ID": "{{ Your Application ID key here }}"
    "API_KEY": "{{ Your secret key here }}"
    "models": {
      "user_movie_recommendations": {
          "output_field": "books.Rating.value"
      }
    }
}"""
urls.py
"""

urlpatterns = [
  ...,
  path("very-easy-ai", "very_easy_recommendation_engine.urls")
]That's it! Our servers will start building your recommendation engine and provide an API endpoint for your application to pull recommendationsGetting RecommendationsRequest:from very_easy_recommendation_engine import VeryEasyRecommendationEngine

rec_engine = VeryEasyRecommendationEngine(model_name="user_movie_recommendations")

# Get recommendations for user number five
recommendations = rec_engine.get_recommendations_for_user(user_id=5)

print(recommendations, limit=15)Output:{
  "results": [
      {
        "objectId": "objectId1",
        "value": 4.89
        // ...
      },
      {
        "objectId": "objectId2",
        "value": 4.87
        // ...
      }
      //...
    ],
    "count": 15,
    "queryId": "43b15df305339e827f0ac0bdc5ebcaa7"
  ]
}
Package: very-good-setuptools-git-version
very-good-setuptools-git-versionAutomatically set package version from Git. This is a re-release ofsetuptools-git-versionwith fixes and improvements.IntroductionInstead of hard-coding the package version insetup.pylike:setup(name='foobar',version='1.0',...)this package allows to extract it from the underlying Git repository:setup(name='foobar',version_format='{tag}.dev{commits}+{sha}',setup_requires=['very-good-setuptools-git-version'],...)