Saravanan666/pypi-org huggingface dataset:
Package: pntools
PNTools=======PNTools is a collection of small Python 3 scripts. Thesescripts support parsing of pnml and lpo files, define adata structure for Petri nets and labelled partial ordersand contain algorithms to work with such structures.Modules:--------* partialorder.py:This module implements classes for labelled partial ordersand a parser for .lpo-files created with VipTool or MoPeBs(http://www.fernuni-hagen.de/sttp/forschung/mopebs.shtml)* petrinet.py:This module implements classes for Petri nets and a parserfor .pnml-files. (http://www.pnml.org/)* lpo_viewer_tk.py:This module implements a GUI for viewing labeled partialorders. This GUI is build with Tkinter.* petrinet_viewer_tk.py:This module implements a GUI for viewing Petri nets. This GUIis build with Tkinter.* lpo_viewer.py:This module implements a GUI for viewing labeled partialorders. This GUI uses PyQt5!(partial) Requirements:-----------------------Some of the user interfaces are build with PyQt5, thereforeyou need to install Qt5 and PyQt5 if you want to use these GUIs.
Package: pnu-about
InstallationOnce you have installedPythonand its packages managerpip,
depending on if you want only this tool, the full set of PNU tools, or PNU plus a selection of additional third-parties tools, use one of these commands:pip installpnu-aboutpip installPNUpip installpytnixABOUT(1)NAMEabout - Show system informationSYNOPSISabout[-a|--all]
[-E|--env|--environment]
[-H|--hw|--hardware]
[-O|--os|--operating]
[-P|--py|--python]
[-S|--sys|--system]
[-U|--user]
[-d|--debug]
[-h|--help|-?]
[-v|--version]
[--]DESCRIPTIONTheaboututility shows most of the system information available through thePython Standard Library.OPTIONSOptionsUse-a|--allSame as -SUHOEP-E|--env|--environmentShow information about the environment-H|--hw|--hardwareShow information about the hardware-O|--os|--operatingShow information about the Operating System-P|--py|--pythonShow information about Python-S|--sys|--systemShow information about the system-U|--userShow information about the user-d|--debugEnable debug level messages-h|--help|-?Print usage and a short help message and exit-v|--versionPrint version and exit--Options processing terminatorEXIT STATUSThe about utility exits 0 on success, and >0 if an error occurs.SEE ALSOuname(1),sysctl(8)https://docs.python.org/3/library/index.htmlSTANDARDSThe about command is not a standardUNIX/POSIXcommand.It tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYThe about command was created as an example for thePNU project, testing many of thestandard Python functionsfor getting system information.LICENSEThis utility is available under the3-clause BSD license.AUTHORSHubert Tournier
Package: pnu-anagram
Installationpip installpnu-anagramANAGRAM(6)NAMEanagram - rearrange letters to form new wordsSYNOPSISanagram[-d|--dictionary pathname]
[-f|--files]
[-l|--length numbers]
[--debug]
[--help|-?]
[--version]
[--]
[letters]DESCRIPTIONTheanagramutility rearranges the givenlettersto form as many words (anagrams) as possible.Standard input is read if no letters are provided on the command line.The-l|--lengthoption can be used to form words of selected size with the letters provided.The-f|--filesoption can help you select a dictionary.OPTIONSOptionsUse-d--dictionary pathnameUse this dictionary pathname if you don't want the default dictionary-f|--filesPrint possible dictionary files in the DICTPATH-l|--length numbersSpecify anagrams lengths if you want intermediate sizes.numbersis a number or a comma separated list of numbers or dash separated number intervals--debugEnable debug mode--help|-?Print usage and a short help message and exit--versionPrint version and exit--Options processing terminatorENVIRONMENTThe ANAGRAM_DEBUG environment variable can also be set to any value to enable debug mode.The DICTPATH environment variable is the search path for the dictionary files.
It is a colon-separated list of directories in whichanagramlooks for awordsdictionary file.
If not set it will default to /usr/share/dict:/usr/local/share/dict.
Under a Posix system, $HOME/.local/share/dict will also be added to the default,
while %HOMEPATH%/appdata/roaming/python/share/dict:%HOMEPATH%/appdata/local/programs/python/pythonXX/share/dict will be added under a Windows system.The ANAGRAM_DICT environment variable provides a way to avoid specifying an alternate directory on each command line.FILES/usr/share/dict/wordsis the default (English) dictionary on a BSD operating system.Some French dictionaries are also installed as a dependency.EXIT STATUSTheanagramutility exits 0 on success, and >0 if an error occurs.EXAMPLESTo solve a Wordscapes (French) level where the available letters are ABCDEFG, I use a command like:$exportANAGRAM_DICT=/usr/local/share/dict/dict-fr-Wordscapes
$anagram-l3-7abcdefgOther dictionaries are also available. For example:$exportANAGRAM_DICT=/usr/local/share/dict/dict-fr-ABU-mots_communs.ascii
$exportANAGRAM_DICT=/usr/local/share/dict/dict-fr-AU-DELA-common-words.asciiSEE ALSOgrep(1)STANDARDSTheanagramutility is not a standard UNIX command.This utility tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYThis utility was made for thePNU projectin order to help my wife playWordscapeswhen she was stuck on a level.LICENSEIt is available under the3-clause BSD license.AUTHORSHubert TournierCAVEATSAn English dictionary should be packaged for operating systems that are not providing one.Searching only for awordslink to one of the directories in the DICTPATH is too limitated.
Package: pnu-dcmp
InstallationDepending on if you want only this tool, the full set of PNU tools, or PNU plus a selection of additional third-parties tools, use one of these commands:pip installpnu-dcmppip installPNUpip installpytnixDCMP(1)NAMEdcmp - compare two directories, deduplicating if neededSYNOPSISdcmp[--dedup]
[-h|--nosymlinks]
[-s|--silent|--quiet]
[-v|--verbose]
[--debug]
[--help|-?]
[--version]
[--]
directory1 directory2DESCRIPTIONThedcmputility compares two directories contents and writes the results to the standard output.
By default,dcmpis silent if the directories are the same;
if they differ, the differences are reported with a leading:'!' if files contents are different'+' if the file or directory appears in directory1 but not in directory2'-' if the file or directory appears in directory2 but not in directory1'=' if the files contents are identical and you used the-v|--verboseoptionIf you use the-s|--silent|--quietoption, differences won't be reported and the overall result will be returned though the exit status
(thus stopping the comparison at the first difference).By default,dcmpfollows symbolic links to directories, unless you tell it not to do so with the-h|--nosymlinksoption,
or you use the--dedupoption for deduplicating the first directory, removing identical files
(ie. those having the sameSHA-256 message digest) and symbolic links, as well as empty directories sitting there.OPTIONSThe following options are available:OptionsUse--dedupIn dir1, remove empty dirs and files which are identical to those in dir2-h|--nosymlinksDo not follow symbolic links-s|--silent|--quietPrint nothing for differing dirs; return exit status only-v|--verbosePrint identical dirs and files names--debugEnable debug mode--help|-?Print usage and a short help message and exit--versionPrint version and exit--Options processing terminatorENVIRONMENTTheDCMP_DEBUGenvironment variable can also be set to any value to enable debug mode.EXIT STATUSThedcmputility exits with one of the following values:0: The directories are identical1: The directories are different>1: An error occurredSEE ALSOcmp(1),sha256(1)STANDARDSThedcmputility is not a standard UNIX command.This implementation tries to follow thePEP 8style guide forPythoncode.PORTABILITYTo be tested under Windows.HISTORYThis implementation was made for thePNU project.Thedcmputility was made to help spot potential differences between restored backups and current files and directories.LICENSEIt is available under the3-clause BSD license.AUTHORSHubert Tournier
Package: pnu-ident
Installationpip installpnu-identIDENT(1)NAMEident — identify RCS keyword strings in filesSYNOPSISident[-q]
[--debug]
[--help|-?]
[-V|--version]
[--]
[file ...]DESCRIPTIONTheidentutility searches for all instances of the pattern ‘$keyword: text $’ infile(s).keywordmust only be composed of alphanumeric values in the C locale, followed by ‘:’ and a space.If no arguments are passed, thenidentparses the standard input.The pattern normally requires a colon and a space immediately after the keyword and a space immediately before the terminating $,
but forSubversion1.2 (and later) compatibility,identwill also recognize the pattern ‘$keyword:: text $’ (i.e., two colons and a space)
and the pattern ‘$keyword:: text #$’ (likewise, with a hash before the terminating $).
These are the fixed-width keyword syntax.To summarize, the three recognized patterns are:$keyword: text $$keyword:: text $$keyword:: text #$OPTIONSThese options are supported:OptionsUse-qQuiet mode: suppress warnings if no pattern found--debugEnable debug mode--help|-?Print usage and a short help message and exit-V|--versionPrint version and exit--Options processing terminatorENVIRONMENTTheIDENT_DEBUGenvironment variable can be set to any value to enable debug mode.TheFLAVOURorIDENT_FLAVOURenvironment variables can be set to one of the following values, to implement only the corresponding options and behaviours.bsd | bsd:freebsd : FreeBSDident(1)gnu | gnu:linux | linux : GNU/Linuxident(1)EXIT STATUSTheidentutility exits 0 on success, and >0 if an error occurs.SEE ALSOwhat(1),strings(1)STANDARDSTheidentutility is not a standard UNIX command, though a usual one on Unix-like systems.This re-implementation tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYTheidentcommand appeared with theRevision Control System (RCS)in 1982,
and was written byWalter F. TichyatPurdue University.RCSis now maintained by theGNU Project.This re-implementation was made for thePNU project.LICENSEIt is available under the3-clause BSD license.AUTHORSHubert TournierThis manual page is based on the one written forFreeBSDby Baptiste Daroussinbapt@FreeBSD.org.CAVEATSIn the original RCS ident command, option-Vprinted RCS version number.
Our re-implementation prints its own version.
Package: pnu-libmanconf
Installationpip installpnu-libmanconfLIBMANCONF(3)NAMElibmanconf — library for handling man(1) and manpath(1) configuration filesSYNOPSISimportlibmanconfString, String, Listlibmanconf.read_man_conf_files(Integerdebug_level= 0, Stringmanpath_so_far= '')DESCRIPTIONTheread_man_conf_files()function reads the configuration files located at "/etc/man.conf" and "/usr/local/etc/man.d/*.conf"
to configure the manual search path, locales and utility set used by man(1) and related utilities.The function takes an optional argumentdebug_levelwith an integer value from 0 (default) to 3,
to print increasingly detailed information on standard error output.It can also take another optional argumentmanpath_so_farwith a colon separated string of already added directories to the manual path,
in order to check for duplicate entries.It returns a triplet consisting of:a string containing colon separated existing MANPATH directoriesa string containing colon separated locales (for example, "fr_FR.UTF-8:ja_JP.eucJP")a list containing processors (for example, ["TBL_JA=/usr/local/bin/gtbl", "NROFF_JA=/usr/local/bin/groff -man -dlang=ja_JP.eucJP"])SEE ALSOapropos(1),man(1),man.conf(5),manpath(1),whatis(1)STANDARDSThelibmanconflibrary is not a standard UNIX one.It tries to follow thePEP 8style guide forPythoncode.PORTABILITYTo be tested under Windows.HISTORYThis library was made for thePNU projectto factor code for the man(1) and manpath(1) commands.LICENSEIt is available under the3-clause BSD license.AUTHORSHubert TournierThe man.conf(5) manual page is largely based on the one written forFreeBSDbyGordon Tetlow.
Package: pnu-libpnu
InstallationThis library will be installed as a dependency by other PNU utilities.LIBPNU(3)NAMElibpnu — Common utility functions for the PNU projectSYNOPSISimportlibpnulibpnu.initialize_debugging(Stringprogram_name)libpnu.handle_interrupt_signals(Functionhandler_function)Stringlibpnu.get_home_directory()Stringlibpnu.get_caching_directory(Stringname)Listlibpnu.locate_directory(Stringdirectory)Listlibpnu.load_strings_from_file(Stringfilename)DESCRIPTIONTheinitialize_debugging()function sets up the Python logging module with a syslog style kind of console log usingprogram_nameas the program name.
By default, the logging level is set at WARNING or more, but can be lowered by callinglogging.disable(),
for example with thelogging.NOTSETparameter to get DEBUG or more logging level.Thehandle_interrupt_signals()function calls the specifiedhandler_functionto process the SIGINT and SIGPIPE signals,
usually to avoid an ugly trace dump to the console in case of interrupt (Control-C pressed or broken pipe).Theget_home_directory()function returns the location of the user's home directory in a string
depending on the operating system used (Unix, Windows).Theget_caching_directory()function returns the location of a user writable directory for caching files in a string
depending on the operating system used (Unix, Windows).
The providednamewill be the last directory part of this location.Thelocate_directory()function searches the specifieddirectoryin a variety of possible other directories,
depending on the operating system used (Unix, Windows) and the fact that a package can be user or system installed.
It is intended to be used when the directory can't be directly found, and returns a list of paths where the directory searched has been found.For example, if the argument is "/usr/local/etc/man.d", we'll search for "usr/local/etc/man.d", "local/etc/man.d", "etc/man.d" (more likely) and "man.d"
in a list of user's local Python package directories
("$HOME/.local" on Unix, "$APPDATA/python", "$HOMEPATH/appdata/roaming/python", "$USERPROFILE/appdata/roaming/python" on Windows)
and system wide Python package base directories (given bysys.base_prefix: "/usr/local" on Unix, "C:/Program Files/Python3x" on Windows).Theload_strings_from_file()function returns a list of strings from the givenfilename,
filtering out blank or commented lines, as well as end-of-line comments (with '#' being the comment character).ENVIRONMENTThe following environment variables can be used to identify the user identity and home directory,
or find a caching directory.On Unix:HOME,LNAME,LOGNAME,TMP,TMPDIR,USERandUSERNAME.On Windows:APPDATA,HOME,HOMEPATH,LOCALAPPDATA,TMPandUSERPROFILE.STANDARDSThelibpnulibrary is not a standard UNIX one.It tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYThis library was made for thePNU project.LICENSEIt is available under the3-clause BSD license.AUTHORSHubert Tournier
Package: pnu-manpath
InstallationDepending on if you want only this tool, the full set of PNU tools, or PNU plus a selection of additional third-parties tools, use one of these commands:pip installpnu-manpathpip installPNUpip installpytnixMANPATH(1), MANPATH(3)This repository includes a command-line utility:manpath(1)- display search path for manual pagesAnd a Python library:manpath(3)- return the search path for manual pages
Package: pnumpy
PNumPyParallel NumPy seamlessly speeds up NumPy for large arrays (64K+ elements) withno change required to your existing NumPy code.PNumPy supports Linux, Windows, and MacOS for NumPy >= 1.18 for python 3.6, 3.7, 3.8, and 3.9.This first release speeds up NumPy binary and unary ufuncs such asadd, multiply, isnan, abs, sin, log, sum, min and many more.
Sped up functions also include:sort, argsort, lexsort, arange, boolean indexing, and fancy indexing.
In the near future we will speed up:astype, where, putmask, and searchsorted.Other packages that use numpy, such asscikit-learnorpandas, will also be sped up for large arrays.Installationpip install pnumpyYou can also install the latest development versions withpip install https://github.com/Quansight/pnumpy/archive/main.zipDocumentationSee thefull documentationTo use the project:importpnumpyaspnParallel NumPy speeds up NumPy silently under the hood.  To see some benchmarks yourself runpn.benchmark()To get a partial list of functions sped up runpn.atop_info()To disable or enable pnumpy runpn.disable()
pn.enable()Additional FunctionalityPNumPy provides additional routines such as converting a NumPy record array to a column major array in parallel (pn.recarray_to_colmajor) which is useful for DataFrames.  Other routines includepn.lexsort32, which performs an indirect sort usingnp.int32instead ofnp.int64consuming half the memory and running faster.ThreadingPNumPy uses a combination of threads and 256 bit vector intrinsics to speed up calculations.  By default most operations will only use 3 additional worker threads in combination with the main python thread for a total 4.  Large arrays are divided up into 16K chunks and threads are assigned to maintain cache coherency.  More threads are dynamically deployed for more intensive CPU problems likenp.sin.  Users can customize threading.  The example below shows how 4 threads can work together to quadruple the effective L2 cache size.To cap the number of additional worker threads to 3 runpn.thread_setworkers(3)To disable or re-enable threading runpn.thread_disable()
pn.thread_enable()To disable or re-enable just the atop engine runpn.atop_disable()
pn.atop_enable()FAQQ: If I type np.sort(a) where a is an array, will it be sped up?A: If len(a) > 65536 and pnumpy has been imported, it will automatically be sped upQ: How is sort sped up?A: PNumPy uses additional threads to divide up the sorting job.  For example it might perform an 8 way quicksort followed by a 4 way mergesortQ: How is scikit or pandas sped up?A: PNumPy's vector loops and threads will speed up any package that uses large NumPy arraysDevelopmentTo run all the tests run:python -m pip install pytest
python -m pytest tests
Package: pnu-mtoc
Installationpip installpnu-mtocMTOC(1)NAMEmtoc - show Manual table of contentsSYNOPSISmtoc[-f|--file|--whatis FILE]
[-n|--no MACROS]
[-t|--type]
[--Dq]
[--Pa|--PaSq]
[--PaDq]
[--Xr]
[--debug]
[--help|-?]
[--version]
[--]
[SECTION ...]DESCRIPTIONThemtocutility shows theManualtable of contents.Without arguments, it will list the Manual sections listed inman man.With arguments, it will list the contents of the requested Manual sections inwhatis(1)format.The display can be a little bit improved over standard whatis format by using the--Dq,--Pa,--PaSq,--PaDqand--Xroptions,
in order to interpret the correspondingmdoc(7)macros.It can also be used as a database-less substitute of whatis, by using the-f,--fileor--whatisoptions on a Manual page's pathname.It is possible to discardman(7)ormdoc(7)pages
by using the-nor--nooptions with amanormdocparameter.The-tor--typeoptions will add the type of man page after a pipe character: man, mdoc, other, so(X):{man, mdoc, other},
with X indicating the number of redirections (more than 3 will cause an error in order to prevent loops).The-fand-noptions can be used multiple times.OPTIONSOptionsUse-f|--file|--whatis FILEProcess a specific file, like whatis(1)-n|--no MACROSDiscard man or mdoc macros-t|--typePrint type of man page (ie. man, mdoc, other, so)--DqInterpret .Dq (double quotes) macros--Pa|--PaSqInterpret .Pa (path) macros as single quoted strings--PaDqInterpret .Pa (path) macros as double quoted strings--XrInterpret .Xr (cross reference) macros--debugEnable debug mode--help|-?Print usage and a short help message and exit--versionPrint version and exit--Options processing terminatorENVIRONMENTTheMTOC_DEBUGenvironment variable can also be set to any value to enable debug mode.Themtocutility uses theMANPATHenvironment variable to find man pages.
It provides default values both for Unix-like and Windows operating systems.Locale man pages can be processed if the path where they are stored is added toMANPATH.Under Windows, the command can use theAPPDATA,HOMEPATHandUSERPROFILEenvironment variables to find man pages.EXIT STATUSThemtocutility exits 0 on success, and >0 if an error occurs.SEE ALSOman(1),whatis(1),apropos(1),man(7),mandoc_char(7),mdoc(7),roff(7)STANDARDSThemtocutility is not a standard UNIX command.It tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYThis utility was made forThe PNU projectin order to explore providing a Manual under non-Unix operating systems.
This turned out to be way more complex than anticipated, forcing me to delve much more deeply inroff(7)macros than originally intended!Check this excellentHistory of UNIX Manpages.LICENSEThis utility is available under the3-clause BSD license.AUTHORSHubert TournierCAVEATSThe order of names in a man page is sorted alphabetically, which sometimes differ from whatis(1) output.
I couldn't find the logic behind whatis behaviour...It isn't currently possible to process:architecture-dependent man pages (for example, in /usr/share/man/man[48]/{aarch64, amd64, arm, i386, powerpc})already uncompressed man pages (for example, in /usr/share/man/cat[1-9])
Package: pnu-prep
Installationpip installpnu-prepPREP(1)NAMEprep - prepare text for statistical processingSYNOPSISprep[-a|--ascii]
[-d|--number]
[-h|--hyphen]
[-i|--ignore FILE]
[-o|--only FILE]
[-p|--ponctuate]
[--debug]
[--help|-?]
[--version]
[--]
[file]
[...]DESCRIPTIONprepreads eachfilein sequence and writes it on the standard output,
one lowercase `word' per line.
A word is a string of alphabetic characters and embedded apostrophes, delimited by space or punctuation.
Hyphenated words are broken apart;
hyphens at the end of lines are removed and the hyphenated parts are joined.
Strings of digits are discarded.When no files are given as arguments, standard input is read (until a Control-D (Unix) or Control-Z (Windows) character is sent).The following option letters may appear in any order:OPTIONSOptionsUse-a|--asciiTry to convert Unicode letters to ASCII.-d|--numberPrint the word number (in the input stream) with each word.-h|--hyphenDon't break words on hyphens.-i|--ignoreTake the nextfileas an `ignore' file. These words will not appear in the output. (They will be counted, for purposes of the-dnumbering.)-o|--onlyTake the nextfileas an `only' file. Only these words will appear in the output. (All other words will also be counted for the-dnumbering.)-p|--ponctuateInclude punctuation marks (single nonalphanumeric characters from the "!(),.:;?" set) as separate output lines. The punctuation marks are not counted for the-dnumbering.--debugEnable debug mode--help|-?Print usage and a short help message and exit--versionPrint version and exit--Options processing terminatorFILESIgnore and only files contain words, one per line.The file/usr/local/etc/eignwas originally provided in/usr/libas an example or default ignore file.EXIT STATUSThepreputility exits 0 on success, and >0 if an error occurs.SEE ALSOderoff(1)STANDARDSThepreputility is a deprecatedUNIX 7th editioncommand (it also appeared in Unix V7M, Ultrix 3.1, 2.9BSD and 2.11BSD).Our implementation tries to follow thePEP 8style guide forPythoncode.PORTABILITYTested OK under Windows.HISTORYThis utility was made for thePNU project, out of historical curiosity and for fun, though it doesn't seem very useful...Some features were added compared to the original command:Unicodeletters are now supported by default (the original command predated Unicode by 12 years).It is now possible to use the-iand-ooptions at the same time.The-hoption was added to avoid breaking word on hyphens, which makes sense in French.The-aoption was added to try to convert Unicode accented letters to their ASCII equivalent.Several bugs from the originalprepcommand were corrected:A display bug on hyphenated words inside a line when used with the combined-dand-poptions.A bug with lines starting by an apostrophe.A bug with the character following an apostrophe.LICENSEThis utility is available under the3-clause BSD license.AUTHORSHubert Tournier