Saravanan666/pypi-org huggingface dataset:
Package: blue-prints
Welcome to Blueprints, the cornerstone repository for civil engineering professionals and enthusiasts alike. Blueprints is a collaborative, open-source initiative designed to serve as a comprehensive library of code, tools, and best practices, aiming to streamline and innovate the workflows within the built environment sector.VisionOur vision with Blueprints is to create an accessible, reliable, and community-driven resource that supports engineers, and developers in their daily challenges. By harnessing the collective expertise of the industry, Blueprints strives to pave the way for a future where collaboration and open source can drive the field of civil engineering to new heights.MissionOur mission is to:Foster a community where sharing knowledge and best practices is the norm, not the exception.Provide a solid foundation of code and documentation that adheres to the highest quality standards (100% code coverage).Offer a robust suite of tools and libraries that encapsulate common and advanced engineering tasks.InstallationFor the last release:pipinstallblue-printsFor the actively developed version:pipinstallgit+https://github.com/Blueprints-org/blueprints.gitDocumentation is available atblueprints.readthedocs.io.Quick Reference to Blueprint's ObjectsThis table serves as a quick navigator to the key elements of the code within Blueprints, offering immediate links to its equations, tables, and
figures for streamlined access and reference.DocumentDescriptionFormulasTablesFiguresNEN-EN 1992-1-1+C2:2011Eurocode 2: Design of concrete structures – Part 1-1: General rules and rules for buildings30438104NEN-EN 1993-1-1+C2+A1:2016Eurocode 3: Design of steel structures – Part 1-1: General rules and rules for buildings1082028NEN 9997-1+C2:2017Eurocode 7: Geotechnical design of structures - Part 1: General rules881125ContributingContributions are very welcome. To learn more, see theContributor Guide.LicenseBlueprints is free and open source software. Distributed under the terms of theLGPL-2.1 license.SupportIf you have found a bug 🐛, or have a feature request ✨, raise an issue on the
GitHubissue tracker.
Alternatively you can get support on thediscussionspage.DisclaimerBlueprints is an open source engineering tool that continues to benefit from the collaboration of many contributors. Although efforts have been
made to ensure the that relevant engineering theories have been correctly implemented, it remains the user's responsibility to confirm and accept
the output. Refer to thelicensefor clarification of the conditions of use.
Package: bluepy3
bluepy3This is a Python3 library to allow communication with Bluetooth Low Energy devices on Linux.ATTENTION: If you are reading this onPyPithen note that the formatting below may look terrible. In that case, visit the project's homepage to read the correctly formattedREADME.mdfile.RequirementsPlease be aware that this is not a beginners tool. Some experience with Linux CLI, Python3 and BT/BLE is expected.Development of this package is done in Python 3.9. The package is considered forwards compatible at least upto Python 3.11 and probably also beyond. Backwards compatibility is not guaranteed; if it works on Python 3.7 or before consider yourself lucky.Python versions that are end-of-lifeare not supported.The package has been extensively tested on a Raspberry Pi 3 Model B+ (aarch64) with Debian GNU Linux 11 w/ Python 3.9.* AND with Debian GNU Linux 12 /w Python 3.11.*.The code needs an executablebluepy3-helperwhich is compiled from C source automatically
if you use the recommended pip installation method (see below). Otherwise,
you can rebuild it using the Makefile in thebluepy3directory.Thebluepy3package comes installed with lists of compatible UUIDs inuuids.json.
If, for whatever reason, you want to rebuild those lists, then the Python3 modulesbs4,requestsandlxmlneed to be installed.python3 -m pip install bs4 lxml requestsThen find where the bluepy3 package is installed and rebuilduuids.jsonthus:cd some_path_name/site-packages/bluepy3/
make uuids.jsonInstallationTo install the currently released version, on most Debian-based systems:sudo apt-get install libglib2.0-dev libbluetooth-dev
python3 -m pip install --upgrade bluepy3Then test the installation using:sudo setcap cap_net_raw,cap_net_admin+ep $(find . -name bluepy3-helper)
blescan -n
sudo hcitool lescanThis should list the (compatible) Bluetooth devices in range.It may be considered to have command-line tools from BlueZ available for debugging.TroubleshootingMake sure the user is part of thebluetoothgroup.
Usehciconfigto confirm that the device actually exists. This should output something like:hci0:    Type: Primary  Bus: UART
BD Address: B8:27:EB:90:4F:F5  ACL MTU: 1021:8  SCO MTU: 64:1
UP RUNNING
RX bytes:15332515 acl:452626 sco:0 events:333729 errors:0
TX bytes:7376962 acl:438075 sco:0 commands:72113 errors:0Usehciconfig [hci0] upto activate the BT device if the above returns an error.DocumentationFor documentation you are referred tothe documentation that comes withbluepy.ContributingYour assistance to improve this package is greatly appreciated.
SeeCONTRIBUTINGfor details.LicenseSeeLICENSEAcknowledgementsThis work builds on previous work byIan Harveyand uses code
by theBlueZ project(not a https site) and the more
up-to-dateBlueZ on GitHubOriginal source code can be found at:https://github.com/IanHarvey/bluepy
Package: bluepyentity
NEXUS Productivity Layer, helps to:access NEXUS through the command line interfaceprovide convenience functions to simplify common operations using NEXUSInstallationFrom PyPi:pipinstallbluepyentityUsage and examples: Command Line InteractionToken:Using thekeyring, a NEXUS token can be stored to reduce the number of required authentication steps:token='copy your token here'bluepyentitytokenset--token$tokenOne can see the contents of the token with:bluepyentitytokendecodeOne can get the token with (note that this can be piped to other apps that need the token, or saved as an environment variable):bluepyentitytokenget# save as environment variable:token=`bluepyentitytokenget`Info:One can look at the associated information of an identifier with:bluepyentityinfoSOME_IDAcknowledgementsThe development of this software was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.This project/research has received funding from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 785907 (Human Brain Project SGA2).LicenseBlue Brain Entity is licensed under the terms of the GNU Lesser General Public License version 3,
unless noted otherwise, for example, external dependencies.
Refer toCOPYING.LESSERandCOPYINGfor details.Copyright (c) 2019-2022 Blue Brain Project/EPFLThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
as published by the Free Software Foundation.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.
Package: blueqat-classicalbit-backend
blueqat-classicalbit-backendBlueqat backend for classical bit (Only X gate, CX gate, CCX gate and measurement are available)UsagefromblueqatimportCircuitimportblueqat_classicalbit_backendprint(Circuit().x[0].cx[0,1].ccx[0,1,2].m[:].run_with_classical())
Package: blueqat-cloud
Blueqat cloud SDK (bqcloud)Client SDK for Blueqat cloud.Installpip install blueqat-cloudHandling API keyRegister APIimportbqcloudapi=bqcloud.register_api("Your API key here")Your API key is stored to$HOME/.bqcloud/api_key.
If you don't want to save API key, use insteads following codes.importbqcloudapi=bqcloud.api.Api("Your API key here")Load APIOnce API key is saved, the key can be loaded from file.importbqcloudapi=bqcloud.load_api()GateCreate a taskfromblueqatimportCircuitfrombqcloudimportload_api,Deviceapi=load_api()task=api.execute(Circuit().h[0].cx[0,1],Device.IonQDevice,10)Show a statusprint(task.status())Update a tasktask.update()Wait a task# Wait until task is done. It may takes so long time.result=task.wait()print(result.shots())# Wait 10 sec. If complete, result is returned, otherwise, None is returned.result=task.wait(timeout=10)ifresult:print(result.shots())else:print("timeout")Get fetched result again# Once updated or waited after task completed, task.result() returns the result.result=task.result()ifresult:print(result.shots())else:print("result is not fetched")List taskstasks=api.tasks()print(list(tasks))iftasks[0].result()isnotNone:print(tasks[0].result().shots())Annealingimportbqcloudapi=bqcloud.load_api()api.annealing([[-1,0],[0,0.5]],5,10)
Package: blueqat-gk-backend
Blueqat Gottesman-Knill backendBlueqat backend for Clifford gates (X, Y, Z, H, S, S†, CNOT, CZ) and measurementUsagefromblueqatimportCircuitimportblueqat_gk_backendprint(Circuit().x[0].cx[0,1].ccx[0,1,2].m[:].run_with_gk())
Package: bluequbit
BlueQubit Python SDKQuick StartRegister onhttps://app.bluequbit.ioand copy the API token.Install Python SDK from PyPI:pip install bluequbitAn example of how to run a Qiskit circuit using the SDK:import qiskit

    import bluequbit

    bq_client = bluequbit.init("<token>")

    qc_qiskit = qiskit.QuantumCircuit(2)
    qc_qiskit.h(0)
    qc_qiskit.x(1)

    job_result = bq_client.run(qc_qiskit, job_name="testing_1")

    state_vector = job_result.get_statevector() 
    # returns a NumPy array of [0. +0.j 0. +0.j 0.70710677+0.j 0.70710677+0.j]The packages is tested extensively on Python 3.8.Full referencePlease find detailed reference athttps://app.bluequbit.io/sdk-docs.Questions and IssuesPlease submit questions and issues toinfo@bluequbit.io.
Package: bluerobotics-navigator
Navigator LibraryThis library serves as the entry point for applications that want to useNavigatorwith Python or C++.For Rust 🦀, please check thenavigator-rs library.FeaturesLEDs (User and RGB) accessPWM (Pulse Width Modulation) controlADC (Analog Digital Converter) readingMagnetometer / Accelerometer / Gyroscope samplingTemperature readingPressure estimation📖 Documentation:PythonC++ (WIP)Check the examples folder for furtherinformation and guide.🐍 Python:Install the library.pipinstallbluerobotics_navigatorWith that, you'll bee able to run the examples, or creating your own:#!/usr/bin/env pythonimportbluerobotics_navigatorasnavigatorprint("Initializing navigator module.")navigator.init()print("Setting led on!")navigator.set_led(navigator.UserLed.Led1,True)print(f"Temperature:{navigator.read_temp()}")print(f"Pressure:{navigator.read_pressure()}")print(f"Data ADC Channels:{navigator.read_adc_all().channel}")print(f"Data ADC Channel: 1 ={navigator.read_adc(navigator.AdcChannel.Ch1)}")data=navigator.read_mag()print(f"Magnetic field: X ={data.x}, Y ={data.y}, Z ={data.z}")🛠️ C++:Follow our example folder as a template to create your own project. To compile and run the examples, you can run:cdexamples/cpp
cmake-Bbuild-DCMAKE_BUILD_TYPE=Debug&&cmake--buildbuild--configDebug--parallel# Run one of the examples./build/simple
./build/rainbowFor an example of C++ code, you can check the following code:#include"bindings.h"#include<stdint.h>#include<stdio.h>#include<string.h>#include<unistd.h>intmain(){printf("Initiating navigator module.\n");init();printf("Setting led on!\n");set_led(UserLed::Led1,true);printf("Temperature: %f\n",read_temp());printf("Pressure: %f\n",read_pressure());ADCDataadc=read_adc_all();printf("Reading ADC Channels: 1 = %f, 2 = %f, 3 = %f, 4 = %f\n",adc.channel[0],adc.channel[1],adc.channel[2],adc.channel[3]);printf("Data ADC Channels: 1 = %f\n",read_adc(AdcChannel::Ch1));AxisDatamag=read_mag();printf("Magnetic field: X = %f, Y = %f, Z = %f\n",mag.x,mag.y,mag.z);return0;}Note: The CMakeLists_Standalone.txt is a self-contained CMake project file example. Users can use it as a template to create their standalone projects based on the navigator-lib.🏗️ Supported ArchitecturesCurrently, the library supportsarmv7andaarch64architectures, which are the official defaults forBlueOS. The library also provides C++.sofiles for bothgnuandmusl.For more detailed information, including installation instructions, schematics, and hardware specifications, please refer to thenavigator hardware setup guide.
Package: bluerobotics-tsys01
#tsys01-pythonA python module to interface with the TSYS01 temperature sensor. Tested on Raspberry Pi 3 with Raspbian.The python SMBus library must be installed.sudo apt-get install python-smbus#Usageimport tsys01###TSYS01(bus=1)sensor = tsys01.TSYS01() # Use default I2C bus 1
sensor = tsys01.TSYS01(0) # Specify I2C bus 0###init()Initialize the sensor. This needs to be called before using any other methods.sensor.init()Returns true if the sensor was successfully initialized, false otherwise.###read()Read the sensor and update the temperature.sensor.read()Returns True if read was successful, False otherwise.###temperature(conversion=UNITS_Centigrade)Get the most recent temperature measurement.sensor.temperature() # Get temperature in default units (Centigrade)
sensor.temperature(ms5837.UNITS_Farenheit) # Get temperature in FarenheitValid arguments are:tsys01.UNITS_Centigrade
tsys01.UNITS_Farenheit
tsys01.UNITS_KelvinReturns the most recent temperature in the requested units, or temperature in degrees Centigrade if invalid units specified. Call read() to update.
Package: blueshell
Blue ShellBlue Shell is a AI Chat Shell for local service. 0.0.1 version support ollamaInstallationpip install blueshellUsageAt simplest, runpython-mblueshell.shell-m"codellama"If ollama isn't listening default port, for example 11435. we could pass a url parameter like this:python-mblueshell.shell-m"codellama"--urlhttp://127.0.0.1:11435More options could run help:$python-mblueshell.shell--help
usage:BlueShell[-h][--urlURL][-pPROMPT][-mMODEL][-f{markdown,plain,json}][-sSYSTEM]AAIassistantforlocalaiservice

options:-h,--helpshowthishelpmessageandexit--urlURL-pPROMPT,--promptPROMPT-mMODEL,--modelMODEL-f{markdown,plain,json},--format{markdown,plain,json}-sSYSTEM,--systemSYSTEM

PoweredByPythonYou can list all models in ollama:$python-mblueshell.listList has a option is url:$python-mblueshell.list--urlhttp://127.0.0.1:11435What's New0.0.1support ollama0.0.2document typo0.0.3print feedback as markdown0.0.4fixed dependencies miss0.0.5add list commandadd format argumentC-c interrupt repl and continueImproved User Experience0.0.6support json format pretty0.0.7save history in ~/.blueshell_history
Package: blueshift
blueshiftQuickly create large amounts of unique serial numbers.Forked fromJosephTLyons/andromedaInstallationInstall blueshift with pip:pip install blueshiftOr, download blueshifthereUsageTo use blueshift in your projects, import it like this:fromblueshiftimportgenerate,get_serials#or just 'import blueshift'Creating Unique Serial NumbersUsing blueshift is very easy and simple. There are only two functions you need to know to start using blueshift. These functions are:generate()get_serials()Using generateUsinggenerate()is very simple.Simply call thegenerate()function#your codegenerate(10,10)# generate() has two mandatory parameters: number_of_serials, length_of_serials#more of your codegenerate()takes two mandatory parameters,number_of_serials(the number of serials you want to generate) andlength_of_serials(how many characters you want each to contain), as well as some optional parameters which control which types of character that the serials will contain. The optional parameters are:use_numberscontrols if there will be numbers in the serialsuse_lowercasecontrols if there will be lowercase letters in the serialsuse_uppercasecontrols if there will be uppercase letters in the serialsuse_symbolscontrols if there will be symbols in the serialsFor example, if you wanted to have serials that do not contain symbols, then you would call thegenerate()function like this:generate(10,10,use_symbols=False)In this example, 10 serials which contained 10 characters would be produced.Using get_serialsget_serials()takes no parameters. It only returns the serials created bygenerate()Example:generate(10,10)get_serials()In this example,generate()was called to create 10 serials with 10 characters in them. Thenget_serials()was called to return the serials in an array.Pitfalls to be Aware ofbluehift does not care if you choose settings that result in a very low pool of
license combinations.  You should be aware of this.  If you rungenerate()with the following options:generate(1000,4,use_uppercase=False,use_lowercase=False,use_symbols=False)the output will be:['9444','9474','9494','9464','9484','9434','9424','9404','9414','9454','9244','9274','9294','9264','9284','9234',...]Notice that the licenses are fairly similar.  Also, note that it would be fairly
easy to guess a serial number.  The probability that a random guess would be an
actual serial number is1000/(10^4) = 0.1.  It is up to the user to understand
this and adjust the settings to increase the complexity of the output and
decrease the chances of guessing a license number.  Using the example from
earlier with1000serial numbers of length20using all symbols, the
probability that a random guess would be an actual serial number is1000/(62^20) = 1.4196007e-33.
Package: bluesky
Bluesky — An Experiment Specification & Orchestration EngineThe Bluesky Python Package is an experiment specification and orchestration engine.Specify the logic of an experiment in a high-level, hardware-abstracted way.First-class support for adaptive feedback between analysis and acquisition.Data is emitted in a streaming fashion in standard Python data structures.Pause/resume, robust error handling, and rich metadata capture are built in.Bluesky Documentation.The Bluesky Project enables experimental science at the lab-bench or facility scale. It is a collection of Python libraries that are co-developed but independently useful and may be adopteda la carte.Bluesky Project Documentation.
Package: bluesky-adaptive
Tools for writing adaptive plansFree software: 3-clause BSD licenseDocumentation:https://bluesky.github.io/bluesky-adaptiveFeaturesAdaptive harness for lockstep agents to interact with the RunEngine.Base classes for developing distributed agents to interact with the RunEngine Manager through Queue Server.Example agents using optional requirements (BoTorch, GPyTorch, Scikit Learn).Server for running managed agents with a FAST API.Adjudicators for acting as meta-agents that consume suggestions from many agents and gatekeep the Queue Server.
Package: bluesky-browser
A library of Qt widgets for searching saved bluesky data and viewing document
streams either live or from disk.This is a prototype that may be fully rewritten, abandoned, or moved into other
libraries.Launching the demoCreate a custom conda environment.condacreate-nbluesky_browserpython=3\blueskyjsonschemamatplotlibophydpyqt\pyzmqqtpysuitcase-jsonltornadotraitlets\-clightsource2-tagcondaactivatebluesky_browserClone and install.gitclonehttps://github.com/NSLS-II/bluesky-browsercdbluesky-browserpipinstall-e.Run the demo.bluesky-browser--demoThe above generates example data in a temporary directory and launches a Qt
application to browse that data. It supposes there are two catalogs of data,abcandxyz, which could be from two instruments or perhaps “raw” data
and “processed” data from the same instrument. The catalogs may be searched by
date range or any custom Mongo query. Clicking on a search result pulls up a
new tab with a more detailed view. There are two viewing areas to facilitate
comparing data. Right-click and drag a tab to move it between areas.To customize and extend this, generate a configuration filebluesky-browser--generate-configand edit it. Thebluesky-browserwill automatically discover and apply the
configuration file if it located in the current directory wherebluesky-browseris run. (In the future we will add a proper search path
with other standard locations.)Intended ScopeSearch saved data from any databroker Catalog (backed by MongoDB or JSONL or
….).View and compare data from runs. Use “hints” as defaults to guide how to view
a given run, and let the user adjust from there.Perform basic plot manipulations, not rising to the level of a full dataanalysisGUI (e.g. no nonlinear curve-fitting) but enabling some
interactive tuning to provide a useful view of the data.View live data streaming in from the RunEngine (via some message bus).Be extensible, providing for the possibility of views that are specific to a
beamline or instrument.Current FeaturesSearch multiple Catalogs (e.g. multiple beamlines) for saved data and sort
search results.View selected search results in individual tabs or “over-plotted” in one tab.View Header, baseline readings, and line plots from saved or streaming data.“Over-plot” arbitrary groups of Runs, including saved data, streaming data,
or a mix of both.RoadmapGet feature parity with Best-Effort Callback.TableGridPeakStatsAdd image stack viewer.Enable user to change what is plotted interactively. (The hints becomes just
adefault.)Add a way to run just the viewer part against live data (from RE).Add a “Summary” widget to the top of the Header tab.Add integration with suitcase for file export, starting with CSV.Add context menus (right click) as an alternative way to do overplotting,
etc.Support “progressive search”, iteratively refining search results.
Package: bluesky-cartpole
Train a cartpole agent with bluesky and ophyd!Free software: 3-clause BSD licenseInstallpython3 -m venv venv
source venv/bin/activate
pip install --upgrade pip wheel
git clone git@github.com:bluesky/bluesky-cartpole.git
cd bluesky-cartpole
pip install -e .Requirementsbluesky-carpole requires a running MongoDB server.Runbluesky-cartpole –agent-name ppo –episode-count 100
Package: bluesky-cmds
bluesky-cmdsA qt-based graphical client forbluesky-queueserverwith a focus on coherent multidimensional spectroscopy in the Wright Group.installationInstall the latest released version from PyPI:$python3-mpipinstallbluesky-cmdsconda-forge and separately installable versions coming soon!Useflitto install from source.$ git clone https://github.com/wright-group/bluesky-cmds.git
$ cd bluesky-cmds
$ flit install -sconfigurationbluesky-cmds requires access to two ports:bluesky re-managerbluesky zmq proxyBy default, bluesky-cmds uses the default ports on localhost.
This works for most applications.
If you require alternatives, configure bluesky-cmds with the following command:$bluesky-cmdsedit-configThis will open atomlfile which you must format as follows:[bluesky]
re-manager = "localhost:60615"
zmq-proxy = "localhost:5568"The default values are shown above.usageFirst start bluesky re-manager and zmq-server.
You may wish to usebluesky-in-a-box.
Then start bluesky-cmds.Use the queue tab to add or change plans on the queueserver.
Note that bluesky-cmds is designed for usage withwright-plans.
wright-plans are specialized for coherent multidimensional spectroscopy.Use the plot tab to watch raw data streaming from bluesky.Note that direct hardware interaction or configuration is not supported by bluesky-cmds.
This application is only for interacting with the queueserver.
You may be interested in yaqc-qtpy.citationThis project is archived usingZenodo.
Please use DOI: 10.5281/zenodo.1198910 to cite bluesky-cmds.