Saravanan666/pypi-org huggingface dataset:
Package: brickblock
Brickblock: A fun visualisation library for those that like boxesThis is a small library that uses blocks in matplotlib's visually appealing 3D extension - and aims to be the 'seaborn of matplotlib-3D'.Core abstractionsAt the centre of Brickblock is theSpace. ASpacerepresents a 3D cartesian coordinate space. It contains objects, and when a user wants a visualisation, they render the current state of theSpace- the rendered state is known as aScene.There are objects used for composing visualisations in Brickblock, such as theCube. Objects can be added into theSpacewith a degree of control over their visual presentation: transparency, colour, line widths. They can also be mutated - and can be selected by name, base vector, or various IDs.Having these abstractions allows programmers to more easily create animated 3D visualisations, like GIFs. You define aSpace, adding and mutating objects to evolve the state, and theSceneobjects are persisted to enable sequences of images for use in GIFs.ContributingContributions are more than welcome! There is a very rough TODO intodo.mdthat outlines both short- and long-term goals for the library. However, there are some rules:Always follow thecode of conductAll the tests should be passing with your changeExplain your change (PR template coming soon)Add relevant tests and docstringsFormat your changes withblack
Package: brickfront
IntroBrickfront is a basic interface for working through Brickset’s API. It should be pretty simple to use, though I do have the code reference if there’s anyhing too difficult.Installation:pipinstallbrickfrontGetting StartedThere’s quite basic usage. For most things you don’t need an API key, but for othersyou may need to get one.First you need to make aClientobject.>>>importbrickfront>>>client=brickfront.Client(API_KEY)From there, you can make requests through your client to be able to get different sets.>>>setList=client.getSets(query='star wars')>>>len(setList)20>>>build=setList[18]>>>build.name"Jabba's Palace">>>build.setID'2141'>>>build.pieces231>>>build.priceUK'27.99'Most code is fully internally documented, so it will autofill and properly interface with Python’shelpfunction.API ReferenceClick here
Package: brickhillapi
OverviewBrick Hill API is an easy way to access the Brick Hill API.InstallationTo install brickhillapi from PyPI, you can install with pip:pip install brickhillapiDocumentationHere is a list of functions and their purpose.userId(username)- Get the ID of a user with their username.name(id)- Get the username of a user with their ID.lastOnline(id)- Get the last time a user was online.created(id)- Get the date an account was created.description(id)- Get the description of a user.awards(id)- Get the awards a user has.updatedItem(id)- Get the last updated item.newestItem(id)- Get the newest item.unreleasedItems(min_id, max_id)- Check for unreleased items with an ID between the minimum and maximum.avatar(id)- Get the avatar of a user.
Package: brick-james
BRICKBayesianR-MatrixInferenceCodeKitBRICK is a Python package that serves as an interface to AZURE2 and readily
permits the sampling of R-matrix parameters.ItaccompaniesAZURE2. Theprimarygoal is to allow the user to deploy
Markov Chain Monte Carlo (MCMC) to sample parameters that are typically
optimized in a χ2-minimization analysis.RequirementsAZURE2must be installed and available at the command
line viaAZURE2. Currently, command-line execution is not available on Windows
or macOS.NumPyandMatplotlibmust be
available in order to run the test script intestdirectory.emceeis the MCMC sampler that is used in the
test scripts. BRICK is intentionally designed such that other samplers can be
used with little effort.OverviewThe classes defined in this module are:AZRParameterLevelOutputSegmentDataAZRHandles communication with AZURE2 and its output.ParameterDefines a sampled or "free" parameter.LevelDefines an R-matrix level (a line in the<levels>section of the .azr file).OutputData structure for accessing output data. (I got tired of consulting the
extremely well-documented manual for the output file format.)SegmentData structure to organize the information contained in line of the<segmentsData>section of the .azr file.DataData structure that holds a list of Segments and provides some convenient
functions for applying actions to all of them.ExampleIn thetestdirectory there is a Python script (test.py) that predicts the
12C(p,gamma) cross section and compares it to the Vogl data.Note that the script uses NumPy and Matplotlib.InstallationThe simplest way to installbrickis to usepipvia:pip install brick-jamesAlternatively, one may clone the repository onGitHub.TestsBRICK includes a suite of basic funcationality tests in thetests/12Cpgdirectory. The tests perform calculations of the 12C(p,gamma) reaction with two
data sets. To run them, within thetests/12Cpgdirectory, usepython -m unittests -v tests.pyUseOnce installed,brickallows the user to access the relevant classes and
functions by:import brick

azr_object = brick.azr.AZR('input.azr')More instructive test are forthcoming.
Package: bricknil
BrickNil[*]provides an easy way to connect to and program LEGO®
Bluetooth hubs (including the PoweredUp Passenger Train60197and Cargo Train60198sets, and the Lego
Duplo Steam Train10874and Cargo Train10875) using Python on OS X and
Linux.  This work was inspired by thisEuroBricksthread, and the NodeJSPowered-Uplibrary. Unlike the official apps available from LEGO, BrickNil allows you to control multiple
hubs with a single program, which lets you easily scale to programming large interactive systems.BrickNil requires modern Python (designed and tested for 3.7) and uses asynchronous
event programming built on top of theCurioasync library.  As an aside, the choice of
async library is fairly arbitrary; and enabling another library such as asyncio or Trio
should be straightforward.An example BrickNil program for controlling the Train motor speed is shown below:fromcurioimportsleepfrombricknilimportattach,startfrombricknil.hubimportPoweredUpHubfrombricknil.sensorimportTrainMotor@attach(TrainMotor,name='motor')classTrain(PoweredUpHub):asyncdefrun(self):foriinrange(2):# Repeat this control two timesawaitself.motor.ramp_speed(80,5000)# Ramp speed to 80 over 5 secondsawaitsleep(6)awaitself.motor.ramp_speed(0,1000)# Brake to 0 over 1 secondawaitsleep(2)asyncdefsystem():train=Train('My train')if__name__=='__main__':start(system)Free and open-source software: ASL2 licenseDocumentation:http://virantha.github.io/bricknilSource:https://github.com/virantha/bricknil[*]BrickNil’s name comes from the word “Nil” (නිල්) inSinhalawhich means Blue (as in Bluetooth)FeaturesSupports the following LEGO® Bluetooth systems:PoweredUp hubs for trains60197,60198Duplo trains10874and10875PoweredUp remoteBoostMove hubSupports the following actuators/sensors:Internal motorsTrain motorsHub LED colorBoost vision sensor (color, distance)Boost internal tilt/orientation/accelerometerBoost external motorExternal lightHub buttonsWedo external motorWedo tiltand motion sensorsFully supports Python asynchronous keywords and coroutinesAllows expressive concurrent programming using async/await syntaxThe current implementation uses the async libraryCurioby David BeazleyCross-platformUses the Adafruit Bluefruit BluetoothLE library for Mac OS XUses the Bleak Bluetooth library for Linux and Win10; also tested on Raspberry Pi.
Package: bricknil-bleak
bleak** This is a fork of the originalBleaklibrary ** by Henrik Blidh, with some modifications
to support my needs for myBrickNilproject.  It has been packaged up for distribution with
that project on PyPI.   All credit to Henrik for his development of this wonderful asyncio package.Also credit is due to David Lechner for his work on getting Windows 10 support working.Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.Free software: MIT licenseDocumentation:https://bleak.readthedocs.io.Bleak is a GATT client software, capable of connecting to BLE devices
acting as GATT servers. It is designed to provide a asynchronous,
cross-platform Python API to connect and communicate with e.g. sensors.Be warned: Bleak is still in an early state of implementation.Installation$pipinstallbleakFeaturesSupports Windows 10, version 16299 (Fall Creators Update)Supports Linux distributions with BlueZ >= 5.43Plans on macOS support via Core Bluetooth API (seedevelopbranch for progress)Bleak supports reading, writing and getting notifications from
GATT servers, as well as a function for discovering BLE devices.UsageTo discover Bluetooth devices that can be connected to:importasynciofrombleakimportdiscoverasyncdefrun():devices=awaitdiscover()fordindevices:print(d)loop=asyncio.get_event_loop()loop.run_until_complete(run())Connect to a Bluetooth device and read its model number:importasynciofrombleakimportBleakClientaddress="24:71:89:cc:09:05"MODEL_NBR_UUID="00002a24-0000-1000-8000-00805f9b34fb"asyncdefrun(address,loop):asyncwithBleakClient(address,loop=loop)asclient:model_number=awaitclient.read_gatt_char(MODEL_NBR_UUID)print("Model Number:{0}".format("".join(map(chr,model_number))))loop=asyncio.get_event_loop()loop.run_until_complete(run(address,loop))See examples folder for more code, among other example code for connecting to aTI SensorTag CC2650History0.3.1 (2019-04-01)Win10 supportChanges to get more device information0.2.4 (2018-11-30)Fix for issue #52: Timing issue getting characteristicsAdditional fix for issue #51.Bugfix for string method for BLEDevice.0.2.3 (2018-11-28)Fix for issue #51:dpkg-querynot found on all Linux systems0.2.2 (2018-11-08)Made it compliant with Python 3.5 by removing f-strings0.2.1 (2018-06-28)Improved logging on .NET discover methodSome type annotation fixes in .NET code0.2.0 (2018-04-26)Project added to GithubFirst version on PyPI.Working Linux (BlueZ DBus API) backend.Working Windows (UWP Bluetooth API) backend.0.1.0 (2017-10-23)Bleak created.
Package: brickschema-rdflib-sqlalchemy
SQLAlchemy store formula-aware implementation.
It stores its triples in the following partitions:Asserted non rdf:type statementsAsserted rdf:type statements (in a table which models Class membership).
The motivation for this partition is primarily improved query speed and
scalability as most graphs will always have more rdf:type statements than
others.All Quoted statementsIn addition it persists namespace mappings in a separate table
Package: brickse
BrickseThebrickselibrary provides a collection of utilities to retrieve various data fromBrickSet.combricks repository. It can be used either as a simple tool, which reads
requested data and converts them into easy-access custom classes or by using the API directly to allow handling the
HTTPResponse in whatever way you want.Please see theexamplesfolder or in-code documentation of classes and functions to learn more about thebrickselibrary capabilities as well as the original documentation of theBrickSet API.See also a similar tool forRebrickable.comcalledrebrick.Tool Exampleimportbrickse# init Brickse toolbs=brickse.Brickse("your_API_KEY_here","your_USER_TOKEN_here",silent=True)# get set infodata=bs.get_set(set_number=6608)print(data)# if user token is not provided on init you can get it later to access user databs.login("your_username_here","your_password_here")# get user setsdata=bs.get_users_sets(owned=True)print(data)API Exampleimportbrickseimportjson# init brickse module for general readingbrickse.init("your_API_KEY_here")# get set inforesponse=brickse.lego.get_set(set_number=6608)print(json.loads(response.read()))# init brickse module including user readingbrickse.init("your_API_KEY_here","your_USER_TOKEN_here")# if you don't know the user token you can use your login credentialsbrickse.init("your_API_KEY_here","your_username_here","your_password_here")# get user setsresponse=brickse.users.get_sets(owned=True)print(json.loads(response.read()))InstallationThebrickselibrary is fully implemented in Python. No additional compiler is necessary. After downloading the source
code just run the following command from thebricksefolder:$ python setup.py installor simply by using pip$ pip install brickseDisclaimerThis 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.
Package: bricks-py
简介Bricks旨在将爬虫开发变得像搭建积木一样简单而有趣。这个框架的核心理念是提供一个直观、高效的方式来构建复杂的网络爬虫，同时保持代码的简洁和可维护性。无论您是刚入门的新手还是经验丰富的专家，Bricks都能让您轻松地搭建起强大的爬虫，满足从简单数据抓取到复杂网络爬取的各种需求。通过精心设计的接口和模块化的结构，Bricks使得组合、扩展和维护爬虫变得前所未有的容易。您可以像搭积木一样，快速组合出适合您需求的爬虫结构，无需深入底层细节，同时也能享受到定制化和控制的乐趣。使用Bricks，您将体验到无与伦比的开发效率和灵活性，让爬虫开发不再是一件费时费力的任务。特性Bricks拥有以下特性基于事件触发拓展爬虫，在定义好自己爬虫主体逻辑的情况下，可以在不修改核心代码的情况下，在请求前后，存储前后等多个事件接口进行拓展，让爬虫流程更加清晰多个爬虫基类，可以有纯代码是的air爬虫，还有流程化自定义的配置式form爬虫，还有固定流程的配置式template爬虫丰富的解析器，包括json/xpath/jsonpath/regex/json/ 自定义，并且支持配置式书写解析规则灵活可拓展的下载器，目前内置的下载器为curl-cffi，并且还有可选的requests/requests-go/pycurl/Playwright， 开发者可以根据规范自己定制下载器灵活的调度器，调度器支持处理同步任务和异步任务，并且支持根据当前任务数量自动调节Worker数量内置Local和Redis两种任务队列，以便应用单机和分布式爬虫安装安装最新代码pip install git+https://github.com/KKKKKKKEM/bricks.git安装正式版pip install bricks-py使用文档具体文档请查看Bricks Docs
Package: bridgecord
BridgeCordpip install bridgecordCheckSDK Starter Guideto understand how it works.Exampleimportbridgecordasbcbridge=bc.Instance(debugging=False)bridge.init(clientID=CLIENT_ID)bridge.activity_info.details="Hello, Python"bridge.activity_info.state="In game"bridge.activity_info.large_image="dreampyavatar"bridge.set_timestamps_start(int(time.time()))bridge.update_current_activity()whileTrue:bridge.run_callbacks()bridge.run_callbacks()should bealwaysrunning.If you setdebugging=False, you will not receive some messages in the console. For example, by calling a method that triggersUpdateActivity, you will receive a message containing theresult code. You can toggle this option bybridge.is_debugging = True. Note that this option is enabled by default.Activity# Set text, which display on user hovers over large imagebridge.activity_info.large_text="Large text"# Set small image, which displayed in right bottom cornerbridge.activity_info.small_image="dreampy1"# Set text, which display on user hovers over small imagebridge.activity_info.small_text="Small text"If you editing any activity info (except timestamps), you should update activity:bridge.update_current_activity()You can also set how much time is left:bridge.set_timestamps_end(1678357800)Update user profileYou can detect if user change avatar or discord name:deftest_callback()->None:ret,user=bridge.current_user()ifret==0:print(user.username)print(user.discriminator)print(user.avatar_hash)print(user.get_avatar_url("jpg"))print(user.is_bot)print(user.id)bridge.on_current_user_update_connect(test_callback)In this example,current_user()returnedresult codeand user object.
Output result:onyx1a
3440
c240d87788e9e93464872ac80f047568
https://cdn.discordapp.com/avatars/1052579421875339284/c240d87788e9e93464872ac80f047568.jpg
False
1052579421875339284Read more about user avatarhere.CallbacksYou can set many callbacks for one action:token1=bridge.on_current_user_update_connect(test_callback1)token2=bridge.on_current_user_update_connect(test_callback2)Tokens are needed in order to disable unnecessary callback:bridge.on_current_user_update_disconnect(token1)Party info:bridge.edit_party_info(cur_size=1,max_size=4,id="test",secret="secret",is_private=True)This feature allows other users to see the button "Ask to Join", when clicked, will send the user an invitation:
Package: bridgedbpy
bridgedbpy packagePython package for BridgeDb, a tool for identifier mapping.Learn about BridgeDb athttp://www.bridgedb.org/and read about it in this paper:Van Iersel, M.; Pico, A.; Kelder, T.; Gao, J.; Ho, I.; Hanspers, K.; Conklin, B.; Evelo, C. BMC Bioinformatics 2010, 11, 5,https://doi.org/10.1186/1471-2105-11-5Available from PyPITo install this package, run:pip install bridgedbpy
Package: bridgekeeper
Who would cross the Bridge of Deathmust answer me these questions three,ere the other side he see.—The Bridgekeeper,Monty Python and the Holy GrailBridgekeeper is a permissions library forDjangoprojects, where permissions are defined in your code, rather than in your database.It’s heavily inspired bydjango-rules, but with one important difference:it works on QuerySets as well as individual model instances.This means that you can efficiently show a list of all of the model instances that your user is allowed to edit, for instance, without having your permission-checking code in two different places.Bridgekeeper is tested on Django 2.2 and 3.0 on all Python versions Django supports, and is licensed under the MIT License.
Package: bridgewalk
BridgeWalkBridgeWalk is a partially-observed reinforcement learning environment with
dynamics of varying stochasticity. The player needs to walk along a bridge to
reach a goal location. When the player walks off the bridge into the water, the
current will move it randomly until it gets washed back on the shore. A good
agent in this environment avoids this stochastic trap. The implementation of
BridgeWalk is based on theCrafterenvironment.Play YourselfYou can play the game yourself with an interactive window and keyboard input.
The mapping from keys to actions, health level, and inventory state are printed
to the terminal.# Install with GUIpip3install'bridgewalk[gui]'# Start the gamebridgewalk# Alternative way to start the gamepython3-mbridgewalk.run_guiThe following optional command line flags are available:FlagDefaultDescription--window <width> <height>800 800Window size in pixels, used as width and height.--fps <integer>5How many times to update the environment per second.--record <filename>.mp4NoneRecord a video of the trajectory.--view <width> <height>7 7The layout size in cells; determines view distance.--length <integer>NoneTime limit for the episode.--seed <integer>NoneDetermines world generation and creatures.Training AgentsInstallation:pip3 install -U bridgewalkThe environment follows theOpenAI Gyminterface:importbridgewalkenv=bridgewalk.Env(seed=0)obs=env.reset()assertobs.shape==(64,64,3)done=Falsewhilenotdone:action=env.action_space.sample()obs,reward,done,info=env.step(action)Environment DetailsRewardA reward of +1 is given the first time in each episode when the agent reaches
the island at the end of the bridge.TerminationEpisodes terminate after 250 steps.Observation SpaceEach observation is an RGB image that shows a local view of the world around
the player, as well as the inventory state of the agent.Action SpaceThe action space is categorical. Each action is an integer index representing
one of the possible actions:IntegerNameDescription0noopDo nothing.1move_leftWalk left.2move_rightWalk right.3move_upWalk up.4move_downWalk down.QuestionsPleaseopen an issueon Github.
Package: bridson
bridsonTwo Dimensional Poisson Disc Sampling usingRobert Bridson’s algorithmUsage>>>frombridsonimportpoisson_disc_samples>>>poisson_disc_samples(width=100,height=100,r=10)[(18.368737154138397,0.6537095218417459),(31.037620677039477,0.11127035812202124),(42.36176894248073,7.038053455899708),...(39.42578238367568,99.18831048188478),(73.33459914827051,99.50928386778354),(98.09958160385061,99.1575330533914)]
Package: brie-commit
brie-commitA collection of cheesypre-commithooksUsing brie-commit with pre-commitAdd this to your.pre-commit-config.yamlrepos:-repo:https://github.com/sco1/brie-commitrev:v1.1.0hooks:-id:brie-commitHooksbrie-commitThis hook doesn't do anything except add cheese to your pre-commit invocation.$pre-commitrun
🧀🧀🧀...................................................................Passedup-to-no-goudaThis hook replaces all instances ofgoodwithgoudain your text files.
Package: briefcase
BriefcaseBriefcase is a tool for converting a Python project into a standalone native
application. You can package projects for:MacWindowsLinuxiPhone/iPadAndroidWebSupport for AppleTV, watchOS, and wearOS deployments is planned.If you want to see Briefcase in action, try theBeeWare tutorial. That tutorial walks you through the
process of creating and packaging a new application with Briefcase.DocumentationDocumentation for Briefcase can be found onRead The Docs.CommunityBriefcase is part of theBeeWare suite. You can talk to the community through:@beeware@fosstodon.org on MastodonDiscordThe BriefcaseGithub Discussions forumWe foster a welcoming and respectful community as described in ourBeeWare Community Code of Conduct.ContributingIf you experience problems with Briefcase,log them on GitHub. If you
want to contribute code, pleasefork the codeandsubmit a pull request.
Package: briefs-caster
briefs-casterWhat is it?This is a simple Briefcasts server for your Briefs.Rob Rhynedeveloped Briefs, an iPhone application for creating wireframes for
Cocoa touch applications.This is an insanely cool app, and much props go toDigital Arch.  Check it out first,http://giveabrief.com.Briefcasts and briefs-casterWithin Briefs, you can add a URL that points to a list of briefs.  In the app,
it’s calledMy Briefcasts.briefs-caster converts any.bsfiles into.brieflistfiles using the
utilities provided bythe Briefs starter kitand serves them up onhttp://0.0.0.0:5000as a Briefcast.InstallationRequires Mac OS Xbriefs-caster uses Python.  To install it open a terminal and type the followingeasy_install briefs-casterIf you use Pip (recommended), alternatively run thispip install briefs-casterNoteyou may need tosudothese commands on your system.UsageWe’re going to assume that you’ve installed Briefs and have started using it.
You should be to the point that you have a.bsfile that you’ve
created.Let’s pretend it’s in a directory called~/my_briefs.Run the briefs-caster from the directorycd ~/my_briefs
briefs-casterAlternatively you can tell briefs-caster where to serve frombriefs-caster ~/my_briefsYou should see the following outputbriefs-caster - Serving up some fine briefs for you

Open http://<IP_ADDRESS>:5000 from the Briefs app

CTRL-C to exit the server
* Running on http://0.0.0.0:5000/ErrorsCheck the terminal for any errors that the Briefs script utililty produces.  If
you mis-type something, forget a required attribute or something like that it
will show up in the output.Add to BriefsIn the Briefs app do the following:TouchMy BriefcastsTouchEditin the top rightTouch+Enter NameBriefs-caster exampleEnter URLhttp://127.0.0.1:5000or if you are not using the same computer
this IP may be different (we run the iPhone Simulator with Briefs inside it)TouchSaveTouchDoneNow you are ready to try it out:TouchBriefs-caster exampleIf everything went as expected, you should see your list of Briefs.News0.1.1Release date: 28-Sep-2010Added the ability for briefs-caster to automatically convert your .bs files for you
you no longer need to generate the .brieflist files manually0.1Release date: 23-Sep-2010Initial release
Package: brief-telegram-bot
brief-telegram-bot使用简洁的代码来创建你的电报机器人1.安装pipinstallbrief-telegram-bot2.快速上手frombrieftgbotimportBot#你的机器人tokentoken=''myBot=Bot(token)#启动机器人myBot.launch()之后你与机器人对话就可以看到控制台打印的消息了3.高级发送消息frombrieftgbotimportBot#你的机器人tokentoken=''myBot=Bot(token)#自定义你的函数defhandler():message=myBot.Msgchat_id=message['message']['chat']['id']ifmessage['message']['texat']=='Hi':myBot.sendMessage(chat_id,'Hi from bot.')#启动机器人，并将你的逻辑函数传递进去myBot.launch(handler)通过myBot.Msg即可获得机器人所收到的信息，并以json格式返回，这也是您编写您的逻辑的基础需求在代码的launch()方法中可以传递的参数：myBot.launch(function='',print_info=True)function参数：置空则不会执行任何东西，填写后将会在机器人运行时执行您缩写的函数。默认为空print_info参数：True表示在控制台以json格式打印机器人所收到的信息，False表示不打印。默认为True机器人的所有方法都是根据Telegram官方文档进行编写的，详细参数请参考官方文档