Saravanan666/pypi-org huggingface dataset:
Package: pslipstream
Slipstream's goal is to provide the user's a dead-simple process for backing up their legally owned home-media to a
wide array of formats, including a full backup. Slipstream can be used with it's GUI, as CLI, or as an importable
package.It's trying to be different from the other solutions out there by providing as much information about the home-media
as one could need while being stupid simple to use.InstallationWindows Installers are available on theReleasespage.Alternatively you can download and install Slipstream from PIP/PyPI:$ pip install pslipstreamNoteIf pip gives you a warning about a path not being in your PATH environment variable then promptly add that path then
close all open command prompt Windows, or runningslipstreamwon't work as it will not be recognized as a program.Voilà 🎉 - You now have thepslipstreampackage installed!Launch it by typingslipstreamin your Terminal or Windows Run.To-doCraft GUI with Qt.Create a file based settings system.Add drive selection option.Add DVD backup support, using libdvdcss.Add information window with details about the DVD ISO.Write PyInstaller spec file.Add information window with details about the DVD-Video data, like Layer count, titles, languages, subtitles, codecs, e.t.c.Add support for remuxing to Matroska Video (MKV) with MKVToolnix.Add the ability to choose to remux by Title ID's.Add the ability to choose to remux by VOB ID, and VOB CELL's.Add the ability to choose which tracks of a title to output rather than all available.Add Blu-ray backup support, using libaacs.LicensingThis software is licensed under the terms ofGNU General Public License, Version 3.0.You can find a copy of the license in the LICENSE file in the root folder.Music disc icons created by Freepik - FlaticonInfo icons created by Freepik - FlaticonRefresh icons created by Pixel perfect - Flaticon© rlaphoenix 2020-2023
Package: psm
# psmPypi Source Manager: fast switch between different Pypi Source: pypi, double, aliyun, qinghua.This package is inspired by [Pana/nrm](https://github.com/Pana/nrm).## [中文文档](Readme_CN.md)## Installation` pip install psm `## Usage### Unix##### list all pypi source` psm ls `##### change pypi source` psm use douban `or ‘aliyun’ and ‘qinghua’##### show current source` psm show `### Windows##### list all pypi source` python-mpsm ls `##### change pypi source` python-mpsm use douban `##### show current source` python-mpsm show `## LICENSE[MIT](LICENSE)
Package: psmanager
PSmanager Release 0.0.1This is a python package which helps managing passwords.FeaturesIt can create random passwords using -createPassword()It can do checks for the password's strength using -checkPasswordStrength()More features will be added in futureInstallationDopip install psmanagerin your terminal to install the latest version ofpsmanager.How to use it?To use this package, create a.pyfile and typeimport psmanagerorfrom psmanager import <function name>.generatePassword()Generates a 14 characters long random but very strong and hard to guess password for your systems and accounts.for example :-Codeimport psmanager
password = generatePassword() --> This returns a string

print("Random Generated Password: ",password)OutputRandom Generated Password: xqzlvu03519*bqsavePassword()Saves your randomly generated password inpassword.txt.for example :-Codeimport psmanager
password = psmanager.generatePassword()
psmanager.savePassword()OutputOn ConsoleSuccessfully saved your password in password.txt!In password.txtGenerated Password: ryixtp44997@nvcheckPasswordStrength()Runs a check for password's strength. This returns a tuple (bool, string - "Strong","Moderate" or "Weak")for example :-1)Codeimport psmanager
randomPassword = psmanager.generatePassword()
passwordStrength = psmanager.checkPasswordStrength(password) --> This returns a tuple (bool, string)

print(passwordStrength[1]) --> We only need the string, so using index 1OutputLets assume that random password generated ispassword@1xyzStrongLets assume that random password generated ispasswd@1xyzModerateLets assume that random password generated ispassword@1Weak2)Codeimport psmanager

passwordStrength = psmanager.checkPasswordStrength("password here")  --> This returns a tuple (bool, string)

if passwordStrength[0]:--> To get the bool -> True or False
    print("pass")
else:
    print("fail")OutputLets assume that the password ispasswd@1xyza moderate passwordpassLets assume that the password ispasswd@yxzNot a good passwordfailLicenseCopyright(c) 2022 Saaem FaridiThis repository is licensed under the MIT license. See LICENSE for details.
Package: psmb-client
重置版本的Asyncio PSMB Client同步的Guardianfrompsmb_client.guardianimportSyncGuardianimportasynciohost='127.0.0.1'port=13880topic='123123123'client_id=1asyncdefhandler(msg:bytes):print(str(msg,encoding='UTF-8'))guard=SyncGuardian(host,port,topic,client_id,handler)guard.start()guard.wait_available()guard.send_msg("asdasdasd")guard.join()带自动重连的守护客户端frompsmb_client.guardianimportGuardianimportasynciohost='127.0.0.1'port=13880topic='123123123'client_id=1asyncdefhandler(msg:bytes):print(str(msg,encoding='UTF-8'))guard=Guardian(host,port,topic,client_id,handler)asyncdefmain():guard.try_connect()for_inrange(100):awaitguard.send_msg(b"hahaha")awaitasyncio.sleep(10)asyncio.run(main())使用高级抽象的Clientfrompsmb_client.streamimportClientimportasynciohost='127.0.0.1'port=13880topic='123123123'client_id=1asyncdefhandler(msg:bytes):print(str(msg,encoding='UTF-8'))client=Client(host,port,topic,client_id,handler)asyncdefmain():try:awaitclient.establish()exceptIOError:returnfor_inrange(10):try:awaitclient.send_msg(b'asdasd')awaitasyncio.sleep(5)exceptIOError:breaktry:awaitclient.close()exceptBrokenPipeError:returnasyncio.run(main())流式、分离的Clientfrompsmb_client.streamimport*importasynciohost='127.0.0.1'port=13880topic='123123123'subsciber_id=1asyncdefstart_pub()->Publisher:pub=Publisher(host,port,topic)awaitpub.open_connection()returnpubasyncdefstart_sub()->Subscriber:asyncdefprocess(data:bytes):print(str(data,'UTF-8'))sub=Subscriber(host,port,topic,subsciber_id,process)awaitsub.open_connection()returnsubasyncdefmain():pub,sub=awaitasyncio.gather(start_pub(),start_sub())foriinrange(10):try:awaitpub.send_msg(b'asdasd')awaitasyncio.sleep(5)exceptIOError:breaktry:awaitpub.close()awaitsub.close()exceptBrokenPipeError:passasyncio.run(main())
Package: ps-mem
ps_memA utility to accurately report the core memory usage for a programYes the name is a bit weird. coremem would be more appropriate,
but for backwards compatible reasons the ps_mem name remains.Install:pip install ps_memis supported, or rpm and deb packages
are available for most distros.  Also the ps_mem.py script
can be run directly.Usage:ps_mem [-h|--help] [-p PID,...] [-s|--split-args] [-t|--total] [-w N]
       [-d|--discriminate-by-pid] [-S|--swap]Example output:Private  +   Shared  =  RAM used       Program

 34.6 MiB +   1.0 MiB =  35.7 MiB       gnome-terminal
139.8 MiB +   2.3 MiB = 142.1 MiB       firefox
291.8 MiB +   2.5 MiB = 294.3 MiB       gnome-shell
272.2 MiB +  43.9 MiB = 316.1 MiB       chrome (12)
913.9 MiB +   3.2 MiB = 917.1 MiB       thunderbird
---------------------------------
                          1.9 GiB
=================================The [-p PID,...] option allows filtering the results.
For example to restrict output to the current $USER you could:sudo ps_mem -p $(pgrep -d, -u $USER)or to summarize the total RAM usage per user you could:foriin$(ps-e-ouser=|sort|uniq);doprintf'%-20s%10s\n'$i$(sudops_mem--total-p$(pgrep-d,-u$i))done
Package: ps-minifier
ps-minifierA very basic minifier for PowerShell scripts.Currently, a semicolon (;) is required at the end of each line in the script it is given.NOTE: This minifier is currently not very complex, and (while it works with programs I have tested it on) may not output functioning code for all programs it is given.Installation$ pip install ps-minifierUsageTo display the help menu:$ psminifier -husage: psminifier [-h] [-f FILE] [-o OUT_FILE]

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  path to file to minify
  -o OUT_FILE, --out-file OUT_FILE
                        path to save the resultPass the path to the file:$ psminifier -f FILE_PATHPass the path to save the result to:$ psminifier -o OUTPUT_PATHIfpsminifieris run without-fit will prompt the user to enter code via the standard input.
If it is run without-oit will output the result to the standard output.The psminifier module can be imported from python script as follows.fromps_minifier.psminifierimportminifyscript="[Some Powershell Scripts]"minified_script=minify(script)print(minified_script)
Package: psmlc
PSML - Python server markup languageThis is LMFS-PSML Compiler. It has a built-in staging server and can compile one psml file into many usable HTML pages.
It can reduce some of the development steps for you, so that you can complete the front-end development faster.
It is free(libre) software, open source under the GPL v2.0 license.How to install:$ sudo python3 setup.py installHow to compile:psml <file> {targets...}Example:$ cat > test.psml << "EOF"> text{>     inner: Hello-World!> }> command(end)> EOF$ psml test.psml -o TEST$ ls TESTindex.htmlFeedback:Lone_air_Use@outlook.com
Package: psmoe
Prostate Segmentation MoEA simple Python module for easy segmentation of the prostate in T2-weighted MRI images in NIfTI format. This module utilizes a mixture of U-Net architectures for segmentation tasks and aims to provide a straightforward solution for users working with prostate MRI data.FeaturesSegmentation of prostate regions in T2-weighted MRI images.Uses a combination of trained U-Net models for accurate and efficient segmentation.Supports input in the NIfTI format, a common format for medical imaging.Returns 3D masks aswell as the volume estimation.Recommended before installation (Windows)Install virtualenv if not alreadypip install virtualenvCreate a virtual environmentpython -m venv venvActivate itvenv\Scripts\activateYou may need to runSet-ExecutionPolicy Unrestricted -Scope Processbefore activationIf creating your own repository don't forget to ignore thevenvfolder in the.gitignorefileInstallationInstall the library using pip:pip install psmoeUsageExampleCheck forexample.pyScripted DownloadYou can also download a T2-weighted MRI sequence using the provided function in the example.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.For more details, visit theGitHub repository.
Package: psm-utils
Common utilities for parsing and handling peptide-spectrum matches and search
engine results in Python.AboutIntroductionpsm_utils is a Python package with utilities for parsing and
handling peptide-spectrum matches (PSMs) and proteomics search engine results.
It is mainly developed to be used in Python packages developed atCompOmics, such asMS²PIP,DeepLC, andMS²Rescore,
but can be useful to anyone dealing with PSMs and PSM files. Moreover, it
provides an easy-to-use CLI andweb serverto
convert search engine results from
one PSM file format into another.Goals and non-goalsTo provide an easy-to-use Python API forhandling PSMs.To provide a unified Python API to the plethora ofproteomics search engine
output formatsthat are in existence.To followcommunity standards: psm_utils pragmatically adheres to the
standards developed by theHUPO Proteomics Standards Initiative, such asProForma 2.0, theUniversal Spectrum Identifier, andmzIdentMLTo beopen and dynamic: psm_utils is fully open source, under the
permissive Apache 2.0 license. New reader and writer modules can easily be
added, and we welcome everyone to contribute to the project. SeeContributingfor more information.NOT to reinvent the wheel: Instead, psm_utils heavily makes
use of packages such aspyteomicsandpsimsthat have existing
functionality for reading and/or writing PSM files.psm_utils.ioprovides a unified, higher level Python API build on top of these packages.Supported file formatsFile formatpsm_utils tagRead supportWrite supportionbot CSVionbot✅❌OpenMS idXMLidxml✅✅MaxQuant msms.txtmsms✅❌MS Amanda CSVmsamanda✅❌mzIdentMLmzid✅✅Peptide Recordpeprec✅✅pepXMLpepxml✅❌Percolator tabpercolator✅✅Proteome Discoverer MSFproteome_discoverer✅❌Sagesage✅❌TSVtsv✅✅X!Tandem XMLxtandem✅❌Legend: ✅ Supported, ❌ Unsupportedpsm_utils onlinepsm_utils onlineis a Streamlit-based web server built on top of the psm_utils Python package. It allows
you to easily retrieve proteomics PSM statistics for any supported PSM file type, and to
convert search engine results from one PSM file format into  another. Click the badge
above to get started!Installationpipinstallpsm-utilscondainstall-cbiocondapsm-utilsFull documentationThe full documentation, including a quickstart guide and Python API reference
is available onpsm_utils.readthedocs.io.CitationIf you use psm_utils for your research, please cite the following publication:psm_utils: A high-level Python API for parsing and handling peptide-spectrum-matches and proteomics search results.Ralf Gabriels, Arthur Declercq, Robbin Bouwmeester, Sven Degroeve, Lennart Martens.Journal of Proteome Research (2022).doi:10.1021/acs.jproteome.2c00609
Package: psnap
psnapTrack Python script outputs over time along with keyword expansion in source code.Important script values can be saved to a dictionary and archived to a file.The output json file can be processed by psnap to augment special
keywords in the source with their saved values. Syntax is similar to
svn keyword substitution: $varname: value $See psnap_example for example usage and psnap_example2 for extensions.
Package: psntools
Date:2021-09-22ContentsRAP/RIF supportC Library for RAP/RIFPython Module for RAP/RIFInstallation of psntoolsCreditsRAP/RIF supportAdds functions to convert RAP to RIF and vice-versa with no dependency
to a special AES implementation, so the develper is free to choose his
preferred AES solution. Additionally it provides the AES ECB/CBC 128-bit
key to encrypt/decrypt RAP keys.For RIF to RAP process the RIF with the function, then encrypt the
intermediate result to get the RAP. For RAP to RIF decrypt the RAP key,
then process the intermediate result with the function to get the RIF.C Library for RAP/RIF// AES key for RAP key encryptionconstunsignedchar*constrap_aes_key;// functionsvoidrif2rap_rounds(constunsignedchar*constin_rif_key,unsignedchar*constout_unencrypted_rap_key);voidrap2rif_rounds(constunsignedchar*constin_decrypted_rap_key,unsignedchar*constout_rif_key);Python Module for RAP/RIFbytearrayraprif.rap_aes_keyAES ECB/CBC 128-bit key as bytearray.bytearrayraprif.rif2rap_rounds(bytes|bytearray)Extra processing of RIF key.bytearrayraprif.rap2rif_rounds(bytes|bytearray)Extra processing of decrypted RAP key.frompsntoolsimportraprif# access via raprif.#import psntools.raprif  # access via psntools.raprif.importbinasciibinascii.hexlify(raprif.rap_aes_key)rap_intermediate_bytes=raprif.rif2rap_rounds(rif_bytes)rif_bytes=raprif.rap2rif_rounds(rap_intermediate_bytes)Installation of psntoolspsntools for PythonAs the package includes some C code a C compiler is needed for
installation viapip install psntools.It is recommended to use virtual environments forPython
3andPython
2to avoid side-effects with other Python applications. Personal
preference is to use.venv3and.venv2respectively to be able
to cross-test for Python 3 and Python 2.Debian-based LinuxInstall build environment:apt-getinstallbuild-essential.Install via pip as mentioned above.WindowsGet theBuild Toolsfrom theVisual Studio download
page(link as
of 2018-11).Install Build Tools with additional components via “Change…​”
button:Desktop Development with C++Reboot.Start the Native Tools Command Prompt fitting Python’s bitness
(x86 = 32.bit, x64 = 64-bit).Install via pip as mentioned above.Creditswindsurfer1122flatz (RAP/RIF support)
Package: pso2-color-picker
color-pickerThe PSO2 color picker is a command line tool for generating the
PSO2 color palette given some RGB value. Currently, this is a toy
project that works as follows:Install the color-picker tool:pip install pso2-color-pickerExecute the color-picker tool:color-pickerFollow the prompts"Please provide file name (include .png)": [insert name of output file (e.g. nagatoro-hair.png)]"Please enter a color as comma-separated RGB" [insert color (e.g. 123, 234, 12)]If done correctly, a window should pop up with an image like the following:Likewise, a file will be saved at the location you ran the script with the
file name you provided in Step 3i.Let us know if you like it! Given enough community support, we would be happy to
extend this tool to be more user-friendly.
Package: psoa
psoaAn implementation of the Particle Swarm Optimization algorithmThe algorithm can be summarized as follows:a swarm of moving particles are used to find the extreme value of an objective functioneach particle has its own position and velocityuse the given function to evaluate particles' positionsresults can be compared, depending on whether we want to maximize or minimize the objective functionIn each step, a particle receives three forces, they are used to update the particle's velocitya friction force that slows down the particlea random attraction force towards the particle's previous best positiona random attraction force towards the swarm's previous best positionthe particle's velocity is then used to update the particle's positionif boundary conditions are included, we consider them to be reflecting boundaries, i.e. if the particle moves beyond the boundary in one direction, we wouldplace the particle back onto the boundaryand reverse the particle's velocity in that directionkeep updating the particles' positions and velocities untilthe swarm's best position convergesor until we reach the preset maximum number of stepsInstallation:pip install psoaorconda install -c wangxiangwen psoaExample Usage:>>>importpsoa>>>importnumpyasnp>>>s=psoa.swarm()>>>obj=lambdax:-((x[0]-10)**2+(x[1]-25)**2)>>>s.maximize(obj,dim=2)([10.0,25.0],-0.0)>>>obj2=lambdax:np.sum([xi**2-10*np.cos(2*np.pi*xi)>>>forxiinx])+10*len(x)>>>s.minimize(obj2,dim=5,max_iteration=1e5,>>>boundaries=((-5.12,-5.12,-5.12,-5.12,-5.12),>>>(5.12,5.12,5.12,5.12,5.12)))([-2.8743161872992346e-10,2.579205368330527e-09,-4.79709591601136e-09,-1.0974277510973518e-09,4.4227337040162274e-10],0.0)
Package: pSock
pSockpSock is a socket / web module that helps developers and students to approach Server-Client creation and much more.Developed by Andrea Vaccaro from ANDRVV (c) 2022InstallingLinux, MacOS =pip3 install pSock --userWindows =pip install pSock --userHow To Create a ServerimportpSock;fromthreadingimportThreaddefToRunOnlyInConnection(conn):print("This is a server!")print(f"Active connections{sock.getactiveconnections}")whileTrue:received=sock.take(conn,codify="utf-8",buffer=2048)ifreceived=="!quit":breakprint(received)sock.quit()ip,port="localhost",80sock=pSock.Net(pSock.AF_INET,pSock.SOCK_STREAM)sock.createserver([ip,port])sock.listen(ToListen=1)whileTrue:conn,addr=sock.accept()Thread(ToRunOnlyInConnection,[conn]).start()How To Create a ClientimportpSockip,port="localhost",80sock=pSock.Net(pSock.AF_INET,pSock.SOCK_STREAM)sock.connect([ip,port])print("This is a client!")whileTrue:tosend=input("> ")iftosend="!quit":breaksock.send(tosend,codify="utf-8")sock.quit()Web ScrapingimportpSockpSock.Web.getresponsetext()json_data=pSock.Web.getresponsedata()name=json_data[name]to_research=pSock.Web.responsesearch("www.python.org",to_find)Other Commands And MethodsReceive info, local and remoteimportpSockip,port="localhost",80sock=pSock.Net(pSock.AF_INET,pSock.SOCK_STREAM)sock.createserver([ip,port])protocol_name="udp"host=sock.gethostaddress=sock.getaddractive_connections=sock.getactiveconnections# Output: intactive_connection_data=sock.getactiveconnectionsdata# Output: list/tuplemy_host_name=pSock.gethostname()fully_domain_name=pSock.getfdname()get_proto=pSock.getproto(protocol_name)get_service=pSock.getservice(port)# Insert name or portget_host_remote=pSock.gethost(ip)# Insert IP or nameget_all_address_dict=pSock.getipconfig()# RETURN: MAC Address, IP, location of Address, Ethernet, Ethernet 2, LAN, LAN* 1, LAN* 2, Wi-Fi, Pseudo Interfacemy_ipv4_address=get_all_address_dict["Address"][0]# Exampleget_all_address_map=pSock.getipconfigmap()# PRINT: MAC Address, IP, location of Address, Ethernet, Ethernet 2, LAN, LAN* 1, LAN* 2, Wi-Fi, Pseudo InterfaceSending without connectionsimportpSockip,port="localhost",80sock=pSock.Net(pSock.AF_INET,pSock.SOCK_STREAM)tosend=input("> ")sock.sendto(tosend,codify="utf-8",[ip,port])Setting a temporary addrimportpSockip,port="localhost",80sock=pSock.Net(pSock.AF_INET,pSock.SOCK_STREAM)tosend=input("> ")sock.setaddr(["localhost",80])sock.sendto(tosend,codify="utf-8")tosend=input("> ")sock.setaddr(["localhost",334])sock.sendto(tosend,codify="utf-8")sock.setaddr(["localhost",334])sock.createserver()sock.cancelsets()# To delete the IP and ports set
Package: psocket
PSocketThe cross-platform simple tool to work with remote server through sockets.
It can establish socket connection to a remote host:port, send commands and receive response.
No need to send byte-string. Use usual strings to send command.InstallationFor most users, the recommended method to install is via pip:pip install psocketor from source:python setup.py installImportfrompsocketimportSocketClientUsagefrompsocketimportSocketClientclient=SocketClient(host='172.16.0.48',port=3261)print(client)frompsocketimportSocketClientclient=SocketClient(host='172.16.0.48',port=3261,initialize=True)print(client.send_command('<commands>'))Changelog1.1.4 (29.05.2023)debug log extended with timeout errorglobal timeout management added1.1.3 (26.05.2023)Reading completion from the socket fixedbuffer size reduced to 4kLogger extendedRefactoring1.1.2 (25.05.2023)buffer size increased to 8kdebug log added1.1.1 (04.08.2022)Detect command is completed by \n\n1.1.0 (23.07.2022)log format changed1.0.9 (4.06.2022)response now split lines (instead of .split('\n'))logger now is staticSocketClient"greeting" class attr addedminor changes in logging formatsocket timeout log level changed from debug to warning1.0.8 (22.04.2022)Set blocking after command send with it1.0.7 (18.04.2022)._socket_response() renamed to ._receive_all() and changed to read huge amount of data from socketbuffer size changed to 4k (instead of 64k).send_command() extended with "timeout=None" param1.0.6 (17.04.2022)refactored to manage logger state1.0.5 (6.04.2022)logger moved inside class as attr in order to get access to it from outsideunknown attr access handling added1.0.4 (14.06.2021)Added host address logging1.0.3 (12.03.2021)Added ability to disable logs"timeout connection" added as parameter with None default value1.0.2 (15.01.2020)Added "initialize" param to the constructor1.0.1 (15.01.2020)"is_host_available()" renamed to "is_socket_available()" and updatedused external logger from "plogger" package1.0.0a4 (15.01.2020)added init docstringinit notation changed:host is stringport is integer1.0.0a3 (14.01.2020)removed timeout from socket connectiongreeting and socket_response now are private methods1.0.0a2 (13.01.2020)Reverted "client". Now it is an attribute again to keep session alive1.0.0a1 (13.01.2020)Now connection creates with client propertyNew methods added:is_host_available()get_sock_name()get_peer_name()1.0.0a0 (13.01.2020)initial commit