Saravanan666/pypi-org huggingface dataset:
Package: build123d
Build123d is a python-based, parametric, boundary representation (BREP) modeling framework for 2D and 3D CAD. It's built on the Open Cascade geometric kernel and allows for the creation of complex models using a simple and intuitive python syntax. Build123d can be used to create models for 3D printing, CNC machining, laser cutting, and other manufacturing processes.  Models can be exported to a wide variety of popular CAD tools such as FreeCAD and SolidWorks.Build123d could be considered as an evolution ofCadQuerywhere the somewhat restrictive Fluent API (method chaining) is replaced with stateful context managers - e.g.withblocks - thus enabling the full python toolbox: for loops, references to objects, object sorting and filtering, etc.The documentation forbuild123dcan found atreadthedocs.There is aDiscordserver (shared with CadQuery) where you can ask for help in the build123d channel.The recommended method for most users is to installbuild123dis:pip install build123dTo get the latest non-released version ofbuild123d* one can install from GitHub using one of the following two commands:In Linux/MacOS, use the following command:python3 -m pip install git+https://github.com/gumyr/build123dIn Windows, use the following command:python -m pip install git+https://github.com/gumyr/build123dIf you receive errors about conflicting dependencies, you can retry the installation after having upgraded pip to the latest version with the following command:python3 -m pip install --upgrade pipDevelopment installgit clone https://github.com/gumyr/build123d.git
cd build123d
python3 -m pip install -e .Further installation instructions are available (e.g. Poetry, Apple Silicon) see theinstallation section on readthedocs.
Package: build2vec
build2VecGraph Neural Networks based building representation in the vector spaceInstallation$ pip install build2vecExamplesimportnetworkxasnxfrombuild2vecimportBuild2Vecemb_dimensions=10# Create a graph using networkx -- you can generate the graph from dataframe of edgesgraph=nx.from_pandas_edgelist(df_links_graph)build2vec=Build2Vec(graph,dimensions=emb_dimensions,walk_length=50,num_walks=50,workers=1)model=build2vec.fit(window=50,min_count=1,batch_words=10)Todos:Add automatic grid generation method.Add automatic graph construction method.Add visualization moddule.Add ML clustering, classification, and prediction moduels.Define other builing-related random walks methods.Citation:@inproceedings{10.5555/3465085.3465155,author={Abdelrahman, Mahmoud M. and Chong, Adrian and Miller, Clayton},title={Build2Vec: Building Representation in Vector Space},year={2020},abstract={In this paper, we represent a methodology of a graph embeddings algorithm that isused to transform labeled property graphs obtained from a Building Information Model(BIM). Industrial Foundation Classes (IFC) is a standard schema for BIM, which isutilized to convert the building data into a graph representation. We used node2Vecwith biased random walks to extract semantic similarities between different buildingcomponents and represent them in a multi-dimensional vector space. A case study implementationis conducted on a net-zero-energy building located at the National University of Singapore(SDE4). This approach shows promising machine learning applications in capturing thesemantic relations and similarities of different building objects, more specifically,spatial and spatio-temporal data.},booktitle={Proceedings of the 11th Annual Symposium on Simulation for Architecture and Urban Design},articleno={70},numpages={4},keywords={graph embeddings, STAR, node2vec, feature learning, representation learning},location={Virtual Event, Austria},series={SimAUD '20},}
Package: build4s
Build4s - A build tool for simple, standard, stable and speedAbout受启发于AWS CodeBuild的自动化编译打包服务，抽取其中标准化编译打包功能实现的一个本地组件。AWS CodeBuild User GuideBuild提供了标准化的编译打包流程，可编译源代码，运行单元测试，并生成可供部署的项目。Build提供了适用于最热门编程语言的预配置构建环境，只需配置简单的构建脚本就可以。RequirementsPython3PyYAMLInstall安装最新的Release包，通过pip命令安装：pipinstallbuild4s或者通过下载源码包或clone代码至本地，然后通过如下命令安装：pythonsetup.pyinstallUsagebuildcli--spec-file=buildspec.yml--target-file=target.zip使用--help查看更多使用帮助。--spec-file参数指定编译时使用的标准化流程文件，若为空则默认为buildspec.yml。
--target-file参数指定打包生成的压缩包文件，若为空则默认为target.zip。Releasebuild4s-0.0.1.zipExample一个示例的buildspec.yml文件如下所示：version:0.2env:variables:JAVA_HOME:"/usr/lib/jvm/java-8-openjdk-amd64"phases:install:commands:-echo Entered the install phase...pre_build:commands:-echo Entered the pre_build phase...build:commands:-echo Entered the build phase...-mvn clean package -e -Dmaven.test.skip=truepost_build:commands:-echo Entered the post_build phase...artifacts:files:-example.jar-classes/config/*discard-paths:nobase-directory:target将该文件置于源代码目录，在该目录下执行如下命令，即会在当前目录下生成target.zip文件。与自动化部署服务Deploy4s配合使用，效果更佳，味道更美。buildcli--target-file=target.zipAuthorRocky Peng
Package: build-a-cog
build-a-cogA Python package to make the creation of Cog actors easier!Dependenciesbuild_a_cog depends on Panda3D. If you have not installed it already, you can do so with the following command:pip install Panda3DInstallingTo install the latest version of build_a_cog, open your favorite command terminal and use the following command:pip install build_a_cogIf for whatever reason you are unable to install build_a_cog through pip, you can also install it through thelatest source distribution released on GitHub. Download the .whl file and open your favorite command terminal. Navigate to wherever the file was downloaded and run the following command:pip install [file]UsageWith build_a_cog, the creation of Cog actors becomes much easier.Like with any other Panda3D Toontown project, you must first extract the Phase Files. You can do so with the following command, with [x] being replaced by the id of the phase file:multify.exe -xf phase_[x].mfWith build_a_cog, you will need phase_3, phase_3.5, phase_4, phase_5, phase_6, phase_7, phase_11, and phase_12. Once these files are extracted, drop them into the same directory you want to have your Python files in. Your directory should look similar to this:| phase_3
| phase_3.5
| phase_4
| phase_5
| phase_6
| phase_7
| phase_11
| phase_12
| test_cog.pyNext, drop the three suit type models in your main directory. tt_a_ene_cga_zero.bam, tt_a_ene_cgb_zero.bam, and tt_a_ene_cgc_zero.bam are all in phase_3.5/models/char. Once these files are in your directory, it should look like this:| phase_3
| phase_3.5
| phase_4
| phase_5
| phase_6
| phase_7
| phase_11
| phase_12
| test_cog.py
| tt_a_ene_cga_zero.bam
| tt_a_ene_cgb_zero.bam
| tt_a_ene_cgc_zero.bamNow that all the necessary files are here, you can open the Python file containing your scene and start to program! Here's an example scene:fromdirect.directbase.DirectStartimportbaseimportbuild_a_cogascogyesman=cog.build(cog.Cog(suit=cog.Suit(model="tt_a_ene_cga_zero.bam",torso="phase_3.5/maps/c_blazer.jpg",arms="phase_3.5/maps/c_sleeve.jpg",legs="phase_3.5/maps/c_leg.jpg",hands=(0.95,0.75,0.75,1.0)),head=cog.Head(file="phase_4/models/char/suitA-heads.bam",node="yesman",texture=None,color=None),animation=cog.Animation(file="phase_5/models/char/tt_a_ene_cga_song-and-dance.bam",anim_loop=True,loop_from=None,loop_to=None,loop_restart=None,pose=False,pose_frame=None)))yesman.setPos(0,20,-4.2)yesman.setH(180)yesman.reparentTo(render)base.run()This code will produce the following cog:DocumentationYou can find documentation for build_a_cog in therustycog lib.rs file.LicenseCode in build_a_cog is licensed under theMIT License.
Package: buildahscript
buildahscriptBuildahscript is a new container definition language built to be imperative and flexible.It allows you to do more with buildargs, create actually re-usable modules, and in general create more flexible container builders.Example#!/usr/bin/env buildahscript-py#| pip: requests#| arg: eula: bool#| arg: version: str = "latest"#| arg: type: str = "vanilla"importtarfileimportrequestswithTemporaryDirectory()astd:bin=td/'bin'bin.mkdir()withContainer('rust:buster')asbuild:build.copy_in('cmd','/tmp/cmd')build.copy_in('localmc','/tmp/localmc')build.run(['cargo','build','--release'],pwd='/tmp/cmd')build.copy_out('/tmp/cmd/target/release/cmd',bin/'cmd')withContainer('rust:buster')asbuild:build.copy_in('status','/tmp/status')build.copy_in('localmc','/tmp/localmc')build.copy_in('mcproto-min-async','/tmp/mcproto-min-async')build.run(['cargo','build','--release'],pwd='/tmp/status')build.copy_out('/tmp/status/target/release/status',bin/'status')# Download & extract mc-server-runnerwithrequests.get('https://github.com/itzg/mc-server-runner/releases/download/1.3.3/mc-server-runner_1.3.3_linux_amd64.tar.gz')asresp:resp.raise_for_status()withtarfile.open(resp,'r|*')astf:forentryintf:ifentry.name=='mc-server-runner':tf.extract(entry,bin/'mc-server-runner')withContainer('openjdk:8-jre-slim')ascont:cont.copy_in(bin/'cmd','/usr/bin/cmd')cont.copy_in(bin/'status','/usr/bin/status')cont.copy_in(bin/'mc-server-runner','/mc-server-runner')cont.volumes|={"/mc/world","/mc/server.properties","/mc/logs","/mc/crash-reports","/mc/banned-ips.json","/mc/banned-players.json","/mc/ops.json","/mc/whitelist.json",}cont.entrypoint=["/mc-server-runner","-shell","/bin/sh"]cont.command=["/mc/launch"]cont.healthcheck_cmd=["status"]cont.healthcheck_start_period="5m"returncont.commit()shpipeshpipe (#|) lines are used to specify metadata used by buildahscript. The basic form is#| type: data.pip: Gives a dependency to install from PyPI, as arequirement specifierarg: Defines a build arg, in the Pythonname:type=defaultform, where type
is a dotted-form name to a type/parsing function, and default is a python literal.LicensingThis package is free to use for commercial purposes for a trial period under the terms of theProsperity Public License.Licenses for long-term commercial use are available vialicensezero.com.
Package: buildapp
buildappCorss-Platform script used to recompile APK that was decompiled by apktoolThat way, you can decompile an application, patch it's smali-source / resources / manifest / libs / ...And rebuild it into a new apk you may install in your devicesNOTEthat you should use this tool for debugging / educational purposes only!NOTEthat you must accept the LICENSE of the tools listed in therequirementssectionInstallationSimply run:pip install buildapp --upgrade && buildapp_fetch_toolsMake sure to have python scripts folder in your path,And use the correct version of pip for python3Decompilation processUseapktoolto decompile your application.Apktool decompilation syntax:apktool d <apk_path> -o <output_folder>Patching processJust change anything you want, native-elfs in/libfolder,smali-codefrom smali folders, manifest fileAndroidManifest.xml, resources, assets and whatever's out thereRecompilation processSimply use our tool, the syntax is:buildapp -d <sources_folder> -o <outout_apk>For additional flags, ranbuildapp -hapktool buildUse apktool to rebuild the apk from the sources folderapktool b <sources_folder> -o <output_apk>zip-alignmentapk is implemented as a zip file which should have the correct alignment in order to be installedimplemented usingzipalignobtain keystoreour tool will use a default keystore if you won't provide oneyou may usekeytoolto generate your own keystoresapk signingour tool will sign the apk using the keystore mentioned aboveimplemented usingapksignerapk installationif asked to, buildapp will install the signed apk on connected adb device (if there's only one)NOTEthat if you won't provide the same keystore as the original app already installed on your device, you may not be able to install the apk you built by this script unless you'll uninstall the original app first.implemented usingadbAnd that's it! Now you have a new apk, waiting to be installed it on your android devices!RequirementsThe project uses these tools (can be fetched usingbuildapp_fetch_toolsafterpip install buildapp):android SDK tools (download build_tools,download platform_tools)adb (default at SDK\platform_tools, only required if-iflag is used)zipalign (default at SDK\build_tools)apksigner (default at SDK\build_tools)apktoolinstallation manual
Package: buildbot-dbconfig
Buildbot plugin that allows www-plugins to store settings in database.This plugin creates the endpoint ‘/dbconfig/api/config?name={cfg}’.Multiple configurations are supported. The ‘name’ parameter is a configuration name.GET/PUT loads/stores configuration in buildbot database.Add ‘dbconfig’ to master.cfg:c[‘www’] = dict(plugins=dict(dbconfig={‘show_menu’:False}…}The ‘show_menu’ parameter controls visibility of DbConfig menu item (mostly used for debug).Example controller code:name=…
dbConfigUrl = ‘/dbconfig/api/config?name=’$scope.loadConfig = () ->$http.get(dbConfigUrl+name).then (cfg) ->$scope.cfg = cfg.data$scope.saveConfig = () ->$http.put(dbConfigUrl+name,$scope.cfg)
Package: buildbot-docker-swarm-worker
buildbot-docker-swarm-workerThis package provides abuildbotplugin to
deploy buildbot workers on demand as services on aDocker Swarmcluster.InstallationInstall this package fromPyPI:pipinstallbuildbot-docker-swarm-workerUsagefrombuildbot.pluginsimportworkerswarm_worker=worker.DockerSwarmLatentWorker("docker-swarm-worker","buildbot/buildbot-worker:latest",)Related projectshttps://github.com/cjolowicz/docker-buildbothttps://github.com/cjolowicz/docker-buildbot-worker
Package: buildbot-gitlab
The Buildbot GitLab plugin provides an easy to install and configure enhancement for Buildbot.InstallationYou can download and install the latest version of this software from the Python package index (PyPI) as follows:pip install --upgrade buildbot-gitlabUsageBuildbot Gitlab uses a RESTful API to manage multiple projects. The project name and containing folder used in Gitlab
is stored within a .json file, which is then parsed during the BuildMaster startup in order to generate builders for
each project.TO DO: More info to follow…TestsIncluded with the API are unit tests which can be run as part of the Buildbot test procedure.
The tests can be run via the following command:PYTHONPATH=. trial buildbot.testWhich should be executed from within the buildbot directory.Additionally rather than running the entire Buildbot test suite, the tests specific to Buildbot Gitlab can be run with
the following commandsPYTHONPATH=. trial buildbot.test.unit.test_gitlab_api

PYTHONPATH=. trial buildbot.test.unit.test_gitlab_resourcesThe tests can also be run using Pythons Unit testing framework (PyUnit) instead of twisted trial with the following command:PYTHONPATH=. python -m unittest -v buildbot.test.unit.test_gitlab_api

PYTHONPATH=. python -m unittest -v buildbot.test.unit.test_gitlab_resourcesNote that the gitlab_resources tests requires buildbot & twisted packages to be present, as these provide the functionality
for fake web requests used by the resource tests. The API tests function independently of other packages.
Package: buildboticon
BuildBotIcon is a system tray monitor for the BuildBot continuous integration framework.It shows a colored icon (the BuildBot nut) in the system tray and changes it depending on the
state of your builders.It also plays sounds when the state changes.The tool can also control lava lamps (or other devices) via a Phidgets USB board.There is also a Java version available, if you prefer that.Latest News2011-01-04: First python versionLicense, Legal, etcBuildBotIcon is Copyright 2010-2011 Marcus LindblomLicensed under GNU Public License (GPL) v3.0 (see LICENSE)RequirementsDeveloped with Python 2.6.1, but uses only 2.5+ features,Developed with PyQt v4.7.4 and Qt 4.6.2, but uses only Qt 4.2 features.If you’re using a version that you think should work but doesn’t, please post a bug report
(or preferrably a patch or pull request) to Bitbucket (see below for URL).Usage instructionsTodo…Contact Infohttps://bitbucket.org/marcusl/buildboticon/- source, bug tracker, wiki, etc)https://www.ohloh.net/p/buildboticon- if you use it, note it here..)Please use the bitbucket website for bug reports, enhancement requests and patch contributing.It’s easy to fork the source and hack it yourself, then submit a pull request back to me when
you’re done)Cheers,
/Marcus Lindblom
Package: buildbot-legacy-slack-adapter
IntroductionThis plugin enables BuildBot to send messages to Slack channels everytime a build finishes with a certain status.It was created specifically for an old version of BuildBot (1.3.0). If you need a Slack adapter for a more recent version of BuildBot, you should use another plugin (https://github.com/rockwelln/buildbot-slack, for instance).Installationpip install buildbot-legacy-slack-adapterSetupCreate a Slack app and setup an incoming webhook (https://api.slack.com/).In themaster.cfgBuildBot configuration file, add the following piece of code:from buildbot.plugins import reporters

c['services'].append(
    reporters.SlackStatusPush(
        serverUrl=<SLACK_INCOMING_WEBHOOK>,
        wantSteps=True,
        wantProperties=True
    )
)The plugin supports additional settings that enable you to restrict the builders / builds for which a Slack notification should be sent:builders: alistcontaining the names of the builders whose builds should be monitored (default: all)results: alistcontaining the build completion statuses that should trigger a notification (default:success,warnings,failure,skipped,exception,retry,cancelled)
Package: buildbot-macports-custom-views
buildbot-macports-custom-viewsCustom views plugin for MacPorts Buildbot.Getting StartedSet up a buildbot environmentInstall python37 & create a virtual environment:sudo port install python37
python3 -m venv .venv
source .venv/bin/activate
pip install -U pipInstall buildbot dependencies & create buildmaster:pip install 'buildbot[bundle]'
buildbot create-master master
mv master/master.cfg.sample master/master.cfgSet up this pluginActivate the python virtual environment created in the above step, then:git clone https://github.com/macports/buildbot-macports-custom-views
cd buildbot-macports-custom-views
npm install
pip install -e .For a production build:npm run buildTo run a development server:npm run watchInclude it in the buildbot master.cfg:c['www']['plugins']['buildbot_macports_custom_views']={}Or directly use the portssudo port install buildbot-2 py-buildbot-macports-custom-views
buildbot create-master masterStart buildbotbuildbot start
Package: buildbot-matrix
Buildbot Matrix PluginThis Plugin for buildbot adds a reporter which sends notifications to a specified matrix room.Inspired bybuildbot-giteaby lab132.Installationpip install buildbot-matrixThis installs itself into buildbot, no extra imports required.SetupMatrix BotCreate a new Matrix user which will be used to send notifications.Set a meaningful display name for the user. For ExampleBuildbot NotificationsGet an access token for this user.Add the user to the room you want the notifications to be in.BuildbotAdd this to the buildbot configuration:c['services']=[reporters.MatrixStatusPush('https://homeserver.example.com','ROOM_ID:example.com','BOT_ACCESS_TOKEN',verbose=True)]Change the URL of the homeserver to the homeserver you want to use.ReplaceBOT_ACCESS_TOKENwith the acces token of the matrix user, this can be a buildbot secret.ReplaceROOM_IDwith the id of the matrix room the bot should send the notifications to. Replace the!at the beginning with%21.PersonalizingYou can modify the notifications by changing the following parameters:ParameterDescriptionDefaultstartDescriptionShort description when a build startedBuild started.endDescriptionShort description when a build endedBuild done.contextIdentifier to give messages a contextInterpolate('buildbot/%(prop:buildername)s')context_prIdentifier to give messages a context, used on pull requestsInterpolate('buildbot/pull_request/%(prop:buildername)s')warningAsSuccessTreat warnings as build successFalseonlyEndStateOnly send a message if a build has endedFalse
Package: buildbot-mattermost-reporter
Mattermost status reporter for BuildbotInstall:pip install buildbot-mattermost-reporterUsage example in Buildbotmaster.cfg:frombuildbot.pluginsimportreportersc['services'].append(reporters.MattermostStatusPush(webhook_url="https://mattermost.example.com/hooks/hookidstring",),)Parameters toMattermostStatusPush:MattermostStatusPush(
    webhook_url, channel=None, icon_url=None, icon_emoji=None,
    timezone=None, username_fn=None, buildstatusgenerator_kwargs=None,
    generators=None,
    **kwargs)webhook_url(string): Mattermost Webhook URL given when webhook is
createdchannel(string): SeeMattermost incoming webhooks docsicon_url(string): SeeMattermost incoming webhooks docsicon_emoji(string): SeeMattermost incoming webhooks docstimezone(datetime.tzinfo): Convert timestamps in messages to a timezone,
if set. Otherwise timestamps are UTC. Concretetzinfoobjects could be
created withdateutil, which Buildbot has as dependency.username_fn(callable): Callable that takes a string argument, which is
one of the individuals in the buildsownersproperty, and returns a
Mattermost username. The username is used for failing builds, where the
message includes a line like@owner1, @owner2, .... By default a function
is used that assumes that each owner is an e-mail address and returns the
part before @, i.e.user@example.comreturnsuser.
An example where failing builds would notify the whole channel instead would
beusername_fn=lambda _: "channel".buildstatusgenerator_kwargs(dict): Any extra keyword arguments toreporters.BuildStatusGenerator, e.g.buildstatusgenerator_kwargs={'report_new': True}.generators(list): To override generator created byMattermostStatusPushand format Mattermost messages in a custom manner.**kwargs: Any extra arguments toreporters.HttpStatusPush.