Saravanan666/pypi-org huggingface dataset:
Package: pysesameos2
pysesameos2Unofficial Python Library to communicate with SESAME products via Bluetooth.IntroductionThis project aims to control smart devices runningSesame OS2viaBluetooth. If you want to control them via the cloud service, please checkpysesame3.To be honest, this is my first time to useBleakwhich provides an asynchronous, cross-platform Bluetooth API. PRs are heavily welcome.Free software: MIT licenseDocumentation:https://pysesameos2.readthedocs.ioTested EnvironmentsmacOS 10.15.7, Python 3.9.5Raspberry Pi Zero W (Raspbian GNU/Linux 10, Raspberry Pi reference 2021-05-07), Python 3.7.3Supported devicesSESAME 3SESAME 4SESAME botFeaturesScan all SESAME locks using BLE advertisements.Receive state changes (locked, handle position, etc.) that are actively reported from the device.Needless to say, locking and unlocking!ConsiderationThe results ofpysesameos2are merely from reverse engineering ofthe official SDK. We have implemented just a small part of it, so you might run into some issues. Please do let me know if you find any problems!pysesameos2only supports devices that have already been initially configured using the official app. That is,pysesameos2cannot configure the locking position of your device.pysesameos2does not have, and will not have, any functionality related to the operation history of locks.  According tothe document, your lock's operation history is not stored in the lock itself, but on the cloud service. I personally recommend you to bring a Wi-Fi module to get the operation history uploaded and retrive it bythe API.UsagePlease take a look at theexampledirectory.Related ProjectsLibrariesNameLangCommunication MethodpysesamePythonSesame API v1/v2pysesame2PythonSesame API v3pysesame3PythonWeb API,CognitoAuth (The official android SDK reverse-engineered)pysesameos2PythonBluetoothIntegrationsNameDescriptionCommunication MethoddoormanControl SESAME3 from Homebridge by MQTTWeb APIDoorlockiOS widget for Sesame 3 smart lockWeb APIgopy-sesame3NFC (Felica) integrationWeb APIhomebridge-open-sesameHomebridge plugin for SESAME3Cognito integrationhomebridge-sesame-os2Homebridge Plugin for SESAME OS2 (SESAME3)Web APIsesame3-webhookSend SESAME3 status to specified url. (HTTP Post)CognitoAuth (based onpysesame3)Credits & ThanksA huge thank you to all atCANDY HOUSEand their crowdfunding contributors!Thanks to@Chabiichi-san forthe offerto get my SESAME bot!Many thanks tobleakandpyzerproc.
Package: py-session
Python SessionPrint session informationFree software: MIT licenseFeaturesDisplays modules imported together with version:>>>frompy_sessionimportpy_session>>>py_session()re2.2.1ipykernel4.8.2json2.0.9IPython6.4.0logging0.5.1.2zlib1.0traitlets4.3.2six1.11.0ipython_genutils0.2.0platform1.0.8decorator4.3.0argparse1.1pygments2.2.0pexpect4.5.0ptyprocess0.5.2...CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-05-17)First release on PyPI.
Package: py-set
PysetPySet is wrapper of C++ standart red-black tree realization(std::set)Installpip3 install py_setUsage>>>from py_set import pyset
>>>rbt = pyset()
>>>
>>>rbt.size()
0
>>>rbt.is_empty()
1
>>>rbt.add("Hello world")
>>>rbt.add(20.15)
>>>rbt.add(6)
>>>
>>>rbt.to_list()
[20.15, 'Hello world', 6]
>>>rbt.remove(6)
>>>rbt.size()
2
>>>del rbt
>>>
>>>rbt = pyset(5, 10, 1)
>>>rbt.to_list()
[5, 6, 7, 8, 9]
>>>
>>>rbt.from_list([1, 2, 3, 4], (10, 11, 12))
>>>rbt.to_list()
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
>>>rbt.find(4)
1
>>>rbt.find("Hello")
0
>>>rbt.clear()
>>>rbt.to_list()
[]
>>>rbt.remove("Nothing")
>>>rbt.pop("Error")
IndexError: Pyset is empty

>>>del rbtComparing with python structures:*** Adding elements ***
List time on adding 10^6 items: 142.03ms
Set time on adding 10^6 items: 168.01ms
Pyset time on adding 10^6 items: 457.31ms

*** Searching for elements ***
Set time on searching in 10^6 items: 178.88ms
Pyset time on searching in 10^6 items: 773.05ms

*** Deleting elements ***
Set time on deleting 10^6 items: 154.70ms
Pyset time on deleting 10^6 items: 348.18ms
Package: pysetenv
pysetenvis a simple Python-based program to allow users to set
environment variables before executing a command, similar to the POSIX`env<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/env.html>`__
command.Why?pysetenv is designed as a support package to help authors of other
Python packages create command-line strings like you’d expect fromshor theenvcommand. Generally, pysetenv will only be
installed on Windows systems, with POSIX systems usingshorenv. For example, in yoursetup.py, you would write:setup(# ...install_requires=['pysetenv;platform_system=="Windows"'],)Then somewhere in your code, you could call pysetenv:subprocess.call(['pysetenv',...])Command-line referenceUsage:pysetenv[OPTION]...[NAME=VALUE]...[--][COMMAND[ARG]...]pysetenv supports a subset of common options available to various
implementations ofenv. It executesCOMMANDwith any supplied
arguments (ARG) after modifying the environment as specified by the
previous arguments. Any arguments of the formNAME=VALUEwill set an
environment variableNAMEto the value ofVALUE. IfCOMMANDis not specified, pysetenv will print the resulting environment instead.In addition, the following options are supported:-i: Ignore any environment variables inherited by this process-uNAME: Unset the environment variableNAME-h,--help: Show a help message and exit--version: Show the current version and exitAs an extension to theenvcommand, the options above and the
variable definitions can be separated from the section for defining the
command to run with--:pysetenv-uFOOBAR=value--echohelloLicenseThis project is licensed under theBSD 3-clause license.
Package: py-setenv
AboutCommand Line Application and Python Package to Add/Append/Remove environment variables on Windows systemsCurrent package allows to precisely control and differentiate user and system variablesTable of ContentsInstallationCLIGet variableCreate/Replace variableAppend to existing variableDelete variableList all variablesPython PackageGet variableCreate/Replace variableAppend to existing variableDelete variableList all variablesInstallationTo install the package you need to runpython -m pip install py-setenvHow to use as CLI applicationGet variable (CLI)Get value of variablemy_var:: User environmentsetenv my_var -u:: System environmentsetenv my_varCreate/replace variable (CLI)Set variablemy_varto1:: User environmentsetenv my_var -v 1 -u:: System environmentsetenv my_var -v 1Append to existing variable (CLI)Appendmy/test/dirtopathvariable:: User environmentsetenv path -v my/test/dir -a -u:: System environmentsetenv path -v my/test/dir -aDelete variable (CLI)Delete variablemy_var:: User environmentsetenv my_var -d -u:: System environmentsetenv my_var -dList all variables (CLI)Lists all variables:: User environmentsetenv -l:: System environmentsetenv -lHow to use as Python packageGet variableGet value of variablemy_varfrompy_setenvimportsetenvsetenv("my_var")Create/replace variableSet variablemy_varto1frompy_setenvimportsetenvsetenv("my_var",value=1,user=True)Append to existing variableAppendmy/test/dirtopathvariablefrompy_setenvimportsetenvsetenv("path",value="my/test/dir",append=True,user=True)Delete variableDelete variablemy_varfrompy_setenvimportsetenvsetenv("my_var",delete=True,user=True)List all variablesLists all variablesfrompy_setenvimportsetenvsetenv(list_all=True)# to suppress echo to consolesetenv(list_all=True,suppress_echo=True)
Package: pysetest
pysePyse (PythonserverE2E testing) provides testing capabilities for
server-side web APIs via the unittest and requests libraries.Simply subclass PyseTestCase:importrequestsfrompyseimportPyseTestCaseclassPyseTest(PyseTestCase):deftest_my_api(self):response=requests.get("http://127.0.0.1:5000/text")self.assert_success(response)self.assert_content_equal(response,"Text")RequirementsThis library requires Python >= 3.9.InstallationYou can install pyse using the pip package manager:pipinstallpye2e
Package: pysetl
OverviewPySetl is a framework focused to improve readability and structure of PySpark
ETL projects. Also, it is designed to take advantage of Python’s typing syntax
to reduce runtime errors through linting tools and verifying types at runtime.
Thus, effectively enhacing stability for large ETL pipelines.In order to accomplish this task we provide some tools:pysetl.config: Type-safe configuration.pysetl.storage: Agnostic and extensible data sources connections.pysetl.workflow: Pipeline management and dependency injection.PySetl is designed with Python typing syntax at its core. Hence, we strongly
suggesttypedsparkandpydanticfor development.Why use PySetl?Model complex data pipelines.Reduce risks at production with type-safe development.Improve large project structure and readability.InstallationPySetl is available in PyPI:pipinstallpysetlPySetl doesn’t listpysparkas dependency since most environments have their own
Spark environment. Nevertheless, you can install pyspark running:pipinstall"pysetl[pyspark]"AcknowledgmentsPySetl is a port fromSETL.  We want
to fully recognise this package is heavily inspired by the work of the SETL
team. We just adapted things to work in Python.
Package: pysetns
pysetnspysetns- is a Python wrapper for the Linuxsetnssystem call.See themanpagefor an introduction tosetnsand namespaces.To detail see thedocumentationIMPORTANT!setnsrequired execution fromROOT!RequirementsLinux 3.0+Python 3InstallingUsing PIP$pipinstallpysetnsFrom sources$gitclonehttps://github.com/baskiton/pysetns.git
$cdpysetns
$pythonsetup.pyinstallUsageSeeexamples
Package: pysetting
pysettingOverviewA python library for parsing and storing settings and configurations.Warning: This package is still in the Beta stage. It is not ready for production use. Please do not use for any critical softwareCloningIn order to download the source code to your local computer for testing, or for development, you can clone from the remote repository using either SSH, or HTTPS. Below are instructions on how to do so using GitHub hosted code as remote.HTTPSgitclonehttps://github.com/shivanandvp/pysetting.gitORSSHgitclonegit@github.com:shivanandvp/pysetting.gitPackagingChange to the project directory (cd pysetting) and run any of the below scripts:sh packaging/setup.sh <MODE>: Builds and installs a packagesh packaging/build-package.sh <MODE>: Just builds a package without installing it locallysh packaging/install-package.sh <MODE>: Just installs a package locally, except if no built package is detected, a package is built.ORsh packaging_iso/setup.sh <MODE>: Builds and installs a packagesh packaging_iso/build-package.sh <MODE>: Just builds a package without installing it locallysh packaging_iso/install-package.sh <MODE>: Just installs a package locally, except if no built package is detected, a package is built.where<MODE>can be one of the below
1.local: Selectspysetting-localfrom the local project that you have cloned already.
2.git: Selectspysetting-gitfrom the latest git commit.
3.stable: Selectspysettingfrom the git tag corresponding to thepkgverspecified in the PKGBUILD. Ifpkgver=0.1.2, then the git tagv0.1.2is used for packaging.Note: Any additional parameters passed to the above scripts are automatically sent tomakepkgorpacman(whichever is applicable).
Package: pysettings-manager
pysettings-managerA python module for saving and loading settingsGet StartedTake a look at thedocumentationpip install pysettings-managerimportpysettings_manageraspysmvalue_1=1value_two="two"pysm.save(config_file="settings.json",value_1=value_1,value_two=value_two)one,two=pysm.load(config_file="settings.json",unpack=True)print(one)print(two)If you find a bug, please report them in issues, pull requests are welcome :)
Package: pySettle
Settling solver - the BEANSp editionForked from settle project by Andrew Cumminghttps://github.com/andrewcumming/settlepySettle Repo:https://github.com/adellej/pysettleBEANSp Repo:https://github.com/adellej/beans(related, using and depends on pySettle)FeaturesThis code computes ignition conditions for Type I X-ray bursts using a
multi-zone model of the accreting layer (including hot CNO hydrogen
burning, but not helium burning), via a one-zone ignition criterion. For
more details, seeCumming & Bildsten (2000).The code contains updates and improvements as described inGoodwin et al.
(2019)and subsequent work since.CreditsThe original code was written by Andrew Cumming, with subsequent
modifications and updates by Adelle J. Goodwin, Martin Cupak, & Duncan K.
GallowayPackage installation and usagepySettle is on pyPI (https://pypi.org/project/pySettle/) so installation is easy - either straight or in virtual environment:pip install pySettlefrom pySettle import settler(See the code of test scripttest_settle_sft.pyas an example.)Build and installation from this github repositoryPlease refer tobuild instructions.
Package: pysettotop
# settotop
used for selecting a window and bringing it to the top of other applications.
![](https://media.giphy.com/media/ln98uXJj98e0SKhgGs/giphy.gif)## Installation`pip install settotop`## UsageIf you want to select the window to bring to the top`settotop Select`and select the window to bring to the front with your cursor . (wait 5 seconds)
Package: pysetup
PySetupPypi 上传工具安装pip install pysetup --upgrade使用流程进入项目目录, 打开命令行界面输入pysetup init创建setup.py文件修改setup.py文件信息输入pysetup upload t打包并上传命令pysetup help: 查看命令列表pysetup init: 创建 setup.py 文件pysetup upload <is_clear=False>: 打包项目上传到 pypi(https://upload.pypi.org/legacy). [is_clear: 清除上传前后的打包文件]pysetup upload_test <is_clear=False>: 打包项目上传到 testpypi(https://test.pypi.org/legacy). [is_clear: 清除上传前后的打包文件]pysetup package: 打包项目.pysetup clear: 清除打包文件 (build/dist/*.egg-info).pysetup install_test <package_name>: 从 testpypi 安装测试包.下次更新内容保存 pypi/testpypi 登陆信息查看 pypi 包名是否被占用注册 pypi 包名直接将包安装在 python 模块中, 而非从 testpypi 下载安装测试包
Package: pysetwindowpos
pysetwindowposPython wrapper for setwindowpos Windows API. MS Windows only.Currently, this supports only setting a window as topmost (i.e., always on top).
Other invocations of SetWindowPos should be relatively
easy to add.A tkinter example is built in and can by run by executingpy -m pysetwindowpos.setwindowposHackingTo use a development copy of the package as a dependency, navigate to the directory where thepyproject.tomlfile is and run:pip install -e .The blanksetup.cfgis needed for this to work.TODOPreventRuntimeWarningwhen runningpy -m pysetwindowpos.setwindowpos(use__main__?).
Package: pyset-x
pyset_xThis isset -xin Bash, but for Python. Before a line of code is executed, it will be printed. The idea is for quick debugging of actual code flow, instead of having to putprintcalls in all yourif/elif/elseblocks etc.Examplefrompyset_ximportannotate_function@annotate_functiondeffunc():a=1+1returnafunc()Will printa = 1 + 1                                                                                                              
return a
Package: pysexp
S-expression parser for Python==============================`pysexp` is a simple S-expression parser/serializer.  It hassimple `load` and `dump` functions like `pickle`, `json` or `PyYAML`module.>>> from pysexp import loads, dumps>>> loads('("a" "b")')['a', 'b']>>> print(dumps(['a', 'b']))("a" "b")You can install `pysexp` from PyPI_::pip install pysexpLicense-------`pysexp` is licensed under the terms of the BSD 2-Clause License.See the source code for more information.
Package: pysexpr
PySExpr ofPython-Compiler-ToolsA general-purpose package for gaining expression-first capability in Python
world. Currently implemented by taking advantage of Python bytecode, and available since Python 3.5, i.e.,
by using PySExpr as a cross-version compiler, you don't have to worry about the Python version.Seedocumentation.All constructors of PySExpr are documentedhere.InstallationpipinstallpysexprWhatPySExpris & is not?PySExpr is a framework for better(cross-version, efficient, expressiveness) metaprogramming in Python.PySExpr is not a programming language, but a code generation back end good to be targeted.PySExpr is a killer tool when it comes to programmable programming in Python. Comparing to using Python ASTs,
we have perfect compatibility; in terms of generating Python code, PySExpr directly uses Python bytecode
and produces faster code, at the same time you can haveblock expressions,assignment expressionsor multiline-lambdas even in Python 3.5.As this library is so useful, certainly there're many other scenarios for it to stand out. For example,
we can backport Python3.8/PEP572's assignment expressions to Python 3.5+, by composing this library with the mechanisms proposed byfuture-strings.Previewfrompy_sexpr.termsimport*frompy_sexpr.stack_vm.emitimportmodule_codexs=[]main=block(assign_star("a",None),for_range("a",1,10,call(var("print"),var("a"))),)exec(module_code(main),dict(print=xs.append))assertxs==[1,2,3,4,5,6,7,8,9]
Package: pysfa
Stochastic Frontier Analysis (SFA)InstallationThepySFApackage is now avaiable on PyPI and the latest development version can be installed from the Github repositorypySFA. Please feel free to download and test it. We welcome any bug reports and feedback.PyPIpip install pysfaGitHubpip install -U git+https://github.com/gEAPA/pySFAAuthorsSheng Dai, PhD, Turku School of Economics, University of Turku, Finland.Zhiqiang Liao, Doctoral Researcher, Aalto University School of Business, Finland.Demo: Estimating a production function bypySFAimportnumpyasnpimportpandasaspdfrompysfaimportSFAfrompysfa.datasetimportload_Tim_Coelli_frontier# import the data from Tim Coelli Frontier 4.1df=load_Tim_Coelli_frontier(x_select=['labour','capital'],y_select=['output'])y=np.log(df.y)x=np.log(df.x)# Estimate SFA modelres=SFA.SFA(y,x,fun=SFA.FUN_PROD,method=SFA.TE_teJ)res.optimize()# print estimatesprint(res.get_beta())print(res.get_residuals())# print estimated parametersprint(res.get_lambda())print(res.get_sigma2())print(res.get_sigmau2())print(res.get_sigmav2())# print statisticsprint(res.get_pvalue())print(res.get_tvalue())print(res.get_std_err())# OR print summaryprint(res.summary())# print TEprint(res.get_technical_efficiency())
Package: pySFeel
pySFeelAn implementation S-FEEL (Simple Expression Language) as specified in the DMN (Decision Model Notation) standard.
pySFeel is implemented in Python, using theSLYmodule and has many FEEL features.not,andandorin logical expressions which can be enclosed in round brackets (())in() function, e.g. 5 in(<6)Lists and filtersContexts and filtersRangesBuilt in functionsNew DMN 1.3 built in functions - is(), and the range comparison functionspySFeel processes a single S-FEEL statement at a time.
It is not intended to be a syntactically perfect implementation of S-FEEL,
but rather an enabler for an implementation of DMN (Decision Model Notation)pyDMNrules.
The internal data types are float, string, boolean, datetime.date, datetime.time, and datetime.timedelta.
The S-FEEL constant null is mapped to None.
Years and months durations are stored as floats. Days and time durations are stored as datetime.timedeltaThere is one deliberate deviation from the standard - the key word 'item' in a Context filters isnotoptional.
[{x:1,y:2},{x:2,y:3}][x=1] is not valid (as x=1 is either True or False), but [{x:1,y:2},{x:2,y:3}][item x=1] is valid and will return {x:1,y:2}.
Similarly, fred.y isnotthe 'y' filter on the List of Contexts named 'fred' (as fred.y is a valid name).
However (fred).y is the 'y' filter on the list of Contexts named fred.There's one extension - an assignment operator (<-)fred <- 7
bill <- 9
fred = billThis will return Falsefred <- [{x:1,y:2},{x:2,y:3}]
(fred).yThis will return [2,3]USAGE:import pySFeel
parser = pySFeel.SFeelParser()
sfeelText = '7.3 in [2.0 .. 9.1]'
(status, retVal) = parser.sFeelParse(sfeelText)
if 'errors' in status:
    print('With errors:', status['errors'])retVal will be TrueThe dictonary 'status' will have the key 'errors' if you have errors in your sfeelText.status['errors'] is a list of strings. It may help in diagnosing your S-FEEL syntax errors.Documentation:
More details can be found atreadthedocs
Package: pysfer
PysferPysfer is a Python library for transfering data between python processes. With pysfer you can:Acsess variables or data from different Python programs.Acsess variables or data between 'Main program' and other procseses.Access variables or data in same Python program.InstallationUse the package managerpipto install pysfer.pipinstallpysferUsageimportpysfer# Update or create "my_var" with "Hello World" valuepysfer.default_synchronizer.update("my_var","Hello World!")# Returns the value of "my_var"new_var=pysfer.default_synchronizer.get("my_var")# Delete "my_var" and its valuepysfer.default_synchronizer.delete("my_var")# It can also read and write custom class valuesclassPoint:def__init__(self,x:float,y:float)->None:self.x=xself.y=yp1=Point(3,4)pysfer.default_synchronizer.update("p1",p1)p2=pysfer.default_synchronizer.get("p1",Point)print(p2.x,p2.y)# Prints "3 4"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.LicenseMIT
Package: pysfg
PySFGA package for symbolic signal flow graph analysis.The input reads a text file in a human-friendly coding format to describe the
signal flow graph. The program is able to calculate the transfer function
between two nodes.
The resulting symbolic expressions are easily interoperatable withSympyand other scientific packages.Requires Python >= 3.6.InstallationFor Users$pipinstallpysfgFor Hackers$gitcheckouthttps://github.com/qrqiuren/PySFG.git
$cdPySFG
$pythonsetup.pydevelopTutorialThe signal flow graph is a good tool for various fields of engineers. Various
kinds of systems in real world engineering would be easily converted to signal
flow graphs.Let's take an example. Suppose we have the following signal flow graph from an
electronic system.Then, we can convert the graph into the following codetwoport.yml:# The `#` symbol starts a line of comment

# Define source nodes, sink nodes and other nodes
sources:
    - Vin
sinks:
    - V2    # We can use V2 directly as the sink node
nodes:
    - V1
    - I1
    - V2
    - I2

# Define edges
# Each edge has a format of `u ~> v: f`, where the edge points from node `u`
# to node `v`, with a transfer function of `f`. `f` is convertible to a
# SymPy expression.
# Fire Code is recommended to render `~>` symbol prettier.
edges:
    Vin ~> V1: 1    # Constants are acceptable

    # Admittance matrix
    V1 ~> I1: y11   # Symbols are acceptable
    V2 ~> I1: y12
    V1 ~> I2: y21
    V2 ~> I2: y22

    # Impedances
    I1 ~> V1: -Rin  # Expressions are acceptable
    I2 ~> V2: -RLThe code format is a subset of YAML (or "StrictYAML"). It avoids some
ambiguous syntax in YAML by default, while reserves the human-friendly
coding style.Run the following Python commands to load and solve the transfer function
from nodeVinto nodeV2:>>>frompysfgimportSignalFlowGraph>>>sfg=SignalFlowGraph('twoport.yml')>>>tf=sfg.find_graph_gain('Vin','V2')>>>print(tf)-RL*y21/(RL*Rin*y11*y22-RL*Rin*y12*y21+RL*y22+Rin*y11+1)The result is a SymPy expression. It can be further used for calculation
in other programs.Task ListImplement hierarchichal signal flow graph
Package: py-sfile
sfileWhat is it?sfile is a command line utility much similar to linux command "file" but on steroids.FeaturesIn fact by launching sfile on a file sfile extracts all useful metadata for that file:-MD5 Hash
-SHA1 Hash
-Size in bytes
-Mime Type
-DescriptionOn some kind of files (e.g. exe, jpg, png, docx, xlsx, pdf, avi, mp3 etc...) it also extracts more detailed info if available.Usagesfile [file path to analyze]InstallationTo install from pypi:pip install py-sfileTo install from the source directory:pip install .Author@gcarmix