Saravanan666/pypi-org huggingface dataset:
Package: vpalette
PalettesUtility to easily use palettesColorsThere are two palettesmaterialandflat.Vtint ColorsYou can view them in asvg file. Those have been custom made usingtints.dev.Material ColorsYou can view them in asvg file. More info atmaterial.io.Flat ColorsYou can view them in asvg file. More info athtml color codes.Tailwind ColorsYou can view them in asvg file. More info attailwind colors.InstallationYou can install it with pip by running:pip install v-paletteUsageYou can retrive one color or a list of colors usingget_colorsfunction:fromv_paletteimportget_colors# 1. Retrive one colorget_colors(("red",100))# out: '#FFCDD2'# 2. Retrive some colorsget_colors([("red",100),("blue",100)])# out: ['#FFCDD2', '#BBDEFB']# 3. Retrive colors from others palettesget_colors([("emerald",100),("silver",100)])# out: ['#D5F5E3', '#F2F3F4']get_colors([("emerald",100),("silver",100)],palette="flat")# out: ['#D5F5E3', '#F2F3F4']The parameterpaletteis not necessary if the color you want is not present in the material palette. Since if the color is not found in the default palette it will look at the others palettes.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: v-palette
PalettesUtility to easily use palettesColorsThere are two palettesmaterialandflat.Material ColorsYou can view them in asvg file.More info atmaterial.ioFlat ColorsYou can view them in asvg file.More info athtml color codesInstallationYou can install it with pip by running:pip install v-paletteUsageYou can retrive one color or a list of colors usingget_colorsfunction:fromv_paletteimportget_colors# 1. Retrive one colorget_colors(("red",100))# out: '#FFCDD2'# 2. Retrive some colorsget_colors([("red",100),("blue",100)])# out: ['#FFCDD2', '#BBDEFB']# 3. Retrive colors from others palettesget_colors([("emerald",100),("silver",100)])# out: ['#D5F5E3', '#F2F3F4']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: vpc-free
This script searches for the largest available IP subnets within the unallocated
spaces between your VPC subnets, or between VPCs for a given CIDR block.InstallationInstallvpc-freeto/usr/local/binwith:$pipinstallvpc-freeThe script uses the Amazon AWS SDK (boto3) to connect to AWS. The SDK must
be configured with credentials to connect to the AWS APIs. Please see theBoto3
documentationfor instruction.Usage$vpc-free-husage:vpc-free[-h]TARGETFindfreeIPblocksinAWSEC2.positionalarguments:TARGETCIDR,VPCIDorVPCNametosearchoptionalarguments:-h,--helpshowthishelpmessageandexitExamples# search for unallocated blocks between VPCs in 10.0.0.0/8$vpc-free10.0.0.0/8MINIPMAXIPMASKSIZEBESTLABEL10.0.0.010.63.255.255/10419430410.0.0.0/10FREE10.64.0.010.64.255.255/1665536vpc-c4871ca0(Demo)10.65.0.010.255.255.2551251737610.128.0.0/9FREE# search for unallocated blocks between subnets in a VPC$vpc-freevpc-c4671caf10.64.0.010.64.15.255/204096subnet-74247002(Subnet1)10.64.16.010.64.31.255/204096subnet-d32421a5(Subnet2)10.64.32.010.64.47.255/20409610.64.32.0/20FREE10.64.48.010.64.63.255/204096subnet-0a257077(Subnet4)10.64.64.010.64.255.2554915210.64.128.0/17FREE
Package: vp-cli
vp_cliCommand Line interface for VantagePointInstallation and DocumentationThe full documentation is availablehereDevelopmentIn-container development environment$makeshellUse.envfile to set development environmentTo install cli (Also works inside development container)$makeinstallRunning tests$toxUsetox.inito set the test environmenthereTo build.deb,.rpmand.tar.gzpackages$makebuild_allThis will build and place the artifacts inbuilddirTo build and push to artifactory$ make releaseTo clean up and uninstall cli$makecleanDocumentationUpdates to documentation are made in thedocsdirectory.
To generate html$cddocs$makehtml# this will generate html in the docs/build dir
Package: vpc.py
# CLI tool to run commands on ec2 instances.## Supported cloud platforms[x] AWS EC2[ ] Openstack via ec2 API endpoint## Features[x] Multiple remote users (if can’t authenticate - will try next username)[x] Filter by tags[x] Parallel execution[ ] Profiles (group settings and filters in named profile, and specify profile onvpc.py run)[ ] Filter by launch date (launched-beforeandlaunched-after)[ ] Filter by keypair[ ] –dry-run flag## InstallationInstall the latest stable version:` pip install vpc.py `## UsageGet help:` vpc.py--helpvpc.py run--helpvpc.pyrun-one--help`Create settings file:` mkdir~/.vpc.pycat>>~/.vpc.py/settings<<-EOF[default] remote_user = ubuntu,centos,root private_key =/home/ubuntu/.ssh/ec2.pemaws_access_key_id =access-keyaws_secret_access_key =secret-access-keyaws_region =eu-west-1EOF `Filter by tag ‘owner=automation’ and run command on resulted instances:` vpc.py run-fowner=automation 'df-h'`Run script:` vpc.py run-fowner=automation<<-EOFecho hello uname-aEOF `Run any script or binary (assuming it’s compatible with target hosts):` vpc.py run-fowner=automation < some_python_script.py vpc.py run-fowner=automation < /usr/local/bin/weather `
Package: vpc.sh
Supported cloud platformsImplemented[x] AWS EC2TODO[ ] Openstack via ec2 API endpointFeaturesImplemented[x] Multiple remote users (if can’t authenticate - will try next
username)[x] Filter by tags[x] Parallel executionTODO[ ] Profiles (group settings and filters in named profile, and
specify profile onvpc.sh run)[ ] Filter by launch date (launched-beforeandlaunched-after)[ ] Filter by keypair[ ] –dry-run flagInstallationInstall the latest stable version:pip install vpc.shUsageGet help:vpc.sh --help
vpc.sh run --help
vpc.sh run-one --helpCreate settings file:mkdir ~.vpc.sh
cat >>~.vpc.sh/settings<<-EOF
[default]
remote_user = ubuntu,centos,root
private_key = /home/ubuntu/.ssh/ec2.pem
aws_access_key_id = access-key
aws_secret_access_key = secret-access-key
aws_region = eu-west-1
EOFFilter by tag ‘owner=automation’ and run command on resulted instances:vpc.sh run -f owner=automation 'df -h'Run script:vpc.sh run -f owner=automation<<-EOF
echo hello
uname -a
EOFRun any script or binary (assuming it’s compatible with target hosts):vpc.sh run -f owner=automation < some_python_script.py
vpc.sh run -f owner=automation < /usr/local/bin/weather
Package: vpd
python-vpdVirtualPathDictChains - Hierarchical Settings Management using YaMLThis is an amalgamation of existing code that has been separated into its own package.Hosted on GitHub:https://github.com/dbotwinick/python-vpdAs of version 0.9.5+, python 2.7 support is being phased out and targeting 3.9+ for python support. The legacy code
is actually still python 2.7 compatible; however, the vpd.next code is not guaranteed to support python versions
less than 3.9.The base legacy code for VirtualPathDictChains is still useful and provides a mechanism to find data in "chains" of
yaml. For example, if you had a dict: "{"test": {"v1": "v1", "v2":"v2"}}", using the VPD/VirtualPathDictChain approach,
you could query for "test/v1" and get the result "v1". This was originally designed for complex settings or
preferences management in python applications.The "chain" part is that if a value is not found, the next source/VirtualPathDict would be searched. By having a chain,
settings could be "merged" into a single queryable view. String values in the dicts also supported default arg
substitution such that if a query result contained a text value of "{test/v2}", the bracketed expression
would be used as a lookup to find that value--allowing references--which is also really useful for managing complex
settings or preferences for an application etc.The legacy code is maintained at vpd.legacy and backwards-compatible stubs are provided in the package root. Therefore,
the following packages still work:vpd.argumentsvpd.cidvpd.cmpvpd.iterablevpd.yaml_dictThe newer generation code expands on this base concept to allow modeling arbitrary relationships among data "types"
(expected to be yaml or yaml-like) to be able to create novel use-cases. So the next generation mechanism can also
be used to model settings and use references to share settings/preferences. It's basically something like a simple,
non-indexed, in-memory graph database for modeling relationships that do not require much complexity such that a
real graph solution is warranted; however, the problem at hand benefits from describing relationships first and
then lazily calculating some result following along the data relationships.This newer code is in "vpd.next.graph".As an additional utility basis, vpd.next.k8s provides utility mechanisms for Kubernetes. These are meant to ease
tasks managing state (via ConfigMaps) and secrets for python applications. These can be combined with the legacy
VirtualPathDict mechanisms as well as the vpd.next.graph mechanisms as part of maintaining complex applications
intended to operate in a Kubernetes context. Note that the official Kubernetes python client is required for Kubernetes
functionality.More documentation to come...
Package: vpdq
vpdq Python BindingThis is a Python binding library to the vPDQ (video PDQ) hashing algorithm by Meta.It is written in Cython.Development is hosted onGitHub.Windows is currently not supported by the Cython bindings.InstallationInstall fromPyPIpython-mpipinstallvpdq--upgradeORInstall locally (run from root vpdq folder):python-mpipinstall-e.You should now be able to runpython -c "import vpdq"without error.Usageimportvpdq# A vpdq hash is a list of vpdqFeatures.## Each vpdqFeature has five attributes:# quality: int# frame_number: int# hash: Hash256 (Video frame hashed by PDQ)# hex: str (64 digit hex string representation of hash)# timestamp: doublevpdqFeatures=vpdq.computeHash("my_video.mp4")forfeatureinvpdqFeatures:print(f"{feature.frame_number},{feature.hex},{feature.quality},{feature.timestamp}")Sample Output:0,e271017837246aaccddea259648fb7d62f435c89d9e99b2497763e216c8d055c,100,0
1,c0f11178372c6aaccddea259648fbfd62f434c89c9e99b249772be216c8d055c,98,1
2,c0f10b78372c6aacc5dea25b748fb7d22f434c89c9a9db249772b6216c8d855c,80,2
3,c0f00b7837247aaccddea25b128fb7d22f434c894da9cb349776b621668dc55c,100,3
...DevelopmentSeeCONTRIBUTING.mdfor development instructions.
Package: vpf-730
vpf-730A package to read data from theBiral VPF-730Present weather sensor.installationpip install vpf-730quick startMake sure your Sensor is connected and find out the port it is connected to. For a detailed documentation please see theDocs.Versions >0.5.0contain a full rewrite with lots of breaking changesloggeras a CLIThe logger: Communication and continuous data loggingvpf-730logger--serial-port/dev/ttyS0senderas a CLIThe sender: Sending data to a remote serverVPF730_API_KEY=deadbeefvpf-730sender\--get-endpoint"https://api.example/com/vpf-730/status"\--post-endpoint"https://api.example/com/vpf-730/data"commCLIIt is also possible to manually sendASCIIcommands to the sensor.\r\nmust not be specifiedvpf-730comm--serial-port/dev/ttyUSB0R?Returns:200,2.515,16.5,12.2,5.00,12.3,00.00,00.00,101,086,000,02,03,00,+001.9,4040as a packagefromvpf_730importVPF730vpf730=VPF730(port='/dev/ttyS1')print(vpf730.measure())
Package: vping
vping==================PING moduleInstalling----------Install and update using `pip`_:.. code-block:: text$ pip install vpingvping supports Python 2 and newer, Python 3 and newer, and PyPy... _pip: https://pip.pypa.io/en/stable/quickstart/Example----------------What does it look like? Here is an example of a simple vping program:.. code-block:: pythonimport vpinghost = "www.google.com"timeout = 10 #default: 2count = 5 #default=4vping.verbose_ping(host, timeout, count)And what it looks like when run:.. code-block:: text$ python test.pyping www.google.com...get ping in 10.9999 milliseconds.ping www.google.com...get ping in 0.0 milliseconds.ping www.google.com...get ping in 0.0 milliseconds.ping www.google.com...get ping in 0.0 milliseconds.You can just run vping on terminal.. code-block:: batch$ vping.py www.google.comping www.google.com...get ping in 10.9999 milliseconds.ping www.google.com...get ping in 0.0 milliseconds.ping www.google.com...get ping in 0.0 milliseconds.ping www.google.com...get ping in 0.0 milliseconds.Support------*   Python 2.7 +, Python 3.x*   Windows, LinuxLinks-----*   License: `BSD <https://bitbucket.org/licface/vping/src/default/LICENSE.rst>`_*   Code: https://bitbucket.org/licface/vping*   Issue tracker: https://bitbucket.org/licface/vping/issues
Package: vpitools
VPIToolsVPIToolsis a Python library developed by the Vietnam Petroleum Institute (VPI) that provides a collection of functions for various tasks related to petroleum engineering, including data analysis, visualization, and machine learning.FeaturesExploratory Data Analysis (EDA)The EDA module of VPITools includes functions for data cleaning, preprocessing, and visualization. You can use these functions to explore and analyze your data, and gain insights into its characteristics. Some of the functions in this module include:Data Cleaning: remove duplicate values, replace missing values, and moreData Preprocessing: normalize, standardize, and scale your dataVisualization: plot histograms, scatter plots, box plots, and moreCurves, Logs, and Petrophysics PlottingThe Curves module of VPITools includes functions for plotting various types of well logs, including gamma ray, resistivity, porosity, and more. Additionally, the module includes functions for plotting petrophysical data, such as saturation and lithology. Some of the functions in this module include:Gamma Ray Log Plotting: plot gamma ray curves and compute shale volumeResistivity Log Plotting: plot resistivity curves and compute water saturationPorosity Log Plotting: plot porosity curves and compute lithologyMachine LearningThe Machine Learning module of VPITools includes functions for various tasks related to machine learning, including classification, regression, and feature importance analysis. The library provides support for popular machine learning algorithms such as LightGBM, CatBoost, and XGBoost. Some of the functions in this module include:Classification: train models for binary or multi-class classification problemsRegression: train models for regression problemsFeature Importance: compute feature importance using SHAPLEY valuesInstallationTo install VPITools, you can use pip:pipinstallvpitoolsUsageOnce installed, you can import VPITools into your Python script:importvpitoolsasvpiLicenseVPITools is released under the MIT License. Please see the LICENSE file for details.
Package: vpk
VPK is Valve’s file format for storing game assets.
Pythonic access to VPK files and their contents together with a cli tool.Works on:python2.7,python3.4+,pypy, andpypy3InstallYou can grab the latest release fromhttps://pypi.python.org/pypi/vpkor viapippipinstallvpkQuick startThe VPK instance is iterable in the standard ways and produces paths to filesimportvpkpak1=vpk.open("/d/Steam/steamapps/common/dota 2 beta/dota/pak01_dir.vpk")forfilepathinpak1:printfilepathReading a specifc file is done by passing the file path toget_file()method, which
returns aVPKFileinstance, which acts as a regularfileinstance. Writting is not
possible.pakfile=pak1.get_file("scripts/emoticons.txt")pakfile=pak1["scripts/emoticons.txt"]printpakfile.read().decode('utf-16le')-------------------------------------------------
"emoticons"
{
    // An ID of zero is invalid

    "1"
    {
        "image_name" "wink.png"
        "ms_per_frame" "100"
...Saving a file is just as easy.pakfile.save("./emoticons.txt")The module supports creating basic VPKs.
Multi archive paks are not yet supported.newpak=vpk.new("./some/directory")newpak.save("file.vpk")pak=newpak.save_and_open("file.vpk")CLI toolA command line utility is also includedusage: vpk [-h] [--version] [-l] [-la] [-x OUT_LOCATION] [-nd] [-t] [-c DIR]
           [-p] [-f WILDCARD | -re REGEX | -name WILDCARD] [-v]
           file

Manage Valve Pak files

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

Main:
  file                  Input VPK file
  -l, --list            List file paths
  -la                   List file paths, crc, size
  -x OUT_LOCATION, --extract OUT_LOCATION
                        Extract files to directory
  -nd, --no-directories
                        Don't create directries during extraction
  -t, --test            Verify contents
  -c DIR, --create DIR  Create VPK file from directory
  -p, --pipe            Write file contents to stdout

Filters:
  -f WILDCARD, --filter WILDCARD
                        Wildcard filter for file paths
  -re REGEX, --regex REGEX
                        Regular expression filter for file paths
  -name WILDCARD        Filename wildcard filter
  -v, --invert-match    Use filters for exclusionLooking to decompile Valve custom asset formats?Check outhttps://github.com/SteamDatabase/ValveResourceFormat/
Package: vpl
# vplVide Pipe Line# installationRun `pip3 install vpl` (it's on pypi)Or `pip3 install -e git://github.com/chemicaldevelopment/vpl` (for development, i.e. unstable builds)# usageIt comes with a simple viewer, run:`python3 -mvpl --help`You can use `import vpl` in your code# exposure settingsExposure settings are extremely finicky to get working. Here's a few commands to try:First, set the auto control cutoff to 1:`v4l2-ctl -d /dev/video0 -c exposure_auto=1`Then, try setting the exposure value to various values between -100 and +100:`v4l2-ctl -d /dev/video0 -c exposure_absolute=-30``v4l2-ctl -d /dev/video0 -c exposure_absolute=0``v4l2-ctl -d /dev/video0 -c exposure_absolute=0.5``v4l2-ctl -d /dev/video0 -c exposure_absolute=20`The optimal low/medium light setting for the Micro$oft Lifecam is:`v4l2-ctl -d /dev/video0 -c exposure_absolute=20.9`Use this command:`v4l2-ctl --all`*to print settings (and their defaults). This is the most important v4l command*Run through setting all these to defaultsHere are the defaults for Micro$oft Lifecam:```Streaming Parameters Video Capture:Capabilities     : timeperframeFrames per second: 30.000 (30/1)Read buffers     : 0brightness (int)    : min=30 max=255 step=1 default=133 value=133contrast (int)    : min=0 max=10 step=1 default=5 value=5saturation (int)    : min=0 max=200 step=1 default=83 value=83white_balance_temperature_auto (bool)   : default=1 value=1power_line_frequency (menu)   : min=0 max=2 default=2 value=2white_balance_temperature (int)    : min=2800 max=10000 step=1 default=4500 value=4500 flags=inactivesharpness (int)    : min=0 max=50 step=1 default=25 value=25backlight_compensation (int)    : min=0 max=10 step=1 default=0 value=5exposure_auto (menu)   : min=0 max=3 default=1 value=1exposure_absolute (int)    : min=5 max=20000 step=1 default=156 value=40pan_absolute (int)    : min=-201600 max=201600 step=3600 default=0 value=0tilt_absolute (int)    : min=-201600 max=201600 step=3600 default=0 value=0zoom_absolute (int)    : min=0 max=10 step=1 default=0 value=0```Use the script `utils/reset_lifecam.sh`
Package: vplotter
PlotterGeneralEnginesInstallationUsageContributionLicensePlotter is a minimalistic class for plotting. Feel free to use it and contribute (seecontribution section).EnginesNext engines supported:VeuszGnuplot(experimental)InstallationNote: before usage make sure that the engine is installed.pip install vplotterUsage>>>fromvplotterimportPlotter>>>p=Plotter()===>[Plotter:(engine:veusz)]isinitialized[v.X.Y.Z]>>>p.plot(x=[i**2foriinrange(10)],y=[i**3foriinrange(10)],key_name="first line")If you see something similar to this:So you have it. Nice!Similarly you can use another engine: Gnuplot engine.>>>fromvplotterimportPlotter>>>p=Plotter(engine="gnuplot",xname="X",yname="Y",title="My Title")===>[Plotter:(engine:gnuplot)]isinitialized[v.1.3.0]>>>p.plot(x=[i**2foriinrange(10)],y=[i**3foriinrange(10)],key_name="first line")>>>My Title
     90 +------------------------------------------------------------------+
        |      +       +      +       +      +       +      +       +      |
     80 |-+                                             first line ********|
        |                                                               ** |
     70 |-+                                                           ** +-|
        |                                                          ***     |
     60 |-+                                                     ***      +-|
        |                                                     **           |
     50 |-+                                                ***           +-|
  Y  40 |-+                                            ****              +-|
        |                                          ****                    |
     30 |-+                                    ****                      +-|
        |                                   ***                            |
     20 |-+                             ****                             +-|
        |                         ******                                   |
     10 |-+                *******                                       +-|
        |      +   ********   +       +      +       +      +       +      |
      0 +------------------------------------------------------------------+
        0      1       2      3       4      5       6      7       8      9
                                         XCurrently GnuplotEngine is in experimental mode.
It is plotting the graph only to your terminal. Further releases would expand the functionality.ContributionFeel free to contribute to the project, but please initially create an issue with detailed problem and way how to resolve it.LicenseMIT