Saravanan666/pypi-org huggingface dataset:
Package: parse-landsat-xml
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.For more information, please refer to <http://unlicense.org/>Description: ## Parse Bulk Landsat MetadataUSGS conveniently hosts a bulk metadata service located [here](https://www.usgs.gov/land-resources/nli/landsat/bulk-metadata-service).Less conveniently, you get a large metadata file with no way to parse it.This project implements a CLI to parse the bulk metadata files and output .xml
based on the user’s search parameters. It also creates a .txt file with each Landsat sceneID
for use with [EarthExplorer](https://earthexplorer.usgs.gov/). Users can search by date-range, cloud cover percentage, and
whether a lat/lon point is within the scene.A USGS EROS [account](https://ers.cr.usgs.gov/login/) is required if you want to download.## UsageFlags:`-ffilename-dYYYYMMDD_YYYYMMDD inclusive date range-cmax acceptable cloud cover in scene-blat,lon boundary. the search only supports point based boundary. `Example Usage:`commandline cd /filepath/to/bulkmetadata parse_landsat_xml.py-fLANDSAT_8_C1.xml-d20180101_20190101-c50-b12.114993-86.236176download_from_scene_list.py `Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: Unlicense
Classifier: Topic :: Landsat :: data conversion
Description-Content-Type: text/markdown
Package: parsel-cli
Parsel CLIParsel Command Line InterfaceFree software: MIT licenseDocumentation:https://parsel-cli.readthedocs.org.Python versions: 2.7, 3.4+QuickstartExample:$ curl http://scrapy.org/ | parsel-cli '.container a::attr(href)' | tail -2
http://doc.scrapy.org/en/latest/topics/ubuntu.html
https://github.com/scrapy/scrapy/archive/1.1.zipSeeparsel-cli-hfor more options.CreditsThis package was created withCookiecutterand therolando/cookiecutter-pypackageproject template.History0.2.0 (2016-08-03)Promoted version bump.0.1.1 (2016-08-03)Added –absolute-links argument.Allow URLs as file argument.Added –version argument.0.1.0 (2016-07-25)First release on PyPI.
Package: parselcode
parselcodeThe Parselcode package can be used to implement a Cipher technique using custom functions for encyrpting and decrypting ascii characters.Current Version:1.0.0Requires:Python 3.0+InspirationThe creation of the package is inspired by mapping the strenghts associated in Hindu birth chart houses with fragments (anu's) of a character. This results in creating a series of integer codes for the given text, character by character. The codes are controlled by random parameters to ensure non-repetition of code for same characters.InstallationYou can install the Parselcode package from PyPIpipinstallparselcodeUsageImport the necessary classesimportparselcode.mainaspcCreate a Parselcode objectobj=pc.Cipher()Encryptionciphertext=obj.encrypt(plaintext)Decryptionplaintext=obj.decrypt(ciphertext)Exampleciphertext=obj.encrypt("test")foriinciphertext:print(i,end=" ")0 3 9 8 9 9 12 11 -1 9 8 4 11 6 -1 6 7 10 9 8 -1 5 7 8 8 2 -1 2 7 3 7 0 -2 11 8 5 8 6 1 0 8 4 7 0 0 2 8 3 7 0 -1 6 8 4 7 0 -1 1 9 3 8 8 1 0 9 4 7 1 0 0 9 0 8 2 -1 1 8 11 8 9 -1 0 10 3 8 11 0 9 10 3 7 7 -1 8 9 10 8 10 -1 0 9 10 9 8 -2 11 11 3 9 5 0 6 11 1 8 5 -1 10 10 7 9 3 -1 6 10 7 10 0 -1 5 0 3 5 7 13 9 14 8 -1 8 11 11 13 2 -1 7 11 6 11 6 -1 10 12 3 10 4 0 0 12 10 10 5 0 0 11 9 10 1 0 10 11 5 8 0 -1 6 11 6 8 10 -2 1 11 10 9 7 -2 0 12 10 9 10 0 10 12 8 7 9 -1 8 12 6 8 8 -2 6 12 9 9 6 -2 5 13 11 9 11 0 7 14 0 7 11 -1 8 13 6 8 10 -2 9 13 8 9 9 -2 9 15 0 10 3 0 4 15 1 8 7 -1 11 14 7 8 10 -1 7 14 5 9 7 -1 9 0 3 6 7 7 4 13 6 -1 8 5 6 11 9 -1 5 5 3 9 6 -1 6 6 7 7 9 -1 7 7 10 7 9 -1 6 5 9 8 5 1 3 5 11 6 7 -1 9 5 10 7 7 -2 3 6 0 8 4 -2 2 7 0 8 7 1 5 7 3 6 10 0 0 7 0 8 2 -1 1 7 2 9 0 -1 5 8 3 8 11 1 2 8 6 7 4 -1 9 7 11 8 9 -1 0 8 0 9 8 -1 3 9 5 9 7 0 11 9 5 8 3 0 2 8 10 9 2 0 1 8 10 9 11 0 6 0 3 0 8 8 4 13 4 -1 5 6 10 11 11 -1 10 6 1 10 4 -1 11 5 10 8 10 -1 11 5 7 7 10 0 0 6 6 9 2 1 3 6 1 7 6 0 7 5 11 7 7 0 0 5 11 7 8 -1 11 7 4 9 2 1 1 7 0 7 5 0 0 6 11 8 7 -1 3 7 1 9 4 -1 3 8 3 9 3 0 10 8 0 7 9 -1 11 7 10 9 1 -1 5 7 11 9 10 -1 8 9 2 9 6 0 6 8 11 8 6 -1 11 8 7 9 4 -1 9 8 7 10 0 0 0print(obj.decrypt(ciphertext))testThank YouIf you liked this package, found it useful or have a feedback, I would love to hear your views. Do write me atemail.Created by - Puru Malhotra
Package: parselglossy
[…] I speak with tongues more than you all;—1 Corinthians14:18Parse it on!—Bobson Dugnutt,Private communicationGeneric input parsing library, speaking in tongues.parselglossygenerates a fully functional Python input parsing module from a
simple YAML template specification.  The parser hasno dependencieson
external Python packages.
The documentation for all input keywords is also generated in reStructuredText
format from the YAML specification.Free software: MIT licenseDocumentation:https://parselglossy.readthedocs.io.RequirementsPython 3.7 or later.FeaturesFlexible. It can accommodate different input styles and still generate
correct parsers.  This is achieved by decoupling input reading and validation.Extensible. We work with standard Python types and standard JSON format.
Interfacing and extending to your needs is straightforward.Simple. Just provide an input specification in YAML format: names of
keywords/sections, defaults, documentation. The tedious bits are automatically
handled for you.Correct.parselglossygives two correctness guarantees:If the YAML specification is valid, the generated parser will be correct.If validation completes, the input to your application is well-formed.Projects using parselglossyMRChemIf your project is using parselglossy, please add a link via a pull request.
Package: parse-log
Parse LOGrust tail implementation to parse filesFeaturesLoad N lines or all linessearch and ignore lines with certain stringsparse lines and extract what you wantUsageimporttailpath_to_file='path/to/file/thefile.log'number_of_lines=3#return 3 linestail.lines(path_to_file,number_of_lines)#return all lines with the given search string#or 'search1, search2'tail.search_all(path_to_file,'Search_String')#return all lines with the given search string#or 'search1, search2' also 'ignore1, ignore2' and so ontail.isearch_all(path_to_file,'Search_String','Ignore_String')#search through all lines contains certain string condition#or 'search1, search2' also 'ignore1, ignore2' and so ontail.search_lines(path_to_file,"search","ignore_string",number_of_lines)#search through all lines and ignore lines that contains certain stuff#or 'search1, search2' also 'ignore1, ignore2' and so ontail.isearch_lines(path_to_file,'Search_String','Ignore_string',number_of_lines)#return the last line based on the search condition#or 'search1, search2'tail.search_last_line(path_to_file,'Search_String')#return last line based on search and ignore conditions#or 'search1, search2' also 'ignore1, ignore2' and so ontail.isearch_last_line(path_to_file,'Search_String','Ignore_String')#parse line by linelines=tail.lines(path_to_file,number_of_lines)[tail.parse_line(lines,"begin_delimiter","end_delimiter")forlineinlines]
Package: parseltongue
ParseltongueThis module contains set of grammars which can be used write programs in Python 3.x.This module was specifically written for Parseltongue Editor (downloadhere) by it can also be used with any text editor.To write Python programs using voice with Parseltongue commands you will need the following:Dragon Naturally SpeakingPython 2.7 or above (To run parseltongue modules)Python 3.x (To execute programs written using Parseltongue)Natlink 4.2 (with Vocola and Unimacro)WxPython 2.8*PyWin32 build 218**Specified versions are used during the testingParseltongue Bundle contains all the specified programs mentioned above.Parseltongue Editor and Parseltongue Bundle can be download from our official website:http://www.parseltongue.mlParseltongue Documentation:View
Package: parselx
Enhanced version ofparsel, extracting data from HTML and XML using complex rules.FeaturesMagicgmethod: extract items by complex rulesApply filters to a valuexinstance: many helper methods and filtersPlus all the standard features ofparsel>>> from parselx import SelectorX
>>> sel = SelectorX("""<html>
        <body>
            <h1>Hello, Parselx!</h1>
            <ul>
                <li><a href="http://example.com">Link 1</a></li>
                <li><a href="http://scrapy.org">Link 2</a></li>
            </ul>
        </body>
        </html>""")
>>>
>>> sel.g('h1')
'Hello, Parselx!'
>>> sel.g('h1 | reverse')
'!xlesraP ,olleH'
>>> sel.g('[ul li a]')
['Link 1', 'Link 2']
>>> sel.g({'title':['h1', lambda s: s.upper()], 'links':'[a @href]'})
{'title': 'HELLO, PARSELX!', 'links': ['http://example.com', 'http://scrapy.org']}
>>> sel.g('[ul li a @href| map:slice,7,-4]')
['example', 'scrapy']Installation$pipinstallparselx
Package: parsely
Parsely is a framework for enqueuing messages via HTTP request for celery.CHANGELOGExampletasks.py:fromtypingimportDictimportparselyapp=parsely.Parsely('example','redis://localhost:6379/0')deftwo_times(text:str)->Dict[str,str]:return{'text':text*2}@app.task(two_times)defecho(text:str)->None:print(text)worker=p.celeryproducer=p.make_producer()two_timesworks as pre processor. It works before enqueing. It means it can return BadRequest to your client. Parsely validate message with typehint. Also you can have extra validation and any other process here.You can runtasks.pyas Celery worker:celery -A tasks worker --loglevel=infoAlso it runs as WSGI application. This is an example run it with uWSGIuwsgi --http :8080 --wsgi-file tasks.py --callable producer --enable-threads --thunder-lock --masterSend Test Message!curl -X POST -d '{"message":{"text": "Hello"}}' http://localhost:8080/example/echoproducerreceives your requestproducervalidates your message havingtextand the type isstror not.text`(str)is from typehint oftwo_timesproducervalidatestwo_timesreturned value havingtextand the type isstror not.text`(str)is from typehint ofechoproducerput message{"message":{"text":"HelloHello"}}into queue.curlreceives response.CelerycallsechoExtraPreprocessorpreprocessor is optional. if you don’t need it, you can:@app.task()defecho(text:str)->None:print(text)Also you can give multiple preprocessor:@app.task(two_times,two_times)defecho(text:str)->None:print(text)loggingParsely uses logger witch named “parsely”, so you can set log level like:importloggingparsely_logger=logging.getLogger('parsely')parsely_logger.setLevel(logging.DEBUG)
Package: parsely-slackbot
Parsely slackbot is an open-source slack custom integration that uses the Parsely
API to allow realtime Slackalytics in your Slack instance!Server Set UpYou’ll need to run the slackbot on a server.Run:` pip installparsely-slackbot`and then, to start the server, run:` parsely_slackbot `The bot will generate a sample config.yaml for you. See asample here. Edit with your Site ID and API shared secret for the account you want to show in the channel. You can find thesehere. You will need the Slack team ID from your channel and the Slack token from the set up below. You should then deploy the app on your own domain or using a service likeHeroku, saving the deployment URL for use in the Slack setup process described below.Slack Channel Set UpIn your channel settings, select “Customize Slack.” Choose “Configure Apps” –> “Custom Integrations”Add a “Slash Commands” integrationIn the “command” section, enter theslash_commandvalue from the config (the default isparsely).In the “URL” field, enter the URL your slackbot will be running on, created in the Server Set Up step. Make sure to specify the port in the style ofhttp://EXAMPLE.com:6000. (The default port is 6000 for the slackbot)The rest of the fields can be left as their defaults. You can also upload theParse.ly logo.Note: The lightweight server shipped with Flask has worked quite well in testing for small and mid-sized teams. For larger teams (and as a best practice in general), you might want to look into a more robust WSGI server like gunicorn so as not to experience stability issues.UsageCommand syntax:/parsely meta, timemeta = posts, authors, sections, tags, referrerstime = Xm, Yh, today. Max of 24h.Sample commands:/parsely posts, 10mWill return the top posts in the last 10 minutes/parsely sections, 1hWill return the top sections in the last hour/parsely tags, todayWill return the top tags for todayPageview Threshold NotificationThe slackbot has the ability to poll Parsely’s realtime data endpoint and automatically alert you if any urls break a pageview threshold that you can set. Here’s how to set that up:Go to the same custom integrations page as in the steps above.At that page, click “Add Incoming Webhook”.Select a channel you want the bot to send to (don’t worry about being too choosy- the bot can override this later in its settings) and click “Add Webhook Integration”. Once the webhook is created, make sure to copy the webhook url slack gives you. (Not required, though highly encouraged, is to name the integration and give it a new logo- you can use the logo provided above!)in your config.yaml, change the parameter “webhook_url” to the webhook URL Slack gave you in the previous step. Also set the “threshold” parameter to the minimum number of pageviews a post must have in the past 5 minutes to trigger the trending alert.under the “channels” list, add every channel you’d like the bot to send alerts to.save the config.yaml, restart the bot, and you’re all set!
Package: parsematic
ParsematicThis is a basic math parser that can parse mathematical expressions.FeaturesParses a variety of mathematical expressions, including:Integers(0, 1, 5, -7), Floats(3.14159, 2.7, 0.5)Basic arithmetic operations(+, -, \*, /, \*\*, //, %)ConstantsPI, TAU, NAN, E, INFComparison operators(==, !=, <, >, <=, >=)Parentheses for groupingMathematical functions(sin, cos, tan, abs, sqrt, log, fact, gcd, lcm, xor, int, float, min, max)UsageFirst, install it with:pip install parsematicImport the MathParser class:frommath_parserimportMathParserCreate a MathParser instance:parser=MathParser()Use the parse() method to parse and evaluate an expression:result=parser.parse("2 + 3 * (4 - 1)")print(result)# Output: 11Or, use it from the command linepython-mparsematic"2 + 3 * (4 - 1)"Supported Operators:Arithmetic operators:+, -, \_, / (true division), // (floor division), \*\* (exponentiation), % (modulo)Comparison operators:==, !=, <, >, <=, >=Supported Functionssin, cos, tan, abs, sqrt, log, fact (factorial), gcd (greatest common divisor), lcm (least common multiple), xor (bitwise exclusive or), int, float (type conversions), min, maxError HandlingThe parser will raise exceptions for invalid syntax or unsupported operations.Additional NotesThe parser currently does support constants or user-defined functions (although you have to modify MathFunc.funcs). (but not variables within the parser itself)ContributingPull requests are welcome!
Package: parsemon2
parsemon2This is yet another attempt to bring monadic parsing to python.  The
problem the author saw with many other implementations is a limit to
their composability.  A lot of the times these otherwise quite well
written implementations suffer pretty bad from pythons lack of TCO.
This implementation uses trampolines to get around that.Right now this implementation is nothing more but a toy, but the tests
that come with this package show already that it’s parsing ability is
not dependent on pythons recursion limit.We also have error messages.There is a (tested!) example implementation of a json parser included
in the package.  Seesrc/parsemon/json.pyfor more information.installationThis package should be available as amanylinux_2_24_x86_64wheel
on pypi.  On a update to date linux machinepipshould do the job
just fine:pip install parsemon2Currently MS Windows and macOS are not supported.building the packageBuilding the package from source can be done in multiple ways.building from sdistYou need to have the rust toolchain installed.  Check out your
GNU/Linux distribution to learn how to install it.  Another handy
resource to consider ishttps://www.rust-lang.org/tools/install.Now you can build the package from source viapip:pip install setuptools_rust wheel
pip wheel parsemon2 --no-binary :all:Now you should have a wheel for your platform in your working
directory.build from the repositoryThe easiest way to build wheels from the git repository is to usedockersince there is a handy build script included in the repo.
Make sure the your user has access to docker.  Consult the
documentation of your system for more information on how to install
docker.Withdockerinstalled run the following in the root folder of the
source code repository:bin/build-wheelsAfter the program finishes you should find wheels for various python
versions in thedist/directory.documentationIf you want to learn about the library we recommend checking out ourreadthedocs page.Changes3.2.2Further performance improvements3.2.1Fixed minor bug in error handling code3.2.0Slight performance improvementsImplement repeat combinator that tries to run a parser for a
specified number of times3.1.0Serious peformance improvements were madeMinor bug fix in json example parser3.0.1Update README3.0Remove pyrsistent deque implementationImprove fmap performanceImplement end-of-input parserrun_parsernow returns aParsingResultobject instead of the raw
value of the supplied parserrun_parserwon’t fail if the parser did not consume all of the
supplied inputGot rid ofNotEnouhInputexception.Drop official support for Python 3.6Change semantics ofuntilparser.2.0Parsers constructed withdocan now take argumentsNew parser for floating point numbers:parsmon.basic.floating_pointImplementx | yoperator for parsers, it is a short hand forchoice(x,y)Improved performance parsing speed by factor 4 - 6There is now an example of a parser included in this package.  It is
the worlds slowest json parser1.1Implement validatorschainnow accepts 1 or more argumentsImplement do notationNew whitespace parserNew parser for integers
Package: parsems
Parse msParse milliseconds into a DictionaryDemoDemo onRepl.itScreenshotInstall$ pip install parsemsUsagefromparsemsimportparseMsparseMs(2449850001)"""{'days': 28,'hours': 8,'minutes': 30,'seconds': 50,'milliseconds': 1,'microseconds': 0,'nanoseconds': 0}"""ThanksSindresorhus's parse-msLicenseMITYoginth
Package: parse-nmap
# README #Parse-nmap is a tool which parses nmap scan results (only XML) from a file. By using parse-nmap it is possible to filter the results by platform or ip or to generate target lists.## License ##
This script is licensed under the GNU General Public License in version 3. Seehttp://www.gnu.org/licenses/for further details.## Usage ##
If want to learn more about parse-nmap have a look at the wiki onhttps://bitbucket.org/cbless/parse-nmap/wiki/Home
Package: parsenv
Getting StartedUsepip install parsenv.Reads.envfile on import, then reads other env-files from$ENVPATH(comma separated).Exampleimportenvassertenv.get("TOKEN")=="abc123"assertenv.get("X",None)isNoneassertenv.get_int("PORT")==123assertenv.get_strs("KEYS",[])==["word1","F402","12"]assertenv.get_ints("ADMIN_IDS")==[1,2,3]assertenv.get_ints("X",[0])==[0]withenv.prefix("BOOL"):assertenv.get_bool("T")assertnotenv.get_bool("F")try:env.get("X")exceptExceptionase:assertstr(e)=='Mandatory environment variable "X" is missing'try:env.get_ints("BAD_NUMS")exceptExceptionase:assertstr(e)=='Failed to cast "1,2,a" (variable name "BAD_NUMS") to list'try:env.get_bool("BAD_BOOL")exceptExceptionase:assertstr(e)=='Failed to cast "ok" (variable name "BAD_BOOL") to bool'assertenv.raw.float("FLOAT")==1.45
Package: parsenvy
Parsenvyis anenviouslyelegant environment variable parsing Python library.Environment variables are strings by default. This can beratherinconvenient if you’re dealing with a number of them, and in a variety of desired types. Parsenvy aims to provide an intuitive, explicit interface for retrieving these values in appropriate types withhuman-friendlysyntax.FeaturesCompatible with Python 3.6+ only (the last Python 2 compatible version was1.0.2).Fully tested on Linux, macOS, and Windows.No dependencies outside of the Python standard library.BSD (3-Clause) licensed.Utterly awesome.Now withdocs!Examples>>>importparsenvy>>>parsenvy.bool('DEBUG_ENABLED')# DEBUG_ENABLED=TrueTrue>>>parsenvy.int('POSTS_PER_PAGE')# POSTS_PER_PAGE=1313>>>parsenvy.float('EXCHANGE_RATE')# EXCHANGE_RATE=42.91142.911>>>parsenvy.list('INVALID_USERNAMES')# INVALID_USERNAMES=admin,superuser,user,webmaster['admin','superuser','user','webmaster']>>>parsenvy.tuple('SAMPLE_GREETING')# SAMPLE_GREETING=Hello,world!('Hello','world!')>>>parsenvy.set('ALLOWED_CATEGORIES')# ALLOWED_CATEGORIES=python,vim,git{'python','vim','git'}>>>parsenvy.str('DB_PREFIX')# DB_PREFIX=dj_'dj_'InstallpipinstallparsenvyContributingContributions are welcome, and more information is available in thecontributing guide.
Package: parseoncolon
A simple parser that will separate a string of would be arguments in the form of key:valuewhere key and value are strings separated by a colon.  This should work for any number of pairs.Example:$ example.py key1:value1 key2:value2 key3:this is value3Would result in a dictionary of:d { 'key1' : 'value1''key2' : 'value2''value3 : 'this is value3'}
Package: parse-opcodes
This package was created to create simple spreadsheets of opcodes as part of the RISC V Architecture.Using this package is relatively straightforward:Open opcode-formats in a text editorPlace any args you want to add under ##ARGLUTS. Bear in mind they must follow the format of a dictionary in Python (arglut['argname'] = (n, n)). The bit range must be expressed as a tuple.
2a. If an arglut appears is formatted differently than its name implies, you must also add to the arglut_format dictionary. The key is the name of the arg while the value is the item this code will actually parse. A "|" represents a break, while ":" colon separates a range. So for example 'imm[20|10:1|11|19:12]' takes up bits 20, 10 to 1, 11, and 19 to 12.Make sure there is an empty line separating the argluts/arglut_formats and ##OPCODES. The code will not function otherwise.Place any opcodes you want to add under ##OPCODES, separated by newlines (enter/return). The format is hard to describe, but just follow what's already writtenRun main, if all goes well, an excel spreadsheet will appear in the parse folder. You can then open that up and format it to whatever you want.