Saravanan666/pypi-org huggingface dataset:
Package: bmw-lobster-tool-json
LOBSTERTheLightweightOpenBMWSoftwareTraceabilityEvidenceReport allows you to demonstrate software traceability
and requirements coverage, which is essential for meeting standards
such as ISO 26262.This package contains a tool extract tracing tags from JSON files. The
tool expects a json file with a list of objects, for which you can
specify members to extract by name. It is extremely simplistic but it
may be good enough to support some use-cases.If you have a more complex file format you will likely need to provide
your own tool for your own files.Toolslobster-json: Extract activities from JSON filesUsageSome projects store their test vectors in JSON files. This tool can be
used to expose these to LOBSTER. Consider this example:[{"name":"XOR Test 1","values":[false,false],"expectation":false,"tags":"example.req_xor"},{"name":"XOR Test 2","values":[false,true],"expectation":true,"tags":"example.req_xor"},{"name":"Potato Test 1","values":[false,false],"expectation":true,"tags":null,"justification":"Unlinked on purpose"}]Here we have a list of three tests. You can configure thelobster-jsontool to extract the relevant information:$lobster-json--name-attribute"name"\--tag-attribute"tags"\--justification-attribute"justification"\FILENAMEThe name attribute is optional. If your test files do not contain
names for the tests then a name is synthesised using the filename and
the index of the test (e.g. foo_1, foo_2, foo_3, etc.).The justification attribute is also optional.The tag attribute is not, and it needs to be present in each test
object.The specification of these attributes can be nested, for example if
your test objects instead look like this:[{"meta":{"name":"XOR Test 1","asil":"B","req":"example.req_xor"},"test":{"inputs":[false,false],"expect":false}},...Then you can get to the data like so:$lobster-json--name-attribute"meta.name"\--tag-attribute"meta.req"\--justification-attribute"meta.just"\FILENAMEFinally, if your list of tests is nested more deeply in an object, you
can use the--test-listflag to identify where it is. For example:{"kind":"tests","vectors":[{"meta":{"name":"XOR Test 1","asil":"B","req":"example.req_xor"},"test":{"inputs":[false,false],"expect":false}},...Then you can use--test-list=vectorsto identify the correct list.Note: This tool is pretty limited. For the obvious cases it works
pretty well, but if you have a more complex test definition in JSON
then you will need to write your own adaptorusing the documented
schema.Copyright & License informationThe copyright holder of LOBSTER is the Bayerische Motoren Werke
Aktiengesellschaft (BMW AG), and LOBSTER is published under theGNU
Affero General Public License, Version
3.
Package: bmw-lobster-tool-python
LOBSTERTheLightweightOpenBMWSoftwareTraceabilityEvidenceReport allows you to demonstrate software traceability
and requirements coverage, which is essential for meeting standards
such as ISO 26262.This package contains a tool extract tracing tags from Python3 source
code.Toolslobster-python: Extrat requirements from Python3 codeUsageThis tool supports both Python code and PyUnit unit tests.For either code or tests you can embedd tracing tags like this:defpotato(self):# lobster-trace: something.examplereturn"potato"You can add justifications as well:defpotato(self):# lobster-exclude: a very good reason is herereturn"potato"For classes you have a choice on how you trace them: you either
annotate the class itself, or each individual method. If you choose to
annotate the class itself, then you will get warnings for each method
with an annotation.For normal code the usage is:lobster-pythonFILES_OR_DIRSFor pyunit the usage is:lobster-python--activityFILES_OR_DIRSFor pyunit the tool automatically ignore any class function that is
not explicitly a test (i.e. you don't need to manually exclude your
setup or tear down code, only individual tests will be included).Copyright & License informationThe copyright holder of LOBSTER is the Bayerische Motoren Werke
Aktiengesellschaft (BMW AG), and LOBSTER is published under theGNU
Affero General Public License, Version
3.
Package: bmw-lobster-tool-trlc
LOBSTERTheLightweightOpenBMWSoftwareTraceabilityEvidenceReport allows you to demonstrate software traceability
and requirements coverage, which is essential for meeting standards
such as ISO 26262.This package contains a tool to interface with the proprietary
requirements management toolCodebeamer.ConfigurationThis tool is a bit more complex and you need to supply a config file,
named (by default)lobster-trlc.conf. In it you can declare how
you'd like tracing tags to be extracted.For record types you can write:package.typename {
   description = field_name
   tags = field_name
}By default none of the objects are traced, but adding a declaration
like this marks this type (and all its extensions) as things to trace.Thedescriptionmarks which field carries the description text that
can be optionally included in LOBSTER.The tags field identifies the field carrying a tags field. In LOBSTER
all tags are namespaced, and by default the namespace is "req" as that
is generally what you want to do. But you can change this by including
the namespace like so:tags "franka" = field_nameFor tuple types like this one:tuple Codebeamer_Id {
  item Integer
  separator @
  version optional Integer
}You need to provide a series of text expansions so that thelobster-trlctool can build lobster tags from it. You can do this
like so:example.Codebeamer_Id {
  to_string = "$(item)@$(version)"
  to_string = "$(item)"
}These functions are applied in order, and we pick the first one that
fully manages to apply. When a value isnull, then and it'd be used
(like in the first to_string function above) then the expansion does
not apply and we move to the next, and so on. When none apply an error
is created.If you need to justify requirements not being linked or implemented,
then you can also defined up to three extra fields (usingjust_up,just_down, andjust_global) that should carry this
information. For example:type Requirement {
   text String
   unimplemented_justification optional String
}With this config file:example.Requirement {
   description = text
   just_down   = unimplemented_justification
}The meaning of "up" is along the usual direction of tracing tags. For
example putting this in a software requirement means it is not linked
to a system requirement. The meaning of "down" is against the usual
direction of tracing tags. For example putting this in a software
requirement means it is either not implemented or not tested.As you can see the down justification is much more imprecise than an
up justification. You should only use them if there is no other way to
attach this justification on the actual offending object.Finally the "global" justification is a catch all: it just means no
tracing policy will be validated at all when considering this object.Toolslobster-trlc: Extrat requirements from TRLC.Copyright & License informationThe copyright holder of LOBSTER is the Bayerische Motoren Werke
Aktiengesellschaft (BMW AG), and LOBSTER is published under theGNU
Affero General Public License, Version
3.This tool has no actual dependency on, or with, Codebeamer. It just
talks the API as described here:https://codebeamer.com/cb/wiki/117612
Package: bmx280-spi
BMP280 / BME280 over SPIHomepage:https://www.learningtopi.com/python-modules-applications/bmx280_spi/BMP280/BME280 python3 driver using the SPI bus to control and read data.General GPIO Pin (NOT an SPI CS) used to pull the signal pin low.  The SPI CS pins do not operate properly with the SPI kernel driver.BMP280 datasheet:https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp280-ds001.pdfBME280 datasheet:https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdfBMP280/BME280 Pinout:
SCL = SCK (SPI Clock)
SDO = MISO (sensor out to board in)
SDA = MOSI (sensir in to board out)
CSB = CS (select)Parts:BMP280 (Temp and pressure) -https://amzn.to/3YVwblEBME280 (Temp, pressure and humidity) -https://amzn.to/3JIxtMrUsage:# Import bmx280 SPI class
from bmx280_spi import Bmx280Spi, MODE_NORMAL

# initialize device
# cs_chip and cs_pin from "gpioinfo".  gpiod used for platform compatibility.
bmx = Bmx280Spi(spiBus=0, cs_chip=0, cs_pin=26)
bmx.set_power_mode(MODE_NORMAL)
bmx.set_sleep_duration_value(3)
bmx.set_temp_oversample(1)
bmx.set_pressure_oversample(1)
bmx.set_filter(0)
reading = bmx.update_reading() # returns instance of Bmx280Readings
print(reading)
# --or--
print(reading.temp_c, reading.temp_f, reading.pressure_psi)TestingIncluded in the module is a basic test script that can be executed with the following:python3 -m dht11_spi [gpio]Additional test options are available for interval, run time, dht22.  Documentation is available using the "--help" option.Example OutputDHT11: 105/105 (100.0%): Temps (min/avg/max): 73.54/75.2/75.34 deg FHumidity (min/avg/max): 17.0/17.0/17.0 %
DHT22: 112/112 (100.0%): Temps (min/avg/max): 74.48/74.51/74.66 deg FHumidity (min/avg/max): 14.1/14.21/16.0 %
Package: bmxp
BMXP - The Metabolomics Platform at the Broad Institutepip install bmxpThis is a collection of tools we use daily for processing our data. Each tool performs a step in our processing workflow. Currently, we have publishedEclipse- Align two or more same-method nontargeted LCMS datsets.Gravity- Cluster redundant LCMS features based on RT and Correlation (And someday, XIC shape)In the future we will add:Blueshift - Drift Correction via pooled technical replicates and internal standardsRawfilereader - C-optimized LCMS raw file reader for exploring raw files and formatting MS2
Package: bn
Hence the name: bn - BottleNeck.
And you know keys B and N are very comfortable to type quickly in a row.Usage:bn('loop')
for item in generator:

    bn('rabbit')
    # code of rabbit

    bn('turtle')
    # code of turtle

    bn('loop')

if bn.total > 1.0:
    logging.info(bn)Result:TOTAL=22.2632, turtle=20.6403, rabbit=1.6209, loop=0.0020
#
# This config is default in bn>=0.1.5:
# Bn(total_key='TOTAL', format='{key}={seconds:.4f}', sep=', ')

# OR:

22.2632    TOTAL
20.6403    turtle
 1.6209    rabbit
 0.0020    loop
#
# This config is default in bn<=0.1.4:
# Bn(total_key='TOTAL', format='{seconds:>10.4f}    {key}', sep='\n')Install:pip install bnScope:# Global "bn" is useful to profile cross-module without passing "bn" explicitly.
from bn import bn
bn.format = custom_format

# Scoped "Bn" is useful to have multiple independent profilers.
from bn import Bn
def action():
    bn = Bn(format=custom_format)
Package: bn254
Pure-Python library that implements operations over the BN(2,254) pairing-friendly curve.Usage ExamplesThis library is available as apackage on PyPI. Usage examples are provided below:frombn254.curveimportrasscalar_upper_boundfrombn254.ecpimportgeneratorasbase_pointfrombn254.ecp2importgeneratorasrandom_pointfrombn254.bigimportinvmodp,randfrombn254.pairimporteP=random_point()G=base_point()s=rand(scalar_upper_bound)t=rand(scalar_upper_bound)s_inv=invmodp(s,scalar_upper_bound)b=s_inv*tassert(e(t*P,G)==e(s*P,b*G))AcknowledgmentsThis product includes software developed at theApache Software Foundation. See file headers for notices. You may find archives of the originalApache Milagro Cryptographic Librarydocumentation and source files (some of which were included in a modified form within this library) at the links below:https://milagro.apache.org/docs/https://apache.googlesource.com/incubator-milagro-crypto/+/70e3a/version3/pythonhttps://github.com/apache/incubator-milagro-crypto/tree/master/version3/pythonThe authors also acknowledge learning about the original Apache Milagro Cryptographic Library via the use of its source code within theMIRACL Core Cryptographic Library.
Package: bna
python-bnaRequirementsPython 3.6+Command-line usagebna is a command line interface to the python-bna library. It can store
and manage multiple authenticators, as well as create new ones.Remember: Using an authenticator on the same device as the one you log in with
is less secure than keeping the devices separate. Use this at your own risk.Configuration is stored in~/.config/bna/bna.conf. You can pass a
different config path withbna --config=~/.bna.conffor example.Creating a new authenticator$ bna newIf you do not already have an authenticator, it will be set as default.
You can pass--set-defaultotherwise.Getting an authentication token$ bna
01234567
$ bna EU-1234-1234-1234
76543210Getting an authenticator's restore code$ bna show-restore-code
Z45Q9CVXRR
$ bna restore EU-1234-1234-1234 ABCDE98765
Restored EU-1234-1234-1234Getting an OTPAuth URLTo display the OTPAuth URL (used for setup QR Codes):$ bna show-url
otpauth://totp/Blizzard:EU123412341234:?secret=ASFAS75ASDF75889G9AD7S69AS7697AS&issuer=Blizzard&digits=8Now paste this to your OTP app, or convert to QRCode and scan, or
manually enter the secret.This is compatible with standard TOTP clients and password managers such as:andOTP(Android),KeepassXC(Cross-platform)1Password(Cross-platform)Getting a QR codeTo encode to a QRCode on your local system install 'qrencode'For a PNG file saved to disk :$ bna show-url | qrencode -o ~/BNA-qrcode.png
# Scan QRCode
$ rm ~/BNA-qrcode.pngOr to attempt ot display QRCode in terminal as text output :$ bna --otpauth-url | qrencode -t ANSIPython library usageRequesting a new authenticatorimportbnatry:# region is EU or US# note that EU authenticators are valid in the US, and vice versaserial,secret=bna.request_new_serial("US")exceptbna.HTTPErrorase:print("Could not connect:",e)Getting a token# Get and print a token using PyOTPfrompyotpimportTOTPtotp=TOTP(secret,digits=8)print(totp.now())
Package: bnaug
bnaug (Bangla Text Augmentation)bnaugis a text augmentation tool for Bangla text.Installationpip install bnaugDependenciespytorch >=1.7.0Demo Notebookbnaug demoNecessary Model Linksword2vecglove vectorSentence AugmentationToken ReplacementMask generation based augmentationfrombnaug.sentenceimportTokenReplacementtokr=TokenReplacement()text="আমি ঢাকায় বাস করি।"output=tokr.masking_based(text,sen_n=5)Word2Vec based augmentationfrombnaug.sentenceimportTokenReplacementtokr=TokenReplacement()text="আমি ঢাকায় বাস করি।"model="msc/bangla_word2vec/bnwiki_word2vec.model"output=tokr.word2vec_based(text,model=model,sen_n=5,word_n=5)print(output)Glove based augmentationfrombnaug.sentenceimportTokenReplacementtokr=TokenReplacement()text="আমি ঢাকায় বাস করি।"vector="msc/bn_glove.300d.txt"output=tokr.glove_based(text,vector_path=vector,sen_n=5,word_n=5)print(output)Back TranslationBack translation based augmentation first translate Bangla sentence to English and then again translate the English to Bangla.frombnaug.sentenceimportBackTranslationbt=BackTranslation()text="বাংলা ভাষা আন্দোলন তদানীন্তন পূর্ব পাকিস্তানে সংঘটিত একটি সাংস্কৃতিক ও রাজনৈতিক আন্দোলন। "output=bt.get_augmented_sentences(text)print(output)Text GenerationParaphrase generationfrombnaug.sentenceimportTextGenerationtg=TextGeneration()text="বিমানটি যখন মাটিতে নামার জন্য এয়ারপোর্টের কাছাকাছি আসছে, তখন ল্যান্ডিং গিয়ারের খোপের ঢাকনাটি খুলে যায়।"output=tg.parapharse_generation(text)print(output)Random AugmentationRandom remove part and generate new sentenceAt present it's removing word, stopwords, punctuations, numbers and generate new sentencesfrombnaug.sentenceimportRandomAugmentationraug=RandomAugmentation()sentence="আমি ১০০ বাকি দিলাম"output=raug.random_remove(sentence)print(output)or apply individuallyfrombnaugimportrandaugtext="১০০ বাকি দিলাম"output=randaug.remove_digits(text)print(output)text="১০০! বাকি দিলাম?"output=randaug.remove_punctuations(text)print(output)text="আমি ১০০ বাকি দিলাম"randaug.remove_stopwords(text)print(output)text="আমি ১০০ বাকি দিলাম"randaug.remove_random_word(text)print(output)text="আমি ১০০ বাকি দিলাম"randaug.remove_random_char(text)print(output)Inspired fromnlpaugamitness blog post
Package: bnbphoneticparser
# Bengali Phonetic ParserThis package will help you to convert Bengali text to Banglish as well as Banglish to Bengali## Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development, testing purposes and as well as in production machine. See deployment for notes on how to deploy the project on a live system.### Python VersionMinimum python version should have 3.x.x or upper### InstallingA step by step series of examples that tell you have to get a development env runningSay what the step will be```$[sudo] pip install bnbphoneticparser```OR, git clone```$ git clone https://github.com/porimol/bnbphoneticparser.git$ cd bnbphoneticparser$ python setup.py install```### Example#### Bengali to Banglish Example```python# coding=utf-8from BengaliPhoneticParser import BengaliToBanglishbengali2banglish = BengaliToBanglish()bengali_text = "আমি বাংলাদেশি"print(bengali2banglish.parse(bengali_text.strip()))```#### Bengali to Banglish Output```aMi bangLadESi```#### Banglish to Bengali Example```python# coding=utf-8from BengaliPhoneticParser import BanglishToBengalibanglish2bengali = BanglishToBengali()banglish_text = "ami banglay gan gai"print(banglish2bengali.parse(banglish_text.strip()))```#### Banglish to Bengali Output```আমি বাংলায় গান গাই```## Running the testsTest Banglish to Bengali```pythonpytest tests/testbenglishtobanglish.py```Test Bengali to Banglish```pythonpytest tests/testbanglishtobengali.py```## Authors* **[Porimol Chandro](https://github.com/porimol)**See also the list of [contributors](https://github.com/porimol/BengaliPhoneticParser/contributors) who participated in this project.## LicenseThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for detailsCredit---------[Bangla Phonetic Parser Python](https://github.com/ShuvenduBikash/Bangla_phonetic_parser_Python) open source project.[Author :- Shuvendu Bikash](https://github.com/ShuvenduBikash)
Package: bnb-tx
Binance Chain Transaction LibraryThis library provides a low-level interface for interacting with different Binance Chain transactions.Installationpip3installbnb-txOr, in yourPipfile:bnb-tx = "==0.0.4"UsageThe following is an example that uses theecdsalibrary to sign.importecdsadefuncompressed_public_key(sk):""" Derive uncompressed public key """order=sk.curve.generator.order()p=sk.verifying_key.pubkey.pointx_str=ecdsa.util.number_to_string(p.x(),order)y_str=ecdsa.util.number_to_string(p.y(),order)uncompressed=b'\x04'+x_str+y_strreturnuncompressedfrombinance_transactionimportBnbTransaction,NewOrder,address_bytes,BUY,GTE,LIMIT_ORDERsk=ecdsa.SigningKey.from_pem(open('secp256k1-key.pem').read())from_address='bnb100dxzy02a6k7vysc5g4kk4fqamr7jhjg4m83l0'account_number=96025# https://docs.binance.org/api-reference/dex-api/paths.html#apiv1accountaddresssequence_number=888tx=BnbTransaction(account_number,sequence_number)order_id=f'{address_bytes(from_address).hex().upper()}-{sequence_number+1}'tx.add_msg(NewOrder(from_address,order_id,'BNB_TUSDB-888',LIMIT_ORDER,BUY,3500000000,500000000,GTE))print(tx.signing_json())sig=sk.sign_digest(tx.signing_hash())public_key=uncompressed_public_key(sk)tx.apply_sig(sig,public_key)signed_transaction_bytes=tx.encode()print(f'Signed bytes:{signed_transaction_bytes.hex()}')SupportNot all transaction types are supported.
Please consult this table for details.
If you need support, please submit apull request.Message Typeencodedecodefrom_objSend✅✅NewOrder✅✅CancelOrder✅✅Issue✅✅Mint✅✅Burn✅✅Freeze✅✅Unfreeze✅✅TimeLock✅✅TimeUnlock✅✅TimeRelock✅✅Proposal✅✅Vote✅✅ContributingSeeCONTRIBUTING.LicenseLGPLv3
Package: bnbxrate
bnbxrateProvides historical exchange rates USD/BGN for a given date. The main source of the data is Bulgarian National Bank -.Usagebnbxrate'01.01.2020'In this case the provided date was a national holiday, so the result is for the last working day:{'31.12.2019': '1.74099'}The date format should be in '%d.%m.%Y'.InstallationCreate a virtual environment with python3.6+, before running the code.gitclonehttps://github.com/hristo-mavrodiev/bnbxrate.gitcdbnbxrate
pipinstall-rrequirements.txt
pythonsetup.pyinstallLicenseMIT
Package: bnclassify
bnclassify - Probability density fitting.bnclassifyis Python package that originates frombnlearnand is for learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods. Although there are very good Python packages for probabilistic graphical models, it still can remain difficult (and somethimes unnecessarily) to (re)build certain pipelines.bnclassifyfor python (this package) is build on thepgmpypackage and contains the most-wanted pipelines. Navigate toAPI documentationsfor more detailed information.Star thebnlearnrepo if you like it! ⭐️Blog/DocumentationStep-by-step guide for structure learning!Step-by-step guide for knowledge-driven models!bnlearn documentation pages (Sphinx)bnclassifyis Python package that originates frombnlearnlibrary.Examples  and information can be foundat the bnlearn github
Package: bnclient
DisclaimerThis is original Netconf Python Client with my little fix. This code seems to be abandoned and have not been updated for the long time but with my little fix it works with Lenovo RackSwitches. Original code is property of Lenovo and my fix is unofficial but it was raported to Lenovo as a bug.Blade Network Technologies Netconf Python ClientOnly support SSH at present!Requirements:
* Python 2.6 <= version < 3.0
* Paramiko 1.7.4+ (SSH Library)How to install:
* Python setup.py install
Package: bncode
BNCODEA BN code (an initialism for Boon code) is a type of data storage as an image that design for low resolution work with low data quality.
in this version it can be store 32 bit or 4 bytes that can store number from 0 upto 4,294,967,295DesignBN code is detected by a 2-dimensuinal digital image sensor and program.Normal QRcodeBNcode version 1, 8x8 pixelStorage Capacity with version 1Input ModeMax. CapacityNumeric0 - 4,294,967,295Character4 characters (8 bit per char)EncodingThe format information records two things: bit data and ref bit. bit data is your data and bit ref is bit that the scanner will compare with the bit data.border sectiondata sectionmirror blockingcolor black and white refer to 0,1 in binary the decoder will read color on image from top-down,left to rightwhy mirror blocking is importantbecause BNcode store binary directly to image the flipped image with cause a worng data readingDecodingread the encoding section ---Example CodeRead and writefrombncodeimportcreate,scanimportcv2cv2.imwrite("bncode.png",create(123456))# create imageprint(scan(cv2.imread('bncode.png')))# scan imageScan from camerafrombncodeimportcreate,scanimportcv2cam=cv2.VideoCapture(0)whileTrue:c,img=cam.read()# read image from cameraprint(scan(img))# scan imagecv2.waitKey(1)
Package: bnconverter
bnunicodePython converting Bangla <=> Unicode (UTF-8) for Bengali to Bangla.LicenseMPL 2.0Installationpip install bnunicodeExamplefrom bnunicode import UnicodeStreaming

data = UnicodeStreaming()
unicode_bangla_text = 'Avgvi ‡mvbvi evsjv, Avwg ‡Zvgvh় fv‡jvevwm| wPiw`b ‡Zvgvi AvKvk, ‡Zvgvi evZvm, Avgvi c«v‡Y evRvh় evuwk॥'

print(unicode_bangla_text)

result=data.convertBnUniCodeToDecode(unicode_bangla_text)
print(result)
# আমার সোনার বাংলা, আমি তোমায় ভালোবাসি। চিরদিন তোমার আকাশ, তোমার বাতাস, আমার প্রাণে বাজায় বাঁশি॥
toPrint=test.convertBnUniCodeToDecode(result)
print(toPrint)References:https://github.com/sh-sabbir/UnicodeToBijoy
Package: bncutils
This is an essensial package for Bulls and Cows game (https://github.com/EugeneDlg/bncweb)
This package shares functions and configuration for GUI tkinter version and web version of BnC game.
It includes - bnc_lib.py file which contains some functions which are needeed to function BnC game properly; bnc_config contains a default configuration, normally you should not change it.
good_phrases file is used only in GUI tkinter version, it's not needed for the web version.