Saravanan666/pypi-org huggingface dataset:
Package: pyscryptfirebase
pyscryptfirebaseA Python wrapper of Firebase's custom scrypt implementation.  A combined fork of scrypt and Firebase scrypt.Firebase scrypt for password hashing:https://github.com/firebase/scryptPython library for scrypt:https://bitbucket.org/mhallin/py-scrypt/src/default/InstructionsNote that if you have the Python modulescryptinstalled, you will need to remove it to use this library.
This library is a fork ofscryptand uses a modified C extension by the same name asscrypt.  Using both
libraries at the same time will cause a naming collision on the C module_scrypt.Install dependencies according to your Python version and OS:# Debian/Ubuntu
$ sudo apt-get install build-essential libssl-dev python-dev

# Fedora, RHEL
$ sudo yum install gcc openssl-devel python-devel

# Alpine Linux (Docker Containers)
$ apk add gcc openssl-dev python-dev

# (If you're on Python3, install the Python3 versions of the above packages)

# Mac
# Without setting the flags below, install will fail to find the necessary files
$ brew install openssl
$ export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS"
$ export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS"Then installpyscriptfirebase:$ pip install pyscriptfirebaseExampleThis module is intended to give the same output as the scrypt password hashing function that Firebase
uses.Firebase Scrypt Utility example:# Params from the project's password hash parameters
base64_signer_key="jxspr8Ki0RYycVU8zykbdLGjFQ3McFUH0uiiTvC8pVMXAn210wjLNmdZJzxUECKbm0QsEmYUSDzZvpjeJ9WmXA=="
base64_salt_separator="Bw=="
rounds=8
memcost=14

# Params from the exported account
base64_salt="42xEC+ixf3L2lw=="

# The users raw text password
password="user1password"

# Generate the hash
# Expected output:
# lSrfV15cpx95/sZS2W9c9Kp6i/LVgQNDNC/qzrCnh1SAyZvqmZqAjTdn3aoItz+VHjoZilo78198JAdRuid5lQ==
echo `./scrypt "$base64_signer_key" "$base64_salt" "$base64_salt_separator" "$rounds" "$memcost" -P <<< "$password"`pyscryptfirebaseexample:import base64

import pyscryptfirebase


base64_signer_key = base64.b64decode("jxspr8Ki0RYycVU8zykbdLGjFQ3McFUH0uiiTvC8pVMXAn210wjLNmdZJzxUECKbm0QsEmYUSDzZvpjeJ9WmXA==")
base64_salt_separator = base64.b64decode("Bw==")
rounds = 8
memcost = 14

base64_salt = base64.b64decode("42xEC+ixf3L2lw==")
password = "user1password"

# Expected output:
# lSrfV15cpx95/sZS2W9c9Kp6i/LVgQNDNC/qzrCnh1SAyZvqmZqAjTdn3aoItz+VHjoZilo78198JAdRuid5lQ==
output = pyscryptfirebase.encrypt(
    base64_signer_key,
    base64_salt,
    base64_salt_separator,
    rounds,
    memcost,
    password
)
encoded_output = base64.b64encode(result)
print(encoded_output)
Package: pyscs
Python3 lib for scspython version > = 3.10frompyscs.scsimportSCSscs=SCS()# set script can be stop right nowmsg,code=scs.can_stop()ifcode==200:print("success")elifcode==201:print("warning: "+msg)else:print(msg)# set script can not be stop except exec scs.can_stop()msg,code=scs.can_not_stop()ifcode==200:print("success")elifcode==201:print("warning: "+msg)else:print(msg)frompyscsimportScript# add script or servers=Script("test","python test.py")# When dir is not empty and is not exist and get is not empty, It will command get firsts.dir="/home/test"s.get="cd /home && git clone xxxx"msg,code=scs.add_script(s)ifcode==200:print("success")elifcode==201:print("warning: "+msg)else:print(msg)# del script or server on scsd# test is pnamemsg,code=scs.del_script("test")ifcode==200:print("success")elifcode==201:print("warning: "+msg)else:print(msg)# set alert like add scripta=Alert()# When dir is not empty and is not exist and get is not empty, It will command get firsta.pname="alert"a.name="test"a.title="some thing broken"a.broken=Truea.reason="error"msg,code=scs.set_alert(a)ifcode==200:print("success")elifcode==201:print("warning: "+msg)else:print(msg)
Package: pyScss
pyScss is a compiler for theSasslanguage, a superset of CSS3 that adds
programming capabilities and some other syntactic sugar.QuickstartYou need Python 2.6+ or 3.3+.  PyPy is also supported.Installation:pip install pyScssUsage:python -mscss < style.scssPython API:from scss import Compiler
Compiler().compile_string("a { color: red + green; }")Features95% of Sass 3.2 is supported.  If it’s not supported, it’s a bug!  Please file
a ticket.Most of Compass 0.11 is also built in.Further readingDocumentation is in Sphinx.  You can build it yourself by runningmake htmlfrom within thedocsdirectory, or read it on RTD:http://pyscss.readthedocs.org/en/latest/The canonical syntax reference is part of the Ruby Sass documentation:http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.htmlObligatoryCopyright © 2012 German M. Bravo (Kronuz).  Additional credits in the
documentation.Licensed under theMIT license, reproduced inLICENSE.
Package: pyScss2
pyScss2 is a compiler for theSasslanguage, a superset of CSS3 that adds
programming capabilities and some other syntactic sugar.Originally it was forked from unmaintainedhttps://github.com/Kronuz/pyScss.QuickstartYou need Python 2.7+ or 3.3+.  PyPy is also supported.Installation:pip install pyScss2Usage:python -mscss < style.scssPython API:from scss import Compiler
Compiler().compile_string("a { color: red + green; }")Features95% of Sass 3.2 is supported.  If it’s not supported, it’s a bug!  Please file
a ticket.Most of Compass 0.11 is also built in.Further readingDocumentation is in Sphinx.  You can build it yourself by runningmake htmlfrom within thedocsdirectory.The canonical syntax reference is part of the Ruby Sass documentation:http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.htmlObligatoryCopyright © 2020 Ivan Kolodyazhny (e0ne).  Additional credits in the
documentation.Licensed under theMIT license, reproduced inLICENSE.
Package: pysctp3
pysctp is a python module for the SCTP protocol stack and library. It is the socket api implementation, not the SCTPlib implementation (this latest one is not supported anymore by their original developers). On Mac OS X you will need the SCTP NKE (Kernel Extensions) to make it work, use:http://sctp.fh-muenster.de/sctp-nke.html. On Debian-based systems, you need a SCTP-aware kernel (most are) and install the following packages: apt-get install libsctp-dev libsctp1 lksctp-tools
Package: pysd
PySDThis project is a library for runningSystem Dynamics(SD) models in Python, with the purpose of improving integration ofBig DataandMachine Learninginto the SD workflow.The current version needs to run at least Python 3.9.ResourcesSee theproject documentationfor information about:InstallationGetting StartedRelease NotesCiting PySDFor standard methods for data analysis with SD models, see thePySD Cookbook, containing (for example):Model FittingSurrogating model components with machine learning regressionsMulti-Scale geographic comparison of model predictionsWhy create a new SD simulation engine?There are a number of great SD programs out there (Vensim,iThink,AnyLogic,Insight Maker, andothers). In order not to waste our effort, or fall victim to theNot-Invented-Herefallacy, we should have a very good reason for starting a new project.That reason is this: There is a whole world of computational tools being developed in the larger data science community.System dynamicists should directly use the tools that other people are building, instead of replicating their functionality in SD specific software.The best way to do this is to bring specific SD functionality to the domain where those other tools are being developed.This approach allows SD modelers to take advantage of the most recent developments in data science, and focus our efforts on improving the part of the stack that is unique to System Dynamics modeling.Cloning this repositoryIf you'd like to work with this repository directly, you'll need to use a recursive git checkout in order to properly load the test suite (sorry..)The command should be something like:gitclone--recursivehttps://github.com/SDXorg/pysd.gitExtensionsYou can use PySD inRvia thePySD2Rpackage, also available onCRAN.ContributingPySD is currently a community-maintained project, any contribution is welcome.Many people have contributed to developing this project - bysubmitting code, bug reports, and advice. Main historic changes in PySD are described in theAbout PySD section. TheDeveloper Documentationcould help new developers.The code for this package is available at:https://github.com/SDXorg/pysdJoin our slack channel insd-tools-and-methodology-community.
Package: pysda
pySDAa python Suite for Diffusion Analysis (for python 3.5 and above)IntroThis package currently included the two diffusion analysis algorithms:TaPiTaS: A geo-computational algorithm for exploring the structure of diffusion progression in time and space. Scientific Reports.https://www.nature.com/articles/s41598-017-12852-zMST-DBSCAN: Characterizing Diffusion Dynamics of Disease Clustering: A Modified Space–Time DBSCAN (MST-DBSCAN) Algorithm. Annals of the American Association of Geographers.https://www.tandfonline.com/doi/full/10.1080/24694452.2017.1407630InstallYou can choose one of the following to install pySDA to your python environment.1. download then pip installdownload the package by clicking the green button (Clone or download), choose Download ZIP.extract the zip file to your working directoryin cmd (where you can use pip install to the intended python environment):cdC://the/extract/directory/pysda-master
pipinstall.This should install the package to your python.2.  git clone and pip installin cmd:cdC://a/place/you/like/
gitclonehttps://github.com/wenlab501/pysda.gitcdpysda
pipinstall.This is actually the exact same thing as the first option.3. pip install from githubin cmd:pip install git+https://github.com/wenlab501/pysda.gitThis is also the same as above.4. pip install from pypiin cmd:pip install pysdaThis will download the pysda from pypi.Dependencynumpy, scipy: for calculations, including spatial indexing and queryingpandas, geopandas: for data manipulation and result preparationshapely: deal with the geometrydescartes, matplotlib, seaborn: for making mapspython-dateutil: deal with the date conversionimageio: animated figure exportingtapitas: the core algorithm for TaPiTasmstdbscan: the core algorithm for MST-DBSCANTutorialsThe tutorial for using TaPiTaS in pySDA:https://github.com/wenlab501/pysda/blob/master/pysda-taipitas-tutorial.ipynbThe tutorial for using MST-DBSCAN in pySDA:https://github.com/wenlab501/pysda/blob/master/pysda-mstdbscan%20tutorial.ipynbLicenseCopyright (c) 2018 wenlab501, Tzai-Hung Wen, Department of Geography, National Taiwan UniversityPermission 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_sdag2
# Py_SDAG2 - Python Simple Directed Acyclic GraphThe Python Simple Directed Graph whith Cicle Detector and TopoloGical sorter utilities.## Authors- [Moises P. Sena](http://moisespsena.com)## Install```bashsudo pip install py_sdag2```## Scripts### tsort.pySources from Standard Input:```bashecho -e 'C A\nA B\nB D\nC D' | tsort.py```Sources from another file:```bashecho -e 'C A\nA B\nB D\nC D' > verticies.txt``````bashtsort.py verticies.txt```More Options:```bashtsort.py --helpUsage: tsort.py [options] [FILE [OUT_FILE]]Options:-h, --help            show this help message and exit-f FILE, --file=FILE  With no FILE, or when FILE is -, read standard input.-o OUT_FILE, --out-file=OUT_FILEWrite result to OUT_FILE, default is standard output.-s SEP, --separator=SEPItems separator, default is \s regex.-q QUIT_SEQ, --quit-sequence=QUIT_SEQStop read FILE where line equals QUIT_SEQ, default is:quit.```## Tests```pythonimport unittestfrom sdag2 import DAG, CycleDetectedExceptionclass DAGTest(unittest.TestCase):def test_simple(self):'''Tests the verticles order in:C --> A --> B --> D'''dag = DAG()a = dag.add("A")b = dag.add("B")c = dag.add("C")d = dag.add("D")dag.add_edge(c, a)dag.add_edge(a, b)dag.add_edge(b, d)dag.add_edge(c, d)rs = dag.topologicaly()self.assertTrue(rs.index("C") < rs.index("A"))self.assertTrue(rs.index("A") < rs.index("B"))self.assertTrue(rs.index("B") < rs.index("D"))self.assertTrue(rs.index("C") < rs.index("D"))def test_cicle_detect(self):'''Tests the verticles order in:C --> A --> B --> D -> C'''dag = DAG()a = dag.add("A")b = dag.add("B")c = dag.add("C")d = dag.add("D")dag.add_edge(c, a)dag.add_edge(a, b)dag.add_edge(b, d)dag.add_edge(c, d)try:# add cicle at A --> C --> Adag.add_edge(a, c)raise Exception("Cycle not detected")except CycleDetectedException: passdef main():unittest.main()if __name__ == "__main__":main()```
Package: pysdb
pysdbpysdb is a lightweight , portable, embeddable database management libraryImport first:import pysdbconceptsSDB_STORESDB_STORE is a group of Databasesit's the directory where all the Databases exists.SDB_STORE can be created by the following command:$ mkdir /path/to/SDB_STORE/ && touch /path/to/SDB_STORE/sdbstoreif you prefer a different directory name change DB_STORE to whatever name you like , for example:$ mkdir /path/to/MY_STORE/ && touch /path/to/MY_STORE/sdbstoreDATABASEgroup of Collections is a DatabaseCOLLECTIONSa bundle of Records is a collection (it's kinda like a Table)RecordsRecords are like a row in a tableRecord is pure python Dictionaryexample:student_record1  = {
  "name": "student1_name1",
  "age":19
 }exampleimport pysdb

store = pysdb.UseStore('/path/to/DB_STORE/') # use the created store (returns a pointer to store)

store.CreateDB('db') # creates a db in store (returns true or false)

db = store.OpenDB('db') # opens a db in store (return a pointer to db)

store.CloseDB('db') # closes an opened db

store.DropDB('db') # deletes the entire database (return true or false)

store.LookForDB('db') # checks if a Database exists (returns true or false)

db.CreateCl('cl')  # creates a collection in db (returns true or false)

cl = db.OpenCl('cl') # opens a collection in db (returns a pointer to the collection)

db.CloseCl('cl') # closes the collection

db.DropCl('cl') # deletes a collection in db (returns true or false)

db.LookForCl('cl') # checks if a collection exists (returns true or false)

# create a record (pure python dictionary)
student_record1  = {
  "name": "student_name1",
  "age":19
 }


student_record2  = {
  "name": "student_name2",
  "age":20
 }


 cl.AddRec('student_record_1', student_record1) # adds a record to cl

 cl.UpdateRect('student_record_1', student_record2) # updates the record in cl

 cl.ReadRec('student_record_1') # returns a Record ( python dictionary - same as above student_record1 )

 cl.RemoveRect('student_record_1') # removes a Record in cl
Package: pysdbapi
pysdbapipySDBAPI - simple database API. Use a couple of lines to make a requestFeaturesUse a single decorator to complete a request. Receive OrderedDict immediately in response.If you need to display the table in the console, then use theshow_tableparameterSo far only SQLite is supported, support for other databases (MySQL, PostgreSQL and others) will be added in the futureInstallationpoetry add pysdbapiorpip install pysdbapiOptional dependenciesThis dependency is needed to print the table to the consolepoetry add pysdbapi[pretty]Example SQLiteThis code sends a message on your behalf to the chatimportpysdbapiDATABASE_SETTINGS={"database":"test.db"}db=pysdbapi.DBApi(DATABASE_SETTINGS)@db.execute_sql()defget_all_posts():return"""SELECT * FROM posts"""@db.execute_sql(show_table=True)defget_all_posts__table():return"""SELECT * FROM posts"""Result:# Example show table

+----+-----------+----------------------+
| id |   title   |         text         |
+----+-----------+----------------------+
| 1  | Article 1 | Some text in article |
| 2  | Article 2 | Some text in article |
| 3  | Article 3 | Some text in article |
| 4  | Article 4 | Some text in article |
| 5  | Article 5 | Some text in article |
| 6  |   dasdas  |       sddsdas        |
+----+-----------+----------------------+
Package: pysdbots
📕DocumentationA Project Made To Centralize Various APIs 📖 No Authorization Needed :)Homepage•Documentation•Channel• FeaturesFeatures of the sdbots API➤  Telegraph Link➤  Fast Response➤  100% Free API➤  24 Hour Active➤  Never Expire Image Links➤  4K Logo & Wallpapers➤  User Friendly➤  JSON Response➤  Easy To Use➤ WEB Based API➤ For All Platform• InstallationsPython library for SDAPI, PySDbots requires an Python to be installed in your system. We recommend using the latest versions of both Python 3 and pip.Install PySDbots:• The easiest way to install PySDbots to its latest stable version is by using pip:pip3installpysdbotsUpgrade library:• Upgrade the library to the latest version:pip3install--upgradePySDbots
Package: pysdbus
pysdbuspysdbus is a Python wrapper library for DBus inter-process communication. It
uses Python's ctypes module to communicate directly with the sd-bus C API of the
systemd library. Hence, pysdbus only depends on the presence of the
libsystemd.so library and a functional Python interpreter in version 2 or 3.pysdbus offers three APIs:pysdbus.llapiis the low-level API and a thin ctypes wrapper around
libsystemd's C APIpysdbusis the main API of this library and provides additional convenience
around the low-level APIpysdbus.dbusaims to provide a programming interface similar to the
well-known dbus-python projectStatusThis library is still in an early stage. Many features are still missing but
calling and offering APIs with methods, signals and properties is already
implemented.pysdbus exampleimport pysdbus

bus = pysdbus.SystemBus()

obj = bus.getObject("org.freedesktop.DBus", "/org/freedesktop/DBus")

iface = obj.getInterface("org.freedesktop.DBus")

reply = iface.ListNames()

for service in reply:
        print(service)pysdbus.dbus exampleml = MainLoop()

bus = SystemBus()

dbus_obj = bus.get_object("org.freedesktop.DBus", "/org/freedesktop/DBus")

iface = Interface(dbus_obj, "org.freedesktop.DBus")

reply = iface.ListNames()

print(reply)

def prop_changed_cb(sender, destination, path, interface, member):
	print("new signal: ", sender, destination, path, interface, member)

bus.add_signal_receiver(prop_changed_cb)

def nameowner_changed_cb(sender, destination, path, interface, member):
	print("nameowner changed: ", sender, destination, path, interface, member)

iface.connect_to_signal("NameOwnerChanged", nameowner_changed_cb)

ml.run()
Package: pysdcp-cteillet
pySDCPSony SDCP / PJ Talk projector controlPython3library to query and control Sony Projectors using SDCP (PJ Talk) protocol over IP.##Features:Autodiscover projector using SDAP (Simple Display Advertisement Protocol)Query and change power statusToggle input between HDMI-1 and HDMI-2More featuresThe SDCP protocol allow to control practically everything in projector, i.e. resolution, brightness, 3d format...
If you need to use more commands, just add toprotocol.py, and send withmy_projector.send_commandProtocol Documentation:LinkLink#Supported Projectors
Supported Sony projectors should include:VPL-HW65ESVPL-VW100VPL-VW260VPL-VW285VPL-VW315VPL-VW320VPL-VW328VPL-VW365VPL-VW515VPL-VW520VPL-VW528VPL-VW665Installationpip install pySDCPExamplesSending any command will initiate autodiscovery of projector if none is known and will cary on the command. so just go for it and maybe you get lucky:import pysdcp

my_projector = pysdcp.Projector()

my_projector.get_power()
my_projector.set_power(True)Skip discovery to save time or if you know the IP of the projectormy_known_projector = pysdcp.Projector('10.1.2.3')
my_known_projector.set_HDMI_input(2)CreditsThis plugin is based onsony-sdcp-comNodeJS library byvokkim.See alsohomebridge-sony-sdcpHomebridge plugin to control Sony Projectors.
Package: pysde2json
pysde2jsonA python tool for converting the EVE static data export to json files.RequirementsThis application has very few requirements as it relies on python's built-in sqlite3 library for all database related operations.Python 3.10requestsInstallation and UsageTo install pysde2json, simply runpip install pysde2json.UsageOnce installed you can run the application via the commandline by runningpysde.CreditInspired bycvweiss/sde2json.Relies on Fuzzy Steve's Fuzzwork SDE exports.
Package: pysdif3
SDIF for PythonAuthor: Eduardo MoguillanskyContact:eduardo.moguillansky@gmail.comThis is a python wrapper to IRCAM’s sdif library
(http://sourceforge.net/projects/sdif/files/sdif/) to read and write
SDIF files. It consists of a core written in Cython and some other
utilities written in Python. The SDIF library is included in the package
and built together with the python wrapper.NB: This software is released under the GPL v3 license.Installpipinstallpysdif3Build from sourcegitclonehttps://github.com/gesellkammer/pysdif3cdpysdif3python3setup.pyinstallIntroductionSdif files are used to store time-based analysis. A Sdif file consists
of time-tagged frames, each frame consisting of one or more matrices.Read a Sdif file, read only selected matricesfrompysdifimport*sdif=SdifFile("path.sdif")# get metadataprint(sdif.get_NVTs())forframeinsdif:print(frame.time,frame.signature)formatrixinframe:ifmatrix.signature==b'1MAT':print(matrix.get_data())Write a Sdif file modifying a previous onefrompysdifimport*infile=SdifFile("source.sdif")outfile=SdifFile("out.sdif","w").clone_definitions(infile)forinframeininfile:ifinframe.signature!=b'1TRC':continuewithoutfile.new_frame(inframe.signature,inframe.time)asoutframe:formatrixininframe:# 1TRC has columns index, freq, amp, phasedata=matrix.get_data(copy=True)# modify frequencydata[:,1]*=2outframe.add_matrix(matrix.signature,data)outfile.close()Write a SDIF file from scratchfrompysdifimport*importnumpyasnpsdif=SdifFile("rbep.sdif","w")# Add some metadata. This is optionalsdif.add_NVT({'creator':'pysdif3'})# Add any matrix definitions. In this case we add only one definition# This is a matrix named "RBEP" with 6 columns# Each row in this matrix represents a breakpoint within a frame# Index: partial index to which a breakpoint belongs# Frequency: the freq. of the breakpoint# Amplitude: the amplitude of the breakpoint# Phase: the phase# Bandwidth: the "noisyness" of the breakpoint# Offset: the time offset in relation to the frame timesdif.add_matrix_type("RBEP","Index, Frequency, Amplitude, Phase, Bandwidth, Offset")# After all matrix types are defined we define the frames. A frame is defined# in terms of the matrices it accepts.# Here we define a frame named "RBEP" which takes only matrices of type "RBEP"sdif.add_frame_type("RBEP",["RBEP ReassignedBandEnhancedPartials"])# Now we need to add the data. Since there is just one matrix per frame# in this sdif we can use the shortcut sdif.new_frame_one_matrix which# creates a frame and adds a matrix all at once# The data is just fake data for the sake of an exampledata=np.array([[1,440,0.1,0,0,0],[2,1000,0.2,0,0,0],],dtype=float)sdif.new_frame_one_matrix(frame_sig="RBEP",time=0.5,matrix_sig="RBEP",data=data)# A second framedata=np.array([[1,442,0.1,0,0,0],[2,1100,0.1,0,0,0]],dtype=float)sdif.new_frame_one_matrix(frame_sig="RBEP",time=0.6,matrix_sig="RBEP",data=data)sdif.close()Documentationhttps://pysdif3.readthedocs.io/