Saravanan666/pypi-org huggingface dataset:
Package: plottoterminal
plottoterminalA plotting utility (library) for plotting data into the terminal encoded as
unicode characters as an xy graph, inspired by matplotlib. This tool doesn't
have any dependencies on gnuplot or numpy.Supports:multi scatter plotsautomatic tick setting for linear scalesautomatic data rescaling to fit large numbers as tick labelsaxis labelsunit labelscommand line interface for plotting xy data file ($ plottoterminal file)Planned:command line interface for xy(z) data plottingbar plotlegendsz value heatmapcolor coding supportcustom marker stylesExample:importplottoterminalaspttimportnumpyasnpf=ptt.Figure(figsize=(57,20))xs=np.linspace(-10,10,200)ys=xs**2f.scatter(xs,ys)ys2=-xs**2f.scatter(xs,ys2)f.set_x_label("x")f.set_y_label("x*x")f.set_x_unit("m")f.set_y_unit("m^2")f.show()Output:1.0ᐃxx                                         xx     
×10^2 │ xx                                       xx      
[m^2] │  xxx                                   xxx       
      │    xx                                 xx         
   0.5├      xx                             xx           
      │       xxxx                       xxxx            
      │          xxx                   xxx               
x     │             xxxx           xxxx                  
*  0.0├                *************                     
x     │             ****           ****                  
      │          ***                   ***               
      │       ****                       ****            
  -0.5├      **                             **           
      │    **                                 **         
      │  ***                                   ***       
      │ **                                       **      
  -1.0├**                                         **     
      └┴──────────┴──────────┴──────────┴──────────┴────ᐅ
       -1.0       -0.5       0.0        0.5        1.0   
                                x               ×10^1 [m]SetupInstalling from source:gitclonehttps://github.com/bitromortac/plottoterminalcdplottoterminal
python3-mpipinstall--user.Installing from pypi:python3-mpipinstall--userplottoterminalCommand line usageTo plot a file composed of rows of x and y data separated by whitespace,
run the command$ plottoterminal file.xy.
Package: plotursheet
Plotursheet PackageThe package acts as a wrapper on gsheets and retrieves a sheet from google drive.Further it uses the same to plot a graph(currently scatterplot for continuos values)How to install the library using pippip install plotursheetOr if you want it in cwdpip install plotursheet -t .This would do the workHow to initialize the library and select the desired Google sheetNow once the package is installed,import the module and run the plotty() function within itThe required values url, column_name1, column_name2(the axes for plot),sheet numberare all to be present in a config.txt filepython   #invoke python interpreter
import plotursheet #imports the package to be usedNHow to use the various methods in the libraryThe package has a single method plotty()
And can be invoked by runningimport plotursheet
plotursheet.plotty()Once the function is invoked, Google sheet specified at url,sheet_nois loaded into file "detail.csv" at the working directoryFurther pandas is invoked and the sheet is taken in as a pandas dataframeThen the column names are used to plot with (currently scatterplot for 2 continuousvalues is written)IMPORTANT NOTEThis package uses authentication for google sheets api
The client_secrets.json must be put in root directory (for authenticaation)And at the first run authentication flow must be completed from the google accountwhere the sheet is present in driveDirectory to put in client_secrets"C:/Users/<Usernaame>/"In order to supply url and column names and sheet numberThe  file config.txt has to be created and placed in current working directory.The content has to be# config.txt
[sheet]
#url for ur sheet
url="https://docs.google.com/spreadsheets/d/1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc/edit?usp=sharing"
#sheet number
n=0
#x_axis
x=offer_price
#y-axis
y=average_sales
Package: plotutils
plotutils=====This is where I keep matplotlib-related plotting utility functions I have found useful.Installation------To install::pip install plotutilsUsage------How to use `setfig`:This will create a new figure (same as plt.figure() call inmatplotlib)::>>> from plotutils import setfig>>> setfig(None) #or setfig()You can also set the current figure to be a given figure number, clear it, and start over, e.g.: `setfig(3)`.`setfig(0)` will do nothing, implying you want to overplot on the currently active figure.I use the `setfig` function in every function that I write that makesa plot, almost always as follows:.. code-block:: pythonimport matplotlib.pyplot as pltdef my_plot(x,y,fig=None,**kwargs):setfig(fig)plt.plot(x,y,**kwargs)
Package: plotvec
Making Attractive 2-D Vector Diagrams in Python with PlotVecHow do I make attractive vector diagrams in Python?PlotVec makes plotting vectors easier.(Note that the figures below use my matplotlibrc file, which is included in the GitHub repository for plotvec.)Let's start by loading theplotvec()function and plotting a single vector:$$
\mathbf{a} = [2,3]^T
$$importnumpyasnpfromplotvecimportplotveca=np.array([2,3])plotvec(a)We can add multiple vectors to the diagram easily. Let's add these vectors:$$
\mathbf{b} =[1,-2]^T
$$$$
\mathbf{c} =[-1,-1]^T
$$a=np.array([2,3])b=np.array([1,-2])c=np.array([-2,-1])plotvec(a,b,c)Note that by defaultplotvec()uses an equal aspect ratio -- this is important in many vector diagrams, for instance to tell whether two vectors are orthogonal. For instance, in the diagram above, vectorsbandcare at 90 degree angles because they are orthogonal.If an equal aspect ratio is not needed,plotvecR()can be used to plot vectors but orthogonal vectors will not necessarily be at 90 degree angles:fromplotvecimportplotvecRplotvecR(a,b,c)A legend can be added by specifying labels:importnumpyasnpfromplotvecimportplotvec,plotvecRa=np.array([2,3])b=np.array([1,-2])plotvecR(a,b,labels=['$\mathbf{a}= [ 2,3]^T$','$\mathbf{b}= [ 1, -2]^T$'],legendloc='upper left')By default, vectors will be plotted with their tails at the origin (0,0).  We can specify a different tail using thetailkeyword argument:plotvec(c,tail=[2,1])When plotting a sequence of vectors, we can have the tail of each vector be positioned at the head of the previous vector by settinchain=True:plotvec(a,b,c,chain=True)When plotting withchain=True, the head of the last vector is at the position of the sum of the vectors. We can askplotvec()to show this sum as a vector usingplotsum=True:plotvec(a,b,c,chain=True,plotsum=True)You can combine plot the result of multipleplotvec()commands on the same axes by specifyingnewfig=False. When using this option, it is good to either specify the colors of the vectors or else use thecolor_offsetkeyword parameter to tell later calls where to start in the color cycle. The example below also shows how to useplot.annotate()to label vectors:importmatplotlib.pyplotaspltplotvec([3,0],[0,4],chain=True);plotvec([3,4],newfig=False,color_offset=2)plt.annotate('3',(1.6,0.1));plt.annotate('4',(3.1,1.8));plt.annotate('5',(1.1,1.9));
Package: plotvet
plotvetplotveté um pacote simples e fácil para plotar vetores no espaço bidimensional e tridimensional.DependênciasPython 3.6ou posteriorPacotenumpyPacotematplotlib.pyplotComeçando o usoVocê vai precisar instalar o pacoteplotvet, para isso basta executar:pip install plotvetFunçõesplota2D([<lista de vetores>],[<lista de cores para cada vetor],[<limites da plotage 2D>])- Plota vetores no espaço bidimensionalEx: 
u_laranja='#FF9A13'
v_azul='#1190FF'
r_vermelho='#FF0000'

u=[1,2]
v=[2,1]
u=np.array(u)
v=np.array(v)
r=u+v

plota2D([u,v,r],[u_laranja,v_azul,r_vermelho],[-3,3,-3,3])plota3D([<lista de vetores>],[<lista de cores para cada vetor],[<limites da plotage 3D>])- Plota vetores no espaço tridimensionalEx: 
u_laranja='#FF9A13'
v_azul='#1190FF'
r_vermelho='#FF0000'

u=[-1,1,2]
v=[2,3,2]
u=np.array(u)
v=np.array(v)
r=u+v

plota3D([u,v,r],[u_laranja,v_azul,r_vermelho],[-4,4,-4,4,-4,4])
Package: plot-wav
plot-wavThis project is a tool for drawing wav files with various acoustic transformations.RequirementPython3Usage$plot-wav--<type>-i<inputfile># -o <output file>If no-ooption is specified, the image will be displayed directly.The types of conversion are as follows.--wave- original wave--spec- spectrogram--mfcc- MFCCShow help$plot-wav-hInstallation$pipinstallplot-wav
Package: plot-yar
This is my package for plotting approximationsInstallation:pipinstallplot_yarDescription:plot_yar.plot_approx(X_data,Y_data,input_function,plot_name='plot_name',plot_title='plot_title',x_label='x_label',y_label='y_label',Y_absolute_sigma=0,scientific_view=True,print_cross=True,save_as_csv=False,to_latex=False,save_fig=True):Parameters:X_data:array_like.X-axis dataY_data:array_like.Y-axis datainput_function:string.Approximation function.You could use template functions from dict or your own funcitons:input_function='linear'fun_examples={'linear':'a0*x+a1','poly_2':'a0*x**2+a1*x+a2','poly_3':'a0*x**3+a1*x**2+a2*x+a3','exp':'e^(a0*x+a1)+a2','ln':'ln(a0*x+a1)+a2'}plot_name:string.Name of your plot (picture)plot_title:string.Your plot titley_label:string.Y-axis labelx_label:string.X-axis labelY_absolute_sigma:float or array_like.Absolute Y-axis data errorscientific_view:bool. (default True)If True numbers will be written as $6.7 E + 01$ instead $670$print_cross:bool.  (default True)Print crosses error or not?to_latex:bool.  (default False)If True save table of estimated coeffs to latex table, you could use this package:\usepackage{booktabs}save_as_csv:bool.  (default False)If True save table of estimated coeffs to csv tablesave_fig:bool.  (default True)If True create a folder "pictures" and save plot to .pngExample:in:fromplot_yarimportplot_approxplot_approx([[1.1,2.5,3.2],[2,3,4]],[[2,3,5],[5,6,8]],'linear')out:Coeffstable0:coeffscoeffs_valuesstandarderrorrelativese,%0a_01.327E+002.811E-012.119E+011a_13.265E-011.659E+005.080E+02Standart_error_Y_0=4.629E-01
Coeffstable1:coeffscoeffs_valuesstandarderrorrelativese,%0a_01.500E+008.333E-025.556E+001a_11.833E+008.056E-014.394E+01Standart_error_Y_1=2.357E-01
Package: plover-application-dictionary
Plover Application DictionaryPlover dictionary entries based on the current focussed application.This plugin has two dictionary types.adand.mad, for defining single or multiple application dictionaries
respectively. The first is not readonly, allowing for entries to be added through Plover, but.maddictionaries are
readonly. Both have to be edited to change which applications the entries within the dictionaryInstallationNavigate to the installation directory for Plover and open a terminal / command prompt.Run:<exe_name> -s plover_plugins install -e plover-application-dictionaryTheplover-application-controlsplugin should be
installed automatically as a dependency.Restart Plover.Configure > Plugins > Enableapplication_controls.Disablingapplication_controlswill prevent the plugin from being able to detect the currently active window.Dictionaries:Dictionaries can match applications using three properties,app,classandtitle.titleshouldbe consistent
between platforms, whereasclassandappwill depend across platforms and specific user installations. To find an
application'sapporclass, seeplover-application-controls meta actions.classis only available on some Linux systems.Matching supports full Regex. An empty string will match anything.The following is an example dictionary which only activates when Discord or Firefox is active. Implementation from
system to system may vary.Example.ad:{"app":"","class":"discord|Navigator","title":"","entries":{...}}The following is an example dictionary which defines separate entries depending on the user being messaged on Discord.Example.mad:[{"app":"","class":"discord","title":"@User1 - Discord","entries":{...}},{"app":"","class":"discord","title":"@User2 - Discord","entries":{...}}]
Package: plover-autobrief
Autobrief for PloverAutobrief for Plover is a plugin that automatically detects words that aren't in your dictionaries, and provides you the opportunity to assign briefs to them on the fly, either automatically or manually.This plugin is still under development and has many missing features. Please stay tuned for more updates in the future!Plugin SetupYou will need to set up the plugin before using it! These can be done in the settings menu. You will need to set up:A dictionary to save all the temporary briefs toAn automatic briefing python script (this plugin does not come with one yet!)The automatic briefing python script should contain a single function,get_brief, which takens in a string, and outputs a list of possible briefs. Each brief is represented as a tuple of strokes, and each stroke is represented as a string:fromtypingimportList,Tupledefget_briefs(text:str)->List[Tuple[str,...]]:return...Without a briefing script, autobrief will add every single word it thinks can be briefed, but will not automatically provide briefs.Briefing scripts will come in the future when I get the time to make them.MacrosThese macros will be useful to you while using the plugin:=ab_prev_pagePrevious page=ab_next_pageNext page=ab_commit:nAdd the nth suggested brief to your dictionary (ifautoaddis not turned on)=ab_define:nManually define the nth word on the autobrief list
Package: plover-auto-reconnect-machine
An extension to [Plover](https://github.com/openstenoproject/plover) to automatically reconnect a steno machine if it got disconnected.How to UseThis plugin enhances plover by automatically reconnecting the steno machine to plover.
Without the machine it is necessary to hit the reconnect button in plover in some cases.
As soon as the steno machine is connected, the plugin will trigger a reconnect in plover.Using the plugin, it doesn’t matter any more, if you start plover before connecting the steno machine or the other way round.The plugin does also allow to unplug and replug the steno machine or to switch devices (unplug machine A, plug in machine B) – as long as they will use the same com port and protocol.What this plugin does notThis plugin intentionally does not do any kind of auto discover.
You need to have your machine correctly configured for this plugin to work.InstallationDownload the latest version of Plover for your operating system from the [releases page](https://github.com/openstenoproject/plover/releases). Only versions 4.0.0rc2 and higher are supported.To install the cloned git repository, you can run the following command:Windows.\plover_console.exe-splover_pluginsinstall<path-to-plover-auto-reconnect-machine-git-repo>Mac/Applications/Plover.app/Contents/MacOS/Plover-splover_pluginsinstall<path-to-plover-auto-reconnect-machine-git-repo>Or you can install the latest released version using the Plugin ManagerOpen PloverNavigate to the Plugin Manager toolSelect the “plover-auto-reconnect-machine” plugin entry in the listClick installRestart PloverActivate the plugin in the plugin tab of the plover configuration dialogThe same method can be used for updating and uninstalling the plugin.
Package: plover-clipboard
Plover ClipboardPlover plugin for accessing the system clipboard. This provides theclipboard_pastemeta, which just outputs the last text contents of the clipboard.
The advantage of using this over the paste keyboard command (Ctrl/Cmd-V) is that
the paste can be undone using the steno undo stroke.To use, add an outline for this command to your dictionary:{"P-FT":"{:clipboard_paste}"}
Package: plover-combo
Plover ComboA plugin for the open-source stenography softwarePloverthat adds a Combo counter. Inspired by theCode in the Dark Editor.Usage NotesShortcuts:Ctrl/Cmd + Sto open settingsCtrl/Cmd + Xto close widget.Left click on the counter number and drag to move the widget around.After adjusting the settings, you might have to restart the plugin for all the changes to fully take effect.On Windows, the widget cannot be moved around by dragging on empty areas. To fix this, change the background opacity to 1.On macOS, you might experience repainting issues where a ghost image appears behind the counter. To fix this, turn on the "Force Repaint" option in the settings dialog.The window width is controlled by the width of the number currently displayed; to adjust the left and right padding, change the "Horizontal Margin" setting.InstallationYou can install this plugin directly using the Plugin Manager, under the nameplover-combo.CreditsHuge thanks to /usr, Emily and Jen on the Plover Discord for testing the plugin out on macOS!
Package: plover-comment
plover-commentPlover plugin to add comment/meta-information to the outline definition.UsageIn order to use this plugin inPloveryou need to
create a dictionary entry of the form:{"example_stroke":"{:COMMENT:some comment text here}"}COMMENTcan be replaced withCMTfor short.They're still subject to the rules of JSON and Plover atom, so any{and}inside the comment
must be escaped.Alternatively the command form{PLOVER:COMMENT:some comment text here}can also be used.In some new Plover version{:comment:some comment text here}would also work.
Package: plover-current-time
Current timePlover plugin for inserting the current time in anstrftime()formatThis can be used to indicate the current time when writing, useful for keeping track of when a transcription started, or when notible events occur; such as breaks.InstallationInstall from the Plover plugins manager.Usage and ExamplesDictionary EntryDescription"T*EUPL": "{:time:%H:%M:%S}",Output current time in 24-Hour format."SO*FL": "{:time:%Y-%m-%dT%H:%M:%S.%f%z}",Output current time in ISO-8601 format."TKA*ET": "{:time:%A, %d %B, %Y},"Output current date in a nice human readable format."PWRAEBG": "\n(break started: {:time:%H:%M:%S}{^})\n",Note that a break has started and at what time."PWRA*EBG": "\n(break ended: {:time:%H:%M:%S}{^})\n",Note that the break has ended and at what time.
Package: plover-cycle-homophones
Plover Cycle through homophonesCompanion plugin for BépoSténo - includes the following macros:split_previoussplit the last word's two last syllables. This is in case plover reads the last two strokes as a single word (eg "A-LAn" turning into "allant" when you want "a lent")find_homophonecycles through homophones from the dictionnaryUsageCycle through homophones:add a stroke to your Plover dictionnary in the following format:"<stroke>": "=find_homophone",Forsplit_previous:This functionality is tricky. The expected behaviour here, is that for any stroke that calls the macro while containing the splitter key, it will split the previous word's last stroke and attach it to the current one.Here's an example:In the first line, we see the second stroke attaches erroneously to the first stroke.
In the second line, the same thing happens, but the macros gets called, splits the second stroke and attaches it to the third one.In order to achieve this functionality, there is sadly no way other than associating every stroke available in your dictionnary to your a splitter key. This means creating a copy of every single stroke of the dictionnary, adding the splitter key inside of it, and binding them to a call of the macro. The splitter key must be at the end of the steno order, optionnally a suffix stroke.
In the following example, I associated theßsymbol to the splitter key. It follows the traditionnal format"<stroke><splitter_key>": "=split_previous"{
"SKPREDCß": "=split_previous",
"SKPIlß": "=split_previous",
"SKPInCß": "=split_previous",
"SKPIß": "=split_previous",
"SKMECß": "=split_previous",
}Currently, the key is hardcoded on line 30 insplit_previous/__init__.pytoß, so you'll have to change that to whatever suits your needs.In these conditions,how do I create a copy of every single stroke in the dictionnary?. A good starting point would be to use the following command in your dictionnary's directory:jq 'keys' * | sed -e 's/\//",\n"/g' -e 's/^\s*//' | sort --unique | awk '!/[\[|\]]/' | sed -e '/[\\.]/d' -e '/,"/d' -e 's/"$/",/' -e 's/",/ß":"=space_or_split",/' -e 's/,$//' -e '1s/^/{\n/' -e 's/$/,/' | sort --unique | sed -e '$s/,$/\n}/'
Package: plover-debugging-console
plover-debugging-consoleA IPython debugging console for Plover.See also:plover-run-pypluginfor
executing a Python command with a stroke, or from the command-line.UsageInstall the plugin.Enable the extension plugin in Plover.Run the commandplover-debugging-console-connect(orplover -s plover-debugging-console-connect)
in a terminal.The global variableengineis given. Other objects can be accessed fromengineas public
or private members.Alternatively,plover-debugging-console-connect qtconsolecan be used to launch a console-style application using Qt.
See documentation ofjupyter qtconsolefor more details.Orplover-debugging-console-executecan be used to execute a file non-interactively. See note below.Known issuesThose errors can be fixed by installing the latest version ofbackground_zmq_ipythonmanually on GitHub. Refer tohttps://github.com/openstenoproject/plover/wiki/Manually-Installing-Pluginsfor instruction.https://github.com/albertz/background-zmq-ipython/issues/13https://github.com/user202729/plover-debugging-console/issues/1#issuecomment-1003654835NoteOnce started, the kernel is not stopped until Plover exits.The session (kernel, global variables) are persistent, and shared between consoles.However,plover-debugging-console-execute <file>uses a separate environment, see
documentation of%runIPython magic command.Anyprintcommands are printed on Plover's console, not IPython's console.Error messages might be hidden (ifplover-debugging-console-executeis used),
or displayed in a different console.To view the error messages, open an interactive console.On some operating systems, the plugin may setPAGERenvironment variable. (seeissue #2 ofplover-run-shellrepository)Implementation detailsThe kernel can be connected to manually withipython console --existing <file>orjupyter console --existing <file>.The IPython/Jupyter connection file path is stored inconnection_path_container, which isplover_debugging_console_pathin the temp folder in the current version.background_zmq_ipythonpackage is used, which requiresjupyterRegardingPAGER,GIT_PAGER,TERM,CLICOLORenvironment variables being set: Eitherunset/reset them manually, orupdate to a sufficiently new version of packagebackground-zmq-ipython, at least commit14d862848b7f5692412093642181718c29f57cad.
(version currently not on PyPI)Seehttps://stackoverflow.com/a/68769973/5267751for the method used inplover-debugging-console-execute.
Package: plover-delay
plover-delayPlover command plugin to sleep for some time.See also:user202729/plover-run-py: Command plugin for Plover to run an arbitrary Python command.UsageIn order to use this plugin inPloveryou need to
create a dictionary entry of the form:{"example_stroke":"{PLOVER:DELAY:0.1}"}DELAYcan be replaced withSLEEPorWAIT.The amount is measured in seconds.In some new Plover version{:command:delay:0.1}would also work.