Saravanan666/pypi-org huggingface dataset:
Package: bw2speedups
# Brightway2 speedupsA series of function written in [Cython](http://cython.org/) that speed up critical functions to improve the overall performance of the [Brightway2 life cycle assessment framework](https://brightwaylca.org).In order to avoid having to have Cython as a dependency, this library includes both thepyxand Cython-generatedccode, and is distributed as pre-compiled [wheels](https://pypi.python.org/pypi/wheel), except on Linux where access to aCcompiler is assumed.## BuildingCfilescython -t bw2speedups/_consolidate.pyx bw2speedups/_indexer.pyx bw2speedups/_find_first.pyx## Building shared librariesAlthough you can do this inplace, in my experience it is easier to just install the library in a temporary environment. You don’t want to deal with.sofiles in the source repository.## TestingInstall the library into a temporary environment, then manually run the separate test files, i.e.python bw2speedupds/test/test_consolidate.py. This isn’t the most elegant, but it will do for now.## Building wheelspip install wheel
python setup.py bdist_wheelNote that this has to be done separately for each OS and environment, i.e. Windows 32-bit and 64-bit versions of Python are separate wheels, even with the same version of Windows.
Package: bw2temporalis
TemporalisThis package provides a dynamic (i.e. varying in time) LCA calculations package for theBrightway2 life cycle assessment framework.Temporalis allows to perform dynamic LCA and take into account time in both inventory and impact assessment. It makes use ofgraph traversalandconvolutionto solve the inventory and makes it possible to use several types of impact assessment methods, both static and dynamic.InstallationThe best way to install Temporalis is by usingcondaThe safest is to firstinstall brightway2and within the same conda environment runpipinstallbw2temporaliswhich will also install all its dependenciesDocumentation and examplesTheonline documentationexplain the functioning of the software and how to use it.The articleTemporalis, a generic method for dynamic Life Cycle Assessment(which is unfortunately still under review….) explains very nicely the methodology behind the software.This repocontains the jupyter notebooks with the analysis performed with some nice real usage examples of the software.See also thedemonstration notebooksand theexamples.
Package: bw2ui
Brightway2-UIThis is now the official repo for  Brightway2-UI:a web and command line user interface, part of theBrightway2 LCA frameworkhttps://brightway.dev.Theoriginalsource code was hosted on Bitbucket:https://bitbucket.org/tomas_navarrete/brightway2-ui.Compatibility with Brightway2XThis repository is used to produce 2 packages: one compatible with brightway25 (bw25ui), and one compatible with brightway2 (bw2ui).InstallationBoth,conda/mambaand wheels frompypi.orgare available.
The package names are different for Brightway25 and Brightway2, but the main executable script is still the same.[!NOTE]
The requirements here are abstract, but they are different forbrightway25andbrightway2.
For brightway25, bw2calc must be>= 2.0.dev10and bw2analyzer>= 0.11for brightway2 bw2calc must be< 2and bw2analyzer>=0.10Brightway25To install aconda/mambapackage compatible with brightway25:mamba install -c tomas_navarrete bw25uiThere is also a pip wheel that you can install with:pip install bw25uiBrightway2To install a package compatible with brightway2:mamba install -c tomas_navarrete bw2uiThere is also a pip wheel that you can install with:pip install bw2uiRoadmapAs long as retro-compatibility is possible between Brightway25 and Brightway2, the code base will remain identical.Packages will be published with the same version tags, but different names.New features will be primarily implemented to work with Brightway25, and if they are compatible with Brightway2 they will be part of the same code base.When the implementation of new features in a single code base for Brightway2 and Brightway25 becomes imposible, a new branch calledlegacywill be created to track the code compatible with Brightway2. The same will be done in the long term once Brightway3 is released.Short termThe current code base is identical for both packages (bw25uiandbw2ui).
The current main branch will be kept as the branch for development, with identical code bases for both packagesuntilbrightway25 public API breaks the compatibility.Mid termOnce Brightway3 starts to exist, the main branch will be dedicated to it, with abw3uipackage.
Package: bw2waterbalancer
bw2waterbalancerbw2waterbalanceris a Python library used to create balanced water samples to override unbalanced sample.Unbalanced samples arise when water exchanges are independently sampled.bw2waterbalancerrescales certain exchanges
to ensure that the ratio of water inputs to water outputs is conserved. It is based on theBrightway2 LCA framework, and is meant to be used withpresamples.The rescaling is done according to three different strategy, depending on the nature of the exchanges:
* default: rescale sampled inputs so that mass ratio of sampled input to sampled output is same as
in static activity* inverse: rescale sampled outputs so that mass ratio of sampled input to sampled output is same
as in static activity* set_static: replace sampled exchanges with value in static activityIt was developped with ecoinvent in mind, though the modifications required to make it useful for other databases would be minimal.InstallationUse the package managerpipto install bw2waterbalancer:pipinstallbw2waterbalanceror use conda:condainstall--channelpascallesagebw2waterbalancerUsagefrombw2waterbalancerimportDatabaseWaterBalancerfrombrightway2importprojectsprojects.set_current("my project")dwb=DatabaseWaterBalancer(ecoinvent_version="3.6",# used to identify activities with water production exchangesdatabase_name="ei36_cutoff",#name the LCI db in the brightway2 project)Validating data
Getting information on technosphere water exchanges
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:00
Getting information on biosphere water exchanges
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:01:09# Generate samples, and format as matrix_data for use in presamplesdwb.add_samples_for_all_acts(iterations=1000)0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:18:11# Create presamples packagedwb.create_presamples(name='some name',dirpath=some/path,id_='some id',seed='sequential',#or None, or int)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.AcknowledgmentSpecial thanks to Quantis US for having funded the early iterations of this work.LicenseMIT
Package: bwa
봐(Bwa): Simple Notification Sender노션에서 더 상세한 정보를 얻으실 수 있습니다:봐(Bwa): Simple Notification Senderbwa는 데코레이터를 통해 함수 실행과 관련된 알림을 간단하게 보낼 수 있는 툴입니다. 여러분이 만든 함수 위에deco_noti()와 몇 가지의 클라이언트 설정만 해주면, 함수가 시작되거나 끝나거나 혹은 예기치 못한 에러로 인해 종료되었을 때, 클라이언트로부터 알림을 받을 수 있습니다. 현재디스코드,슬랙,텔레그램그리고Gmail을 통해 알림을 받을 수 있습니다.가령 환경 변수로 webhook url 주소를 설정한다면, 다음과 같이 아주 간단하게 알림을 받을 수 있습니다.frombwa.discordimportdeco_noti@deco_noti()defrun():print("Hi, bwa!")알림을 받기 위해서는 클라이언트에서 몇 가지 설정 혹은 web-hook url과 같은 정보를 받아야 합니다. 클라이언트 별로 상세한 사용 방법은 아래의 노션에 정리했으니, 참고 부탁드립니다.상세 사용법:봐(Bwa): Simple Notification Sender지원되는 플랫폼:디스코드:bwa.discord슬랙:bwa.slack텔레그램:bwa.telegmGmail:bwa.gmailInstallationpip를 통해 설치할 수 있습니다. 아래의 커맨드를 통해 설치를 해주시면 됩니다.pipinstallbwaUsagebwa는deco_noti()라는 데코레이터와send_noti()라는 메소드를 제공합니다.deco_noti()를 통해 함수의 시작, 끝, 예기치 못한 종료 등에 대한 알림을 받을 수 있습니다. 그리고send_noti()를 여러분의 코드에 추가하면, 그 코드가 실행될 때 알림을 받을 수 있습니다.앞서 설명드린 것과 같이,bwa는 디스코드(bwa.discord), 슬랙(bwa.slack), 텔레그램(bwa.telegm) 그리고 G메일(bwa.gmail)을 통해 알림을 송수신할 수 있는 기능을 가지고 있습니다. 클라이언트의 종류에 따라 필요한 파라미터가 다릅니다. 그 차이는 아래와 같습니다.bwa.discordwebhook_url혹은 환경변수DISCORD_WEBHOOK_URL: 서버의 웹후크 URLbwa.slackwebhook_url혹은 환경변수SLACK_WEBHOOK_URL: 서버의 웹후크 URLbwa.telegmtoken혹은 환경변수TELEGRAM_TOKEN: 텔래그램 봇의 토큰chat_id혹은 환경변수TELEGRAM_CHAT_ID: 텔레그램 봇의 챗 아이디bwa.gmailreceiver_emails: 수신인들의 Gmail 주소sender_email혹은 환경변수SENDER_EMAIL: 발신인의 Gmail 주소sender_password혹은 환경변수SENDER_PASSWORD: 발신인의 비밀번호각 파라미터가 무엇을 의미하는지, 어떻게 취득할 수 있는지에 대한 설명은노션 페이지의 사용법을 참고해주시면 감사드리겠습니다.또한 각 클라이언트에 대한 예시는 Github의/examples에서 참고해주시면 감사드리겠습니다.Output examplebwa는 여러분이 원하는 메시지를 직접 만들 수 있도록custom_contents파라미터를 제공하고 있습니다. 하지만custom_contents를 입력하지 않을 경우에,bwa에서 임의로 기재된 기본 메시지를 통해 알림을 받습니다. 기본 메시지의 포맷 예시는 다음과 같습니다. 예시이기 때문에 실제로 조금의 차이가 있을 수 있습니다.함수가 시작될 때🏃 Your function <function_name> has started.
    - function name: function_name
    - start time: 2020-10-27 20:47:32함수가 종료될 때🎉 Your function <function_name> is complete!
    - function name: function_name
    - start time: 2020-10-27 20:47:24
    - end time: 2020-10-27 20:47:27
    - run time: 0:00:02.970100예기치 못한 오류로 인해 함수가 죽었을 떄# 비고: 함수 종료시에 알림을 받을 수 있도록 notify_end_too 파라미터가 True로 설정된 경우

😭 Your function <function_name> ended unexpectedly due to an exception or error.
    - function name: function_name
    - start time: 2020-10-25 01:25:06
    - dead time: 2020-10-25 01:25:12
    - run time: 0:00:05.774958
    - Error Info:

    - Traceback:
    Traceback (most recent call last):
    File "/Users/test-user/test/gmail_test_case.py", line 83, in wrapperReference & CopyrightReferred to huggingface'sknockknockCopyright (c) 2020 SeungMin Lee | MIT LicenseAuthor: SeungMin Lee(@somniumism)Contact:lsm.somniator@gmail.com오류나 기타 문의 사항이 있으면 Github issue를 남겨주시거나 위 메일로 연락을 주시면 감사드리겠습니다.더 다양한 플랫폼에서 사용될 수 있도록, 혹은 더 편하게 노티를 보낼 수 있도록 하는 모든 조언, PR, 협업을 기다리고 있습니다. : )
Package: bwapi
Brandwatch API SDKIntroductionThe Brandwatch API SDK was designed to address many of the challenges involved in building complex applications which interact with RESTful API's in general and Brandwatch's API from Python 3, in particular:The SDK's object hierarchy roughly mirrors the API's resource hierarchy, making the code intuitive for those familiar with the Brandwatch platformAll required parameters are enforced, and most optional parameters are supported and documentedTypical Brandwatch workflows are supported behind the scenes; for instance, one can validate, upload, and backfill a query with a single function callThe SDK is designed to support simple and readable code: sensible defaults are chosen for rarely used parameters and all resource IDs are handled behind the scenesFrom the user's perspective, the basic structure of the SDK is as follows.  One first creates an instance of the classBWProject; this class handles authentication (via a user name and password or API key) and keeps track of project-level data such as the project's ID.  (Behind the scenes, the user-level operations are handled by the classBWUserfrom whichBWProjectis inherited.)  One passesBWProjectinstance as an argument in the constructor for a series of classes which manage the various Brandwatch resources: queries, groups, tags, categories, etc.  These resource classes manage all resource-level operations: for example a singleBWQueriesinstance handles all HTTP requests associated with queries in its attached project.InstallationBe sure to install the latest version of Python 3.x. You can install bwapi on your machine by running the following command:pip install bwapiThis allows you to run scripts that import bwproject or bwresources from anywhere on your computer.ExamplesPlease see the Jupyter notebook DEMO.ipynb for examples.  This notebook was built as a beginner's guide to using the Brandwatch API SDK, so it has example code, as well as detailed instructions for use.DisclaimerThis is not an official or supported Brandwatch library, and should be implemented at the users' own risk.
Package: bw-attributes
bw_attributes is a library that allows associating arbitrary attributes with Django models.Usage:import bw_attributes
bw_attributes.register(MyModel)
my_object = MyModel.objects.all()[0]
my_object.attributes['a number'] = 3e4
my_object.attributes['a string'] = "An example"
my_object.attributes['a boolean'] = True
# Retrieval follows the same dictionary-type interface.
my_object.attributes['a string']
> u'An example'See the tests for more examples. The following types are supported:IntegersFloating-point numbersStringsDate (datetime.date)Time (datetime.time)Datetime (datetime.datetime)BooleansTo run tests, install into an existing Django project (add to INSTALLED_APPS), and run:./manage.py test --settings=bw_attributes.tests.settings
Package: bwb
bwbbot with bot.UsageInstall withpip install --upgrade bwb.from bwb import bwb
bwb = bwb.bwb(TELEGRAM_ID)HandshakingBoot up:client.send_message(CHAT_ID, '000000init ' + bwb.init())On000000init [data]:event.respond('000000handshake ' + bwb.handshake(data))On000000handshake [data]:event.respond(bwb.wrap('secret ' + bwb.secret(data), handshake=True))OnHandshake OTP authed123456secret [data]:bwb.set_secret(data)
event.respond(bwb.wrap('🤝'))OnOTP authed123456🤝:event.respond('🤝')InteractionRun every incoming message throughbwb.parse()since it's inexpensive. This will decrypt and remove base58 encoding.Once decoded, send it throughbwb.check_auth()which will returnTrueorFalseif the code is valid.Example:text = bwb.parse(text)
if text.startswith('!'):
    ...
elif text.startswith('000000'):
    text = text[6:]
elif bwb.check_auth(text, handshake=True):
    handshake_authed = True
    text = text[6:]
elif bwb.check_auth(text):
    authed = True
    text = text[6:]
else:
    returnUsebwb.wrap()to auth and encode outgoing commands.Params:wrap(text, handshake=False, target=None, b58=False, enc=False)Examples:out = bwb.wrap('ping')  # broadcast all bots
out = bwb.wrap('ping', target=TANNER)  # auth for Tannerbot
out = bwb.wrap('ping', target=JASON, enc=True)  # base58 encrypt
out = bwb.wrap('ping', target=MOLLY, b58=True)  # base58DevelopmentSetupClone the repo.To test your changes:pip install --upgrade ~/path/to/bwbDeploymentInstall setuptools:python3 -m pip install --user --upgrade setuptools wheelIncrement version number insetup.pyBuild and upload:bash build-upload.sh
Package: bwc-bsconf
bwc-bsconf 0.1.1This project better define server configurations, repairs and installations in various operating environments.Developers can use the main features of the tool with this pip package.Facilitate the installation of web servers, games, email, etc.To DevelopersInstallationInstall the package with pip:via PyPI:pip install bwc-bsconfor via GitHubpip install git+https://github.com/BarcaWebCloud/bsconf-py.gitNow Create a Python file to start using thebwc-bsconfpackage in your project. In the example below, the file namedmain.pywas specified to run the bsconf module. Add the following content in the main file.main.pyimportimportlibbwc_bsconf=importlib.import_module("bwc-bsconf")init=bwc_bsconf.bsconfinit()Run the main programpython3 main.py*Will display on your screen something like this:Welcome to BSconf
Package: bwc-cli
CLI for Brocade Workflow Composer.bwcis the main CLI application. Currently for 2.0 the only solution
that we ship is IP Fabric (ipf). The goal is to allow the cli to cater
to multiple application and hence the ‘bwc ipf’ nouns in the commands.
The output of the commands will be updated as the implementation gets
completedCurrently the commands available are are follows:bwc ipf showShow Fabric state or topology configuration .bwc ipf inventoryRegister, Delete, Update or list switches.bwc ipf workflowExecute Workflows on the switches.bwc ipf fabricAdd, Delete and Show Fabric/Fabric Config.For the ‘ipf show’ command here are the options available:bwc ipf show config bgp[–fabric=fabric name] | [–host=ip address] - Show the BGP
configuration of the specified fabric or hostbwc ipf show topology[fabric=fabric name] [–format=<pdf, jpeg, png, svg>] [–render_dir ]
-Draws the topology of the specified fabricFor the ‘ipf inventory’ command here are the sub-options
available:bwc ipf inventory register[host=ip address] [fabric=fabric name][user=<user_name>] [passwd=<password>] -
Register a switch to the specified fabricbwc ipf inventory delete[host=ip address] - Delete the specified device
from the inventorybwc ipf inventory update[–fabric=fabric name | –host=ip address] - Update the
inventory details of the switch or the entire fabricbwc ipf inventory list[–fabric=fabric name | –host=ip address] - List all the
devices in the fabric or the specified switch detailsbwc ipf inventory show vcs links[fabric=fabric name] - Display VCS links
for the specified fabricbwc ipf inventory show lldp[fabric=fabric name] - Display LLDP details for
the specified fabricFor the ‘ipf fabric’ command here are the sub-options available:bwc ipf fabric add[fabric=fabric name] - Create a new fabricbwc ipf fabric delete[fabric=fabric name] - Delete an existing fabricbwc ipf fabric config show[fabric=fabric name] - Display specified fabric
configurationsbwc ipf fabric config set[fabric=fabric name] [key=key] [value=value] - Set (add / edit)
current fabric configurationbwc ipf fabric config delete[fabric=fabric name] [key=] - Delete fabric
configuration key.For the ‘ipf workflow’ command here are the sub-options:bwc ipf workflow bgp[fabric=fabric name] - Executed the IP Fabric workflow.
Package: bwd
Balancing Walk DesignThis package provides a reference implementation of theBalancing Walk Design. It relies on minimal dependencies and is intended to be an easy way to plug in advanced experimental designs into existing systems with little overhead.More details on the design of the method on theAbout pageand in thepaper. Anexample of usage is below.Installation(packages not yet available)Withpip:pip install bwdUsageA simple example of how to useBWDto balance a stream of covariate data follows:frombwdimportBWDfromnumpy.randomimportdefault_rngimportnumpyasnprng=default_rng(2022)n=10000d=5ate=1beta=rng.normal(size=d)X=rng.normal(size=(n,d))balancer=BWD(N=n,D=d)A_bwd=[]A_rand=[]imbalance_bwd=np.array([[0]*d])imbalance_rand=np.array([[0]*d])increment_imbalance=lambdaimba,a,x:np.concatenate([imba,imba[-1:,:]+(2*a-1)*x])forxinX:# Assign with BWDa_bwd=balancer.assign_next(x)imbalance_bwd=increment_imbalance(imbalance_bwd,a_bwd,x)A_bwd.append(a_bwd)# Assign with Bernoulli randomizationa_rand=rng.binomial(n=1,p=0.5,size=1).item()imbalance_rand=increment_imbalance(imbalance_rand,a_rand,x)A_rand.append(a_rand)# Outcomes are only realized at the conclusion of the experimenteps=rng.normal(size=n)Y_bwd=X@beta+A_bwd*ate+epsY_rand=X@beta+A_rand+ate+epsWe can see how imbalance progresses as a function of time:importseabornassnsimportpandasaspdnorm_bwd=np.linalg.norm(imbalance_bwd,axis=1).tolist()norm_rand=np.linalg.norm(imbalance_rand,axis=1).tolist()sns.relplot(x=list(range(n+1))*2,y=norm_bwd+norm_rand,hue=["BWD"]*(n+1)+["Random"]*(n+1),kind="line",height=5,aspect=2,).set_axis_labels("Iteration","Imbalance");It's clear from the above chart that using BWD keeps imbalance substantially more under control than standard methods of randomization.CitationAPAArbour, D., Dimmery, D., Mai, T. & Rao, A.. (2022). Online Balanced Experimental Design.Proceedings of the 39th International Conference on Machine Learning, inProceedings of Machine Learning Research162:844-864 Available fromhttps://proceedings.mlr.press/v162/arbour22a.html.BibTeX@InProceedings{arbour2022online,
  title = 	 {Online Balanced Experimental Design},
  author =       {Arbour, David and Dimmery, Drew and Mai, Tung and Rao, Anup},
  booktitle = 	 {Proceedings of the 39th International Conference on Machine Learning},
  pages = 	 {844--864},
  year = 	 {2022},
  editor = 	 {Chaudhuri, Kamalika and Jegelka, Stefanie and Song, Le and Szepesvari, Csaba and Niu, Gang and Sabato, Sivan},
  volume = 	 {162},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {17--23 Jul},
  publisher =    {PMLR},
  pdf = 	 {https://proceedings.mlr.press/v162/arbour22a/arbour22a.pdf},
  url = 	 {https://proceedings.mlr.press/v162/arbour22a.html},
}
Package: bwdatausagelib
A Package for API services and utilities for sim data usage##NotesClone the repositoryCreate the virtual env and install the dependenciespy -m venv .venv
pip install -r requirements.txt-  Run testspytest -s- Download the build package for local developmentpy -m pip install build- Build the package to be used as an import to main scriptpy -m build- To install from local folder, change to the root directory of the main script and install the packagepy -m pip install ../bwdatausagelib/dist/bwdatausagelib-0.0.1.tar.gz- upload to pypi using twinetwine upload dist/* --config-file .pypirc**GlobalSimTable**
- The API service will check for the api queries on a table `GlobalSimsTable` to refill the queue each time it is below the set limit. This table will store all the entities that containing the Sim Provider and ICCID.
- `GlobalSimTable` must be created at the storage that is binded to the Azure function as set in Application Setting `AzureWebJobsStorage`
Package: bwenv
Bitwarden Environment VariablesSecurely use and share environment variables in your local development usingBitwarden!Before Using This ToolBefore using this tool, it is recommended you take a look atBitwarden Secrets Managerand see if it fulls your needs. At the time of writing, it is in beta and does not have the ability to replicate this tool's feature set. However, the Bitwarden Secrets Manager CLI is described as"a powerful tool for retrieving and injecting your secrets", so it may be possible to replicate this tool with their native offering in the future.Why Use This ToolIn short, storing your secrets (e.g., API keys, client secrets, etc.) in a plaintext.envfile is insecure and not portable. If your computer is ever hacked or stolen, the perpetrator will have easy access to this data. Additionally, with any distributed system without a central source of truth, it can be hard to know what the most up-to-date version of any secret is. In other words, when working in a team, storing your secrets in a secrets/passwords manager makes it is much easier to keep everyone in sync. This tool helps bridge the gap between storing these secrets in Bitwarden, and using these secrets in your shell.InstallpipinstallbwenvThis tool requires theBitwarden CLI. Make sure it is on yourPATHbefore using this tool (or else you will get aFileNotFoundErrorerror).Usagebwenv[-h][--sessionSESSION]{run,generate}...This tool uses theBitwarden CLIand needs a session token to access your Bitwarden vault. The session token can be generated by runningbw unlockand can be passed into this tool by either setting the session token to theBW_SESSIONenvironment variable or by using the--sessionflag.Setting up BitwardenWithin Bitwarden, you need to create the item to hold your environment variables. Thetypeof the item does not matter, however all environment variables need to add to theCustom Fieldssection and must not have the typeLinked. Fields with typeLinkedwill not have an environment variable created for them.bwenv generatebwenvgenerate[-h][-fENV_FILE]name[name...]This command is for generating a.envfile (filename is customizable with the-fflag). This will perform either a fuzzy search for the Bitwarden Item Name or ID. The founded environment variables will be appended to file (i.e., this will not overwrite existing data within the file).bwenv runbwenvrun[-h][-fENV_FILE]command[command...]This command is for running a command with the environment variables pulled from Bitwarden..envis the default filename and can be customized with the-fflag. This will not create environment variables for key-values defined without thebwenv://prefix.Is it safe to commit the generated.env?You should still avoid committing your.env, however if your.envis exposed, none of the information in the generated secret reference string is sensitive. You would still need the Bitwarden credentials to make use of this information.What about 1Password?1Password already has native support this for feature, and it is calledSecret References.