Saravanan666/pypi-org huggingface dataset:
Package: bme280pi
bme280pi: the BME280 Sensor Reader for Raspberry PiHow to InstallEnable the I2C Interfacesudo raspi-configSelect "Interfacing Options"Highlight the "I2C" option, and activate "Select" (use tab)Answer the question if you'd like the ARM I2C interface to be enabled with "Yes"Select "Ok"RebootFor a walk-through with screenshots see the references below.Install UtilitiesInstallpython-smbusandi2ctools:sudo apt-get update && sudo apt-get install -y python-smbus i2c-toolsThen, shut down your Raspberry Pi:sudo halt. Disconnect your Raspberry Pi power supply.
You are now ready to connect the BME280 sensor.Connect the BME280 sensorInstall This ModuleInstalling With pip (Recommended)You can then install this module by runningpip install bme280piInstalling From SourceIf you want the latest version, you can check out the sources and install the
package yourself:gitclonehttps://github.com/MarcoAndreaBuchmann/bme280pi.gitcdbme280pi
pythonsetup.pyinstallUsing it in your scriptYou can initialize the sensor class as follows:frombme280piimportSensorsensor=Sensor()You can then use thesensorobject to fetch data,sensor.get_data(), which will return a dictionary
with temperature, humidity, and pressure readings.You can also just get the temperature (sensor.get_temperature()),
just the pressure (sensor.get_pressure()), or
just the humidity (sensor.get_humidity()).Note that all commands support user-specified units, e.g.sensor.get_temperature(unit='F'),
orsensor.get_pressure(unit='mmHg').You can e.g. query the sensor every 10 seconds, and add the results to a dictionary, and then
turn that into a pandas DataFrame and plot that (requires matplotlib and pandas):importtimeimportdatetimeimportpandasimportmatplotlib.pyplotaspltfrombme280piimportSensormeasurements={}foriinrange(20):measurements[datetime.datetime.now()]=sensor.get_data()time.sleep(10)measurements=pd.DataFrame(measurements).transpose()plt.figure()plt.subplot(2,2,1)measurements['temperature'].plot()plt.title("Temperature (C)")plt.subplot(2,2,2)measurements['pressure'].plot()plt.title("Pressure (hPa)")plt.subplot(2,2,3)measurements['humidity'].plot()plt.title("Relative Humidity (%)")plt.savefig("Measurements.png")Reporting IssuesPlease feel free to report any issues you encounter at theissue tracker.ReferencesBosch BME280 Data SheetRaspberry-Spy: Using BME280 sensor in python
Package: bme680
BME680https://shop.pimoroni.com/products/bme680The state-of-the-art BME680 breakout lets you measure temperature, pressure, humidity, and indoor air quality.InstallingFull install (recommended):We've created an easy installation script that will install all pre-requisites and get your BME680
up and running with minimal efforts. To run it, fire up Terminal which you'll find in Menu -> Accessories -> Terminal
on your Raspberry Pi desktop, as illustrated below:In the new terminal window type the command exactly as it appears below (check for typos) and follow the on-screen instructions:curlhttps://get.pimoroni.com/bme680|bashManual install:Library install for Python 3:sudopip3installbme680Library install for Python 2:sudopip2installbme680Development:If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository,cdto the library directory, and run:sudopython3setup.pyinstall(orsudo python setup.py installwhichever your primary Python environment may be)In all cases you will have to enable the i2c bus.Documentation & SupportGuides and tutorials -https://learn.pimoroni.com/bme680-breakoutGet help -http://forums.pimoroni.com/c/supportChangelog1.1.1New: constants to clarify heater on/off states1.1.0New: support for BME688 "high" gas resistance variantNew: set/get gas heater disable bitEnhancement: fail with descriptive RuntimeError when chip is not detected1.0.5New: set_temp_offset to calibrate temperature offset in degrees C1.0.4Fix to range_sw_err for extremely high gas readingsConvert to unsigned int to fix negative gas readings1.0.3Merged temperature compensation fix from Bosch's BME680_driver 3.5.31.0.2Fixed set_gas_heater_temperature to avoid i2c TypeError1.0.1Added Manifest to Python package1.0.0Initial release
Package: bme68x
BME68X and BSEC2.0 for Python by pi3gThis Python extension enables you to read measurement data by the BME68X sensor and the BSEC2.0 library from BOSCH.The BME68X sensors by BOSCH Sensortec measure temperature, pressure and humidity.Most importantly the sensor estimates the air pollution by recording the amount of VOCs (Volatile Organic Compounds).With use of the (licensed) BSEC library from BOSCH, this allows for measuring the IAQ (Indoor Air Quality).How to install the extension without BSECpip3installbme68xHow to install the extension with BSECclonethis repoto a desired location on you hard drivedownload the licensed BSEC2.0 libraryfrom BOSCHunzip it into thebme68x-python-library-mainfolder, next to thisREADME.mdopen a new terminal window inside thebme68x-python-library-mainfoldersudopython3setup.pyinstallHow to use the extensionto import in Pythonimportbme68xorfrombme68ximportBME68Xsee PythonDocumentation.md for referenceto test the installation make sure you connected your BME68X sensor via I2Crun the following code in a Python3 interpreterfrombme68ximportBME68X# Replace I2C_ADDR with the I2C address of your sensor# Either 0x76 (default for BME680) or 0x77 (default for BME688)BME68X(I2C_ADDR,0).get_data()For documentation and examples please refer to ourGitHubFor feedback, bug reports or functionality requests send an E-mail tonathan@pi3g.compi3g is an official approved Raspberry Pi reseller, and a Coral Machine Learning Platform (from Google) distribution partner.We take care of all your Raspberry Pi and Coral related hardware and software development, sourcing, accessory and consulting needs!Check outour homepageand file your personal software or hardware request.Also visitour shop.
Package: bme-driver
bme-driverComplete and easy-to-use driver for the Bosch BMP280 and BME280 sensorsInstallationThe package is available onPyPI. Installation is can be done with your favourite package manager. For example:pipinstallbme-driverRelease notes0.1.1: Fix unit of pressure measurement in docstring0.1.0: Initial releaseReferencesBMP280 product pageBME280 product page
Package: bmf
Bundesministerium für Finanzen - Steuer APIPython request wrapper for the BMF-Calculator provided by the Bundesministerium für FinanzenUsagefrombmfimportset_BMF_url,get_taxes# change the url that is queried (e.g. for 2023 or new access code such as `code=ext2024`))>>>set_bmf_url('http://www.bmf-steuerrechner.de/interface/2022Version1.xhtml?code=ext2023&')>>>get_taxes(gross=2500,# gross salarytax_class=1,# Tax class from I-VI as 1..6church=1# Church tax modifierhealth_insurance:int=0,# see BMF website for codeskids:int=0,# How many kids?health_insurance_additional:float=0,# additional tax, e.g. 1.6 (%))dictmitBK: Bemessungsgrundlage für die Kirchenlohnsteuer in CentBKS: Bemessungsgrundlage der sonstigen Bezüge (ohne Vergütung für mehrjährige Tätigkeit)
für die Kirchenlohnsteuer in Cent.BKV: Bemessungsgrundlage der Vergütung für mehrjährige Tätigkeit und der tarifermäßigt
zu besteuernden Vorteile bei Vermögensbeteiligungen für die Kirchenlohnsteuer
in CentLSTLZZ: Für den Lohnzahlungszeitraum einzubehaltende Lohnsteuer in CentSOLZLZZ: Für den Lohnzahlungszeitraum einzubehaltender Solidaritätszuschlag in CentSOLZS: Solidaritätszuschlag für sonstige Bezüge (ohne Vergütung für mehrjährige Tätigkeit in Cent.SOLZV: Solidaritätszuschlag für die Vergütung für mehrjährige Tätigkeit und der tarifermäßigt
zu besteuernden Vorteile bei Vermögensbeteiligungen in CentSTS: Lohnsteuer für sonstige Bezüge (ohne Vergütung für mehrjährige Tätigkeit
und ohne tarifermäßigt zu besteuernde Vorteile bei Vermögensbeteiligungen) in CentSTV: Lohnsteuer für die Vergütung für mehrjährige Tätigkeit und der tarifermäßigt zu
besteuernden Vorteile bei Vermögensbeteiligungen in CentVKVLZZ: Für den Lohnzahlungszeitraum berücksichtigte Beiträge des Arbeitnehmers zur privaten
Basis-Krankenversicherung und privaten Pflege-Pflichtversicherung (ggf. auch die
Mindestvorsorgepauschale) in Cent beim laufenden Arbeitslohn. Für Zwecke der
Lohnsteuerbescheinigung sind die einzelnen Ausgabewerte außerhalb des eigentlichen
Lohnsteuerberechnungsprogramms zu addieren; hinzuzurechnen sind auch die AusgabewerteVKVSONST.VKVSONST: Für den Lohnzahlungszeitraum berücksichtigte Beiträge des Arbeitnehmers zur privaten
Basis-Krankenversicherung und privaten Pflege-Pflichtversicherung (ggf. auch die
Mindestvorsorgepauschale) in Cent bei sonstigen Bezügen. Der Ausgabewert kann auch
negativ sein. Für tarifermäßigt zu besteuernde Vergütungen für mehrjährige Tätigkeiten
enthält der PAP keinen entsprechenden Ausgabewert.LinksBundesministerium für FinanzenDependenciesPython $\geq$ 3.10requests
Package: bmgen
bmgen - Broken Mouse Studios' build solutionDISCLAIMERThis project is currently in it's beta phase!It needs to be cleaned up and does not yet have it's full set of features. You may quickly hit it's limits.You should expect API changes and are welcome to give feedback viahttps://git.brokenmouse.studio/bms/bmgen/issuesFeaturesbuild scripts written in Pythonincremental buildstemporary build directoriescolorful and easy to read outputsimple build commandsInstallationInstall bmgen viapip install bmgenorpython3 -m pip install bmgenBuilding a simple C projectThis example shows a script which builds two files namedmain.candgame.cinto a binary namedmygamewithSDL2.The directory structure created by bmgen will look like this:- bin/
  - dbg/
    - obj/
      - main.o
      - game.o
    - mygameThe following is a breakdown of the script.First import theclangcommand:frombmgen.commands.clangimportclangThen set the base output directory and tell bmgen to create the base, variant and theclangcommand's object directory:inst.base_output_dir='bin'inst.update_output_dir()clang.update_object_dir()Build the program viaclang:clang('mygame',['main.c','game.c'],['sdl2'])The finalbmgen.pylooks like this:frombmgen.commands.clangimportclanginst.base_output_dir='bin'inst.update_output_dir()clang.update_object_dir()clang('mygame',['main.c','game.c'],['sdl2'])Building the program is now as easy as runningbmgenin your terminal!License© Broken Mouse Studios 2023https://brokenmouse.studioThis software and it's accompanying files are licensed under theMozilla Public License Version 2.0.For the license's contents, seeLICENSEor go tohttps://mozilla.org/MPL/2.0/.By submitting patches or merge/pull requests, you grant Broken Mouse Studios the permission to use, copy, modify, distribute, publish and/or relicense the contributions you have made to the project.
Package: bmg-sms-gateway
BMG SMS GATEWAYThis package can be used to integrate python programs or scripts
with the BMG SMS gateway providedeSolutions ZimbabweInstallationTo can install the bmg_sms_gateway package open shell or terminal and run:pip install bmg-sms-gatewayUsageSend Single SMS :To send a single message use the function below. It will return response
code 200 if the message has been sent. The function accepts three
parameters which are username,password and body. The body is a
dictionary and it should contain all the keys and shown on the example
below.frombmg_sms_gatewayimportsend_single_smsusername='username'password='password'#Message bodybody={"originator":"Originator","destination":"Destination Mobile #","messageText":"Message to be sent","messageReference":"Your unique message identifier","messageDate":"Message date","messageValidity":"Message Validity","sendDateTime":"Send Datetime"}print(send_single_sms(username,password,body))For more information regarding usage of this package visit the packagehomepage:LicenseThe project is licensed under the MIT license.Change Log0.0.9(12-February-2022)
Package: bmi260
BMI260/BMI270 I2C Python Implementation - Version: 0.4.5Bare bones BMI260/BMI270 I2C Python implementation. This was a project for my practical phase at my University and my first time working hands on with IMUs.ForkAdded BMI260 supportInstallationThe package isavailable on pypi.org.You can install this package using this command:pip3 install bmi260For a Raspberry Pi Setup add/change this line in /boot/config.txt to your desired baudrate:dtparam=i2c_baudrate=400000Reboot your Raspberry Pi after applying the change.UsageMake sure these lines are connected: GND, 3V3, SDA, SCLIf you are using the SparkFun SPX-17353 BMI270 Breakout Board, you can easily connect them using a 1mm 4-pin JST connector cable. (example: Qwiic cables)Make sure that the device is available at0x68or0x69i2c address by running this command:i2cdetect -y 1The BMI270 requires a config load. This initialization step is necessary to be able to use all its functions.load_config()A full power cycle is necessary if you want to load the config again.Check outexamplesfor more information.Tested with:Ubuntu 22.04.2 LTSRaspbian 10 - Buster (32 Bit)Dependenciesrequires Python >= 3.7smbus2(auto installed)Manual installation:pip3 install smbus2FunctionalityBMI270 class integrationload config file into BMI270/BMI260write/read registersa few other functions (seeBMI270.py)Credits & Related linksserioeseGmbH/BMI160Sean Abraham/chromiumoslefuturisteBMI270 Datasheetsmbus2 docsTroubleshooting-bash: pip3: command not foundsudo apt install python3-pip
Package: bmi270
BMI270 I2C Python Implementation - Version: 0.4.3Bare bones BMI270 I2C Python implementation. This was a project for my practical phase at my University and my first time working hands on with IMUs.InstallationThe package isavailable on pypi.org.You can install this package using this command:pip3 install bmi270For a Raspberry Pi Setup add/change this line in /boot/config.txt to your desired baudrate:dtparam=i2c_baudrate=400000Reboot your Raspberry Pi after applying the change.UsageMake sure these lines are connected: GND, 3V3, SDA, SCLIf you are using the SparkFun SPX-17353 BMI270 Breakout Board, you can easily connect them using a 1mm 4-pin JST connector cable. (example: Qwiic cables)Make sure that the device is available at0x68or0x69i2c address by running this command:i2cdetect -y 1The BMI270 requires a config load. This initialization step is necessary to be able to use all its functions.load_config()A full power cycle is necessary if you want to load the config again.Check outexamplesfor more information.Tested with:Ubuntu 22.04.2 LTSRaspbian 10 - Buster (32 Bit)Dependenciesrequires Python >= 3.7smbus2(auto installed)Manual installation:pip3 install smbus2FunctionalityBMI270 class integrationload config file into BMI270write/read registersa few other functions (seeBMI270.py)Credits & Related linksserioeseGmbH/BMI160lefuturisteBMI270 Datasheetsmbus2 docsTroubleshooting-bash: pip3: command not foundsudo apt install python3-pip
Package: bmi-batch-process
code-20210626-jagadeeshreddyBody Mass Index Batch ProcessorThis Package is used to calculate BMI and categorise the BMI in to 6 classes (i.e, Under Weight,Normal Weight,Over Weight,Moderately Obese,Severely Obese,Very Severely Obese) along with their health risks.DevelopmentPythonWritten code to take input as json file and dump results in to a new json fileUsing Pytest for checking the functionality of methods for every updateUsing Github Actions to publish the package.Installationpip install bmi-batch-processUsageimport BodyMassIndex packagefromBMI.bmi_processerimportBodyMassIndexCreate an object for the classobj=BodyMassIndex()Input file example# the input must be an iterable of json objects[{"Gender":"Male","HeightCm":171,"WeightKg":96},{"Gender":"Male","HeightCm":161,"WeightKg":85},...]Example:processed_results=obj.process_start('input_file.json','output_path.json')Task 2Counting No of OverWeight people can be done by the followingimport count_overweight functionfromBMI.count_overweightimportcount_overweightgive the processed records file as inputcount_overweight('path of processed records')#prints the no of over weight peopleLicenseGNU v3
Package: bmicro
This is a Python library for the post-measurement analysis of
Brillouin microscopy data.DocumentationThe documentation, including the code reference and examples, is available atbmicro.readthedocs.io.Installationpip install bmicroFor more options, please check out thedocumentation.ContributingPlease read ourinformation for developers.How to citeIf you use BMicro in a scientific publication, please cite it with:> Raimund Schlüßler and others (2023), BMicro version X.X.X: Python program for the evaluation of Brillouin microscopy data sets [Software]. Available athttps://github.com/BrillouinMicroscopy/BMicro.
Package: bmi-ilamb
[![Build Status](https://travis-ci.org/permamodel/bmi-ilamb.svg?branch=master)](https://travis-ci.org/permamodel/bmi-ilamb)[![Code Health](https://landscape.io/github/permamodel/bmi-ilamb/master/landscape.svg?style=flat)](https://landscape.io/github/permamodel/bmi-ilamb/master)[![Coverage Status](https://coveralls.io/repos/permamodel/bmi-ilamb/badge.svg?branch=master)](https://coveralls.io/r/permamodel/bmi-ilamb?branch=master)# bmi-ilambA Basic Model Interface (BMI)for version 2 (Python)of the International Land Model Benchmarking Project (ILAMB)benchmarking toolkit.* The [journal article](http://dx.doi.org/10.1016/j.cageo.2012.04.002)that describes BMI* ILAMB [home page](https://www.ilamb.org/)* ILAMB [source code repository](https://bitbucket.org/ncollier/ilamb)* ILAMB [documentation](http://climate.ornl.gov/~ncf/ILAMB/docs/index.html)## InstallationClone and install **bmi-ilamb** into a Python distribution with$ git clone https://github.com/permamodel/bmi-ilamb$ cd bmi-ilamb$ python setup.py installILAMB itself must also be installed;follow the [instructions](http://climate.ornl.gov/~ncf/ILAMB/docs/install.html)in the ILAMB documentationfor downloading and installing ILAMBinto the same Python distribution as **bmi-ilamb**.## UseTwo configuration files are needed:one for ILAMB, the other for the BMI.A description of the ILAMB configuration file can be foundin the ILAMB documentation.The BMI configuration file contains valuesthat are passed to ILAMB's `ilamb-run` script.Examples ([ilamb.cfg](https://github.com/permamodel/bmi-ilamb/blob/master/bmi_ilamb/data/ilamb.cfg)and[bmi_ilamb.yaml](https://github.com/permamodel/bmi-ilamb/blob/master/bmi_ilamb/data/bmi_ilamb.yaml),respectively)are given in the **data** directoryof this repository.In a Python session, execute:```pythonfrom bmi_lamb import BmiIlambm = BmiIlamb()m.initialize('/path/to/bmi_ilamb.yaml')m.update()  # calls the ilamb-run scriptm.finalize()```The path to the BMI configuration file can be relative or absolute.The result:```bash$ ls -F_build/ log```View the run log with:$ cat logDisplay ILAMB's graphical output with a web browser:$ firefox _build/index.html
Package: bmi-kalculator
Calculates body mas index (BMI) based on a given set of parameters such as weight, height, gender, age and life-stylepythonsetup.pysdistbdist_wheeluploadpipinstalltwine

twineupload--repository-urlhttps://test.pypi.org/legacy/dist/*
twineuploaddist/*

python-mtwineupload--repositorytestpypidist/*
python-mtwineupload--repositorypypidist/*

pipinstall-ihttps://test.pypi.org/simple/--no-depsbmi-calculator-0.1.0Usage:importbmi_kalculatorasbmi>>bm=bmi.PersonForBMI(25,150,134,'female')>>bm.calculate_bmi()>>bm.conclusions()# ORfrombmi_kalculatorimportPersonForBMIasbmi>>bm=bmi(23,45,56,'f')>>bm.calculate_bmi()>>bm.conclusions()
Package: bminference
BMInferenceEnglish |简体中文BMInference (Big Model Inference) is a low-resource inference package for large-scale pretrained language models (PLMs).Low Resource.Instead of running on large-scale GPU clusters, the package enables the running of the inference process for large-scale pretrained language models on personal computers!Open.Model parameters and configurations are all publicly released, you don't need to access a PLM via online APIs, just run it on your computer!Green.Run pretrained language models with fewer machines and GPUs, also with less energy consumption.DemoHere we provide an online demo based on the package with CPM2.InstallFrom source:python setup.py installFrom docker:docker build . -f docker/base.DockerfileHere we list the minimum and recommended configurations for running BMInference.Minimum ConfigurationRecommended ConfigurationMemory16GB24GBGPUNVIDIA GeForce GTX 1060 6GBNVIDIA Tesla V100 16GBPCI-EPCI-E 3.0 x16PCI-E 3.0 x16Quick StartHere we provide a esay script for using BMInference.Firstly, import a model from the model base (e.g. CPM1, CPM2, EVA2).importbigmodelscpm2=bigmodels.models.CPM2()Then define the text and use the<span>token to denote the blank to fill in.text="北京环球度假区相关负责人介绍，北京环球影城指定单日门票将采用<span>制度，即推出淡季日、平季日、旺季日和特定日门票。<span>价格为418元，<span>价格为528元，<span>价格为638元，<span>价格为<span>元。北京环球度假区将提供90天滚动价格日历，以方便游客提前规划行程。"Use thegeneratefunction to obtain the results and replace<span>tokens with the results.forresultincpm2.generate(text,top_p=1.0,top_n=10,temperature=0.9,frequency_penalty=0,presence_penalty=0):value=result["text"]text=text.replace("<span>","\033[0;32m"+value+"\033[0m",1)print(text)Finally, you can get the predicted text. For more examples, go to theexamplesfolder.PerformancesHere we report the speeds of CPM2 encoder and decoder we have tested on different platforms. You can also runbenchmark/cpm2/encoder.pyandbenchmark/cpm2/decoder.pyto test the speed on your machine!GPUEncoder Speed (tokens/s)Decoder Speed (tokens/s)NVIDIA GeForce GTX 10605331.6NVIDIA GeForce GTX 1080Ti120012ContributingLinks to the user community and contributing guidelines.LicenseThe package is released under theApache 2.0License.
Package: bmio
BMIOBoring Man Rcon Scripting made simple# Create a Bmioapp=Bmio('localhost',42070,'admin')# Register a handler@app.handler(RconEvent.log_message)defdo_something(some_data:log_message):print(some_data.Message)# Run it!app.run()Voila! You now have an RCON bot that prints out the log messagesLet BMIO handle the type conversions and connection logic, so you have more time to create fun scripts!FeaturesEnums for just about every ID type, so you don't have write magic number checks in your codeAutomatically retry if one of the handlers failsConfigure the level of concurrency for the size of the serverCallback functions for handling data requestsSending commands has never been easier!What's NextUse pydantic to coerce typesCompletion of type coercions: Flag data, Team information still needs to be completedGamestate stores for gamemode specific BmiosFinish implementation of scoreboard objectpypi publish
Package: bmi-package
code-20210109-saurabhkharePython BMI Calculator Offline Coding Challenge V7Objective :Read the JSON raw data and created new fields for BMIFind out the total number of overweight people.Prerequisites:1.Use bmi_package
2.Python Libraries needed : pandas,json,setuptoolsUsage :A sample usage has been shown in run.py where:Raw data is read and updated Table is returned.Total number of overweight people is returned.Validation test cases are also taken care here.
Package: bmipy
Python bindings for the CSDMSBasic Model Interface.InstallInstallbmipywithpip,$pipinstallbmipyIf you’re using Anaconda, you can also installbmipywith conda from theconda-forgechannel,$condainstallbmipy-cconda-forgeTo build and installbmipyfrom source,$gitclonehttps://github.com/csdms/bmi-python$cdbmi-python$pipinstall.UsagefrombmipyimportBmiclassMyBmi(Bmi):definitialize(self,config_file):# Your implementation goes hereA complete sample implementation is given in thehttps://github.com/csdms/bmi-example-pythonrepository.