Saravanan666/pypi-org huggingface dataset:
Package: panopto-dl
Panopto-Video-DLToolkit to download video recordings from Panopto.PrerequisitesPanopto-Video-DL-browserPython >= 3.7Module UsageInstallationRun the command:pipinstallpanopto-dlFFmpeg extensionSince version 1.4.0FFmpeg is no longer needed, but it is still possible to download video
usingffmpegby adding[ffmpeg]to the pip command used to install it.pipinstallgit+https://github.com/Panopto-Video-DL/Panopto-Video-DL-lib#egg=PanoptoDownloader[ffmpeg]Note: FFmpegmustbe added in thesystem PATHUsageIn a new terminal run the command:panoptodownloaderPaste the link automatically copied fromPanopto-Video-DL-browserSet the destination folderWait for the download to finishUse as Python ModuleimportPanoptoDownloaderURL="https://****"PATH="./output.mp4"defcallback(progress:int):""":param progress: Downloading progress. From 0 to 100"""print(f"{progress}/ 100")if__name__=='__main__':try:PanoptoDownloader.download(URL,PATH,callback)print("Download completed")exceptExceptionase:print(e)Application UIInstallationInstall JavaScript browser extension to get M3U8 file pathInstallTamperMonkeyScript-Manager browser extensionChromeFirefoxOther browserInstall this JavaScript script fromhereClone this repository to local path$ git clone https://github.com/samsonq/panopto-dl.gitInstall requirements to run application$ pip install -r requirements.txtRun applicationEnter cloned repository$ cd panopto-dl$ python main.pyA UI (user-interface) should appear within a few seconds with instructionsUI Application UsageStart application (see above section), the following UI should be displayed:Open Panopto recording on web browser, and click the 'Download' button at the bottom left of the page. This will automatically copy a link for you:Create a recordings folder in your local directory to store file recordings$ mkdir recordingsThe supported extensions of the downloaded recording include:.mp4,.mkv,.flv,.aviPaste the copied link from step (2) into the applicationEnter the specified path to save the video recordingi.e../recordings/lecture.mp4Click the Download button and wait for recording to finish processingAfter the progress bar reaches the end, the video recording should be saved in the specified path
Package: panopy
A workflow automation wrapper forPandoc.You’ve gotexciting.mdand want a pdf with LuaLaTeX, bibliography
support?panopypdfexciting.mdWant a self-contained html with Bootstrap too?panopyhtmlexciting.mdInstallationpipinstallpanopyPurposePandoc requires a large number of command-line arguments to generate any
output format. Typical solutions have been to use makefiles or YAML
configurations to specify what pandoc should do, along with
pre/post-processors to clean up pandoc’s shortcomings. This can get
messy.panopy’s philosophy is to separate contents from workflow. Content
should try as hard as it can to be agnostic to its output format.
Likewise, the file system should segregate content from the tools needed
to process it. Instead of makefile and document-embedded output
specifications,panopyuses global YAML templates to specify
workflows around any given input file, combined with a global script to
process it all. So you can write a single markdown file and push it to
whatever formats you need.At the present moment, panopy is a barebones wrapper allowing for a
series of preprocessing commands, a pandoc command and a series of
postprocessing commands. I can’t vouch for its ability to process
multiple input files into a single output. I also doubt that pandoc is
fast enough to be an online processor for multiple files.UsagePanopy looks for a default YAML template file in
~/.pandoc/panopy.templates. Currently there is no way to change this
location. A sample file might looks something like:__default__:s:S:r:markdown+yaml_metadata_blocklatex:o:%.texbibliography:~/Documents/library.bibfilter:-pandoc-citeprocpdf:__inherits__:latexo:%.pdflatex-engine:pdflatexfancypdf:__inherits__:pdf__pre__:-gpp -o %.gpp.md %.md__in__:%.gpp.mdThe__default__template sets options-s(standalone),-S(smart), and-rmarkdown+yaml_metadata_blockfor all files. Thelatextemplate changes the default output format to tex and adds
pandoc’s bibliography processing filter. Thepdftemplate inherits
all settings fromlatexbut changes the output to pdf and sets the
latex engine. Thefancypdftemplate updatespdfto preprocess
the input file withgppand
changes the input file to pass to pandoc.Now just find your input file in the terminal and type:panopyfancypdfinput.mdAnd if you use vim::!panopy fancypdf %```Panopy KeywordsSpecial templates:__default__: provides the default template that all others
inherit fromKeywords in template:%: auto-replaced by base file name:panopy pdf infile.mdwith
template option-o:%.pdfbecomes-oinfile.pdf. Escape with\%__inherits__: inherit from named template(s)__in__: specifies input file format__pre__: specifies commands to run before pandoc__post__: specifies commands to run after pandoc__clear__: specifies which inherited options to clearSimilarpanzerallows you to specify
styles at the file level (YAML metadata), whilepanopyspecifies
a workflow at the command line. I madepanopybecause I wanted to
keep my YAML clean and sort of tool agnostic.Makefiles: see e.g.Kieran Healy’s
solution
Package: panorama
Create panorama in one run. Uses hugin for the real work.Installationpipinstallpanorama# or if you love programmingpipinstall-egit+https://github.com/guettli/panorama.git#egg=panoramaUsagecreate-panorama-from-jpg-files-in-directoryfile_containing_jpg_filesFeedbackPlease use the github issue tracker for feedback.https://github.com/guettli/panorama/issues
Package: panoramaTool
Panorama ProjectThis project is initially intended to insert security post rules into Panorama via API.The project may then be expanded further. Depending on future requirements.RunDockerdocker run -it -p 8888:8888 bnstimo/panorama_toolPythonCreate and change directory to the project:cd /path/to/projectCheck python version (The version should be 3.11, but you can try it with other versions):python --version
# or
python3 --versionCreate a python venv:python -m venv venv
# or
python3 -m venv venvActivate the venv:macOS / Linuxsource venv/bin/activateWindows# In cmd.exe
venv\Scripts\activate.bat

# In PowerShell
venv\Scripts\Activate.ps1Install the toolpip install panoramaToolStart the toolpython -m panoramaToolUse itStart a browser and go tohttp://127.0.0.1:5000
Package: panoramic-auth
Panoramic Auth SDKGetting StartedThis SDK handles the access token generation using client_credentials flow against Panoramic. To install the SDK in your app, add it to your requirements.txt:panoramic-auth==1.0.0All you then need to do is subclass the OAuth2Client Python class from the SDK, pass your client_id and client_secret, and use the session attribute from your subclass when making HTTP requests:# Import the class as usualfrompanoramic.authimportOAuth2Client# Note subclassing OAuth2Client belowclassPanoramicApiClient(OAuth2Client):def__init__(self,base_url:str,client_id:str,client_secret:str):super().__init__(client_id,client_secret)self.base_url=base_urldefasync_data(self,data:Dict[str,Any])->Dict[str,Any]:url=urljoin('https://platform.panoramichq.com/api/example')# Note self.session belowresponse=self.session.post(url=url,json=data)response.raise_for_status()returnresponse.json()DevelopmentThis repository does not have a dedicated docker image. At the moment, we create python virtual environment using command (in directory.venvinside current directory):> python3 -m venv .venvIf you use pyenv and pyenv-virtualenv, you can create it using:> pyenv virtualenv panoramic-authThen, you can switch to it from command-line using following command:> source .venv/bin/activateOr if using pyenv-virtualenv:pyenv local panoramic-authLastly, use following command to install dependencies (make sure you have correct python environment active):> make installInstall pre-commit - useful to avoid commiting code that doesn't pass the linter:> make pre-commit-installThis installs git hooks that run pre-commit.TestsUse following command to run all tests:> make testsRelease processTo release a new version of the library, follow these steps:In your PR, update version insetup.pyand add entry toCHANGELOG.mdAfter merge, tag the commit with version number from setup.py. For examplegit tag v0.1.1. You can also do this by creating a newrelease.This triggers a Travis pipeline which runs tests, linters and uploads the package toPyPI
Package: panoramic-cli
Panoramic CLIThis repository contains the Panoramic Command Line tool. This tool allows you to create & maintain your Panoramic data models. It is built with Python 3.6+ and can be installed via PyPI or other similar tools.InstallationTo install the CLI, usepiporpipenv:$pipinstall-Upanoramic-cliUsageOnce you install the CLI tool, you can call it usingpanoon the command line. For more information, runpanowith no commands to see the help information:Usage: pano [OPTIONS] COMMAND [ARGS]...

Options:
  --debug     Enables debug mode
  --version   Show the version and exit.
  -h, --help  Show this message and exit.

Commands:
  configure         Configure pano CLI options
  detect-joins      Detect joins under a dataset
  field             Commands on local field files.
  init              Initialize metadata repository
  list-companies    List available companies
  list-connections  List available data connections
  pull              Pull models from remote
  push              Push models to remote
  scan              Scan models from source
  validate          Validate local filesRelease processTo release a new version of the library, follow these steps:In your PR, update version in__version__.pyand add entry toCHANGELOG.mdAfter merge, tag the commit with version number from setup.py. For examplegit tag v0.1.1.Once the tag is pushed, it will trigger a build with GitHub Actions, which will publish the new version on PyPI and create a release on GitHub.DevelopmentVirtual Environment Using venvAdd python virtual environment using python venv (adds.venvinside current directory):> python3 -m venv .venvThen, you can switch to it from command-line using following command:> source .venv/bin/activateVirtual Environment Using pyenvAlternatively if you use pyenv and pyenv-virtualenv, you can create virtual environment using:> pyenv virtualenv pano-cliAnd use the created virtual environment:> pyenv local pano-cliBuild and RunUse following command to install dependencies (make sure you have correct python environment active):> make installNow you should havepanopackage available. First create config. You need to ask friendly SRE Team Member for OAuth credentials for yourself.> pano configureAnd finally you are ready to usepano. You can find all commands in help:> pano -hTestsUse following command to run all tests:> make testUse following command to run all other checks:> make lintPre commit hooksYou can install pre-commit. It is useful to avoid commiting code that doesn't pass the linter. It installs git hooks that run pre-commit.> make pre-commit-installVSCodeYou can use following debug config to run pano cli using VSCode debugger:{
    "name": "Python: Pano CLI Scan",
    "type": "python",
    "request": "launch",
    "module": "panoramic.cli",
    "args": ["scan", "testsource"]
}
Package: panoramisk
Panoramiskis a library based on python’sAsyncIOto play withAsterisk’smanager.It uses the TCP manager server to listen to events and send actions.For basic usage, you have some examples inexamples/folder.You can find some help on IRC:irc://irc.freenode.net/panoramisk(www)Source code is available athttps://github.com/gawel/panoramisk/Check thefull documentationI’ve spent hours writing this software, with love.
Please consider tiping if you like it:BTC: 1PruQAwByDndFZ7vTeJhyWefAghaZx9RZgETH: 0xb6418036d8E06c60C4D91c17d72Df6e1e5b15CE6LTC: LY6CdZcDbxnBX9GFBJ45TqVj8NykBBqsmT
Package: panoramix-decompiler-abi
PanoramixThis is an EVM decompiler.It's is a fork of the Panoramix repo by Palkeo (https://github.com/palkeo/panoramix) which is a fork of the original repo that's not maintained actively by its author anymore:https://github.com/eveem-org/panoramix.gitThe goal of this fork is to maintain Panoramix in a decent shape, fix some crashes, implement missing opcodes...
I also got rid of the "tilde" syntax that was using a custom python encoding and use vanilla Python instead. And I made it a proper python package that can be imported.
There is also a better support of timeouts, as instead of stopping entirely we will fallback and print whatever we decompiled even if it's not complete.The code quality is still not great and the software is complex, it's mostly reserved for advanced users.Installation$pipinstallpanoramix-decompiler-abiRunningYou will need to specify a web3 provider using the environment variableWEB3_PROVIDER_URI. In this case a local provider was set.$ WEB3_PROVIDER_URI=http://localhost:7545 panoramix 0x0d94D81FD712126E7f320b5B10537D01d6a01563The following options are available (--profile only with a single address)$panoramix[address|shortcut|address,address|bytecode][func_name][--abi][--verbose][--silent][--profile]#addressexample:$python3-mpanoramix0x0d94D81FD712126E7f320b5B10537D01d6a01563--abi--silent#bytecodeexample:$python3-mpanoramix6004600d60003960046000f30011223344--abi--silentExamplesI have decompiled all of mainnet, and make sure to decompile again on the latest Panoramix version from time to time.You can access decompilations using Oko:https://oko.palkeo.com/Here is an example for cryptokitties:https://oko.palkeo.com/0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/code/
Package: panoramix-decompiler-x
PanoramixThis is an EVM decompiler.It's is a fork of the Panoramix original repo that's not maintained actively by its author anymore:https://github.com/eveem-org/panoramix.gitThe goal of this fork is to maintain Panoramix in a decent shape, fix some crashes, implement missing opcodes...
I also got rid of the "tilde" syntax that was using a custom python encoding and use vanilla Python instead. And I made it a proper python package that can be imported.
There is also a better support of timeouts, as instead of stopping entirely we will fallback and print whatever we decompiled even if it's not complete.The code quality is still not great and the software is complex, it's mostly reserved for advanced users.Installation$pipinstallpanoramix-decompilerRunningYou can specify a web3 provider using the environment variableWEB3_PROVIDER_URI. In this case a local provider was set.$WEB3_PROVIDER_URI=http://localhost:7545panoramix0x0d94D81FD712126E7f320b5B10537D01d6a01563You can also provide the bytecode for decompilation.$panoramix6004600d60003960046000f30011223344ExamplesI have decompiled all of mainnet, and make sure to decompile again on the latest Panoramix version from time to time.You can access decompilations using Oko:https://oko.palkeo.com/Here is an example for cryptokitties:https://oko.palkeo.com/0x06012c8cf97BEaD5deAe237070F9587f8E7A266d/code/
Package: panorma
PanormaA lightweight Python package (just over 50 lines of code) that enables you to create typed
models for Pandas DataFrames using classes.You can easily define  structured models, enforce column typing,
enjoy autocompletion, and catch invalid column errors early in your DataFrame operations.Simplify your data modeling and enhance the reliability of your DataFrame workflows.Installation:pipinstallpanormaExample:Create some models:frompanorma.fieldsimportStringDtype,Int16Dtype,Float32Dtype,Timestamp,CategoricalDtypefrompanorma.framesimportDataFrameclassUsers(DataFrame):name:StringDtypeage:Int16Dtypepercentage:Float32Dtypebirth_date:TimestampclassCars(DataFrame):car:StringDtypempg:Float32Dtypecylinders:Int16Dtypedisplacement:Float32Dtypehorsepower:Float32Dtypeweight:Float32Dtypeacceleration:Float32Dtypemodel:Int16Dtypeorigin:CategoricalDtypeInstantiate your models as you instantiate a simple pandas dataframeimportpandasaspdusers=Users({"name":['john','kevin'],"age":[99,15],"percentage":[0.8,7.3],"birth_date":[pd.Timestamp('20180310'),pd.Timestamp('20230910')],})cars=Cars(pd.read_csv('CAR_DATASET.csv'))You will get autocompletion for models columns and pandas at the same timeIf the columns of your data are not matching your model, you will get a NotMatchingFields exception:If a column cannot be cast to the type declared in the model, you will get a ParseError exception:
Package: pan-os-python
Palo Alto Networks PAN-OS SDK for PythonThe PAN-OS SDK for Python (pan-os-python) is a package to help interact with
Palo Alto Networks devices (including physical and virtualized Next-generation
Firewalls and Panorama).  The pan-os-python SDK is object oriented and mimics
the traditional interaction with the device via the GUI or CLI/API.Documentation:http://pan-os-python.readthedocs.ioFeaturesObject model of Firewall and Panorama configurationMultiple connection methods including Panorama as a proxyAll operations natively vsys-awareSupport for high availability pairs and retry/recovery during node failureBatch User-ID operationsDevice API exception classificationStatusPalo Alto Networks PAN-OS SDK for Python is considered stable. It is fully tested
and used in many production environments. Semantic versioning is applied to indicate
bug fixes, new features, and breaking changes in each version.InstallInstall using pip:pipinstallpan-os-pythonUpgrade to the latest version:pipinstall--upgradepan-os-pythonIf you have poetry installed, you can also add pan-os-python to your project:poetryaddpan-os-pythonHow to importTo use pan-os-python in a project:importpanosYou can also be more specific about which modules you want to import:frompanosimportfirewallfrompanosimportnetworkA few examplesFor configuration tasks, create a tree structure using the classes in
each module. Nodes hierarchy must follow the model in theConfiguration Tree.The following examples assume the modules were imported as such:frompanosimportfirewallfrompanosimportnetworkCreate an interface and commit:fw=firewall.Firewall("10.0.0.1",api_username="admin",api_password="admin")eth1=network.EthernetInterface("ethernet1/1",mode="layer3")fw.add(eth1)eth1.create()fw.commit()Operational commands leverage the 'op' method of the device:fw=firewall.Firewall("10.0.0.1",api_username="admin",api_password="admin")printfw.op("show system info")Some operational commands have methods to refresh the variables in an object:# populates the version, serial, and model variables from the live devicefw.refresh_system_info()See more examples in theUsage Guide.Upgrade from pandeviceThispan-os-pythonpackage is the evolution of the olderpandevicepackage. To
upgrade frompandevicetopan-os-python, follow these steps.Step 1. Ensure you are using python3Python2 is end-of-lifeand not
supported bypan-os-python.Step 2. Uninstall pandevice:pipuninstallpandevice# orpoetryremovepandeviceStep 3. Install pan-os-python:pip3installpan-os-python# orpoetryaddpan-os-pythonStep 4. Change the import statements in your code frompandevicetopanos. For example:importpandevicefrompandevice.firewallimportFirewall# would change toimportpanosfrompanos.firewallimportFirewallStep 5. Test your script or applicationThere are no known breaking changes
betweenpandevice v0.14.0andpan-os-python v1.0.0, but it is a major
upgrade so please verify everything works as expected.ContributorsBrian Torres-Gil -btorresgilGarfield Freeman -shinmogJohn Anderson -lampwinsAditya Sripal -AdityaSripalThank you toKevin Steves, creator of thepan-python library
Package: panos-upgrade-assurance
PAN-OS Upgrade AssuranceOverviewThepanos-upgrade-assurancepackage includes the set of classes written inPythonto ease the process of writing checks and state snapshots during PanOS upgrade on the Next Generation Firewall.Both checks and snapshots can be used to verify the state of a device during an upgrade process. What more, it is possible to generate a report for these checks.The libraries were written to support Ansible and XSOAR integrations. They depend onpan-os-pythonlibraries and therefore are quite easy to fit into thePanOS Ansible modules collection.For more detailed documentation please refer toPAN.DEVportal.InstallationTo install the package you can usepip:python -m pip install panos-upgrade-assurance
Package: panovid
PanovidTurn panoramic photos into scrolling videos! This project can be used as a standalone script, or can be used in another python project.StandaloneTo setup use as a standalone application, run the following commands:gitclonehttps://github.com/kylelrichards11/panovid.gitcdpanovid
pipinstall--user-rrequirements.txtTo use, simpy callpython panovid.py <filename> [options], where filename is the file name of the panorama photo. The options are specified below and can also be seen by runningpython panovid.py --help.Note that the python version must be Python 3.6 or greater.OptionsOptionDescription--fpsFrames per second of video (default=60)--framejumpPixels to move between frames (default=4)--landscapeSave a video in landscape mode--portraitSave a video in portrait mode (default)In python projectpipinstallpanovidfrompanovidimportconvert_to_vidconvert_to_vid("my_photo.jpg")The optional arguments are the same as for the standalone version (without dashes).
Package: panphlan
READMEPanPhlAn 3 - strain detection and characterizationPangenome-based Phylogenomic AnalysisPanPhlAn is a strain-level metagenomic profiling tool for identifying
the gene composition of individual strains in metagenomic samples.
PanPhlAn’s ability for strain-tracking and functional analysis of unknown
pathogens makes it an efficient tool for culture-free microbial population studies.PanPhlAn is written in Python and covers the 4 main tasks:panphlan_download_pangenome.py, to download pangenome files (fasta, BowTie2 indexes and general information) for over 3,000 speciespanphlan_map.py, to profile each metagenomic sample by mapping it against the species of interestpanphlan_profile.py, to merge and process the mapping results in order to get the final gene presence/absence matrixpanphlan_find_gene_grp.py, organise OPTICS clustering to find some group of gene with similar profile and assess if they could be mobile elements in the genome. Also plot the presence/absence matrix as Heatmap.PanPhlAn runs under Ubuntu/Linux and requires the following software tools to be installed on your system:Bowtie2SamtoolsPython 3And the following Python libraries:numpypandasscipysklearn (only if usingpanphlan_find_gene_grp.py)If visualizations are made, one also needs :matplotlibseabornFor any help see the wiki or thebioBakery forum[PanPhlAn] is a project of theComputational Metagenomics Lab at CIBIO, University of Trento, Italy
Package: panphon2
panphon2PanPhon2 is a more performant version of Python PanPhon being written in Rust (and depending onrspanphon. It does not have all of the functionality ofPanPhon, but it should be much faster.The main class in PanPhon2 isFeatureTable. To instantiate aFeatureTable, the following is sufficient:>>>importpanphon2>>>ft=panphon2.FeatureTable()FeatureTablecurrenly has these methods:phonemes(str) -> [str]Takes a string in IPA and returns a list of phonemes.phonemes_to_vectors([str]) -> [[int]]Takes a list of phonemes and returns a list of list of numeric feature values.word_to_vectors(str) -> [[int]]Takes an IPA string and returns a list of lists of numberic feature values.feature_edit_distance(str, str) -> floatTakes two IPA strings and returns the feature-weighted distance between them.word_to_bag_of_featuresTakes an IPA string and returns a vector of the sums of each dimension in the feature vectors corresponding to the phonemes.