Saravanan666/pypi-org huggingface dataset:
Package: pyssub
This package provides a thin Python layer on top of theSlurmworkload
manager for submitting Slurm batch scripts into a Slurm queue. Its core
features are:Python classes representing a Slurm batch script,simple file transfer mechanism between shared file system and node,macro support based Python’s format specification mini-language,JSON-encoding and decoding of Slurm batch scripts,new submission commandssub,successive submission of Slurm batch scripts, andrescue of failed jobs.The example shows how to submit a JSON-encoded Slurm batch script into a Slurm
queue viassub:ssub submit --in pyssub_example.json --out pyssub_example.outThe JSON-encoded Slurm batch scriptpyssub_example.jsonhas the following
content:{"pyssub_example":{"executable":"echo","arguments":"'Hello World!'"}}A more detailed introduction is given in theGetting startedguide.Note that I have written this package because I was working with a small Slurm
cluster during my PhD. This cluster was configured in a way that the easiest
approach was to submit multiple single-task Slurm batch scripts instead of a
single multi-task Slurm batch script containing multiplesruncommands. The
package reflects this approach and therefore does not have to be the best
solution for your cluster.InstallationThis package is pure Python 3 package (it requires at least Python 3.6) and
does not depend on any third-party package. All releases are uploaded
toPyPIand the newest release can be installed viapip install pyssubI would recommend to create a dedicated virtual Python 3 environment for the
installation (e.g.  viavirtualenvwrapper):source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
mkvirtualenv -p /usr/bin/python3.6 -i pyssub py3-slurmIf you prefer to work with the newest revision, you can also install the
package directly fromGitHub:pip install 'git+https://github.com/kkrings/pyssub#egg=pyssub'ContributingI welcome input from your side, either by creatingissuesor viapull
reqests. For the latter, please make sure that all unit tests pass. The unit
tests can be executed viapython setup.py test
Package: pySSV
Shaders For Scientific VisualisationAuthor:Thomas MathiesonStudent ID:2576219mSupervisor:Dr. John WilliamsonA python library for advanced interactive data visualisation on the GPU. This project is being developed for my Level 4
Individual Project at the University of Glasgow for my Computing Science degree.The dissertation and accompanying notes and planning documents can be foundhere.[!NOTE]FEEDBACK WANTEDTo evaluate the utility of this project for my dissertation, I would appreciate if you could spare some time to fill
out this survey:https://forms.gle/rX7uPxaxQ1xcNVQB8GalleryInstallationYou can install usingpip:pipinstallpySSVQuick StartTry the example notebookCreate a suitable python environment (optional if you already have a python environment with jupyterlab setup) and install the package usingpip:condacreate-npySSV-cconda-forgepythonjupyterlab
condaactivatepySSV

pipinstallpySSVDownload the example notebook from github (other example notebooks availablehere):curl-ointroduction.ipynbhttps://github.com/space928/Shaders-For-Scientific-Visualisation/raw/main/examples/introduction.ipynbStart JupyterLab and play around with the notebook:jupyterlab.\introduction.ipynbBuilding From SourceCreate a dev environment:condacreate-npySSV-dev-cconda-forgenodejsyarnpythonjupyterlab=4condaactivatepySSV-devInstall the python package. This will also build the TS package.pipinstall-e".[test, examples]"Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow. Usingjlpmandyarnsometimes breaks the package cache
if this happens, just delete theyarn.lockfile and the.yarnfolder and rerunjlpm install.When developing your extensions, you need to manually enable your extensions with the
notebook / lab frontend. For lab, this is done by the command:jupyterlabextensiondevelop--overwrite.
jlpmrunbuildHow to see your changesTypescript:If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different
terminals to watch for changes in the extension's source and automatically rebuild the widget.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmrunwatch# Run JupyterLab in another terminaljupyterlabAfter a change wait for the build to finish and then refresh your browser and the changes should take effect.Python:If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.AcknowledgementsThanks to Dr. John H. Williamson for his support throughout the project.This project was made using the fabulous Jupyter Widget template:https://github.com/jupyter-widgets/widget-ts-cookiecutter
Package: pyssw
# pyssw: python wrapper for Smith-Waterman Python ModuleThe C code for SWW alignment is derived from:
[original source repository](https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library)Please cite this [PLOS ONE paper](http://dx.plos.org/10.1371/journal.pone.0082138) by Zhao et al. 2013## OverviewSSW is a fast implementation of the Smith-Waterman algorithm, which uses the
Single-Instruction Multiple-Data (SIMD) instructions to parallelize the
algorithm at the instruction level. It can return the Smith-Waterman score,
alignment location and traceback path (cigar) of the optimal alignment
accurately; and return the sub-optimal alignment score and location
heuristically.Note: When SSW open a gap, the gap open penalty alone is applied.## Installationfrom [PyPi](https://pypi.org/project/pyssw/)pip install pysswor from sourcegit clonehttps://github.com/Runsheng/pyssw.gitcd pyssw
pip install .
Package: pysta
PySTAPython SensorThings API clientWhat is PySTAPySTA is a SensorThings API client written in python.
It provides a simple object-based interface to SensorThings entities.Who is PySTAPySTA is developed by the New Mexico Water Data Initiative in collaboration with the Internet of WaterWhy is PySTAPySTA was started out of the NMWDI's need for simple python tools to load data into a SensorThings instance.How to installPySTA can easily be installed viaPyPI.orgpipinstallpystaHow to UseGet all the locations for agency NMBGMR and output as a json file toout.locations.jsonsta locations --agency NMBGMRSpecify an output namesta locations --agency NMBGMR --out mylocations.jsonOutput as csvsta locations --agency NMBGMR --out mylocations.csvOutput as ShapeFilesta locations --agency NMBGMR --out mylocations.shpGet helpstalocations--help
Package: pystable
pystablePython wrapper for thelibstableC library.ExampleTo fit with ML estimation:importpystableinit_fit={'alpha':2,'beta':0,'sigma':1,'mu':0,'parameterization':1}dist=pystable.create(init_fit['alpha'],init_fit['beta'],init_fit['sigma'],init_fit['mu'],init_fit['parameterization'])pystable.fit(dist,data,len(data))fit_params=[dist.contents.alpha,dist.contents.beta,dist.contents.sigma,dist.contents.mu_0,dist.contents.mu_1]SetupDependenciesInstall the GNU Scientific Library (GSL).Arch Linux:$ yay gslMac:$ brew install gslUbuntu:$ sudo apt install gsl-bin libgsl0-devBuildlibstable$ cd libstable
$ makeor$ poetry buildTODOimport ctypes as ctcreate lib structurecreate example file utilizing pystable libtypingshandle errorshandle NULL pointer errorshandleerrstable_checkparamsimpltestexamplehandle errortest errorstable_createimpltestexamplestable_cdfimpltestexamplestable_pdfimpltestexamplestable_fitimpltestexamplestable_qimpltestexamplestable_rndimpltestexample
Package: pystac
PySTACPySTAC is a library for working with theSpatioTemporal Asset Catalogspecification in Python 3.InstallationInstall from PyPi (recommended)pipinstallpystacIf you would like to enable the validation feature utilizing thejsonschemaproject, install with the optionalvalidationrequirements:pipinstall'pystac[validation]'If you would like to use theorjsoninstead of the
standardjsonlibrary for JSON serialization/deserialization, install with the
optionalorjsonrequirements:pipinstall'pystac[orjson]'If you would like to use a customRetryStacIOclass for automatically retrying
network requests when reading with PySTAC, you'll needurllib3:pipinstall'pystac[urllib3]'If you are using jupyter notebooks and want to enable pretty display of pystac objects you'll needjinja2pipinstall'pystac[jinja2]'Install from sourcegitclonehttps://github.com/stac-utils/pystac.gitcdpystac
pipinstall.See theinstallation pagefor more options.DocumentationSee thedocumentation pagefor the latest docs.DevelopingSeecontributing docsfor details on contributing to this project.Running the quickstart and tutorialsThere is a quickstart and tutorials written as jupyter notebooks in thedocs/tutorialsfolder.
To run the notebooks, run a jupyter notebook with thedocsdirectory as the notebook directory:jupyternotebook--ip0.0.0.0--port8888--notebook-dir=docsYou can then navigate to the notebooks and execute them.RequiresJupyterbe installed.
Package: py-stac
Py-STAC ToolsPython command line utilities for interacting with and creating STAC compliant files.Free software: Apache Software License 2.0Documentation:https://py-stac.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.5 (2018-11-08)First release on PyPI.
Package: pystac-client
STAC ClientA Python client for working withSTACCatalogs and APIs.Table of ContentsTable of ContentsInstallationDocumentationDevelopmentInstallationInstall from PyPi. Other thanPySTACitself, the only dependencies for pystac-client is the Pythonrequestsanddateutillibraries.pipinstallpystac-clientDocumentationSee thedocumentation pagefor the latest docs.DevelopmentSee thecontributing pagefor the latest development instructions.
Package: pystache-cli
Extended command line client for pystacheusage: pystache-cli [-h] [--loglevel {debug,info,warning,error}]
                    [--partial_paths [PARTIAL_PATHS [PARTIAL_PATHS ...]]]
                    [--partial_file_extension PARTIAL_FILE_EXTENSION]
                    [--file_encoding FILE_ENCODING] [--strict]
                    [--separators SEPARATORS SEPARATORS]
                    output_file template_file [context_file]

positional arguments:
  output_file           filepath to save output
  template_file         filepath to input template
  context_file          optional filepath to context json

optional arguments:
  -h, --help            show this help message and exit
  --loglevel {debug,info,warning,error}, -l {debug,info,warning,error}
  --partial_paths [PARTIAL_PATHS [PARTIAL_PATHS ...]], -p [PARTIAL_PATHS [PARTIAL_PATHS ...]]
  --partial_file_extension PARTIAL_FILE_EXTENSION, -x PARTIAL_FILE_EXTENSION
  --file_encoding FILE_ENCODING, -e FILE_ENCODING
  --strict, -s          if set: raise exception on missing keys
  --separators SEPARATORS SEPARATORS
                        left and right separator (default is '{{' '}}')
Package: pystackalytics
Python wrapper for Mirantis Stackalytics API.Free software: The MIT LicenseDocumentation:https://pystackalytics.readthedocs.org.UsagefrompystackalyticsimportStackalyticsapi=Stackalytics()api.companies(release='kilo').stats[1].name# u'Mirantis'All methods support common set of parameters that allow to filter resulting data.ParameterDescriptionreleaseName of OpenStack release or ‘all’, by default current releaseproject_typeType of project, by default ‘openstack’moduleName of module (repository name)companyCompany nameuser_idLaunchpad id of user or email if no Launchpad id is mapped.metricMetric: e.g. ‘commits’, ‘loc’, ‘marks’, ‘emails’start_dateWhen the period startsend_dateWhen the period endsFeaturesTODOHistory0.1.0 (2015-10-14)First release on PyPI.
Package: pystack-cli
PyStack cliPyStack micro-framework command line interface.Installation:pip install pystack-cliUsageCreate a new PyStack application:pystack create app nameOfAppCreate a new Rest API resource:pystack create resource nameOfResource api/v1/some-urlCreate a new page:pystack create page PageName page-urlRuns the PyStack application on the provided port number:pystack run --port=5555Framework documentation:https://pystack.net
Package: pystack-debugger
pystackThe pystack is to python as jstack is to java.It's a debug tool to print python threads or greenlet stacks.Idea stolen frompyrasite.Install$ pip install pystack-debuggerUsageYou may need to run it withsudo.$ sudo pystack [--include-greenlet] <pid>CompatibilityThe pystack is compatible with CPython 2.7+ and CPython 3.6+ in both client
(the debugger) and server (the destination process).Using PyPy may work in client (the debugger) but it is untested. Do not attempt
to attach a PyPI process as destination since the pystack debugger uses gdb/lldb
to invoke the CPython ABI.
Package: py-stackexchange
IMPORTANT: Py-StackExchange now targets version 2.x of the StackExchange API, which introduces some small but breaking changes — in particular, you will need to register for a new API key. Read the wiki pagehttps://github.com/lucjon/Py-StackExchange/wiki/Updating-to-v2.xfor more information.Please seehttp://stackapps.com/questions/198/py-stackexchange-an-api-wrapper-for-pythonfor a full description.
Package: pystack-manager
PyStackPyStack is a Python library for use stack. Stacks are a type of list-like variable but, with additional constraints (view more).InstallationUse the package managerpipto install PyStack.pipinstallpystack-managerUseBasic examplefrompystackimportStackstack=Stack()#create new stackstack.push(5)#add element in stackprint(stack.pop())#return and delete last element in stackprint(stack.last())#return and don't delete last element in stackParticular stackLimited stackThe package allows to create a stack of fixed size.frompystackimportStacklimited_stack=Stack(limite=5)#create new stack with fixed sizeIf we try to add more than the fixed size of the stack, an error is generatedTyped stackThe package allows to create a stack of stack with one element type.frompystackimportStacktyped_stack=Stack(typed=int)#create stack accepting only integertyped_stack_2=Stack(typed=(int,float))#create stack accepting only integer or floatIf we try to add an element with a type not corresponding to the type of the stack,
an error is generated.In generalYou can create stack with or without any of the previous options.Stack modificationAdd elementSeveral methods exist to add element to a stack.Add one element:stack.push(value)# add items to a stackvaluecan a stack, an object, an integer, a float or other.Add items from one stack to another:stack.transfer(another_stack)# add items from another_stack to a stackanother_stackcan a stack, a list or a tuple.Another solution:stack=first_stack+second_stack#create new stack with elements of first_stack and second_stackstackhave same option (fixed size, typed) asfirst_stackGet elementTwo methods exist to get the last element of the stack.value=stack.pop()#return and delete the last element of the stackvalue=stack.last()#return and doesn't delete the last element of the stackIfstackis empty, an error is generated.ComparisonDifferent technique can be applied to study a stack.Equality:iffirst_stack==second_stack:#True statementelse:#False statementIffirst_stackelements are identical to those of the second, equality is respected (options are not necessarily the same).Contains:ifvalueinstack:# True if value in the stack#True statementelse:#False statementOther modificationsReverse the stack:s = Stack()
s.transfer([5, 8, 9])
print(s) # [5, 8, 9]
s.reverse()
print(s) # [9, 8, 5]Split the stack:s=Stack()s.transfer([8,6,7,2])a=s.split(2)print(s,a)# [8, 6] [7, 2]Supportif you encounter any bugs, you can report them by email, by attaching the error message and the program.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.Source CodeThe code source can be foundhereLicenseGNU GPLv3
Package: pystack-sdk
pystack.A Python API wrapper designed to streamline Paystack integrations within Python projects, (Django, Flask, etc) Paystack does not natively provide an sdk or wrapper client for Python. I was working on a project once and I found myself writing boilerplate code rather than focusing on integrating payments into my service.FeaturesInitiate and verify payments with Paystack.Resolve card BIN to get card details.Resolve account number to get account details.Simplify recurring charges and subscriptions with Paystack.Getting StartedThe package is available on PyPi. In any project, run:pip3 install pystack.UsageThe first thing to do is to install thePystackClient.frompystackimportPystackClientObtain your key from Paystack. You could get your key by following these instructions:Paystack DocsUsing the pystack client, create an object with your key.# Create a PaystackClient objectpaystack_client=PystackClient(pystack_key=YOUR_KEY)You're set to go.Making PaymentsBelow is an example of how the pystack module helps you skip the shenanigans and focus on the payments.frompystackimportPystackClient# Replace 'YOUR_KEY' with your actual Paystack secret key.YOUR_KEY='YOUR_KEY'# Create a PaystackClient objectpystack=PystackClient(pystack_key=YOUR_KEY)# Now we initiate a paymentamount=5000# The amount to send in the requestemail='pystack@pystack.com'# The customer's email addresspayment_response=pystack.initiatePayment(amount=amount,email=email)Look how much boilerplate code you saved above.Verifying TransactionsYou can also verify transactions through though the pystack module. Here is an example:frompystackimportPystackClient# Replace 'YOUR_KEY' with your actual Paystack secret key.YOUR_KEY='YOUR_KEY'# Create a PaystackClient objectpystack=PystackClient(pystack=YOUR_KEY)# Now we initiate a paymentamount=5000# The amount to send in the requestemail='pystack@pystack.com'# The customer's email addresspayment_response=pystack.initiatePayment(amount=amount,email=email)# Condition to verify the paymentifpayment_response['status']:transaction_reference=payment_response['data']['reference']verification_response=pystack.verifyPayment(reference=transaction_reference)ifverification_response['status']:print("Payment was successful.")else:print("Payment verification failed.")else:print("Payment initiation failed.")Like wise there are other things you could do with Pystack, such as recurring charges, subscriptions, etc. It's up to you to decide what you want to do, and then use it.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: pystack-sherryt400
pystackSynchronized stack data structure for Python 3Usagefrom stack import Stack

stack = Stack()

# push item
stack.push('item')

# pop item
item = stack.pop()Define sizestack = Stack(10)Producer Consumer examplefrom stack import Stack

import random
from threading import Thread
from time import sleep

_stack = Stack(10)

item_number = 0


class Producer(Thread):
    __id = 1

    def __init__(self, stack: Stack):
        super().__init__(name='P-%d' % Producer.__id)
        self.__stack = stack
        Producer.__id = Producer.__id + 1
        pass

    def run(self):
        global item_number
        while (True):
            item = 'item_%d' % item_number
            self.__stack.push(item)
            print(self.name, ' produced ', item)
            item_number = item_number + 1
            sleep(random.randint(0, 1) * 0.3)


class Consumer(Thread):
    __id = 1

    def __init__(self, stack):
        super().__init__(name='C-%d' % Consumer.__id)
        self.__stack = stack
        Consumer.__id = Consumer.__id + 1
        pass

    def run(self):
        global item_number
        while (True):
            item = self.__stack.pop()
            print(self.name, ' consumed ', item)
            item_number = item_number - 1
            sleep(random.randint(0, 1) * 0.3)


p1 = Producer(_stack)
p2 = Producer(_stack)
p3 = Producer(_stack)
c1 = Consumer(_stack)
c2 = Consumer(_stack)
c3 = Consumer(_stack)

p1.start()
p2.start()
p3.start()
c1.start()
c2.start()
c3.start()LICENSECopyright (c) 2018 The Python Packaging AuthorityPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: py-stadfangaskra
py-stadfangaskraUtility library for working with theIcelandic address registry,pandas&geopandas.Installationpip install py-stadfangaskraDevelopmentClone therepositoryand installdevextras.$gitclonegit@github.com:StefanKjartansson/py-stadfangaskra.git
$cdpy-stadfangaskra# python3.6 & python3.8 are supported as well$python3.7-mvenvvenv
$.venv/bin/activate
$pipinstall.[dev]$py.testUsageimportstadfangaskra# Load a dataframe directly from hardcoded ftp path, same as df = stadfangaskra.parse('ftp://ftp.skra.is/skra/STADFANG.dsv.zip'),# fetches the database from ftp, fairly slowdf=stadfangaskra.parse()# or use cached local copy, much fasterdf=stadfangaskra.parse('STADFANG.dsv.zip')# Lookup is a utility class for hydrating data using the dataframe.lookup=stadfangaskra.Lookup.from_dataframe(df)# Example semi-structured dataframesome_df=pd.DataFrame({"address":['Laugavegur 22, 101 Reykjavík','Þórsgata 1, 101 Reykjavík',]})# hydrate the dataframe, adding columns for postcode, street, house number, latitude, longitude & municipality.some_df[["postcode","street","house_nr","lat","lon","municipality"]]=pd.DataFrame(lookup.hydrate_text_array(some_df.address.values),index=some_df.index)# Or used to fill latitude & longitude columns in structured datasetsother_df=pd.DataFrame({"postcode":[101,201],"street":["Laugavegur","Hagasmári"],"house_nr":[22,1],})other_df["lat"],other_df["lon"]=(lookup.coordinates_from_array(df.postcode.values,df.street.values,df.house_nr.values))# Or be used to iterate address matches in text.my_text="""Nóatún Austurveri er að Háaleitisbraut 68, 103 Reykjavík en ég bý á Laugavegi 11, 101 Reykjavík"""forminlookup.lookup_text(my_text):print(m)
Package: pystag
# stagSpotify taggerTag your local music using spotify api.![gif](https://i.imgur.com/eoPL9xZ.gif)> Adds propertitle,album,artistandalbum artand renames file totitle.## Installation` pip3 install pystag `## UsageYou need to set 3 environment variables forstagSPOTIFY_CLIENT_IDSPOTIFY_CLIENT_SECRETSPOTIFY_USERNAMEOnce this is set you can just runstagin the folder with the songs.Go [here](https://developer.spotify.com/documentation/general/guides/app-settings/#register-your-app) to know how to
generate aCLIENT_IDandCLIENT_SECRET. To get theUSERNAMEjust check the profile share link in your profile.
Your profile share link will look something likehttps://open.spotify.com/user/<USERNAME>?si=<SOMETHING_ELSE>## Requirementseyed3( tag songs )spotipy( spotify api client )
Package: pystage-apt
pystage-apt is a library to communicate with various Thorlabs’ APT single-channel controllers and control different types of Thorlabs’ actuator motors. It contains a large collection of motor control messages obtained from Thorlabs APT Controllers Host-Controller Communications Protocol. This document describes the low-level communications protocol and commands used between the host PC and controller units within the APT family. Those messages are included in a series of python files and are stored in a folder named ctrl_msg.