Saravanan666/pypi-org huggingface dataset:
Package: pyfx-tool
PyFxThe Python version of thenon-interactive, JavaScript versionof thefx. Short forPYthon Function eXecutionorPyf(x).python3-mpipinstallpyfxOr install in develop mode:gitclonehttps://github.com/archeraldrich/pyfxcdpyfx
python3setup.pydevelopUsagePyFx treats arguments as Python expressions or functions. PyFx passes the input data to the first expression or function and then passes the result of the first one to the second one and so on.echo'{"name": "world"}'|pyfx'lambda x: x["name"]''lambda x: f"Hello, {x}!"'Useselfto access the input data. Use.at the start of the expression to access the input data without alambda x: xpart.echo'{"name": "world"}'|pyfx'.get("name")''f"Hello,{self}!"'Use other Python functions to process the data.echo'{"name": "world"}'|pyfx'dict.keys''list'Advanced UsagePyFx can process a stream of JSON objects. PyFx will apply arguments to each object.printf'{"name": "hello"}\n{"name": "world"}'|pyfx'.get("name")'If you want to process a stream of JSON objects as a single list, use the--slurpor-sflag.printf'{"name": "hello"}\n{"name": "world"}'|pyfx--slurp'list(map(lambda x: x.get("name"), self))''", ".join'If you want to process non-JSON data, use the--rawor-rflag.ls|pyfx-r'[self, self.find(".md") != -1]'You can use--rawand--slurp(or-rs) together to get a single array of strings.ls|pyfx-rs'list(filter(lambda x: x.find(".md") != -1, self))'PyFx has a special symbolskipfor skipping the printing of the result.ls|pyfx-r'self if self.find(".md") != -1 else skip'PyFx comes with the import statement. Use the--importor-icommand once per import statement, without the leadingimportkeyword.seq1100|pyfx-rs-i'numpy as np'-i'from matplotlib import pyplot as plt''list(map(int, self))''np.array''plt.plot''lambda _: plt.show()'LicenseMIT
Package: pyfy6900-tspspi
(Unofficial) control library for the FY6900 function generatorThis is a small and simple control library for the FY6900 function generator. It's
a implementation for thepylabdevsFunctionGeneratorclass.Example usageSimple setting of predefined waveforms and parametersimport numpy as np

from pyfy6900 import fy6900
from labdevices.functiongenerator import FunctionGeneratorWaveform
from time import sleep

with fy6900.FY6900Serial("COM4", debug = True) as fg:
	print(f"Device identifies as {fg.identify()}")

	fg.set_channel_enabled(0, False)
	fg.set_channel_enabled(1, False)

	fg.set_channel_waveform(0, FunctionGeneratorWaveform.SINE)
	fg.set_channel_frequency(0, 1e3)
	fg.set_channel_offset(0, 2.5)
	fg.set_channel_amplitude(0, 5)
	fg.set_channel_enabled(0, True)

	for frq in np.arange(1, 60e6, 100):
		fg.set_channel_frequency(0, frq)
		print(f"Set new frequency {fg.get_channel_frequency(0)}")

	fg.set_channel_enabled(0, False)Uploading arbitrary waveform generated using numpyimport numpy as np
import matplotlib.pyplot as plt

from pyfy6900 import fy6900

from time import sleep

with fy6900.FY6900Serial("COM3", debug = "True") as fg:
	fg.identify()

	t = np.linspace(0, 2 * np.pi, 8192)
	wv = (np.sin(t) + np.sin(2*t) + np.sin(3*t))

	# Display before upload
	plt.plot(t, wv)
	plt.show()

	# Uploading
	fg.upload_waveform(61, wv, normalize = True)

	# Selecting channel waveform
	fg.set_channel_waveform(0, arbitrary = 61)
Package: pyfylo
pyfyloFylo python编程依赖包。A Python pack used by Fylo.安装 / Installing在终端执行如下指令以安装pyfylo。Input the following code in powershell(cmd.exe) to install pyfylo.pip install pyfylo激活 / Activatingpyfylo使用前需要使用激活工具进行激活。请联系作者，获得对应的激活工具与相关文档。pyfylo needs to be activated before it can be used. Contact with the author to get the activator and documents.查看版本 / Checking version在控制终端执行pip list 进行查看Input "pip list" in powershell(cmd.exe) to get pyfylo's verison在程序中执行Using the following code.import pyfylo
ver = pyfylo.get_version()
print(ver)使用 / Usage使用以下代码获取一个UserApi实例后，可以通过UserApi所提供的接口对fylo无人机进行控制。接口说明请查看doc/html/中文/index.html文件。Use the following codes to create a userApi instance. Its interfaces can be used to control fylo plane. Go to doc/html/English/index.html to see the interface specification.import pyfylo
api = pyfylo.UserApi()更新内容 / Updatev 1.2.0更新了仿真软件Update simulator softwarev 1.1.1支持新的基站定位模式Station support new location mode对串口冲突进行处理Handle serial port conflict更新了文档说明Update some documents修复了一些bugFix other bugsv 1.1.0支持使用pip管理包Pip can be used to manage the lib packages增加日志管理功能Add log management增加了飞机固件版本检测功能Add plane version check增加FyloTools程序，以激活pyfylo和获取文档更新Add FyloTools to activate pyfylo and download pyfylo's documents仿真软件支持英文Add English version of simulator software增加了中英说明文档Add Chinese/English documents限制实时控制等函数在舞步飞行过程中的调用Restrict the use of real-time functions during dance show修复仿真软件在中文路径和有空格的路径下无法正常打开舞步的问题Fix the bug that simulator software cannot be opened when its path includes Chinese strings or blankspace修复当电脑串口号大于10无法连接基站的问题Fix the bug that the computer's serial port can not connect to station, when its number is bigger than 10.修复了一些其他问题Fix other bugsv 1.0.0初始版本Initial version
Package: pyfyre
PyFyre - The Python Web Frontend FrameworkA fast, declarative, and incrementally adoptable Python web frontend framework for building reactive web user interfaces.FeaturesComponent-based framework. Developers who have experience in using other frontend frameworks should feel quite at home when using PyFyre.Truly reactive. PyFyre's virtual DOM allows for simple and efficient state management.Quick navigation. Navigation between pages is quick with PyFyre's single-page application design.Pythonic code with static typing. Developing with PyFyre is much easier with its type hinting and Pythonic style of coding.Asynchronous programming. Run non-blocking functions out of the box.CPython interoperability. Developers can limitedly use CPython packages on the client-side web.JavaScript interoperability. Allowing developers to leverage NPM packages and integrate with existing JavaScript applications.Pure Python. Build web apps without ever touching other languages like HTML and JavaScript.And more!ExampleSee theexamplesdirectory for more.
If you want to quickly test how PyFyre feels or looks like, try ourplayground!
But here is a super simple example. See how easy it is to create a simple Counter app with PyFyre:frombrowserimportDOMEventfrompyfyreimportrender,Statefrompyfyre.nodesimportNode,Widget,Text,ButtonclassApp(Widget):def__init__(self)->None:self.count=State[int](0)super().__init__()defbuild(self)->list[Node]:defincrement(event:DOMEvent)->None:self.count.set_value(self.count.value+1)defdecrement(event:DOMEvent)->None:self.count.set_value(self.count.value-1)return[Button(onclick=decrement,children=lambda:[Text("-")]),Text(self.count),Button(onclick=increment,children=lambda:[Text("+")]),]render({"/":lambda:App()})DocumentationLearn PyFyre by reading thedocumentation.
It is also advisable to learnBrythonalongside PyFyre as it is built on top of Brython.LinksPyPIRepositoryDocumentationFacebook PageDiscord Server
Package: pyfzf
![](https://img.shields.io/badge/license-MIT-green.svg?style=flat)
![https://pypi.python.org/pypi/pyfzf](https://img.shields.io/pypi/dm/pyfzf.svg?style=flat)##### A python wrapper forjunegunn’s awesome [fzf](https://github.com/junegunn/fzf).![](https://raw.githubusercontent.com/nk412/pyfzf/master/pyfzf.gif)RequirementsPython 3.6+[fzf](https://github.com/junegunn/fzf)Note: fzf must be installed and available on PATH.Installationpip install pyfzfUsage>>> from pyfzf.pyfzf import FzfPrompt
>>> fzf = FzfPrompt()Iffzfis not available on PATH, you can specify a location>>> fzf = FzfPrompt('/path/to/fzf')Simply pass a list of options to the prompt function to invoke fzf.>>> fzf.prompt(range(0,10))You can pass additional arguments to fzf as a second argument>>> fzf.prompt(range(0,10), '--multi --cycle')Input items are written to a temporary file which is then passed to fzf.
The items are delimited withnby default, you can also change the delimiter
(useful for multiline items)>>> fzf.prompt(range(0,10), '--read0', '\0')LicenseMITThanks@brookite for adding Windows support in v0.3.0
CHANGES
=======2015.11.16: Initial release
Package: pyfzf-iter
pyfzfForked Changes:This doesn't write to a temporary file before prompting, it communicates with the subprocess directly given any iterator, sending lines as they're processed.It also lets you send anyfzfCLI options as args/kwargs, or decorate a function which returns an iterator to use as fzf input (see below for examples)A python wrapper forjunegunn'sfzf.RequirementsPython 3.6+fzfNote:fzfmust be installed and available on$PATH.Installationpip install pyfzf_iterUsagefrompyfzf.pyfzfimportFzfPromptfzf=FzfPrompt()fzf=FzfPrompt(default_options="--reverse")Iffzfis not available on PATH, you can specify a locationfzf=FzfPrompt('/path/to/fzf')Simply pass a sequence of items to the prompt function to invokefzffzf.prompt(range(0,10))You can pass additional positional arguments tofzf.fzf.prompt(range(0,10),'--multi','--cycle')fzf.prompt(range(0,50),'multi','cycle',height='20%')fzf.prompt(range(0,50),'x','i','m','--tac')Items are streamed to thefzfprocess one line at a time, you can pass
any sort of iterator or generator as the first argument. For example, a file object,
or a glob of files to search for, displaying a preview:fzf.prompt(open("README.md"),"-m",delimiter="")frompathlibimportPathfzf.prompt(Path(".").rglob("*.md"),"-m",r"--preview='cat{}'")Items are delimited with\nby default, you can also change the delimiter (useful for multiline items):>>>fzf.prompt(["5\n10","15\n20"],'--read0','-m',delimiter='\0')['15\n20']You can also wrap a decorate a function withwrap, which then runsfzfwhen you call the function:frompyfzfimportFzfPromptfzf=FzfPrompt()@fzf.wrap("--tac")defitems(n:int):returnrange(n)# prompts you to pick one of the items with fzfitems(n=50)
Package: pyg
WARNING - Important notice==========================This project is now **DEAD**.It was born with the intent to provide a better (IMHO) alternative to Pip.Since now Pip has got a lot of great improvements, this is not needed anymore.So the advice here is to use Pip instead. Pyg has not been maintained for over2 years now. It may well be broken in many places. The code is old and wouldneed a refactoring, but there is not need anymore.Pyg===Pyg is a Python Package Manager that is meant to be an alternative to easy_install.Installation-----------To install Pyg it takes only one simple command::$ pip install pygor if you must::$ easy_install pygAnd then you should no more need them!Installing from source----------------------Also, you can download the source and after unpacking the archive::$ python setup.py install**Note:** You may need root privileges to install.Documentation------------If you need further information you can check the documentation at: http://pyg-installer.co.nrBuilding the documentation~~~~~~~~~~~~~~~~~~~~~~~~~~You can build the documentation locally. In order to build the html documentation you need to install `Sphinx`_. Simply run::$ pyg install sphinxAgain, you may need root privileges.Now you can build the docs. If you haven't already downloaded the source download it and open your terminal::$ cd docs$ make htmlThe docs are now in ``_build/html/``.. _Sphinx: http://sphinx.pocoo.org
Package: pyG2
PyG2A grammar of graphics python library for jupyter notebooks on top of G2AuthorThamalu Maliththa PiyadigamaBased onAntV/G2 javascript libraryDescriptionA python wrapped version of G2 charting library. Works onJupyter notebooks. Provide Grammar of Graphics support to jupyter notebooks.Syntax is closer to original G2.What is new!Support for configuration of guides, legends, interaction and other graph elements.Offline chart generationFuture developmentsAdd support to colab and other IPython environmentsAdd support to different rendering methodsProvide javascript code snippets to embed graphs into web pages.
Package: pyg2plot
PyG2Plot🎨 Python3 binding for@AntV/G2Plotwhich an interactive and responsive charting library. Based on the grammar of graphics, you can easily make superior statistical charts through a few lines of code.PyG2Plotis inspired by pyecharts.Document：中文说明文档·Drawing statistical plots·In Jupyter Notebook·PrinciplesInstallation$pipinstallpyg2plotUsagerender HTMLfrompyg2plotimportPlotline=Plot("Line")line.set_options({"data":[{"year":"1991","value":3},{"year":"1992","value":4},{"year":"1993","value":3.5},{"year":"1994","value":5},{"year":"1995","value":4.9},{"year":"1996","value":6},{"year":"1997","value":7},{"year":"1998","value":9},{"year":"1999","value":13},],"xField":"year","yField":"value",})# 1. render html fileline.render("plot.html")# 2. render html stringline.render_html()render Jupyterfrompyg2plotimportPlotline=Plot("Line")line.set_options({"height":400,# set a default height in jupyter preview"data":[{"year":"1991","value":3},{"year":"1992","value":4},{"year":"1993","value":3.5},{"year":"1994","value":5},{"year":"1995","value":4.9},{"year":"1996","value":6},{"year":"1997","value":7},{"year":"1998","value":9},{"year":"1999","value":13},],"xField":"year","yField":"value",})# 1. render in notebookline.render_notebook()# 2. render in jupyter labline.render_jupyter_lab()use JavaScript callbackfrompyg2plotimportPlot,JSline=Plot("Line")line.set_options({"height":400,# set a default height in jupyter preview"data":[{"year":"1991","value":3},{"year":"1992","value":4},{"year":"1993","value":3.5},{"year":"1994","value":5},{"year":"1995","value":4.9},{"year":"1996","value":6},{"year":"1997","value":7},{"year":"1998","value":9},{"year":"1999","value":13},],"xField":"year","yField":"value","lineStye":JS('''function() {return { stroke: 'red' };}''')})UseJSAPI, you can use JavaScript syntax for callback.APINow, only has one API ofpyg2plot.PlotPlot(plot_type: str): get an instance ofPlotclass.plot.set_options(options: object): set the options ofG2Plotinto instance.plot.render(path, env, **kwargs): render out html file by setting the path, jinja2 env and kwargs.plot.render_notebook(env, **kwargs): render plot on jupyter preview.plot.render_jupyter_lab(env, **kwargs): render plot on jupyter lab preview.plot.render_html(env, **kwargs): render out html string by setting jinja2 env and kwargs.plot.dump_js_options(env, **kwargs): dump js options by setting jinja2 env and kwargs, use it for HTTP request.More apis is on the way.LicenseMIT@hustcc.
Package: pyg3
In[1]:importpyg3In[2]:d=pyg3.Domain()In[3]:dOut[3]:<pyg3.Domainat0x7f0ebe6ec1f0>Meaningful errors:In[4]:n=pyg3.Node()-------------------------------------------------------------------------TypeErrorTraceback(mostrecentcalllast)<ipython-input-4-3e097288ae09>in<module>---->1n=pyg3.Node()TypeError:__init__():incompatibleconstructorarguments.Thefollowingargumenttypesaresupported:1.pyg3.Node(arg0:int,arg1:int,arg2:float,arg3:float)Invokedwith:In[5]:n=pyg3.Node(0,0,1.0,10.0)In[6]:d.addNode(n)Out[6]:TrueIn[7]:d.getNode(0)Out[7]:<pyg3.Nodeat0x7f0ebc6fca70>Thread safe:In[8]:d2=pyg3.Domain()In[9]:d2.getNode(0)In[10]:n2=pyg3.Node(0,0,0.0,0.0)In[11]:d2.addNode(n2)Out[11]:TrueIn[12]:d2.getNode(0)Out[12]:<pyg3.Nodeat0x7f0ebe714e70>In[13]:d.getNode(0)Out[13]:<pyg3.Nodeat0x7f0ebc6fca70>In[14]:d.getNode(0)==nOut[14]:TrueIn[15]:d2.getNode(0)==n2Out[15]:True
Package: pyg3a
DescriptionA tool to convert Python files to Casio fx-CG 10/20/50 (Prizm) Add-insInstallationpip install pyg3aUsagepyg3a <file.py> -l path/to/libfxcg [--debug] [--verbose]How it worksProject is Created:PyG3A will create a 'project' in the directory '.pyg3a_build/<file>/'.It then creates a Makefile to build the project later.This should only happen once.Python is Parsed:PyG3A uses thelibcstmodule to parse the input python file.Imports are Checked:It iterates over the imports in the file, and checks the '<install location>/packages' and '~/.local/lib/pyg3a/' directory for .py files matching this name.The functions in this file are added to a list for future use.Code is Transpiled:PyG3A internally puts your whole Python file into the main() function, then transpiles to C++, placing function definitions outside the main() function (as C++ does not support nested functions)This takes into account the packages imported in your program for function overloads.C++ is Compiled:The C++ is compiled and linked using GNU Make.Execution starts from your Python file's main() function (if defined), or from your first statement.Any G++ output will be shown in the python output as a means of debugging.Using '--verbose' will print the commands that are being run through make.NotesThe functionraw_c(str)inserts that str into the transpiled C++.Importing replaces .s with /s, for example:import custom.random
from custom.random import *
from custom.random import aAll of these import the 'random' module in the '~/.local/lib/pyg3a/custom' folder.Variables are statically typed.PyG3A will try and infer types, but it is recommended that you use type hints where possible. Function argument types are not inferred and must be specified.SyntaxKeywordSupportExplanationdefSupportedreturnSupported=Supported:=Supported(operator)=Supportedtuple unpackingSupportedwhileSupportedforSupportedifSupportedelifSupportedelseSupportedimportSupportedfromSupportedpassSupportedbreakSupportedcontinueSupportedlambdaSupporteda if b else cSupported{set}Supporteda.bSupported(tuple)Supported[list]SupportedandSupportedorSupported+Supported-Supported*Supported/Supported//Supported%Supported**Supported<<Supported>>Supported|Supported^Supported&Supported~SupportednotSupported+Supported-Supported==Supported<Supported<=Supported>Supported>=SupportedisSupportedis notSupporteddelSupportedmatchSupportedclassSupport Plannedf"strings"Support Planned[sli:ces]Support Plannedcomp for reh in sionSupport Planned@decoratorSupport PlannedasyncNo Supportno async support in c++awaitNo Supportno async support in c++withNo Supportno error support in libfxcgraiseNo Supportno error support in libfxcgassertNo Supportno error support in libfxcgtry/except/else/finallyNo Supportno error support in libfxcgglobalNo Supportautomatically used in c++nonlocalNo Supportno nested function support in c++dictNo Supportwould be annoying to writeyieldNo Supportno generator support in c++matrix @ matrixNo Supportlittle use case
Package: pyg3t
PyG3T, the Python GetText Translation Toolkit, is a collection of
tools for computer assisted translation using GNU gettext.PyG3T is released under GNU General Public License version 3 or later; see
the LICENSE and COPYING files.IntroductionPyG3T consists of the following tools:gtcat: write catalog to standard out and change encodinggtcheckargs: check the translation of command line arguments heuristicallygtcompare: print qualitative comparison of differences between two catalogsgtgrep: perform grep-like operations on catalogsgtmerge: merge translations from one catalog into anothergtxml: find syntax errors in xml-formatted messagespoabc: check for common translation errors such as missing punctuationpodiff: generate a message-wise diff between two catalogspopatch: construct a catalog by patching a catalog with a podiffgtparse: python module for parsing gettext catalogsPlease see the –help pages for each script for further information.
Package: pyg4ometry
pyg4ometryPython code for rapid creation and conversion of radiation transport Monte
Carlo (Geant4 and Fluka) geometries.Installing from PyPI> pip install pyg4ometry[!NOTE]
Most dependencies are available from pip but you will need to install OpenCASCADE
cgal, mpfr, gmp, ROOT. Findhereinstallers for Ubuntu and MacOS.Building> git clone https://github.com/g4edge/pyg4ometry.git> cd pyg4ometry> pip install . # add --editable for a version which you can edit[!NOTE]
If you update your Git clone and the pybind11 C++ has changes you will need
to reinstall and thus trigger a rebuild.ManualOnline manual available athttps://pyg4ometry.readthedocs.ioDeveloper commands (for detailed developer notes see readthedocs)Building the manualpip install '.[docs]'to install docs building dependenciescd pyg4ometry/docsmake<your browser> build/html/index.htmlto view the docsRunning testspip install '.[test]'to install test running dependenciespytestGit commitpre-commitpre-commit installto setup pre-commit in source dir (only once)pre-commit run --all-filesrun pre-commit locallypre-commit run --all-files blackrun only blackmessagesStart commit message withsubmodule : (type of change) detailed notese.gpycgal : (extra functionality) more 2d mesh processingPull requestsPR messages should just explain the change in a concise way as they will form part of the change loge.gFLUKA region viewerUpdate the CHANGELOG.md file for generating the release notes
Package: pyG5
PyG5DescriptionThis project aims at development a Garmin G5 view targeting a Raspberry Pi 7 inches display (640x480) . The intent is to provide a G5 Attitude indicator + G5 Horizontal Situation Indicator stacked on the display in vertical mode. ThepyG5connects to X-Plane flight simulator.It does not require any plugin and use the standard DREF UDP interface from X-Plane. It should not require any configuration. Start it and
it will connect to X-Plane and fetch the required data.This is currently developed on macOS with python 3.9 and testing on a Raspberry Pi 4 with Raspberry Pi OS and an official 7 inches display in vertical mode.Below is a view of the user interface.And you can see it in its simulation environmentMaturityIt's currently in pretty early phase. It's functional and should be easy to install but might suffer from issues here and  there.Not all the features of the G5 are implemented. It's currently missing:Glide scopelateral guidance on the AIDistance to next way point on the Horizontal Situation Indicator.InstallationpyG5depends onpySide6. Due to failure to installpySide6from pip on Raspberry Pi OS it is not
a dependency of thepyG5. As a result it needs to be installed manually.> sudo pip3 install pyside6The installPyG5:> sudo pip3 install pyG5Running> pyG5DualStackedRunning on Raspberry Pi it is recommended to install FreeSans fonts in order to be consistent with the rendering on the current main development platform, ie. macOS. Most liked this is solved with:> sudo apt-get install libfreetype6DevelopersIf you intend to develop based on this project. At a glance:The application runs on PyQt5 event loop.It's loosely implementing a Model View Controller coding styleThepyG5Networkcontains X-Plane network interface is monitoring the connection and feed data at 30Hz to a slotThe view is repainting the interface every time the data is received from the network interfaceThepyG5Widgetis derived twice into and Horizontal Situation Indicator and an AI. thepyG5DualStackinstantiate both into a single widget. That means it's easy to build the view with just one of them.ThepyG5Mainmodule contains the application and the main window class.Running from sourcesClone the repository> git cloneInitialize the virtual environment> source bootstrap.shStart the Application> python -m pyG5.pyG5MainIn order to evaluate the design without X-Plane running you can use:> python -m pyG5.pyG5ViewTesterThis will feed the data from the sliders in the UI instead of the X-Plane network interface:LicenseLicense files