Saravanan666/pypi-org huggingface dataset:
Package: pyssg3021x-tspspi
(Unofficial) SSG3021X function generator control libraryThis is a simple (currently incomplete) implementation of
theFunctionGenerator baseclassof thepylabdevs base classesfor the
Siglent SSG3021X function generator. It establishes a connection via
Ethernet and allows currently to:Set and query frequency of the RF portEnable and disable the RF portSetting the power on the RF portInstallationThis package is available as PyPi packagessg3021x-tspspi:pip install ssg3021x-tspspiUsageSimple example (with context management)from ssg3021x.ssg3021x import SSG3021X
from time import sleep

with SSG3021X("198.51.100.1") as ssg:
	# Ask for identification
	print(ssg.identify())

	# Set frequency to 200 MHz, 10 dBm output power and enable output
	ssg.set_channel_frequency(0, 202e6)
	ssg.set_channel_amplitude(0, 10)
	ssg.set_channel_enabled(0, True)

	# Query status
	print(f"Frequency:\t{ssg.get_channel_frequency()}")
	print(f"Amplitude:\t{ssg.get_channel_amplitude()}")
	print(f"Enabled:\t{ssg.is_channel_enabled()}")

	# Wait
	sleep(60)

	# Disable
	ssg.set_channel_enabled(0, False)
Package: pyssgen
pyssgenpyssgen is a lightweight alternative to hugo and other static site generators.
I used it to build my static blog and included the templates and css that I use along with it.Please note that it's only a side project and might not be suitable for bigger
websites.Installation>>>pipinstall--userpyssgenUsage>>>python3-mpyssgen<input-dir><output-dir>(optional:<templates-dir>)customizingYou can make your own templates and css by adding the following files to your
custom templates folder:base.htmlcommon to all fileshome.htmlmain page templateposts.htmlother pages templatesand adding astyles.csstostatic/directory.
Package: pySSHA
pySSHA-slapdPython hashlib generator born as a script to test OpenLDAP user passwords.
It supports salted:md5sha1sha224sha256sha384sha512IntroductionpySSHA-slapd is a simple SSHA string encoder e checker that's quite easy to use:python3 ssha.py -p slapdsecret
{SSHA}omu7YHgg6_uqOIN_epZtfJtGo0ruwdSrUsageusage: ssha.py [-h] -p P [-s S] [-salt_size SALT_SIZE] [-c C] [-enc ENC] [-b]
               [-prefixed] [-d D]

Usage: python ssha.py -p Password[-c SSHA hash to check]

optional arguments:
  -h, --help            show this help message and exit
  -p P                  Password to encode
  -s S                  Salt, 4 bytes in hex format, example "fooo": -s
                        666f6f6f
  -salt_size SALT_SIZE  salt lenght
  -c C                  {SSHA} hash to check
  -enc ENC              Encoder to use, example: sha1 sha224 sha256 sha384
                        sha512
  -b                    if {SSHA} hash is in base64 format
  -prefixed             if suffixed or prefixed salt
  -d D                  Debug level from 1 to 5DependenciesPython3 and hashlibUsage examplesYou can adopt a specified salt for hashing, in hex format:python3 ssha.py -p slapdsecret -s 74be2629
{SSHA}w5CJCwNQk44NjTYzcMZNKbE6Bu90viYpVerify if a password is valid comparing it with a SSHA hash:python3 ssha.py -c {SHA1}pPUGnEBCmIa+fJy6ZTS87eEg+ylVYDqcrs6oHA== -p slapdsecretSame as previous but ssha hash is in base64 format (like ldapsearch output):python3 ssha.py -c e1NIQTF9dzVDSkN3TlFrNDROalRZemNNWk5LYkU2QnU5MHZpWXA= -b -p slapdsecret -salt_size 4Same as the previous but with maximum debug levelpython3 ssha.py -c e1NIQTF9dzVDSkN3TlFrNDROalRZemNNWk5LYkU2QnU5MHZpWXA= -b -p slapdsecret -d 3 -salt_size 4

[sshaSplit debug]
	ssha_password: {SSHA}w5CJCwNQk44NjTYzcMZNKbE6Bu90viYp 
	salt: 74be2629 
	payload: 0b0350938e0d8d363370c64d29b13a06ef

[checkPassword debug]
 	ssha_password:    {SSHA}w5CJCwNQk44NjTYzcMZNKbE6Bu90viYp
	created_password: {SSHA}w5CJCwNQk44NjTYzcMZNKbE6Bu90viYp
	salt: 74be2629
	password: slapdsecret

{SSHA} Check is valid: Trueselect your preferred encoderpython3 ssha.py -p slapdsecret -s 74be2629 -enc sha512
{SHA512}4gm2Ep0Nklb8pkss9zIs+t6/BGaGn2QYphl3UeAYuBBNW/hj8glu4jUb7JPb4LVWdCv+g0WoyYUB9VWVajQpjHS+Jik=without saltpython3 ssha.py -p ciao -d 3 -salt_size 0  -enc sha512OpenLDAP use a 8byte lenght salt, you can also change this value with-salt_sizeoption.Resourceshttps://tools.ietf.org/html/rfc3174https://github.com/openldap/openldap/blob/master/libraries/liblutil/sha1.chttps://github.com/openldap/openldap/blob/master/contrib/slapd-modules/passwd/sha2/README
Package: pysshconfig
pysshconfigExtremely simple, pure-python library to read ssh_config files.
Useful to see what keywords/options are applied to a certain host, just like the
official ssh client would.Requires Python >=3.5Example usageLet's say your~/.ssh/configfile looks like this:Host special.example.net
    User root
    Port 2222

Host *.example.com !insecure.example.com
    ForwardAgent yes
    User johndoe
    PreferredAuthentications publickey

Host *
    ForwardAgent no
    HashKnownHosts noThen you can parse it like this:import os.path
import pysshconfig as psc
with open(os.path.expanduser('~/.ssh/config')) as f:
    ssh_config = psc.load(f)Now check what keywords are applied to a certain host like this:>>> ssh_config.get_config_for_host('somehost.example.com')
{'ForwardAgent': 'yes', 'User': 'johndoe', 'PreferredAuthentications': 'publickey', 'HashKnownHosts': 'no'}

>>> ssh_config.get_config_for_host('insecure.example.com')
{'ForwardAgent': 'no', 'HashKnownHosts': 'no'}

>>> ssh_config.get_config_for_host('special.example.net')
{'User': 'root', 'Port': '2222', 'Forwardagent': 'yes', 'Preferredauthentications': 'publickey', 'HashKnownHosts': 'no'}Adding a new Host block is as easy as modifying a list:>>> myhosts = ['newhost.example.com', '*.www.example.com', '!test.www.example.com']
>>> myoptions = {'user': 'bob', 'port': '8080'}
>>> ssh_config.insert(0, psc.HostBlock(psc.HostList(myhosts), psc.KeywordSet(myoptions)))

>>> psc.dumps(ssh_config)
Host newhost.example.com *.www.example.com !test.www.example.com
    User bob
    Port 8080

Host special.example.net
    User root
    Port 2222

Host *.example.com !insecure.example.com special.example.net
    ForwardAgent yes
    User johndoe
    PreferredAuthentications publickey

Host *
    ForwardAgent no
    HashKnownHosts noYou can modify existing keywords as if they were dictionaries:>>> hostblocks = ssh_config.get_matching_hosts('host.www.example.com')
>>> for _, kw in hostblocks:
...    kw['user'] = "alice"
...
>>> psc.dumps(ssh_config)
Host newhost.example.com *.www.example.com !test.www.example.com
    User alice
    Port 8080

Host special.example.net
    User root
    Port 2222

Host *.example.com !insecure.example.com special.example.net
    ForwardAgent yes
    User alice
    PreferredAuthentications publickey

Host *
    ForwardAgent no
    HashKnownHosts no
    User aliceLimitationsFormatting from the original file will not be preserved. To be more specific:The keywords will change to match the correct case ('hashknownhosts' -> 'HashKnownHosts')Comments and empty lines will be removedIt will validate that the keywords are correct, but it does not perform any validation on their values.It does not support theMatchkeyword yet.
Package: pyssh-ctypes
Is a python, object oriented wrapper for libssh build with ctypes.Dependences:libssh >= 0.5FeaturesSSH command execution with streaming api.SFTP subsystem with random access to remote files.Compatible with python3, python2 and pypy.How to installFor normal use, you can use a standard python distutilssetup.pyfile:python setup.py installOr:pip install pyssh-ctypesDocumentationhttps://py-libssh-ctypes.readthedocs.org/en/latest/
Package: pysshm
pysshmConnect to a SSM session directly in your favorite terminal.InstallIn your terminal, run:$pipinstallpysshmIn order to fully use pysshm, youMUSTinstall thesession-manager-pluginfrom AWS.Usage$pysshm--help
Usage:pysshm[OPTIONS]ConnecttoanEC2instanceoverSSM,allinyourfavoriteshell.

Options:-p,--profileTEXTAWSprofile-r,--regionTEXTAWSregion(default:eu-west-3)-i,--instance-idTEXTInstanceIDfordirectconnect-d,--debugEnabledebug--helpShowthismessageandexit.
Package: pysshops
# pysshopspysshops is a comodity pacakge to build python operations tools working on ssh and powered by [paramiko](https://github.com/paramiko/paramiko).## Quickstart```pythonfrom pysshops import SshOpssshops = SshOps('hostname.domain.it', 'username')with sshops as ssh:ssh.remote_command('ls -l /var/tmp')``````pythonfrom pysshops import SftpOpssftpops = SftpOps('hostname.domain.it', 'username')with sftpops as sftp:sftp.deploy('pysshops_sftp', '/tmp/pysshops_sftp')```## Install### Git```git clonecd pysshopspython setup.py install```### Pip```pip install pysshops```## Features* simple* powered by rock-solid paramiko* python2/3 compatibility* both ssh and sftp facilities* external key based authentication at os level
Package: pyssian
A python interface to Gaussian i/o filesThis project contains an object oriented library for parsing Gaussian
io files which aims to facilitate the everyday scripting of computational
chemists using Gaussian.Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.Prerequisitespython >= 3.6python library: setuptoolspython library: numpyInstalling pyssian(Work In Progress) Installing from PyPI:$python-mpipinstallpyssianInstalling from source:Check your python version:$python--versionIf the version is not one of the required substitute in the following commands
“python” by the path to the python with the appropiate version. Some systems
do not have the python symlink but come with the python3 symlink.If working within a virtual environment with the appropiate python version, the
installation should proceed as normal using “python”.Get the source code either git or download and unpack it into “pyssian”
(Currently you need the developer permission to access the code)$gitclonehttps://github.com/maserasgroup-repo/pyssian.gitpyssianNow install pyssian$python-mpipinstallpyssianInstalling with the -e option before pyssian will make that
all the changes in the source file will be effective without havin to reinstallOr if you prefer you can download the source code in a compressed folder and
install directly:$python-mpipinstallpyssian.tar.gzInstalling the dependenciespython3.7 installation in Ubuntu 18.04 LTS$sudoapt-getupdate$sudoapt-getinstallpython3.7python3.7-devIf for any reason it is not reachable:$sudoadd-apt-repositoryppa:deadsnakes/ppa$sudoapt-getupdate$sudoapt-getinstallpython3.7python3.7-devNow you can skip this if you don’t want to set up a virtual environment
(Remember to change NewFolder for the actual path of the directory where you
want the virtual environment)$sudoapt-getinstallpython3.7-venv$python3.7-mvenvNewFolder$sourceNewFolder/bin/activateNow we install the python default installer pip$python-mpipinstallpip$python-mpipinstall--upgradepip$python-mpipinstallsetuptools$python-mpipinstallnumpyIf it proceeded without any errors (pip and setuptools should already be installed)Running the testsTo run the tests run the following command (after installing pyssian):$python-munittest-vpyssian.testsBuilding the docsTo build the docs go to the docs folder where you have the source code then run:$cdsphinx/$python-mpipinstall-rrequirements.txt$makehtmlNow if you go to the _docs/html folder you can open the index.html file in your
folder and navigate through the documentation easily.Developed withpython 3.7Ubuntu 16.04 LTS, 18.04 LTS and 20.04 LTSAuthorsRaúl Pérez-Soto- [rperezsoto](https://github.com/rperezsoto)Maria Besora- [MaBeBo](https://github.com/MaBeBo)Feliu Maseras- [maserasgroup](https://github.com/maserasgroup)Licensepyssian is freely available under an [MIT](https://opensource.org/licenses/MIT)
Package: pysslcmz
SSLCOMMERZ Payment Gateway implementation in PythonProvides a python module to implement payment gateway in python based web apps.InstallationVia PIPpipinstallpysslcmzProjected usefrompysslcmz.paymentimportSSLCSessionfromdecimalimportDecimalmypayment=SSLCSession(sslc_is_sandbox=True,sslc_store_id='your_sslc_store_id',sslc_store_pass='your_sslc_store_passcode')mypayment.set_urls(success_url='example.com/success',fail_url='example.com/failed',cancel_url='example.com/cancel',ipn_url='example.com/payment_notification')mypayment.set_product_integration(total_amount=Decimal('20.20'),currency='BDT',product_category='clothing',product_name='demo-product',num_of_item=2,shipping_method='YES',product_profile='None')mypayment.set_customer_info(name='John Doe',email='johndoe@email.com',address1='demo address',address2='demo address 2',city='Dhaka',postcode='1207',country='Bangladesh',phone='01711111111')mypayment.set_shipping_info(shipping_to='demo customer',address='demo address',city='Dhaka',postcode='1209',country='Bangladesh')# If you want to post some additional valuesmypayment.set_additional_values(value_a='cusotmer@email.com',value_b='portalcustomerid',value_c='1234',value_d='uuid')response_data=mypayment.init_payment()Response parametersWhen Successfull with Auth and Payloads providedstatussessionkeyGatewayPageURLExample>>>response_data['status']SUCCESS>>>response_data['sessionkey']F650E87F23DD2A8FFCB4E4E333C13B28>>>response_data['GatewayPageURL']https://sandbox.sslcommerz.com/EasyCheckOut/testcdef650e87f23dd2a8ffcb4234fasf3b28When FailedstatusfailedreasonExample>>>response_data['status']FAILED>>>response_data['failedreason']'Store Credential Error Or Store is De-active'
Package: pySSLVision
pySSLVisionEasily create a network socket between the SSL Vision and your VSSS or SSL software.Requirementsprotobuf==3.6.1InstallationUse the code below to install the package from PyPI:pip install pySSLVisionA Simple ExampleIn a test folder, save the code below as config.json{
    "network" : {
        "multicast_ip": "224.0.0.1",
        "vision_port": 10002
    }
}In the same folder, save the code below as test.py and run it while the referee is runningfrom pySSLVision.VisionComm import SSLVision

v = SSLVision()
v.start()

while True:
    time.sleep(1)
    print(v.frame)Important Methods and AttributesSome important methods are:MethodDescriptionSSLVision.assign_visionDefines a callback function to be called when a new frame is receivedassign_empty_valuesProcess vision frame placing the origin at the right edge of the field relative to your defending goalSome important attributes are:AttributeDescriptionSSLVision.frameStores the last received frameSSLVision.last_frameCan be used to store one frameColaboration GuideIn order to colaborate with this repository, clone this repository:git clone https://github.com/project-neon/pySSLVisionOpen directorycd pySSLVisionThen install dependenciespip install -r requirements.txtFinally, install the packagepython3 setup.py installRemember to use the Project Neon guidelines to git:https://github.com/project-neon/codestyleguide/blob/master/git.md
Package: pyssm
Authors: Strickland C. M, Burdett R. L., Mengerson K. L, Denham R. J.PySSM is a Python package that has been developed for the analysis of
time series using linear Gaussian state space models (SSM).PySSM is easy to use; models can be set up quickly and efficiently and
a variety of different settings are available to the user.  It also
takes advantage of scientific libraries Numpy and Scipy and other
high level features of the Python language.PySSM default is also used as a platform for interfacing between
optimised and parallelised FORTRAN routines.  These FORTRAN routines
heavily utilise Basic Linear Algebra (BLAS) and Linear Algebra Package
(LAPACK) functions for maximum performance.PySSM contains classes for filtering, classical smoothing as well as
simulation smoothing.You can access the code from thegit repositoryand submit
bugs/requests viatthe issue
tracker.
Package: pyssql
SimpleSqlAn sql module that requires no knowledge of sql syntax.InstallationThe simple sql module can be installed with pippip install pyssqlDemoimportpyssqlclassUser(pyssql.Class):# To create a class that can be stored in the database it must inherit simplesql.Classuser_count:int=0# Will not be restored when loading from database# Sql types (these will be stored and loaded when storing to or loading from a database)id:pyssql.Types.Integer(key=pyssql.Key.PRIMARY)username:pyssql.Types.String(max_length=50,not_null=True)def__init__(self,username:str)->None:self.id=User.user_countself.username=usernameUser.user_count+=1defon_load(self,)->None:# Called when loading from database, this method is optionalprint("Loading user",self.username,"with id",self.id)defshow(self)->None:print("ID:",self.id)print("Username:",self.username)# We'll create a database located in memory (by setting the path to ":memory:"), if you want to save it in a file and edit it later use a file path insteaddatabase=pyssql.Database(":memory:",classes=[User])# Populating the databasedatabase.insert(User("John"))database.insert(User("Mike"))database.insert(User("Steve"))database.insert(User("Jane"))database.insert(User("Lisa"))# Using the & operator is not recommended as it is very error prone# users = database.select(User).where((User.id < 4) & (User.id > 2)).all()# Instead chain the where(condition) methodusers=(database.select(User).where(User.id<4).where(User.id>2).all())# Same as User.id == 3foruserinusers:user.show()john=database.select(User).where(User.username=="John").first()john.show()# When loading objects from the database, all their values will be converted to python typesprint(type(john.id))# <class 'int'>Downloads
Package: pySSRS
# PySSRSMicrosoft Reporting Services (SSRS) RPC trough SOAP## Installation1. Make sure you have Python 3+ installed2. Run ```pip install PySSRS```### Connecting to SSRSYou can use it as a facilitator to make SOAP RPCs.For example:```python>From SSRS import SSRSService   = 'http://localhost/ReportinServices/ReportService2010.asmx?wsdl'Execution = 'http://myserver/reportserver/ReportExecution2005.asmx?wsdl'user      = 'user@contoso.com'password  = '@password2017'RS = SSRS(Service, Execution, user, password)result = RS.ServiceClient.service.ListChildren(dir, recursive)for item in result.CatalogItem:print(item['Name'])```### Available FunctionsWe implemented some functions to make it easy to use. Feel free to check their usage on the  **samples** folder.These functions are available by now:Function      | Objective                      | Return Type--------------|--------------------------------|------------ListMethods() | List all SOAP procedures | List []DirItems() | List all objects in a directory | Dictionary {}Find() | Find for a item by it's name | Dictionary {}GetParameters() | Return all parameters from a Report object | Dictionary {}RequestReport() | Execute a report from SSRS | Report Object - Used to suply RenderReport()RenderReport() | Render a Requested Report | Dictionary {}### Rendering ReportsNow we can load and render report with this module. Please, check **samples/LoadReport.py** to see how it works!### Example of Service FunctionCheck this small code, it's an sample of usage```python# Conneting to SSRS SOAP serverServiceWSDL    = 'http://localhost/ReportinServices/ReportService2010.asmx?wsdl'ExecutionWSDL  = 'http://myserver/reportserver/ReportExecution2005.asmx?wsdl'user = 'user@domain.compsw  = '@password2017'RS = SSRS(ServiceWSDL, ExecutionWSDL, user, psw)'''Return a LIST with all available SOAP proceduresso you can iterate over them...'''Methods = RS.ListMethods()'''Return a DICTIONARY with all items in a specific folder##you can also use the <recursive> parameter to scan subfolders.If you don't specify the <dir> parameter it'll take the root ('/') as default'''DirItems = RS.ListDirItems(dir='/MyReports', recursive=True)'''Find() will retrieve a list of items which the name matches with the <text> parameter.It's recursive, you don't need to specify any folder and you can also specify the object type that you wantby using the <objtype> parameter.Those are the accepted types of objects-> Component-> DataSource-> Folder-> Model-> LinkedReport-> Report-> Resource-> DataSet-> Site-> Unknown'''ItemsFound = RS.Find(text="Sales", objtype="Report")#GetParameters() will retrieve a list of paremeters for the report on the specific pathParameters = RS.GetParameters(path='/MyReports/SalesOrder')```# PySSRSMicrosoft Reporting Services (SSRS) RPC trough SOAP
Package: pysss
pysssThis is a minimalist and yet complete implementation of Shamir's Secret Sharing
Algorithm as described in [^JACM1979].
The goal is to provide a generic and efficient implementation.[^JACM1979]: Adi Shamir, "How to share a secret", Communications of the ACM
22(11):612-613. doi:10.1145/359168.359176RequirementsPython 3 (tested with Python 3.8.10)Bugs/QuestionsIn case of bugs/questions, contact me onGithubLICENSESee LICENSE.
Package: pysss2
pysss2Python tools to interact with Serpent 2 Monte Carlo codePysss2 C-side code is expected to be released with Serpent 2.1.32. Until then, the Serpent 2 development version is needed.The key resource provided by this package is theGUI to inspect Serpent 2 geometries interactively. The program allows interactive plotting of various cross sections: xy, xz or yz slices. The plot limits and the number of pixels can be chosen and the resulting figures can be saved. Also the material, cell and universe of a point can be checked.Usage (buttons on the right)Gray buttons change the view limits on the bar on topGeom. Limitsresets the default limtsView to limitsmoves the current  zoomed in/out limits to the top barGreen buttons updates the plots in addition to changing the valuesView to limits & Updis just updating version of the gray buttonV2L & P1:1 & Upddoes the same as above, but also tries to set the number of pixels to match the number of pixels on the displaying screenV2L & P1:10 & Upddoes the same as above, but only has one calculated pixel for each 10x10 screen pixelsYellow buttons change the slice (XY, XZ or YZ) to view:to ?? & UpdAfter clicking a yellow button, click on the plot to choose the location for the new sliceThe blue button:eval posEvaluates the material, cell and universe in the point clicked with mouse. The results are shown in the status bar and printed in the terminal.The red buttons:ReloadRestarts the plotter, forcing Serpent to regenerate the geometry (e.g. after the input has been changed).QuitExits the program.When the python program launches, it launches serpent as a library using ctypes.
The python side of the code only accepts a single optional  first parameter:  "--libsss2so /path/to/libsss2.so". All the rest are passed on to serpent un-parsed. In other words, the other parameters are serpent's parameters, not for the python.How to install and run the GUI:Install pysss2 with pip, as explained in thepypi pageof the project.The code uses python 3. It is known to work at least with version 3.6.7. You can check the current with e.g.
"python3 -c "import sys; print(sys.version)".There wasa bug in matplotlib, so 'matplotlib>=3.1.1' is needed. You can check the current version with e.g. "python3 -c "import matplotlib; print(matplotlib.version)"Compile the "lib" target (possibly in a dedicated folder) with the -fpic setting enabled in Makefile.(That is, uncomment the line"CFLAGS += -fpic". Then run"make clean"and then"make lib". The result should be a shared library called libssss2.so. This file includes all the routines of serpent, but they can be called from other programs.In your serpent input file you need todefine colors for all materials(e.g. "rgb 10 20 30").When running pysss2, the python code must know where to find the libssss2.so shared library. Thus, you need to either add the folder of libsss2.so in LD_LIBRARY_PATH environment or specify the absolute path to the file as the first two parameters: "pysss2 --libsss2so /absolute/path/to/libsss2.so ...". Rest of the parameters are passed to serpent.
Here is a full example:"pysss2 --libsss2so /absolute/path/to/libsss2.so model -omp 4".