Saravanan666/pypi-org huggingface dataset:
Package: pysimplegui-howdoi
PySimpleGUI-HowDoIIntroductionThis package contains a GUI front-end to the AMAZING tool, HowDoI.  You can ask this tool any programming question and it will tap into the enormous database of programming questions and answers, StackOverflow.This program takes you question and returns CODE as a response.The way it works is that it searches StackOverflow, gets the results and then finds the highest voted answer.  From that answer it takes the code it finds and that is what is returned to you.  It works shockingly well.To learn more about HowDoI, visit their GitHub site:https://github.com/gleitz/howdoiCheck out this example.  This was not rehearsed.  While typing this readme, an example was needed and a random question, that I've never asked before, was posed. Once again this program delivered a great answer.You can copy and paste the solution right into your code if you wish.InstallingWhen you install PySimpleGUI-HowDoI, it will install the other components that it requires. To install, on windows, type this into a command prompt:pip install pysimplegui-howdoiRunning the GUI ProgramAfer your Pip install completes you can run the program.  Do run it, type this into your command prompt:python -m pysimplegui-howdoi.pysimplegui-howdoiOnce running you simply type in your question and press enter or click the "SEND" button.  If you want to ask a question again, you can use the arrow keys or your mouse wheel to access the history of questions you've previously asked.Ask ANY question you want for ANY programming language.  I recommend starting the question with the programming language.PySimpleGUI ProjectThis program was built as a sample application of the PySimpleGUI GUI Framework.  It quickly became a tool I was unable to live without.  I've been trying for some time to bring it to life for others to try.Windows Only?This has only been tested using Windows.  I have not gotten it to work under Linux.  The linkage between the program and the howdoI package was messed up on Linux.  If you're able to get a Linux version running, please let me know atinfo@PySimpleGUI.org
Package: py-simple-history
py_simple_history 0.0.1A super basic python History Tracking objectAboutInstallationUsagehistory_mixinExampleAbout^In this instance "History" means the state of an object at any given time. This module aims to provide a simple interface for tracking and moving through histories.Installation^Available on pip -pip install py_simple_historyUsage^history_mixin^Abstract mixin to add simple history-tracking to an object.classhistory_mixin(object):def__init__(self,start_data):...defadd_history(self,data):"""Add a history point. Clears any undone data history points."""defclear_history(self,data=None):"""Clears history. Sets a new history point, if no data specified uses the current data point."""defredo(self):"""Redoes history one step if possible."""defundo(self):"""Undoes history one step if possible."""Example^frompy_simple_historyimporthistory_mixinclassdemo_object(history_mixin):def__init__(self,initial_data):history_mixin.__init__(self,initial_data)self.load(self.data:=initial_data)...defon_update(self,new_data):self.add_history(new_data)self.load(data)defload(self,data):self.data=datadefstep_back(self):self.load(self.undo())defstep_forward(self):self.load(self.redo())
Package: py-simple-image-editor
py_simple_image_editor 0.0.5AboutRequirementsChangelog0.0.50.0.40.0.30.0.20.0.10.0.0About^A basic pixel art / pixel gif editor.Requirements^['py_simple_ttk', 'pillow', 'numpy']Changelog^0.0.5^Add launch config options to editor0.0.4^Make editor widget importable0.0.3^Forgot to save changes before building 0.0.20.0.2^Fix default theme to be 'clam' instead of 'Clam' which was causing a crash on launch.0.0.1^Movemainmodule to correct location0.0.0^Create ProjectGenerated withpy_simple_readme
Package: py-simple-launcher
py_simple_launcher 0.0.1Super simple dynamic, multi-profile launcher systemAboutInstallationChangelog0.0.1About^Super simple dynamic, multi-profile launcher system written in python.Installation^Available on pip -pip install py_simple_launcherWindows only due to *nix systems being inconsistent.InstallPython 3.10+and make sure to includeIDLE, pip, tcl/tk, and check "Add python 3.* to PATH"Reboot your computerOpen a command promptType the following command to install with pip:pip install py_simple_launcherCreate a folder where you want the application to runCreate a text file in the (In Explorer: "right-click->new->Text Document")Rename that file to "py_simple_launcher.bat" (Without quotes)Edit the batch file in notepad (or other plaintext editor) to contain the following text :start pythonw.exe -m py_simple_launcherDouble-Click the bat file to launch the programYou can make another folder + bat file to create a new instance of the program (Eg for a separate set tasks like work vs home etc.)Changelog^0.0.1^PushGenerated withpy_simple_readme
Package: pysimple-log
pysimple-log你还为 配置日志而烦恼吗？ 你还为一些不同的日志格式而痛苦吗？  那么现在来使用这个库吧。
这个库的目的简化 繁琐的日志配置，简单，省时。概要使用 logging 进行封装了一下 日志格式进行封装,
同时使用 concurrent_log_handler 来完成多进程安全的写日志特性对日志格式进行了默认格式的定义使用 concurrent_log_handler库来保证多进程写日志的安全性对日志进行切割，防止日志太大，不利于查看文件对日志切割后，可以设置保留几份安装Install and update usingpip:pipinstallpysimple-log快速开始fromsimplelogimportloggerlogger.info("this is test")logger.error("this is test")logger.warning("this is test")定制化loggerimportloggingfromsimplelogimportLoggerlog=Logger(name='test',filename='app.log',level=logging.DEBUG)logger=log.get_logger()logger.debug("this is test")logger.warning("this is test")logger.info("this is test")logger.error("this is test")logger.exception("this is test")结果如下:[2020-03-06 22:53:57 WARNING/33060] test <input>:<module>:9 this is test
[2020-03-06 22:53:57 INFO/33060] test <input>:<module>:10 this is test
[2020-03-06 22:53:57 ERROR/33060] test <input>:<module>:11 this is test
[2020-03-06 22:53:57 ERROR/33060] test <input>:<module>:12 this is test
NoneType: None高级的一些用法核心的类Logger参数介绍:paramname:logger's name  日志的名称，如果不指定 有默认值 simple_log:param filename: 文件路径 '/aaa/bbb/file.log' ,日志文件的路径,如果没有提供这个值，则不写入文件，直接输出日志 到控制台。:param log_fmt: 日志的格式 ,默认格式如下：[日期 时间  日志级别/进程号] logger的名称 文件名称 函数名:行号 打印日志内容[2020-03-09 18:02:21 INFO/39044] simplelog test_basic.py:<module>:14 hello world:param date_fmt: 日期的格式 ,使用指定的时间格式，默认格式 '%Y-%m-%d%H:%M:%S':parambackup_count:对日志切割后可以设置保留几份，默认保留5份:parammax_bytes:超过max_bytes将会陪切割，默认值:100M,单位是字节:paramlevel:logging.INFO,logging.DEBUG,默认级别:INFO日志级别参考logging模块CRITICAL=50FATAL=CRITICALERROR=40WARNING=30WARN=WARNINGINFO=20DEBUG=10使用方法importloggingfromsimplelogimportLogger# 实例化 Logger 对象log=Logger(name='app',filename='app.log',level=logging.INFO)# 获取 logger 对象logger=log.get_logger()logger.info("hello world")logger.warning("hello world")logger.exception("hello world")logger.error("hello world")设置 日志级别 set_levelimportloggingfromsimplelogimportLoggerfromsimplelogimportset_level# 实例化 Logger 对象log=Logger(name='app',filename='app.log',level=logging.INFO)#获取 logger 对象logger=log.get_logger()logger.debug('hello world 1')logger.info('hello world 2')logger.warning('hello world 3')logger.error('hello world 4')set_level(name=log.name,level=logging.WARNING)logger.debug('hello world 1')logger.info('hello world 2')logger.warning('hello world 3')logger.error('hello world 4')set_level(name=log.name,level=logging.ERROR)logger.debug('hello world 1')logger.info('hello world 2')logger.warning('hello world 3')logger.error('hello world 4')捕获堆栈信息 设置 exc_info = TrueimportloggingfromsimplelogimportLogger# 实例化 Logger 对象log=Logger(name='app',filename='app.log',level=logging.INFO)logger=log.get_logger()# exc_info = Truelogger.error("This is error ",exc_info=True)输出json的格式的日志importloggingfromsimplelogimportLogger,JSONFormatter# 实例化 Logger 对象log=Logger(name='app',level=logging.INFO,json_formatter=JSONFormatter)logger=log.get_logger()logger.propagate=Falselogger.info("hello world",extra={'key1':'hello world'})logger.warning("hello world")logger.exception("hello world")logger.error("hello world")贡献如果你对这个项目感兴趣，非常欢迎可以一起维护这个项目。
如果你在使用的过程发现什么问题,可以联系我。链接pypi 地址pysimple-log github作者邮箱
Package: py-simple-lorem
py_simple_lorem 0.0.1Simple, compressed Lorem Ipsum generator. Get a different output each time.AboutInstallationCommand Line UsageModule UsageAbout^This module provides a single functionloremthat produces Lorem Ipsum. py_simple_lorem.py contains a large amount of Lorem Ipsum stored in a compressed format.Installation^Available on pip -pip install py_simple_loremCommand Line Usage^Command line usage is simple. Run py_simple_lorem.py without arguments for one paragraph or pass an integer for the appropriate number of paragraphs.Module Usage^Module usage is simple. Import lorem from py_simple_lorem.py and calllorem(COUNT)to get a string containingCOUNTentries
Package: py-simple-report
# py_simple_report
[![python](https://img.shields.io/pypi/pyversions/py-simple-report)](https://www.python.org/)
[![PyPI](https://img.shields.io/pypi/v/py-simple-report.svg)](https://pypi.org/project/py-simple-report/)
[![license](https://img.shields.io/pypi/l/py-simple-report?color=blue)](https://github.com/toshiakiasakura/py-simple-report/blob/main/LICENSE)## Installationpip install py-simple-reportIt is noted that from jupyter notebook/lab,!pip install py-simple-reportcauses error of ` ModuleNotFoundError: No module named ‘matplotlib_inline’` so that please pip from a terminal.## Documentation
-https://toshiakiasakura.github.io/py_simple_report/Usage notebook can be found indocs_src/notebooks
Package: pysimpletimers
pysimpletimersThis simple, yet useful module will help you to create simple timers that will execute a callback function at the right moment.(https://github.com/Ilunawoo/pySimpleTimers)Hope this will ever be useful to someone, it was fun to make.The Timer object inherit from the threading.Thread object, but you don't need to think about that at all, everything is being taken care of internally.A Timer object need 4 arguments when initialized, example below:my_timer=Timer(delay=5,callback=my_func,args=(a_string,an_int,....),loop=False)delay: int or float; represents the waiting time in seconds before executing the callbackcallback: function; your functionargs: tuple; a tuple containing the args that will be used in your callback, is necessary even if your callback doesn't use argsloop: bool; whether your timer will start over when it's finished or notThere are some useful funcs to use with these Timer objects and vars that can be modified:----- functions -----timer_obj.start(): DOESN'T start a thread, this function override the original Thread.start() function, it only starts the timer, can be called MORE than one time, if the timer is already started, it will restart it from 0timer_obj.stop(): stops the timer but doesn't set its current time to 0timer_obj.quit(): stops the timer and KILL THE THREAD, after that the timer can't be restarted and is only useful to access its data----- vars -----timer_obj.current_time: int or float, you should definitely not modify this, var containing the current time of the timerThe vars bellow can be modified even if the timer is already started but it can still cause errors, you should call the .stop() function before changing them (because the timer is a thread, it is possible, yet very unlikely, that you'll modify something at the same moment that it's being called, and then raise an error).sleep_time: int or float, the time that will be wait before checking if the delay has been exceded or not (need to be precise or not, at your convenience) NEED TO BE GREATER THAN 0timer_obj.delay: int or float, set at the timer's creation, duration of the timer (time waited before the execution of the callback)timer_obj.callback: function, set at the timer's creation, function called when the timer is completedself.args: tuple, set at the timer's creation, args of the callback function, need to be a tupleself.loop: bool, set at the timer's creation, True if the timer will repeats when it's completed
Package: py-simple-trees
py-simple-treesThis package is a implementation collection of tree data structures.Documentation:https://lpthong90.dev/py-simple-treesSource  Code:https://github.com/lpthong90/py-simple-treesThis package is a implementation collection of tree data structures.Installation$pipinstallpy-simple-trees---> 100%Successfully installed py-simple-treesTree TypesBinary TreeBinary Search Tree (BST)AVL TreeBasic Usagefrompy_simple_treesimportAVLTreeif__name__=="__main__":tree=AVLTree()tree.insert(1,1)tree.insert(2,2)tree.insert(3,3)tree.insert(4,4)tree.insert(5,5)tree.insert(6,6)tree.insert(7,7)tree.print()Output4 --L--> 2
4 --R--> 6
2 --L--> 1
2 --R--> 3
6 --L--> 5
6 --R--> 7LicenseThis project is licensed under the terms of theMIT license.
Package: pysimplevcs
# pysimplevcs
[![View on PyPI](https://img.shields.io/pypi/v/pysimplevcs.svg)](https://pypi.python.org/pypi/pysimplevcs)
[![Licence](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/rcook/pysimplevcs/master/LICENSE)Simple wrappers aroundgitandhgcommands etc.## Licence[MIT License][licence]Copyright &copy; 2017 Richard Cook[licence]: LICENSE
Package: pySimpleWorkflow
Workflow moduleDescriptionThe Workflow module manages a sequence, ie a list of steps which are linked together in a sequential way.To define such a sequence, create a table in excel or csv file with columns named:stepIdtitlenextsstepIdis the unique step identifier,titleis an arbitrary name of the step,nextsis a list of stepIds that follows the step. The list is given by stepIds separated with '-' .Here is an example:stepIdtitlenexts1my first step2-32my second step43step 3!124step49step912-412step12In this example, steps 1 and 9 are the first steps in the workflow because the don't have any previous step.Steps 4 and 12 are the last steps because they don't have any next step.Step 1 points to 2 next steps: steps 2 and 3,Step 2 points to step 4, ...As we can see, there is no need to define a continuous suite fo stepIds and the identifiers don't need to be sorted.Basic call exampleimportpandasaspdfrompycroaktools.workflow.workflowimportWorkflowworkflow=Workflow(pd.read_csv('workflow.csv'),'myWorkflow')#read_csv may be replaced by read_excelpaths=workflow.getAllPaths()forpathinpaths:forstepinpath:print(step.stepId)
Package: pysimplex
pysimplexThis is a fast Clifford circuit simulator based onBH21.Wheels are currently available for Linux, MacOS and Windows, for Python versions
3.8, 3.9 and 3.10.Example usage:frompysimpleximportSimplexS=Simplex(2)# a 2-qubit systemS.H(0).CX(0,1)b0=S.MeasZ(0,coin=0)# 'coin' is an optional argument that fixes the resultassertb0==0# without 'coin' it would be 0 or 1 with equal probabilityb1=S.MeasZ(1)assertb0==b1assertnotS.is_deterministic()# 'coin' is irrelevant hereThe available operations are:X,Y,Z,H,S,Sdg,CX,CZ,MeasX,MeasYandMeasZ. The global phase (in units of pi/4, modulo 8) can
be retrieved with thephaseproperty.
Package: pysimplicialcubature
pysimplicialcubatureThis package is a port of a part of the R packageSimplicialCubature,
written by John P. Nolan, and which contains R translations of
some Matlab and Fortran code written by Alan Genz. In addition it
provides a function for the exact computation of the integral of a
polynomial over a simplex.A simplex is a triangle in dimension 2, a tetrahedron in dimension 3.
This package provides two main functions:integrateOnSimplex, to integrate
an arbitrary function on a simplex, andintegratePolynomialOnSimplex, to
get the exact value of the integral of a multivariate polynomial on a
simplex.Suppose for example you want to evaluate the following integral:$$\int_0^1\int_0^x\int_0^y \exp(x + y + z) \text{d}z \text{d}y \text{d}x.$$frompysimplicialcubature.simplicialcubatureimportintegrateOnSimplexfrommathimportexp# simplex verticesv1=[0.0,0.0,0.0]v2=[1.0,1.0,1.0]v3=[0.0,1.0,1.0]v4=[0.0,0.0,1.0]# simplexS=[v1,v2,v3,v4]# function to integratef=lambdax:exp(x[0]+x[1]+x[2])# integral of f on SI_f=integrateOnSimplex(f,S)I_f["integral"]# 0.8455356728324119The exact value of this integral is ${(e-1)}^3/6 \approx 0.8455356852954753$.Now let's turn to a polynomial example. You have to define the polynomial withsympy.Poly.frompysimplicialcubature.simplicialcubatureimportintegratePolynomialOnSimplexfromsympyimportPolyfromsympy.abcimportx,y,z# simplex verticesv1=[1.0,1.0,1.0]v2=[2.0,2.0,3.0]v3=[3.0,4.0,5.0]v4=[3.0,2.0,1.0]# simplexS=[v1,v2,v3,v4]# polynomial to integrateP=Poly(x**4+y+2*x*y**2-3*z,x,y,z,domain="RR")# integral of P on SintegratePolynomialOnSimplex(P,S)# -0.253571428571429We can do better: by defining the vertex coordinates as fractions, and by
taking the field of rational numbers as the domain of the polynomial, we will
get the exact value of the integral, without numerical error.frompysimplicialcubature.simplicialcubatureimportintegratePolynomialOnSimplexfromsympyimportPolyfromsympy.abcimportx,y,zfromfractionsimportFraction# simplex verticesv1=[Fraction(0),Fraction(0),Fraction(0)]v2=[Fraction(1),Fraction(1),Fraction(1)]v3=[Fraction(0),Fraction(1),Fraction(1)]v4=[Fraction(0),Fraction(0),Fraction(1)]# simplexS=[v1,v2,v3,v4]# polynomial to integrateP=Poly(x**4+y+2*x*y**2-3*z,x,y,z,domain="RR")# integral of P on SintegratePolynomialOnSimplex(P,S)# -71/280 (= -0.25357142857142856...)ReferencesA. Genz and R. Cools.An adaptive numerical cubature algorithm for simplices.ACM Trans. Math. Software 29, 297-308 (2003).Jean B. Lasserre.Simple formula for the integration of polynomials on a simplex.BIT Numerical Mathematics 61, 523-533 (2021).
Package: pysimpliroute
PySimpliRoute=======Wrapper for the SimpliRoute service APIInstallation------------::pip3 install pysimplirouteUsage-----::from pysimpliroute import simpliroute as srclient = sr.Client(token='token_from_perfil')params = {"order": 1,"title": "Dansanti Test1","address": "Parcela 19, culiprán, Melipilla, Chile","latitude": "-33.774290","longitude": "-71.250123","contact_name": "Daniel","contact_phone": "+123413123212","contact_email": "apu@example.com","reference": "invoice_id","notes": "Leave at front door","planned_date": "2018-08-19","window_start": "19:00",}client.send_visit(params)
Package: pysimulate
pysimulatepip install pysimulatePurposeThis project provides a framework to build a simulator to test different agents in a simple environment. This allows you to control the inputs/outputs of the system in python and hotswap the 'drivers' to the vehicles.Use this repo to build your own AI drivers and test them on your own tracks!Linkspygame docsAboutThis project was built using the pygame and numpy libraries. In order to install these dependencies use:pip install -r requirements.txtExtend from the abstract classSimulationfromsimulation.pyin order to create a custom simulation or simply use theDefaultSimulationclass.Same applies to building a custom vehicle fromvehicle.pyor using theDefaultVehicleclass.AuthorLuke Harwoodlukeharwood11@gmail.comharwoodl@msoe.eduwww.lukeharwood.devCreated on 05/24/2022
Package: pysine
PySine allows to play single tones on the PyAudio sound output in real
time.This is always useful when no text output is available, for example for
debugging multi-thread programs or calls to object destructors by
Python’s garbage collector.InstallationEitherpip install pysineorcd DESIRED_SOUCE_CODE_DIRECTORY
git clone https://www.github.com/lneuhaus/pysine
python setup.py developQuick start / usage example:>From the command line:python -m pysine frequency durationA sine sound with the desired properties should be heard.Within a python code block:from pysine import sine
sine(frequency=440.0, duration=1.0)  # plays a 1s sine wave at 440 HzIssuesPlease report all problems or wishes as new issues onthis
page, so we can fix it
and improve the future user experience.Unit testUse nosetests for unit tests:cd package_code_directory
nosetestsAll tests should take about 3 minutes and finish without failures or
errors. If there are errors, please report the console output as an
issue (see the section “Issues” below for detailed explanations).LicensePlease read our license fileLICENSEfor
more information.
Package: pysinger
PySingerIntroductionRequirementsInstallationUsageUsing tap and target namesDifferent executable nameDefining Tap or Target manuallyIntroductionASinger.iowrapper Python library (that's fully type-annotated :D) that makes using Singer taps and targets easy.This wrapper creates temporary virtual environment for each tap and target, download the required dependency and executes them. After execution, all environments are torn down and cleaned up.RequirementsLinux only (Windows in the future? :|)Requires Python 3.7+.PySinger has no dependencies, it uses only Python built-in libraries.Installationpip install pysingerUsageUsing tap and target namesUse the tap/target names you would use topip installthem.E.g. the tap would be"tap-exchangeratehost"if you'd usedpip install tap-exchangeratehostto install it or target"singer-target-postgres"forpip install singer-target-postgres.frompysingerimportSingertap_config={"base":"JPY","start_date":"2022-01-01"}target_config={"delimiter":"\t","quotechar":"'","destination_path":""}singer=Singer("tap-exchangeratehost","target-csv",tap_config=tap_config,# Optionaltarget_config=target_config# Optional)end_state=singer.run()# Optionally you can save the state for future usesinger.save_state("/path/to/state.json")Different executable nameBy default PySinger executes tap/target by their name, but sometimes the executables are named differently.For examplesinger-target-postgresuses atarget-postgresas its executable. To run these:...singer=Singer("tap-exchangeratehost","singer-target-postgres",tap_config=tap_config,target_config=target_configtarget_kwargs={"target_exec":"target-postgres"})# Similarly there's one for taps called 'tap_exec'...To know what the executable name is, see the individual tap/target repo and check their invocation name.Summary:tap/target nameis frompip install tap_or_targettap/target_execis fromvirtualenv/tap_or_target/bin/tap_or_target_execDefining Tap or Target manuallyYou can also pass Tap or Target instances that were created manuallyfrompysingerimportTap,Target,Singertap=Tap("tap-exchangerates",config_path="/path/to/config.json")target=Target("pipelinewise-target-postgres",target_exec="target-postgres",config={"disable_collection":True})singer=Singer(tap=tap,target=target)singer.run()
Package: py-singleton
py-singletonSingleton pattern for python 2 & 3.Installpipinstallpy-singletonTestin the root folder, run pytest:pytestDependenciesNoneunit test needspytest.APIApply class decoratorsingletonto any class;Expected behaviors:class can be instantiated as usual, but only one instance is created;apis to access the class instance:@singletonclassServer(object):passsrv=Server()orsrv=Server.instance()the function _init_() of decorated class will be called once and only once when the instance is created.Examplefrompy_singletonimportsingleton@singletonclassA(object):count=0def__init__(self):A.count+=1a1=A()a2=A()a3=A.instance()assertA.count==1asserta1isa2asserta1isa3LimitationFor best performance, the code to create instance is not thread-safe, however, after the instance is created it should
be safe for multi-threading.It is recommended to callinstance()once during the initial phrase of your app in a single thread.
Package: pysinric
This is a python library for alexa home automation skillSINRIC (https://sinric.com/)Functions:Control your home appliances using alexaInstallation :Python3pip3 install pysinric --userorPythonpip install pysinric --userImplementing :from sinric import Sinric
from time import sleep

apiKey = 'Replace with your api key'  # https://sinric.com

response = any

if __name__ == '__main__':
    obj = Sinric(apiKey)

    while True:
        response = obj.initialize()
        print(response)
        sleep(2)
Package: pysiology
A simple python package for physiological signal processing (ECG,EMG,GSR). Tutorial and documentation can be found on the Github Repository or at pysiology.rtfd.io. If you use this package in your work, please cite: Gabrieli G., Azhari A., Esposito G. (2020) PySiology: A Python Package for Physiological Feature Extraction. In: Esposito A., Faundez-Zanuy M., Morabito F., Pasero E. (eds) Neural Approaches to Dynamics of Signal Exchanges. Smart Innovation, Systems and Technologies, vol 151. Springer, Singapore.https://doi.org/10.1007/978-981-13-8950-4_35