Saravanan666/pypi-org huggingface dataset:
Package: pvrpm
pvrpm-lcoeQuick ReferenceDocumentationLicenseIssuesContributing GuidePhotovoltaic simulation tool usingSAMCurrently using SAM version 2022.11.21Please see the documentation for installation and usage guides.Note:Currently Py-PVRPM has issues running on macOS, please see issue #49 for updates.If you would like to contribute to PVRPM, have a question, or need support, please see the contributing guideherefor guides on submitting issues and PRs.
Package: pvrtc-decoder
PVRTC DecoderA PVRTC decoder for PIL.The decoder uses PVRTDecompress fromPVRCoreto decompress the data.InstallationCython requiredPIPpip install pvrtc_decoderManualpython setup.py installUsagedo2bit_mode:0 - PVRTC2 (8 bit)1 - PVRTC4 (16 bit)PIL.Image decoderfromPILimportImageimportpvrtc_decoder#needs to be imported once in the active code, so that the codec can register itselfraw_pvrtc_image_data:bytesdo2bit_mode=0# see aboveimg=Image.frombytes('RGBA',size,raw_pvrtc_image_data,'pvrtc',(do2bit_mode))raw decoderfrompvrtc_decoderimportdecompress_pvrtc,decompress_etc# compressed PVRTC image bytes to RGBA bytesrgba_data=decompress_pvrtc(compressed_data:bytes,do2bit_mode:int,width:int,height:int)# compressed ETC image bytes to RGBA bytes# mode seems to be unused, so use any value you wantrgba_data=decompress_etc(src_data:bytes,width:int,height:int,mode:int)
Package: pvshepherd
Picovoice ShepherdMade in Vancouver, Canada byPicovoicePicovoice Shepherd is the first no-code platform for building voice interfaces on microcontrollers.
It enables creating voice experiences similar to Alexa that run entirely on microcontrollers.
Picovoice Shepherd accelerates prototyping, mitigates technical risks, and shortens time to market.
Paired withPicovoice Consoleusers can deploy custom voice models into microcontrollers instantly.CompatibilityLinux (x86_64)macOS (x86_64, arm64)Windows (x86_64)Supported BoardsSTM32F407G-DISC1STM32F411E-DISCOSTM32F769I-DISCOi.MX RT1050 EVKBInstallationInstall the Picovoice Shepherd:pip3installpvshepherdNote for macOSInstall Python using either theofficial installerorHomebrew.
Shepherd cannot run using the Python shipped with macOS.
If using the Homebrew Python, make sure that/usr/local/binis in thePATHvariable before installing Shepherd.Note for WindowsThe default Python installation options do not add it to the WindowsPATHvariable.
To fix the issue, refer to thePython Docs.UsageRun the following command from the terminal:pvshepherdOn Linux, Shepherd will ask for the root password only on the first launch.For more information, please refer toPicovoice Shepherd Documentation
Package: pvsim
Simple PV SimulatorDependenciesPython 3.6+p4pPyYAMLInstallationpipinstallpvsimRunningTo run, invokepvsimpassing as argument a YAML file with a list of PVs and their metadata. For an example look intoexamples/pvs.yaml.
Optionally use the-dflag to enable debug messages.pvsim[-d]pvlist.yamlorpython-mpvsim[-d]pvlist.yamlSupported TypesAs of now, the small simulator supports the following types:Analog In/Out (ai, ao)Binary In/Out (bi, bo)More types will be added in the future.
Package: pvsite-datamodel
pvsite-datamodelDatabase schema specification for PV Site data.Repository structurepvsite_datamodel:read:# Sub package containing modules for reading from the databasewrite:# Sub package containing modules for writing to the database-connection.py# Class for connecting to the database-sqlmodels.py# SQLAlchemy definitions of table schemastests:# External tests packageTop-level functionsClasses specifying table schemas:APIRequestSQLGenerationSQLForecastSQLForecastValueSQLUserSQLSiteSQLSiteGroupSQLStatusSQLDatabase connection objects:DatabaseConnectionRead package functionsCurrently available functions accessible viafrom pvsite_datamodel.read import <func>:get_user_by_emailget_pv_generation_by_sitesget_site_by_uuidget_site_by_client_site_idget_site_by_client_site_nameget_all_sitesget_sites_by_countryget_site_group_by_nameget_latest_statusget_latest_forecast_values_by_siteWrite package functionsCurrently available write functions accessible viafrom pvsite_datamodels.write import <func>:insert_forecast_valuesinsert_generation_valuescreate_sitecreate_site_groupcreate_useradd_site_to_site_groupchange_user_site_groupupdate_user_site_groupdelete_sitedelete_userdelete_site_groupmake_fake_siteInstall the dependencies (requirespoetry)poetry installCoding styleFormat the codein place.make formatLint the codemake lintRunning the testsmake testMultiple ClientsWe have the ability to have these different scenariosone user - can add or view one siteone user, can add or view multiple sitesTwo users (for example from the sample company), want to look at one siteTwo users, wanting to look at multiple sites (could be added by another user). Any user from site group can add a site.OCF user want to see everything (admin)Solutiongraph TD;
      User-- N:1 -->SiteGroup;
      SiteGroup-- N:N -->Site;Oneuseris in onesitegroup. Each site group can have multiple users.Eachsitegroupcontains multiplesites. Onesitecan be in multiplesitegroups1. one user - one sitegraph TD;
      A(User=Alice)-->B(SiteGroup=Alice1);
      B --> C(Site);2. one user - two sitesgraph TD;
      A(User=Alice)-->B(SiteGroup=Alice1);
      B --> C1(Site1);
B --> C2(Site2);3. Two users - one sitegraph TD;
      A1(User=Alice)-->B(SiteGroup);
A2(User=Bob)-->B(SiteGroup);
      B --> C1(Site1);4. Two users - two sitegraph TD;
      A1(User=Alice)-->B(SiteGroup);
A2(User=Bob)-->B(SiteGroup);
      B --> C1(Site1);
B --> C2(Site2);5. OCF can see everythinggraph TD;
      A1(User=Alice)-->B(SiteGroup1);
A2(User=Bob)-->B(SiteGroup1);
A3(User=OCF)-->B2(SiteGroup2);
      B --> C1(Site1);
B --> C2(Site2);
      B2 --> C1(Site1);
B2 --> C2(Site2);
B2 --> C3(Site3);Database migrations using alembic./alembic
Package: pv-site-prediction
pv-site-predictionThis repo contains code to train and evaluate pv-site models.Organisation of the repo.
├── exp_reports         # Experiment reports - markdown notes about experiments we have made
├── exp_results         # Default output for the {train,eval}_model.py scripts
├── notebooks           # Diverse notebooks
├── data                # Placeholder for data files
└── psp                 # Main python package
    ├── clients         # Client specific code
    ├── data_sources    # Data sources (PV, NWP, Satellite, etc.)
    ├── exp_configs     # Experimentation configs - a config defines the different options for
    │                   # training and evaluation models. This directory contains many ready
    │                   # configs where the paths points to the data on Leonardo.
    ├── models          # The machine learning code
    ├── scripts         # Scripts (entry points)
    └── tests           # Unit testsTraining and evaluating a modelpoetry run python psp/scripts/train_model.py \
    --exp-config-name test_config1 \
    -n test

poetry run python psp/scripts/eval_model.py \
    -n test

# This will have generated a model and test results in `exp_results/test`.

# You can then look at the results in the `expriment_analysis.ipynb` and
# `sample_analysis.ipynb` notebooks by setting EXP_NAMES=["test"] in the first cells.

# Call the scripts with `--help` to see more options, in particular to run on more than one CPU.

# The script run_exp.sh can be used to train and then evaluate a model, for example
./run_exp.sh exp_config_to_use name_for_expPrerequisitespoetryDevelopment# Installation of the dependencies.
poetry install

# Formatting
make format

# Linting
make lint

# Running the tests.
make test

# Starting the jupyter notebooks.
make notebook
Package: pvss
This project is a python (>= 3.7) implementation (library and CLI) ofPublicly Verifiable Secret Splitting (PVSS).PVSS is a non-interactive cryptographic protocol between multiple participants
for splitting a random secret into multiple shares and distributing them amongst a
group of users.  An arbitrary subset of those users (e.g. any 3 out of 5) can
later cooperate to reassemble the secret.The common use case for secret splitting is to create a highly durable backup of
highly sensitive data such as cryptographic keys.All communication between the participants is public and everyone can verify
that all messages have been correctly created according to the protocol. This
verification is done throughnon-interactive zero-knowledge proofs.The math is based upon the paperNon-Interactive and Information-Theoretic
Secure Publicly Verifiable Secret SharingbyChunming Tanget al. who extendedBerry Schoenmaker’s paperA Simple Publicly Verifiable Secret Sharing Scheme and its Application to Electronic Votingwhich in turn is based onShamir’s Secret Sharing.One notable difference to prior work is the addition of a receiver user:
In their scheme the secret is made public while it is being reassembled, which
violates the goal to keep the secret secret. To address this issue, the users no longer
disclose their share of the secret but useElGamal encryptionto securely convey the share to a
separate receiver user who will then reassemble the secret. Like all other communication,
the encrypted share is public and it can be verified that the users followed the protocol.DocumentationFull documentation can be found athttps://pvss.1e8.de/.InstallationPVSS’s dependencies are:python (>= 3.7)At least one of:libsodium(>= 1.0.18, recommended, forRistretto255group)On Debian (Bullseye / 11 and later) or Ubuntu (Eoan / 19.10 and later):#aptinstalllibsodium23gmpy2(Group of quadratic residues modulo a large safe prime)You can installPVSSwithpip:$pipinstallpvssAnd optionally:$pipinstallgmpy2ExampleThe following sequence of shell commands is executed by six different users who
share a data directory. E.g. use git to synchronize it between the users. All
files insidedatadirare public. All files outside of it are private.(init)$pvssdatadirgenparamsrst255(alice)$pvssdatadirgenuserAlicealice.key(boris)$pvssdatadirgenuserBorisboris.key(chris)$pvssdatadirgenuserChrischris.key(dealer)$pvssdatadirsplitsecret2secret0.der(receiver)$pvssdatadirgenreceiverrecv.key(boris)$pvssdatadirreencryptboris.key(alice)$pvssdatadirreencryptalice.key(receiver)$pvssdatadirreconstructrecv.keysecret1.dersecret0.derandsecret1.dershould compare equal.
Thedealerandreceivercan encrypt an actual payload by using that file as a shared key.
Package: pvsvg
pvsvgIntroductiona python wrapper of thevis.jsnetwork visualization library with an additional ability to export static SVG.Inspired by the excellent python librarypyvisbut I required a function to export the resulting network as a static SVG.The code for exporting the SVG is taken fromjustinharrell/vis-svg.InstallationYou can install this via pip:pipinstallpvsvgUsageThis library exposes a single class (Network) which takes as input
anetworkxGraph.All the configuration for node and edge level attributes (like color, size, mass)
are passed transparently tovis.jsso you can configure your resulting network
via the attributes of your networkx nodes and edges respectively.You can seenode level configurationandedge level configurationon thevis.jsdocumentation.Exporting as SVGThe resulting HTML file will have some configuration buttons built-in.
One of these is theexport-svgbutton which will generate the static
SVG and write it to a file (network.svg)Keep in mind that it will write the SVG of whatever is within theCanvaselement at the time.
Essentially the view you have within the boundaries of theCanvasis exactly
what will be written to the SVG.Note:Currently the node borders are not being written to the SVG. Besides
that everything else should appear.ExamplefrompvsvgimportNetworkimportnetworkxasnx# generate some random graphg=nx.fast_gnp_random_graph(15,0.2)# set node level attributesforning.nodes(data=True):id=n[0]ifid%2==0:n[1]["color"]="red"else:n[1]["color"]="blue"ifid%3==0:n[1]["shape"]="square"else:n[1]["shape"]="dot"n[1]["label"]=f"Node{id}"n[1]["title"]=f"Node{id}has color{n[1]['color']}and shape{n[1]['shape']}"n[1]["size"]=(id+1)# set edge level attributesforeing.edges(data=True):e[2]["color"]={"color":"black","inherit":False,}# Instantiate the networkn=Network(g,width=1200)# Draw the network as an htmln.draw("test.html")
Package: pvt100
pvt100A fistful of ANSI terminal escape codes for your terminal.They're actually just ANSI escape codes, but I like to call them pvt100 because it sounds cooler.These are all grouped under the name "ANSI escape codes", which is a bit
misleading, as ANSI is a standards body, and these are not all standards.UsageEasiest to just read pvt100.py to see what constants are available, as well asexample.pyin this repo.importpvt100print(f"{pvt100.color_bg_blue}Hello, world!{pvt100.style_reset}")Installationpipinstallpvt100See also:https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797https://bluesock.org/~willg/dev/ansi.html#ansicodesFor fun:https://xn--rpa.cc/irl/term.htmlhttps://github.com/jart/cosmopolitan/blob/master/tool/build/lib/pty.c
Package: pv-tandem
pv_tandem is a python toolbox for simulation and energy yield calculations of single junction and tandem solar cells with classical (monofacial) or bifacial illumination.Free software: MIT licenseDocumentation:https://pv-tandem.readthedocs.io.FeaturesHelping tools to process irradiance data for solar cell simulationsElectrical modeling with 1-diode model for single junction or tandem solar cellsModeling of illumination in a large PV power plant for the front- and backside of the modulesWhere to get itpv_tandem can easily be installed with pip:pipinstallpv_tandemIf you want to be able to directly run the examples you can install pv_tandems together with all nessesary libraries withpipinstallpv_tandem[doc]The source code is hosted at GitHub at:https://github.com/HZBSolarOptics/pv_tandemIf you want to install from source clone the project from github:gitclonehttps://github.com/nano-sippe/pv_tandemThen change into the pv_tandem folder and install with pippipinstall.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2023-05-03)First release on PyPI.
Package: pvtool
Pedantic Validator ToolThis package contains the validation logic to validate the data of the BO4E migration modelibims.
It uses thepedantic-validator-frameworkto
createValidationManagers for each data set inibims.
(Currently supported are onlyCustomer,NetworkandResource.)This package is designed to be used together withbomf.
Although, it only uses theMigrationConfigto use themigration_key_datewhich is necessary for some validations.UsageInstall itfrom pypi:pipinstallpvtoolTo use the validation logic you just need to bind the preconfigured modules of this package toValidationManagerof yourInjector. Alternatively, you could execute the provider-method of the
module on your own by supplying aMigrationConfiginstance.frominjectorimportInjectorfrompvtoolimportValidationManagerProviderCustomerfrompvframeworkimportValidationManagerfrombomf.configimportMigrationConfigfromdatetimeimportdatetime,UTCcustomer_injector=Injector([ValidationManagerProviderCustomer,lambdabinder:binder.bind(MigrationConfig,MigrationConfig(migration_key_date=datetime(2021,1,1,tzinfo=UTC))),])customer_validation_manager=customer_injector.get(ValidationManager)How to use this Repository on Your MachineFollow the instructions in ourPython template repository.ContributeYou are very welcome to contribute to this repository by opening a pull request against the main branch.
Package: pvv
pvvMinimal Python decorator to enforce type validation from type hintsInstallationThis library has been created to have zero dependencies, and work with native Python. Use your favorite package manager to installpvvfrom PyPI.pip install pvvUsageThere are two ways to use thevalidatedecorator frompvv:Validate all parametersJust use the decorator. ATypeErrorwill be raised if the function is called with parameters of incorrect type.[!NOTE]pvvwill check if the given parameters to a function are instances of the class annotated as a parameter. If one parameter has no type hints, it will be ignored in the validation.[!WARNING]pvvwill only work with type hints that can be used with class and instance checks.frompvvimportvalidate@validatedeffunction(a:str,b:int,c):pass>>> function("a", 3, 2)
>>> function(c=2, a="a", b=2)
>>> function(3, "a", 2)
TypeError: Incorrect type of function arguments: 'a' must be of type 'str', 'b' must be of type 'int'Validate some parametersfrompvvimportvalidate@validate('a','c')deffunction(a:str,b:int,c:bool|None):pass>>> function("a", 3, True)
>>> function(3, "b", 0)
TypeError: Incorrect type of function arguments: 'a' must be of type 'str', 'c' must be of type 'bool | None'An important noteThe parameters of thevalidatedecorator must all be of typestr, otherwise aValidatorErrorwill be raised:>>> @validate('a', 1)
... def func(*args, **kwargs):
...     pass
pvv.exceptions.ValidatorError: All arguments of decorator must be of type 'str'
Package: pvview
# pvview
display one or more EPICS PVs in a PyDM GUI window as a tableINSTALL:pip install pvviewMost Recent Tagged Build for conda installation[![Anaconda-Server Badge](https://anaconda.org/BCDA-APS/pvview/badges/installer/conda.svg)](https://conda.anaconda.org/aps-anl-tag)
[![Anaconda-Server Badge](https://anaconda.org/BCDA-APS/pvview/badges/platforms.svg)](https://anaconda.org/aps-anl-tag/pvview)
[![Anaconda-Server Badge](https://anaconda.org/BCDA-APS/pvview/badges/version.svg)](https://anaconda.org/aps-anl-tag/pvview)
[![Anaconda-Server Badge](https://anaconda.org/BCDA-APS/pvview/badges/downloads.svg)](https://anaconda.org/aps-anl-tag/pvview)conda install -c aps-anl-tag -c pydm-tag -c conda-forge pvviewEXAMPLE:pvview.py {sky,xxx}:{iso8601,:UPTIME} xxx:alldone adsky:cam1:Acquire &![pvview image](screen.jpg)Thepvviewcode was migrated from the
[BcdaQWidgets](https://github.com/BCDA-APS/bcdaqwidgets) project
(PyQt4-aware widgets for Python2)
to use the [PyDM](https://github.com/slaclab/pydm) project.
Package: pv-vision
PV-VisionImage analysis of defects on solar cells.This package allows you to analyze electroluminescene (EL)
images of PV module. The methods in this package include EL image preprocessing, defective
cell identification, crack segmentation, maximum isolated area prediction, etc.InstallationInstall from sourcegitclonehttps://github.com/hackingmaterials/pv-vision.gitcdpv-vision
pipinstall.Install from Pypipipinstallpv-visionUsageImport the packageimportpv_visionReadtutorialsCitationPlease cite our papers if you use our tool or dataset.Citation format can be found in ourgithub
Package: pv-visualizer
Visualizer is a Web frontend to ParaView based on trame. The current project is currently incomplete.
You can see it as an alpha version of what it could be. To make it fully functional we need more time and possibly funding.
But rather than waiting for it to be ready to release it, we are putting it out there as it does provide some very good example of what can be done with ParaView and trame.If you would like us to push it forward or want some help creating something similar, feel free to reach out tokitwareso we can see how we can help you.LicenseThis software is distributed under a BSD-3 licenseInstalling for DevelopmentBuild and install the Vue componentsexport NODE_OPTIONS=--openssl-legacy-provider
cd vue-components
npm i
npm run build
cd -Create a virtual environment to use with yourParaView 5.10+python3.9 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
pip install -e .Installing from releaseCreate a virtual environment to use with yourParaView 5.10+python3.9 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip pv-visualizerRunning the applicationRun the application usingParaView: pvpythonexecutableexport PVPYTHON=/Applications/ParaView-5.10.0.app/Contents/bin/pvpython # Using macOS install path as example
export PV_VENV=$PWD/.venv
export TRAME_APP=pv_visualizer.app$PVPYTHON-mparaview.apps.trame--data~Or you can use command line arguments instead of environment variables$PVPYTHON-mparaview.apps.trame\--venv$PWD/.venv\--trame-apppv_visualizer.app\--data~
Package: pvw
pvwA lightweight (~10kB) python venv wrapper for virtual environment management.Create venv or standard project in simple command line tool.Based on the built-in venv since python 3.6.Pre-requirementPython >= 3.6python-venvInstallationpip install pvwUsageYou can either start a raw project withpvw init, or just manage virtual envs withcore commands.Start a projectpvwinitPROJ_NAMEInitialize a python project, with a simple template as:|- pyproject.toml
|- src
    |- PROJ_NAME
          |- cli.py
|- README.md
|- LicenseYou can decide whether creating a specific env for this project.ConfigurationGet or set the directoryvenv_pathwhere venvs are stored in default.pvwconfiggetvenv_path# get venv_path variablepvwconfigsetvenv_path=PATH/TO/VENV# set venv_pathCore commandsWe usebaseas a demoShow# show name, path, and size(optional) of existing venvs.>pvwls[--show-size]NamePathSize
--------------------------------------
env1C:\Users\venvs\env1199.42MB
env2C:\Users\venvs\env221.83MB
stC:\Users\venvs\st313.99MB
v2C:\Users\venvs\v221.86MB
v3C:\Users\venvs\v321.85MBCreate# Create venv `base` in either way:pvwcreatebase# in default venv pathpvwcreate./base# in current directorypvwcreate/home/venvs/base# in specific directoryActivate/deactivate# For Windowspvwactivatebase# standard waypvwbase# or a shorter waydeactivate# exit# For Linux/MacOSsourcepvwactivatebase# standard waysourcepvwbase# or a shorter waydeactivate# exitCopy or move# copy or rename from a existing venvpvwcpbasedev# copy `base` to a new venv `dev`pvwmvdevfoo# rename `dev` to a new venv `foo`Remove# remove both `dev` and `foo`pvwrmdevfoo# remove envs that starts with `test`pvwrmtest.*Build From SourceUsing Makefilecdsrc/pvw
make
sudomakeinstallThe executable binarypvwandpvw_pywill be installed in your /usr/bin/ directory.Using setuptoolspipinstall--upgradebuildsetuptools# skip if already installedpython-mbuild
pipinstalldist/pvw-x.x.x.tar.gz# x.x.x is the built version of pvwTo-do listSimplify activate command in Linux/Mac OSEnable setting default venv in terminalAdd unit testsSupport specific python version (if installed)
Package: pvWebMonitor
Create static web site from EPICS PVs.This package provides a background service that monitors EPICS PVs
and writes them into customized HTML files in a WWW server
directory.  The service can be started and stopped by a manage.csh
script for automated startup in a cron task or at system startup.author:Pete R. Jemianemail:jemian@anl.govcopyright:2005-2022, University of Chicago, The Regents of the University of California, and Berliner Elektronenspeicherring Gesellschaft fuer Synchrotronstrahlung m.b.H. (BESSY) All rights reserved.license:EPICS (seeLICENSE)docs:https://bcda-aps.github.io/pvWebMonitor/git:https://github.com/BCDA-APS/pvWebMonitor.gitPyPI:https://pypi.python.org/pypi/pvWebMonitorpublishing:review:
Package: pw
pwpwis a Python tool to search in a GPG-encrypted password database.Usage: pw [OPTIONS] [USER@][KEY] [USER]

  Search for USER and KEY in GPG-encrypted password file.

Options:
  -C, --copy       Display account information, but copy password to clipboard (default mode).
  -E, --echo       Display account information as well as password in plaintext (alternative mode).
  -R, --raw        Only display password in plaintext (alternative mode).
  -S, --strict     Fail unless precisely a single result has been found.
  -U, --user       Copy or display username instead of password.
  -f, --file PATH  Path to password file.
  --edit           Launch editor to edit password database and exit.
  --gen            Generate a random password and exit.
  --version        Show the version and exit.
  --help           Show this message and exit.InstallationTo installpw, simply run:$pipinstallpw