Saravanan666/pypi-org huggingface dataset:
Package: pyparsers
pyparsersTHIS LIBRARY IS DEPRECATED, USE THEgrampyLIBRARY INSTEAD.Library implements CYK algorithm.
It uses grammpy library for grammar specification.Only exposed method iscyk.
It raiseNotParsedExceptionif input sequence was syntactically invalid and CYK was unable to parse it.frompyparsersimportcykg=Grammar()# ...parsed=cyk(g,[*input])Version: 0.0.3Author: Patrik ValkovičLicence: GNU General Public License v3.0
Package: py-parser-sber
Py_parse_sberOverviewIt's simple parser of Sberbank, using selenium (firefox geckodriver), where you can see your account currency
and transactions for some period.Getting StartedFor the program to work, you must disable two-factor authorization on the sberbank-online website,
otherwise the program will not workRequirementsPython 3.6+InstallThe quick way:pipinstallpy-parse-sberDesired way:python3-mvenvvenvsourcevenv/bin/activate
pipinstallpy-parse-sberPreparing:Install geckodriverDownloadgeckodriverand unzip it
Make sure it’s in your PATH, e. g., place it in /usr/bin or /usr/local/bin.Failure to observe this step will give you an error selenium.common.exceptions.WebDriverException:
Message: ‘geckodriver’ executable needs to be in PATH.Run receiving web serverPy_parse_sber will send parsed info to web server.
See contracts detail incontracts.yml,
which your web server will have to implement for accepting data correct.
(for standard was taken projectBudgetTrackerand hisapi)Requirement environment variablesLOGIN# your sberbank account loginPASSWORD# your sberbank account passwordSERVER_URL# main URL where the data will be sent. Example: localhost (or service name in docker-compose.yml)SEND_ACCOUNT_URL# url 'path' part, where account information will be sent. Example: /send_accountSEND_PAYMENT_URL# url 'path' part, where transaction information will be sent. Example: /send_paymentOptional environment variablesSERVER_SCHEME# Scheme of SERVER_URL, http/https. Default httpSERVER_PORT# Port of SERVER_URL. Default 80DAYS# period in days to indicate parser restart. Can be used with HOURS.HOURS# period in hours to indicate parser restart. Can be used with DAYS.If any of their not set - used 1 day by default.Linux exampleexportLOGIN=loginexportPASSWORD=passwordexportSERVER_URL=localhostexportSERVER_PORT=8080exportSEND_ACCOUNT_URL=/send_accountexportSEND_PAYMENT_URL=/send_payment

py_parser_sber_run_once# for one-time launch# orpy_parser_sber_run_infinite# for run in loop with a given periodDocker-compose example$cat.envLOGIN=<login>
PASSWORD=<password>
SERVER_URL=example.com
SERVER_SCHEME=https
SERVER_PORT=80
SEND_ACCOUNT_URL=/send_account
SEND_PAYMENT_URL=/send_payment
DAYS=1$catdocker-compose.ymlversion:'3.4'services:py_parse_sber:image:niccolum/py_parse_sber/py_parse_sber:latestenv_file:-.envvolumes:-./:/opt/appAlso see dev exampledocker-compose.ymlAuthorsNikolai Vidov-maintainer-NiccolumLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: pyparsing
PyParsing – A Python Parsing ModuleIntroductionThe pyparsing module is an alternative approach to creating and
executing simple grammars, vs. the traditional lex/yacc approach, or the
use of regular expressions. The pyparsing module provides a library of
classes that client code uses to construct the grammar directly in
Python code.[Since first writing this description of pyparsing in late 2003, this
technique for developing parsers has become more widespread, under the
name Parsing Expression Grammars - PEGs. See more information on PEGshere.]Here is a program to parse"Hello, World!"(or any greeting of the form"salutation, addressee!"):frompyparsingimportWord,alphasgreet=Word(alphas)+","+Word(alphas)+"!"hello="Hello, World!"print(hello,"->",greet.parseString(hello))The program outputs the following:Hello, World! -> ['Hello', ',', 'World', '!']The Python representation of the grammar is quite readable, owing to the
self-explanatory class names, and the use of ‘+’, ‘|’ and ‘^’ operator
definitions.The parsed results returned fromparseString()is a collection of typeParseResults, which can be accessed as a
nested list, a dictionary, or an object with named attributes.The pyparsing module handles some of the problems that are typically
vexing when writing text parsers:extra or missing whitespace (the above program will also handle"Hello,World!","Hello , World !", etc.)quoted stringsembedded commentsThe examples directory includes a simple SQL parser, simple CORBA IDL
parser, a config file parser, a chemical formula parser, and a four-
function algebraic notation parser, among many others.DocumentationThere are many examples in the online docstrings of the classes
and methods in pyparsing. You can find them compiled intoonline docs. Additional
documentation resources and project info are listed in the onlineGitHub wiki. An
entire directory of examples can be foundhere.LicenseMIT License. See header of thepyparsing __init__.pyfile.HistorySeeCHANGESfile.
Package: pyparsing-highlighting
Syntax highlighting withpyparsing, supporting both HTML output andprompt_toolkit–style terminal output. ThePPHighlighterclass can also be used as a lexer for syntax highlighting as you type in prompt_toolkit. It is compatible with existingPygmentsstyles.The main benefit of pyparsing-highlighting over Pygments is that pyparsing parse expressions are both more powerful and easier to understand than Pygments lexers. pyparsing implementsparsing expression grammarsusingparser combinators, which means that higher level parse expressions are built up in Python code out of lower level parse expressions in a straightforward to construct, readable, modular, well-structured, and easily maintainable way.Seethe official pyparsing documentationormy unofficial (epydoc) documentation; read the pyparsing-highlighting documentation onreadthedocs.RequirementsPython3.5+Note thatPyPy, a JIT compiler implementation of Python, is often able to achieve around 5x the performance of CPython, the reference Python implementation.pyparsingprompt_toolkit2.0+Pygments(optional; needed to use Pygments styles)Installationpip3install-Upyparsing-highlightingOr, after cloning the repository on GitHub:python3setup.pyinstall(or, with PyPy):pypy3setup.pyinstallExamplesThe following code demonstrates the use ofPPHighlighter:frompp_highlightingimportPPHighlighterfromprompt_toolkit.stylesimportStyleimportpyparsingasppfrompyparsingimportpyparsing_commonasppcdefparser_factory(styler):a=styler('class:int',ppc.integer)returnpp.delimitedList(a)pph=PPHighlighter(parser_factory)style=Style([('int','#528f50')])pph.print('1, 2, 3',style=style)This prints out the following to the terminal:The following code generates HTML:pph.highlight_html('1, 2, 3')The output is:<preclass="highlight"><spanclass="int">1</span>,<spanclass="int">2</span>,<spanclass="int">3</span></pre>There is also a lower-level API—pph.highlight('1, 2, 3')returns the following:FormattedText([('class:int', '1'), ('', ', '), ('class:int', '2'), ('', ', '), ('class:int', '3')])AFormattedTextinstance can be passed toprompt_toolkit.print_formatted_text(), along with aStylemapping the class names to colors, for display on the terminal. See the prompt_toolkitformatted text documentationandformatted text API documentation.PPHighlightercan also be passed to aprompt_toolkit.PromptSessionas thelexerargument, which will perform syntax highlighting as you type. For examples of this, seeexamples/calc.py,examples/json_pph.py,examples/repr.py, andexamples/sexp.py. The examples can be run by (from the project root directory):python3-mexamples.calcpython3-mexamples.json_pphpython3-mexamples.reprpython3-mexamples.sexp
Package: pypartial
Pypartial is a simple Python library that allows the use of partial function application notation in native Python. It is extremely useful when trying to write concise and clear code, and extends the ease offered by Python’s functional programming features.Example:import pypartial #use <_ notation to partial apply functionsbinary = int<_(base=2) #you can pass keyword arguemnts
print(binary(‘101010100101’))import random
dice=random.randint<_(1, 6) #you can also pass non-keywords
print(dice())
print(dice())up_to_ten = range<_(_, 11) #you can leave args blank with ‘_’
print(list(up_to_ten(5)))import operator
double = operator.mul<_(2)
print(double(7))class Foo(object):def bar(self, a, b):print([a,b])def egg(self, a, b, c=9):print([a,b,c])foo=Foo()
bar7 = foo.bar<_(_, b=7) #works with methods too
bar7(2)egg1 = foo.egg<_(_, 5)
egg2 = egg1<_(c=9) #you can partially apply multiple times
egg2(6)print(egg2) #nice string representation
Package: py-particle-analysis
pyPartAnalysisPackage for processing ImpactT and ImpactZ particle distributions as well as performing analysis on particle distributions in pandas dataframes.CompatibilityCompatible with Python 3.8.5.Works with the default NERSC python module as of June 5th, 2022.Adding Directory to PYTHONPATH on NERSCTo make thepyPartAnalysismodule available on the Python and Jupyter path, add the following lines to the.bashrcfile in the home directory:exportPYTHONPATH='/global/homes/firstletterofusername/username/pyPartAnalysis'exportJUPYTER_PATH='/global/homes/firstletterofusername/username/pyPartAnalysis'Note that we assume that the directory is in the home directory of 'username', where username is replaced with your name; though the path can be to wherever the module is eventually stored.Example Use Cases for ImpactT/ZExample Jupyter notebooks using ImpactT and ImpactZ output files can by foundhere. This package can be useful for creating interesting visualizations of from the particle distributions, such as the ones below:Series of z slices along the normalized x phase space.Transversely binned bunching factor vs wavelength.
Package: py-partiql-parser
py-partiql-parserA tokenizer/parser/executor for the PartiQL-language, in Python.Much beta, such wow. Feel free to raise any issues you encounter.S3 Usageimportjsonfrompy_partiql_parserimportS3SelectParseroriginal_json=json.dumps({"a1":"b1","a2":"b2"})parser=S3SelectParser(source_data={"s3object":original_json})result=parser.parse("SELECT * FROM s3object")DynamoDB Usageimportjsonfrompy_partiql_parserimportDynamoDBStatementParserparser=DynamoDBStatementParser(source_data={"table1":{"a1":{"S":"b1"},"a2":{"S":"b2"}}})result=parser.parse("SELECT * from table1 WHERE a1 = ?",parameters=[{"S":"b1"}])MeatThe important logic of this library can be found here:https://github.com/bblommers/py-partiql-parser/blob/main/py_partiql_parser/_internal/parser.pyIt is implemented as a naive, dependency-free, TDD-first tokenizer.OutstandingSupport for functions such ascount(*)Support for CSV conversion. A start has been made in_internal/csv_converter.py.. and I'm sure many other things.NotesThe first iteration of this library was based on the spec, found here:https://partiql.org/assets/PartiQL-Specification.pdfAWS doesn't follow its own spec though, most notably:a file containing a list (with multiple JSON documents) cannot be queried normally (select *returns everything, but you cannotselect keyfor each document in the list)select valuesis not supportedSecurity contact informationTo report a security vulnerability, please use theTidelift security contact.
Tidelift will coordinate the fix and disclosure.
Package: pypartten
version: 0.0.2status: devauthor: hszemail:hsz1273327@gmail.comDescdesign patterns tools for python.keywords:tools,design patternsFeaturepool [0.0.1]proxy [0.0.1]singleton [0.0.1]mediator [0.0.1]pubsub for asyncio [0.0.1]actor for asyncio [0.0.1]Newdocstring for singletondocstring for proxydocstring for aio.actordocstring for aio.pubsubInstallpython-mpip install pyparttenDocumentationDocumentation on Readthedocs.TODOpool for asynciopubsub for threadingactor for threadingpubsub for processingactor for processing
Package: pypartypix
pypartypix a picture upload server for html slideshows======================================================Allows guests to upload pictures through a simple webinterface.The picture is inserted as the next slide in the slideshow.----Html slideshow that allows new pictures to be inserted from guests through a webclient.pypartypix is a simple python (3) server which allows clients to upload images through a simple web interface.The slideshow.html file can be startet local and will display all images in the index.txt file.Index.txt gets generated from the server.New images will be next in the slideshow. There are quite a few settings for the slideshow, move the mouse to the upper part of the slideshow to adjust them.As a simple security measure a uuid can be used to disallow unwanted users.This service runs unencrypted because a self signed certificate whould be a pain for the users.As a security measure this server should run in a chroot or otherwide unprivileged environment.This was meant as a poc to demonstrate that client for such an app is not necessary.Usage-----% python3 -m pypartypix -hor% ./pyparty -husage: -m [-h] [-p PORT] [-g] [-u UUID] [-d DIR] [-i FILE] [-q [FILE]][-s SCALE] [-H HOST] [-r] [-w] [-o]Image Upload Serveroptional arguments:-h, --help            show this help message and exit-p PORT, --port PORT  Port the server should listen to-g, --genuuid         Generate UUID used for authorization-u UUID, --uuid UUID  use UUID-d DIR, --directory DIRDIR used for image storage-i FILE, --index FILEFile used for index storage. The slideshow needs toread this file-q [FILE], --qrcode [FILE]File used for qrcode storage-s SCALE, --qrscale SCALEScale used for qrcode-H HOST, --host HOST  Hostname used for URL/QRCODE-r, --run             Don't start the server-w, --web             Autostart Webbrowser-o, --open-qr         Open code in WebbrowserLICENSE-------MITCREDITS-------Thanks to the developer of Party Pix! for the idea, hist client is Android only and the server is Java and seems to be closed source.Python:https://python.orgVegas:http://vegas.jaysalvat.com/Jquery:https://jquery.com/
Package: py-pass
Py_PassThis is a random password generator in python that does NOT store ANY of your data.Where can I use it ?:Windows (.exe compiled version available onGitHub)UbuntumacOSWith this script, you can:Select the password lengthEnable/disable numbersEnable/disable special charsChange the special char listHOW TO USE:from py_pass import randPassprint(randPass())randPass can take four arguments:stringLength -> Password length, in integer.isNumber -> Is the password should include numbers, in boolean.isSpecial -> Is the password should include special characters, in boolean.specialChars -> The special characters ASCII map, in string.HOW TO HELP ME:Like and fork my githubTell your friend about it ! :)INFOGitHub link:https://github.com/ZKAW/PyPass! DISCLAIMER !This script is not storing ANY of your data, so you can use it in a totally transparent and safe way. Enjoy ! :)
Package: pypassage
Python module for working with bible referencesIt can:render reference strings sensibly and non-ambiguously; e.g. returning “Ephesians 1” when Ephesians 1:1-1:23 was specified, because there are only 23 verses in that chapter;look up actual passage text using external API services;fill in missing information where possible; e.g. inferring that for the inputs ofbook=”EPH”andstart_chapter=1, the whole Ephesians 1 chapter (verses 1 to 23) was intended;verify that a passage is valid; e.g. telling you that Ephesians 99 and Genesis 3:5-1:2 can’t exist;add verses or chapters to the start or end of a passage, or [truncate](#passage-truncation) a passage to a given number of verses; such as for satisfying copyright restrictions;andcount the number of verses in a passage.Basic Usage:from pypassage import Passage
p = Passage(book='Genesis', start_chapter=1, start_verse=1, end_chapter=2, end_verse=3)DocumentationFull documentation may be found on theGitHub page.
Package: py-passbolt
👩  This project is part of the passbolt "lab"!
⚗️   It is used to illustrate an article or as a conversation starter.
🧪  Use at your own risks!Copyright & License(c) 2021 Passbolt SAPassbolt is registered trademark of Passbolt S.A.MIT No Attribution -https://opensource.org/licenses/MIT-0py-passboltAboutPython library for Passbolt API based onhttpxandPGPy.You can also usepython-gnupgif needed but it is not the default.How to installpython -m pip install py-passboltHow to useconfig.json configuration fileBasically, create aconfig.jsonfile containing needed configuration. You will find samples:For PGPy (default):config.json.PGPy.sampleFor python-gnupg:config.json.gnupg.sampleThen have a look athttps://gitlab.com/AnatomicJC/py-passbolt/-/blob/main/example.pypython script.Environment variablesMandatory:PASSBOLT_BASE_URL: Your passbolt URLFor PGPy:PASSBOLT_PRIVATE_KEY: Your passbolt private key in one-line format (See below about how to format)PASSBOLT_PASSPHRASE: Your passbolt passphraseFor python-gnupg:PASSBOLT_GPG_BINARY (Optional): path to your gpg binary, default to "gpg"PASSBOLT_GPG_LIBRARY: Set this to gnupg, otherwise it will be the default "PGPy"PASSBOLT_FINGERPRINT: The OpenPGP key fingerprint to useHow to set OpenPGP key in config.json or environment variablesLinux:sed -z 's/\n/\\n/g' private.ascMacOSInstallgnu-sedwith brew:$ brew install gnu-sedUse gsed instead of sed:gsed -z 's/\n/\\n/g' private.asc
Package: pypassfusion
PyPassFusion DocumentationIntroductionI developed this password generating program using Python to provide users with a simple yet efficient way to:Generate a brand new password for any platform of their choosing.Add already existing passwords.Save all generated or customized passwords, along with the title of the platform they're being used on, as a text file at the user's specified destination.You can then access your passwords by searching for this (.txt) file on your Windows/Linux or macOs system.InstallationYou can install this program by opening your Terminal and typing in â€œpip install pypassfusionorpip3 install pypassfusionâ€œ.After installation is completed, you can start using it by simply typing in â€œpyfusionâ€‌ and hitting enter.UtilizationYou will then see this menu:If you want to generate a new password, you will type in â€œ1â€œ and hit enter. the program will then ask you these 3 questions:After answering all of them to your preference, your password will be generated! then youâ€™ll be provided with the menu again:If you want to see the generated password, you enter â€œ3â€œ:If you want to save the generated password, you enter â€œ4â€œ:Here you choose a name for your (.txt) file and the path you have in mind for this file.Then hit save:The last step is to choose a title for this specific password you just generated, for example: Gmail.After that your new password will be successfully saved to its destination!You will then find this (.txt) file at its designated spot on your system:Any other password you add yourself or generate using the program can be either added to this existing file or a new one.here is how you can add your own password:First you need to choose option â€œ2â€œHere youâ€™ll see a sub-menu:You can type in your customized password by choosing option â€œ1â€œ.Your password has now been added, by choosing â€œ2â€œ you will see the password you just added and by choosing â€œ3â€œ you proceed to save your own password as a text file like so:This is what youâ€™ll then see in your previously made (.txt) file:As you follow these steps and continue on using the program this list of passwords will expand.And thatâ€™s it! hope you enjoy using this CLI.Also let me know if you have any suggestions or if youâ€™re interested in making a contribution.P.S   Iâ€™ll be adding the GUI of this program in the near future.
Package: pypassive
pypassiveDetermination of passive earth pressure on retaining walls using log spiral method. This is a work in progress. The values may be a few percent different from those given in the references.ReferenceMokwa, R. L. (1999). Investigation of Resistance of Pile Caps to Lateral Loading.Duncan, M. J., and Mokwa, R. L. (2001). Passive Earth Pressures: Theories and Tests. journal of Geotechnical and Geoenvironmental Engineering, Volume 127, Issue 3.Alqarawi, A. S., Leo, C. J., Liyanapathirana, D. S., Sigdel, L., Lu, M., and Hu, P. (2021). A spreadsheet-based technique to calculate the passive soil pressure based on log-spiral method. Computers and Geotechnics 130Things to do[x] Passive pressure using Mokwa and Duncan Method.[x] Passive pressure using Alqarawi et al. (2021) method.[x] Duncan and Mokwa hyperbolic method to determine passive force displacement curve.[ ] Documentation. The documentation is not complete[ ] Tests. There are some tests in the test folder[ ] Examples - There are few in the examples folder but is not yet complete.
Package: pypassmanager
pypassmanager(python password manager)pypassmanageris a command line password manager written in python programming language and it uses sqlite3 database to store the passwords.pypassmanagerrequires the user to provide a 4 digit number which acts as a master password and the user can then provide user id and passwords for various websites which can be grouped as personal , work etc.Getting StartedInstallation# Using PyPI
pip3 install pypassmanagerRunning the programpypassmanager
Package: pypassport
pyPassport is an API written in Python that allows to interact with electronic
passports compliant with ICAO Doc9303. The API provides an interface with the
following functionalities:Perform the Basic Access Control and Secure Messaging;
Perform the passive and active authentications;
Read the content of the ePassport, including the pictures in JPEG format.
Create “valid” auto-signed ePassport content. (require java 1.6)
Package: pypassrs
pypassrsA Python wrapper aroundpassrsUsagefrompypassrsimportpypassrs# Initialize a new password storagepypassrs.init(".passrs_storage")# Generate a new passwordpassword=pypassrs.generate()# Insert the new password into the storagepypassrs.insert("path/to/password",password)# Alternatively, store the password that is generatedpypassrs.generate("path/to/password2")# Get a passwordpypassrs.show("path/to/password")# Show password directoryprint(pypassrs.tree())
Package: pypasstools
Passtoolspypasstools allows tools that will provide you with functionality to do all kinds of stuff with passwords.About this versionVersion = 0.0.11This version contains documentation updatesInstalling and Updating pypasstoolsFollow the installation process accroding to your OS.To install or upgrade pypasstools on windowsTo install pypasstools:OpencmdorpowershellRun this commandpip install pypasstoolsYou have successfully installed it!To upgrade pypasstools:OpencmdorpowershellRun this commandpip install pypasstools --upgradeYou have successfully installed it!To install or upgrade pypasstools on macTo install pypasstools:Open terminalRun this commandpip3 install pypasstoolsYou have successfully installed it!To upgrade pypasstools:Open terminalRun this commandpip3 install pypasstools --upgradeYou have successfully upgraded it!To install or upgrade pypasstools on linuxTo install pypasstools:Open terminalRun this commandsudo pip3 install pypasstoolsYou have successfully installed it!To upgrade pypasstools:Open terminalRun this commandsudo pip3 install pypasstools --upgradeYou have successfully upgraded it!DocumentationImporting pypasstoolsTo import pypasstools module, just add this line to your python code. As you can see, you import it with a different nameimportpasstoolspasshash()Thepasshash()hashes a string in a secure and fast way.ParametersParameterDefault valueDescriptionData TypepromptNO DEFULT VALUEThe string to hashstringhash_typesha256The hash type of your hash.  Hash Types available: 1. sha256 2. sha1 3. sha224 4. sha384 5. sha512 6. md5stringhash_strength1How strong you want your hash to be. This is done my hashing the hash in a loop. The more the strength, the more time it will take.integerCode exampleimportpasstoolspassword=passtools.passhash("Super Secret password",hash_type="md5",hash_strength=3)print(password)Output:ba1ad8dbb5655bd1b193de019f3f87c2More documentation will be added soon ..