Saravanan666/pypi-org huggingface dataset:
Package: brabbel
Brabbel=======Brabbel is a small python based expression language which can be used toevaluate simple expressions.Brabbel provides the following set of features:* Values: Strings, Numbers, Variables , Lists* simple arithmetic operations: + - / ** simple equation : < > <= >= == !=* simple bool operation: and or not* function calls: date, bool* other: check if values is _in_ a listBrabbel is the german term for the first "language" of a baby and emphasisesthe reduced coverage of this language.0.4.4=====- Added float function to cast value to float. Used to make comparisionsbetween float and int possible.0.4.3=====- Improved parsing single quoted strings. Now almost all chars are allowedexcept a single quote "'" will will raise an execption because parsingfails. Because the fix is a improvement at all and the remaining bug is iscurrently considered as a rare corner case. This will be released anyway.0.4.2=====- Added workaround for failing parsing of expressions when pyparsing is underhigh load.0.4.1=====- Changed license from MIT to GPL v2+ and added LICENSE.txt- Added "bdist_rpm" section setup.cfg.- Added "egg_info" section setup.cfg.0.4.0=====- Make comparison of operators more type safe. Evaluation of terms is onlyvalid of operators of the same type. Otherwise the term will evaluate toFalse.- Implement short circuiting for "and" and "or" operators.- Support "True","False","None" in bool function.- Refactored code. Created own module for operators and functions.- Added documentation.0.3.0=====Make Brabbel Python3 compatible. Added python-future package as dependency- Allow dots "." in variable names.0.2.7=====- Fixed handling of integer and string values in lists.0.2.6=====- Added folders for documentation (currently empty)- Allow "-" in Strings- Added more tests.0.2.5=====- Log warning if a variable can not be resolved in the values dict.- Allow signed numbers. Currently only negativ sign is allowed.- String to not have a "'" anymore.- Added more tests.0.2.4=====- Compatiblity: Allow "-" in variable names.- Fixed strip of "'" in "len" function.0.2.3=====- Allow empty strings- Fix bool function- Allow lists as param for functions0.2.2=====- Added len function0.2.1=====- Be more tolerant on whitespaces in delimeted lists,- Fix call of functions0.2===- Add operator mapping for operators like ge, gt, le, lt, eq, ne- Be more tolerant on getting non existing values from the values dictionary.- Removed Rule class.0.1===- Initial Release
Package: b-rabbit
RabbitMQ without headache.b-rabbit is a RabbitMq client library that aims to make interfacing with RabbitMQ easier. It is very useful especially
inside large projects, in which many boilerplate code must be written.I started this project when I was working on a large microservices-based project in a large team.
I decided to open-source the project afterwards.Free software: MIT licenseDocumentation:https://b-rabbit.readthedocs.io.Featuresit implements all RabbitMQ messaging patterns.provides an easy high level API (take a look at the examples)thread safeWhen you should use itif you are having problems with other non thread safe libraries (like I did)if you want to develop fast by using a high level APIif you don’t want to write much code and save much timeif you want to use multithreadingQuick Usageimport the library:fromb_rabbitimportBRabbitcreate a parent instance which provide a global rabbitMQ connectionrabbit=BRabbit(host='localhost',port=5672)now, just one liner to publish a message:publisher=rabbit.EventPublisher(b_rabbit=rabbit,publisher_name='pub').publish(routing_key='testing.test',payload='Hello from publisher')or if you want to subscribe and listen to a certain topic:defcallback(msg):# do something with the received msg from the publisherprint(f"msg received:{msg}")# subscribe and run a listener in a threadsubscriber=rabbit.EventSubscriber(b_rabbit=rabbit,routing_key='testing.test',publisher_name='pub',event_listener=callback).subscribe_on_thread()Advanced Usage using RPCtask requesterfromb_rabbitimportBRabbitdeftaskResponseListener(body):print('Task Response received')print(str(body))rabbit=BRabbit(host='localhost',port=5672)taskRequesterSynchron=rabbit.TaskRequesterSynchron(b_rabbit=rabbit,executor_name='test',routing_key='testing.test',response_listener=taskResponseListener)taskRequesterSynchron.request_task('msg from requester')rabbit.close_connection()task responser (server)fromb_rabbitimportBRabbitimporttimerabbit=BRabbit(host='localhost',port=5672)deftaskListener(server,body):print('Task Request received')print(str(body))time.sleep(5)server.send_return(payload="return this value to requester")taskExecuter=rabbit.TaskExecutor(b_rabbit=rabbit,executor_name='test',routing_key='testing.test',task_listener=taskListener).run_task_on_thread()FurtherTake a look in the examples folder for more. b_rabbit implements also the remote procedure call (RPC) pattern
Package: braceexpand
Implements Brace Expansion as described inbash(1),
with the following limitations:A pattern containing unbalanced braces will raise anUnbalancedBracesErrorexception. In bash, unbalanced braces will
either be partly expanded or ignored.A mixed-case character range like'{Z..a}'or'{a..Z}'will
not include the characters[]^_`betweenZanda.braceexpandis tested with Python 2.7, and 3.6+InstallationInstall thebraceexpandpackage from pypi:$ pip install braceexpandExamplesThebraceexpandfunction returns an iterator over the expansions
generated from a pattern.>>>frombraceexpandimportbraceexpand# Integer range>>>list(braceexpand('item{1..3}'))['item1','item2','item3']# Character range>>>list(braceexpand('{a..c}'))['a','b','c']# Sequence>>>list(braceexpand('index.html{,.backup}'))['index.html','index.html.backup']# Nested patterns>>>list(braceexpand('python{2.{5..7},3.{2,3}}'))['python2.5','python2.6','python2.7','python3.2','python3.3']# Prefixing an integer with zero causes all numbers to be padded to# the same width.>>>list(braceexpand('{07..10}'))['07','08','09','10']# An optional increment can be specified for ranges.>>>list(braceexpand('{a..g..2}'))['a','c','e','g']# Ranges can go in both directions.>>>list(braceexpand('{4..1}'))['4','3','2','1']# Numbers can be negative>>>list(braceexpand('{2..-1}'))['2','1','0','-1']# Unbalanced braces raise an exception.>>>list(braceexpand('{1{2,3}'))Traceback(mostrecentcalllast):...UnbalancedBracesError:Unbalancedbraces:'{1{2,3}'# By default, the backslash is the escape character.>>>list(braceexpand(r'{1\{2,3}'))['1{2','3']# Setting 'escape' to False disables backslash escaping.>>>list(braceexpand(r'\{1,2}',escape=False))['\\1','\\2']Licensebraceexpand is licensed under the MIT License. See the included fileLICENSEfor details.
Package: bracelet
Bravo!  You have received a Medical Diploma in "bracelet" fromthe Orbital Convergence University International Air and WaterEmbassy of the Tangerine Planet 🍊.You are now officially certified to include "bracelet" in yourpractice.🌑 🌘 🌗 🌖 🌕 🌔 🌓 🌒 🌑🌑 🌒 🌓 🌔 🌕 🌖 🌗 🌘 🌑🌑 🌘 🌗 🌖 🌕 🌔 🌓 🌒 🌑braceletTo give a taste of dry land tothose who approach the shores,there is now foundthe dream and rise of the ocean tides.descriptionThis is a module that can ascertainthe health status of python3 software.It's like a testing framework.installThis utilizes:https://pypi.org/project/xonsh[xonsh] pip install braceletdocumentation[xonsh] bracelet sharesThis opens a server process that can be opened in a browser.internal status tests of the module[xonsh] bracelet internal-statusThese checks are run with pypi "body_scan";
"bracelet" is built from a fork of "body_scan".The "body_scan" checks are written with "unittest".TutorialThe structure📁 performance
	📜 status_1.pyThe checks# status_1.py

def check_1 ():
	print ("check 1")
	
def check_2 ():
	print ("check 2")
	
def check_3 ():
	raise Exception ("not 110%")

checks = {
	"check 1": check_1,
	"check 2": check_2,
	"check 3": check_3
}The procedureFrom theperformancedirectory,[xonsh] bracelet statusThe reportThis is the report that is (hopefully) written to the terminal.paths: [
	{
		"path": "status_1.py",
		"empty": false,
		"parsed": true,
		"stats": {
			"passes": 2,
			"alarms": 1
		},
		"checks": [
			{
				"check": "check 1",
				"passed": true,
				"elapsed": [
					4.054199962411076e-05,
					"seconds"
				]
			},
			{
				"check": "check 2",
				"passed": true,
				"elapsed": [
					1.72930003827787e-05,
					"seconds"
				]
			},
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/bracelet/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
alarms: [
	{
		"path": "status_1.py",
		"checks": [
			{
				"check": "check 3",
				"passed": false,
				"exception": "Exception('not 110%')",
				"exception trace": [
					"Traceback (most recent call last):",
					"  File \"/bracelet/processes/scan/process/keg/check.py\", line 68, in start",
					"    checks [ check ] ()",
					"  File \"<string>\", line 13, in check_3",
					"Exception: not 110%"
				]
			}
		]
	}
]
stats: {
	"alarms": 0,
	"empty": 0,
	"checks": {
		"passes": 2,
		"alarms": 1
	}
}NotesChecks are started simultaneously, unless--simultaneous no[xonsh] bracelet status --simultaneous noThe fractory glob pattern is "**/status_*.py", but can be changed with--glob-string[xonsh] bracelet status --glob-string "**/performance_*.py"Advanced TutorialIt's recommended to run bracelet programmatilly.An example of this can be found in the "_book/advanced tutorial"section of the documentation.📡 Contactsbgrace2345@proton.me
Package: bracelogger
braceloggerA Python library that enables using the brace-style string formatting in log messages.Features:Supports a wide range of Python versions (v2.7 - v3.10)No dependenciesEasy to use - no special syntax requiredEasy to transition to from stdlib logging - just change thelogging.getLoggercalls and message
templates.Only enables brace-style formatting for loggers created by the library. This allows for gradually
transitioning to brace-style formatting without breaking existing loggers or third party
packages.The formatting of the message is delayed until it is output (or not at all if the log message is
filtered).The args passed into the log call are stored on thelogging.LogRecordobjects as usual.Installationpip install braceloggerUsage example# import the libraryfrombraceloggerimportget_logger# set up the logger__log__=get_logger(__name__)# use brace-style formatting in log messagestry:process(some_obj)exceptException:__log__.warning("Failed to process object '{0!r}' with name '{0.name}' and path '{0.path}'",some_obj,exc_info=True)Note that the above example is very basic. The real power of this module comes from being able to
use the more advanced operations that the brace-style formatting can provide. Seethe docs on the format string syntaxfor more details.Key-based formattingThe logger from the standard library has a special case (introduced inPython
2.4) where key-based
formatting can be used when a single non-empty dictionary is passed into the log message like so:__log__.info("a:%(a)s, b:%(b)s",{"a":1,"b":2})This is also supported when using brace-style formatting:# These both produce the same log message:__log__.info("a:{a}, b:{b}",{"a":1,"b":2})__log__.info("a:{0[a]}, b:{0[b]}",{"a":1,"b":2})Compatibility with existing code and loggersThis library will only enable brace-style formatting for loggers created by this module'sget_logger()function. Loggers created via the stdliblogging.getLogger()function will still
use the normal %-based formatting.This opt-in style means that codebases can gradually transition to brace-style logging without
having to convert everything over all at once. It also means that the logs from any third-party code
like libraries will continue to work as normal.In addition to being compatible with existing code, it should also be compatible with most other
stdlib-compatible logging packages and modifications. As when using the stdlib logger, the message
arguments are still stored on the log record and the message is only formatted when it is handled
(and not at all if the message is filtered).Converting existing codeBecause there is no special syntax required, migrating existing logs to brace-style formatting is
easy:Change loggers created withlogging.getLogger(name)to usebracelogger.get_logger(name)Change the log messages for the loggers to use brace-style formatting (ex: change%sto{})TestsThis package contains basic tests. To run them, installpytest(pip install pytest) and runpy.testin the project directory.LicenseLicensed under theGNU LGPLv3.
Package: bracex
BracexBracex is a brace expanding library (à la Bash) for Python. Brace expanding is used to generate arbitrary strings.$echo{{a,b},c}dad bd cdBracex adds this ability to Python:>>>bracex.expand(r'file-{{a,b},c}d.txt')['file-ad.txt','file-bd.txt','file-cd.txt']and as a command:$python3-mbracex-0"base/{a,b}/{1..2}"|xargs-0mkdir-p$treebase/base/├── a│   ├── 1│   └── 2└── b├── 1└── 2Why Bracex over other solutions?Bracex actually follows pretty closely to how Bash processes braces. It is not a 1:1 implementation of how Bash
handles braces, but generally, it follows very closely. Almost all of the test cases are run through Bash first,
then our implementation is compared against the results Bash gives. There are a few cases where we have purposely
deviated. For instance, we are not handling Bash's command line inputs, so we are not giving special meaning to back
ticks and quotes at this time.On the command line Bracex can handle more expansions than Bash itself.Install$pipinstallbracexDocumentationDocumentation is found here:https://facelessuser.github.io/bracex/.LicenseMIT License
Package: bracket
BracketBracketis an Elegant static site generator. It encapsulatesJinja2. Its biggest highlight is to render the static pages in the form ofview function, and support real-timedebugging. It can also supportCSS framework,international routingand more functions through ecological extension.The project is being updated continuously, and the official version has not been completed yetInstallingInstall and update usingpip:$pipinstallbracketA Simple ExamplefrombracketimportWebSitefromjinja2importTemplateapp=WebSite(__name__)@app.pages("/")defhelloworld(context):returncontext({"title":"Welcome to Bracket","content":Template('''<h1>{{ messages }}</h1><img src="{{ bracket.res('/logo.png')}}">'''),"resources":{"messages":"Welcome to Bracket"}})app.dispatch("/")<!DOCTYPE html><htmllang="zh-CN"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="Bracket & Jinja2 "><title>Welcome to Bracket</title></head><body><divid="bracketapp"><h1>Welcome to Bracket</h1><imgsrc="/static/logo.png"></div></body></html>ContributingHow to contribute to this project, report problems, and build a development environment, please refer to thecontribution guideLinksWebsite:https://bracket.inkDocumentation:https://github.com/bracketing/bracket/blob/main/docs/get.mdReleases:https://pypi.org/project/bracket/Code:https://github.com/bracketing/bracketIssue tracker:https://github.com/bracketing/bracket/issuesLicenseThe project is open source under MIT license inGitHub Community. No one is allowed to infringe the copyright. Please followLICENSE
Package: bracketcreate-pig
Overviewbracketcreate_pig is a python library made to programatically create brackets on challonge.com
returns URL of tournamentInstallpip install bracketcreate_pigNeed chrome installed for library to workUsagefrom bracketcreate_pig import cb

print(cb.create_bracket(participants,username,password,tournament_name,stage_bool,format,time))Format ChoicesSingle EliminationDouble EliminationRound RobinSwissStage BoolFalse --> One stageTrue --> Two stageExample Optionsparticipants = [["lim", "ecal"],["pig","doogie"]]username = "USER"password = "PASS"tournament_name = "test_tournament"stage_bool = Falseformat = "Single Elimination"time = "2023/02/11 5:00 PM"
Package: bracketdot
BracketDotWhat is this ?A tool that runs lint focusing only on the latest changes in Git.The supported lint is as follows.SwiftSpell checkerStatic analytics by SwiftLintObjective-CWarnings by xcodebuildStatic analytics by OCLintHow to start ?RequiresPython 3.6or higherInstall by using pip.pipinstallbracketdotCheck Swift codesInstallSwiftLint.brewinstallswiftlintMove directory to your swift project which you want to analyze and run the following command.cd${SwiftProject Directory}difflint-swift--lastYou can get analytics results in./difflint_report.json.Check Objective-C codesInstallCommand Line Toolsfrom Apple Developer site.InstallOCLintandxcpretty.brewtapoclint/formulae
brewinstalloclint
geminstallxcprettyMove directory to your Objective-C project which you want to analyze and run the following command.cd${Objective-C Project Directory}difflint-objc--last--projectProject.xcodeproj--targetTarget--configDebugYou can get analytics results in./difflint_report.json.Fix legacy Objective-C notationThis feature is currently under development and should not be used by non-developers.Move directory to your Objective-C project which you want to analyze and run the following command.cd${Objective-C Project Directory}bracket-dotObjective-C files will be converted as follows.Before:String *title = [[self sharedInstance] generateTitle];After:String *title = self.sharedInstance.generateTitle;How to develop ?Clone this repository to your local, and execute the following command.cd${BracketDot Directory}pipinstall-e'.[dev]'You can debug by using launch configuration for VSCode.
Package: bracketed-images-finder
OverviewSome cameras support taking bracketed pictures. Bracketing is an operation that rapidly takes a series of pictures with slight variations in situations where the conditions may be tricky or rapidly changing. This allows you to experiment with what the current conditions require or to save time in the present by taking a bunch of pictures that will likely include at least one good one at the expense of having to spend more time later sifting through the extra images.This project will recursively scan through the JPEG images under a given path and identify sequential sequences of exposure-bracketed images.InstallationThis project requires Python 3. To install:$ pip install bracketed_images_finderSequence IdentificationThe library currently identifies exposure-based bracketing.Requirements:Images have a "exposure mode" of (2) ("auto bracketed")Images consist of three, five, or seven imagesSorting the filenames in increasing order will also sort them in chronologically-increasing orderThe actual exposure deltas do not matter. Even when configured as a specific value, we have seen the effective exposures being different then expected.The library currently recognizes the following exposure sequences:0, -, +Exposure start at the current, default exposure and are followed by one or more pairs of lower-higher values of the same magnitude, where the magnitude progressively increases for each additional pair. Referred to as a "periodic exposure" sequence.-, 0, +Exposures increase from a lower exposure value to a higher exposure value, where both are the same distance from the current, default exposure. Referred to as a "sequential exposure" sequence.
Package: bracket-expansion
bracket_expansionThis library provides functions that allow you to define a string
that contains brackets with numeric-ranges, and then expands that
into a list of actual values.There are two functions defined.  The first functionbracket_expansionwill create a generator.  You can then iterate through the generator.The expansion supports multiple brackets.  See examples.If you want to create a concrete list from the generate, there is
a function calledexpandwhich will do this as a convenience.Installation$pipinstallbracket_expansionUsageSimple example:frombracket_expansionimportbracket_expansionforif_nameinbracket_expansion("Ethernet[1-48]"):print(if_name)Would result in the output:Ethernet1
Ethernet2
Ethernet3
...
Ethernet48Multiple brackets:You can define multiple brackets in the expression:frombracket_expansionimportbracket_expansionforif_nameinbracket_expansion("Ethernet[1-2]/[1-10]"):print(if_name)Would result in the output:Ethernet1/1
Ethernet1/2
...
Ethernet1/10
Ethernet2/1
Ethernet2/2
...
Ethernet2/10For more details see thebracket_expansiondocstring.
Package: brackets
Brackets is a yet-another, a not just a pre-processor, a language built
on top of Python, allowing to use {} instead of indentation in Python,
and it allows defining powerful anonymous functions and introduces much
more sugar and candy into Python’s syntax and abilities.VisitBrackets Websitefor examples and
more info orread the docs.
Project is hosted ongithub.Some examples:// Use braces in Python!

def fib(n) {
  a, b = 0, 1
  while (a < n) {
    print(a, end=' ')
    a, b = b, a+b
  }
  print()
}

/*
  Powerful anonymous functions
*/

print([def(x) {
  if(x in [0, 1]) {
    return x
  };
  while (x < 100) {
    x = x ** 2
  };
  return x
}(x) for x in range(0, 10)])VisitBrackets Websitefor examples and
more info orread the docsto know
how it should be used.
Package: brackets-closed
bracket_closedChecks if all brackets in a string are balancedExample code:from brackets_closed import close_check

close_check.is_closed("([])")
close_check.is_closed("([)]")
close_check.is_closed("[](){{{{[]}}}}")
close_check.is_closed("][][")
close_check.is_closed("print('This(is) a test to see { if this code { will extract }} brackets [] fro[m a string] that is not {} just brackets!')")Output from example:True
False
True
False
True
Package: brackets_cutter
Тестовый проект, решащющий следующую задачу:Написать код (с помощью регулярных выражений и без них)
для удаления из строки незакрытых скобок
вместе с их содержимым, если после них нет закрытых блоков:
‘esdfd((esdf)(esdf’ -> ‘esdfd((esdf)’.
Написать тесты для этого кода.Использование:brackets_cutter [-h] [-r] string_to_cutТесты в файле tests.py
Написал ещё и генератор тестов tests_generator.py т.к. самому лень выдумывать строки.
Package: brackette
BracketteA simple state manager implementing thememento design patternand heavily based onthe tutorial from refactoring.guru.The brackette (a bracket-cassette) logo was scribbled by@PostSinonslatepacks.com marketplacefor which I paid 2ツ (ツ isgrin cryptocurrency) and it was best deal ever!frombrackette.mementoimportOriginator,Caretakeroriginator=Originator()caretaker=Caretaker(originator)originator.do_stuff('hello')print(originator._state)print(originator._hash)caretaker.backup()originator.do_stuff('meoreo')print(originator._state)print(originator._hash)caretaker.backup()originator.do_stuff('kinda')print(originator._state)print(originator._hash)caretaker.backup()caretaker.undo()print(originator._state)print(originator._hash)caretaker.undo()print(originator._state)print(originator._hash)caretaker.redo()print(originator._state)print(originator._hash)caretaker.undo()print(originator._state)print(originator._hash)caretaker.show_history()outputshello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
meoreo
bbba0753c25637757dd58e943bf8089f66aa5a408cc1764458230e3112ab41e1
kinda
29f0e99be96b1bf5bfb5902b10171f4b7d8135fe205fc8c94b81754c0d661513
meoreo
bbba0753c25637757dd58e943bf8089f66aa5a408cc1764458230e3112ab41e1
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
meoreo
bbba0753c25637757dd58e943bf8089f66aa5a408cc1764458230e3112ab41e1
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Caretaker: Here's the list of past mementos:
2021-04-27 14:25:43 UTC 6411ee087bfe7ce14043d451748b5199ef7ccaa42aa6e0f8ab2c63de94281c7d
Caretaker: Here's the list of future mementos:
2021-04-27 14:25:43 UTC 2783de246149f2cfec85bf718a938ddcb0c1bdad249afc56f53882c6de3f8475
2021-04-27 14:25:43 UTC 0a14b4c21ac263fe47312f688975fc1022feb531db396dca9eb9ed0571f862ee