Saravanan666/pypi-org huggingface dataset:
Package: b21scripts
b21scriptsVarious scripts, libraries and modules to help with manipulating data and files associated with SAXS experiments and data analysis and particularly suited to the workflow at the B21 SAXS beamline, Diamond Light Source.
The Repository URL is:https://github.com/nathancowieson/b21scriptsThe Repository can be found on PyPi:https://pypi.org/project/b21scripts/Install via pip:pip install b21scriptsreadwriteThe readwrite libraries provied a convenient way to parse various files that might be associated with a SAXS experiment such as .dat files, .pdb files, fit files giving the fit of a model to experimental data and out files containing the output from the indirect Fourier transform as produced by theATSASprogramGnom.Modulesreadwrite.dat.DAT
Functions for reading and writing files of type .dat containing three columns of SAXS data, scattering vector Q, intensity and error.readwrite.pdb.PDB
Functions for reading and writing files of type .pdb. These are files describing a molecular structure of the type that might have been downloaded from theProtein Data Bank. The library can parse such a file into a dictionary and then back out to a valid pdb file. There are functions to allow atomic coordinates to be rotated or translated etc.saxsThe saxs libraries contain functions related to calculation and manipulation of SAXS data.Modulessaxs.saxs_calc.SaxsCalc
A wrapper for running eitherFoXSorCrysol, parsing the output to capture the Chi^2 score for use in plotting or automatically comparing fits etc. To run either of these programs they must be available on the system path as 'foxs' or 'crysol'.
Package: b22ao
b22ao: API for B22 adaptive optics operationsThis package provides the basic API for Adaptive Optics scripts running at beamline B22 in Diamond Light Source.Adaptive Optics operations must implement b22ao.base.BaseOperation, which provides methods for deforming mirrors and
capturing images. The implementation is run by the AO manager which will inject any given JSON configuration file.Example:fromb22ao.baseimportBaseOperationimportnumpyclassMyAO(BaseOperation):defstart(self):max_iter=self.config['max_iter']self.select_dm(self.config['mirror'])self.stopping=Falseforiterinrange(max_iter):ifself.stopping:self.stopping=Falsebreakself.deform(numpy.zeros(97))self.capture()print("Finished!")defstop(self):self.stopping=TrueAnd the configuration file:{"max_iter":300,"mirror":2}
Package: b26
b26 - Base 26 Encoder and DecoderA common example usage is alphabetical counting:
When 'Z' is reached, the next items will be 'AA',
'AB' and so on.Installationpipinstallb26Basic Usageimportb26fori,iteminenumerate(["Apples","Banana","Pineapple",...,]):print(f"{b26.encode(i)}.{item}")APIdecode()decode(string:str)->intConverts an alphabetical string into an integer.ParametersstringA string that only consists of ASCII letters to
convert into an integer.encode()encode(integer:int)->strConvert an integer into an alphabetical string.ParametersintegerA positive integer or 0 to convert into a
string.ReturnsAn uppercase alphabetical string.
Package: b2binpay-python
b2binpay-pyPython library for working withB2binPayInstallpip install b2binpay-pyExamplefrom b2binpay import client
import asyncio


async def main():
    c = await client.AsyncClient("API_KEY", "API_SERCET", test=True).connect()
    w = await c.get_wallets()
    await c.close_connection()


if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
Package: b2btest-audio
b2btest audio - Audio file plugin for b2btestThis package adds audio file support to b2btest.
b2btest is a tool to automate tests that compare results
to some previous ones, and this plugin,
is helpful to compare audiofiles in a sensible way.Seeb2btest READMEfor a deeper discussion on why you should avoid back-to-back testing,
although sometimes it is the lesser evil way to proceed.This plugin handles audiofiles specially in several ways:Instead of doing a text or byte difference, it interprets the audio contents and compares them sample by sample.It considers two outputs to be different if:Metadata differsSample-by-sample differs relative to the audio levelIn the case of differences, it generates a diff audio by substracting both waves sample by sample.By means ofpython-wavefile, it supports floating point samples, and multichannel waves.How to installJust use:$pipinstallb2btest_audioDependenciesThis plugin requires thewavefilemodule,
which in turn requires havinglibsndfilelibrary installed in your system.Back2Back testing of cli programsWhen you are testing back-to-back the output of a command line,
you define a yaml file like this (name it b2bcases.yaml).#!/usr/bin/env back2backdatapath:"b2bdata"# Point it to the directory containing your reference datatestcases:Generate1KHzSine:command:sox -n /tmp/sine.wav synth 1.0 sine  1000.0outputs:-/tmp/sine.wavOuputs with supported audio file extension will be recognize
and this plugin diff will be used for them.See [b2btest] documentation on how to use this file.Command line toolThe package also provides adiffaudioCLI tool to generate the audio differenceChange logb2btest audio 1.4.0Audio plugin separated from b2btest packageIn earlier versions this plugin was distributed
as an optional plugin inb2btestb2btest 1.3.3Simplified dependency on lxmlb2btest 1.3.2diffaudioas console scriptdiffxmlas console scriptFix: entry points for xml and audio pluginsJust markdown READMEb2btest 1.3.1Updated READMEb2btest 1.3Avoid larg diffs by telling just the generated file with the failed resultsFix unicode problems in certain python versionsUsing older lxml versions for python<3.5b2btest 1.2CLI: Fix: only the first output was actually checkedPlugin based type sensitive diffSpecific diff for XMLXML and Audio diffing now are extras'extensions' key in yaml testcases to associate custom file extensions to a diff pluginb2btest 1.1Unit test like usage for back-to-back test Python code instead of command line programs.New commandline toolback2backthat takes a yaml file with the test cases definitions.b2btest 1.0First github version(There were previous unpublished versions)
Package: b2cloud
b2cloudヤマト運輸株式会社の『送り状発行システムB2クラウド』を操作して伝票を印刷するためのモジュールです。
利用にあたっては、ヤマトビジネスメンバーズのaccount情報が必要となります。インストールpipinstallb2cloudコード例履歴の取得importb2cloudimportb2cloud.utilitiessession=b2cloud.login('your customer_code','your customer_password')dm=b2cloud.search_history(session,service_type='3')forentryindm['feed']['entry']:print(entry['shipment']['tracking_number'],entry['shipment']['consignee_name'])新規に伝票を作成し、データに不備がないかチェックする# 伝票情報を生成するshipment=b2cloud.utilities.create_dm_shipment(shipment_date='2022/12/24',consignee_telephone_display='00-0000-0000',consignee_name='テスト',consignee_zip_code='8900053',consignee_address1='鹿児島県',consignee_address2='鹿児島市',consignee_address3='中央町10',consignee_address4='キャンセビル６階',consignee_department1='インターマン株式会社')# データに不備がないかチェックするres=b2cloud.check_shipment(session,shipment)print(res)e.g.{'success':True,'errors':[]}伝票の新規保存# shipmentsをpost_new_checkonlyを通すchecked_feed=b2cloud.post_new_checkonly(session,[shipment])# 伝票情報をB2クラウドに保存するres=b2cloud.post_new(session,checked_feed)保存した伝票をDM形式で印刷し各伝票毎にPDFファイルに保存する# 保存済みのDM伝票を取得dm_feed=b2cloud.get_new(session,params={'service_type':'3'})# DM伝票形式（１シート8枚）で印刷dm_pdf=b2cloud.print_issue(session,'3',dm_feed)# １伝票毎に分割するpdfs=b2cloud.utilities.split_pdf_dm(dm_pdf)foriinrange(len(pdfs)):withopen(f'dm_{i}.pdf','wb')asf:f.write(pdfs[i])住所を伝票情報に変換する住所正規化サービスAddressian(https://addressian.netlify.app/)のAPI Keyが必要です。consignee_address=b2cloud.utilities.get_address_info(session=session,addressian_api_key='abcdefghijklmnopqrtsuvwxyz1234567890',address='鹿児島市中央町10キャンセビル6F')print(consignee_address)e.g.{"consignee_zip_code":"8900053","consignee_address1":"鹿児島県","consignee_address2":"鹿児島市","consignee_address3":"中央町10","consignee_address4":"キャンセビル6F"}pytestパラメータでログイン情報やaddressian_api_keyを指定します。※注意テストを実行するとテスト伝票が発行されます。
テスト実行後は、B2クラウドWEBサイトにログインして「保存分の発行」や「発行済みデータの検索」からテストデータを削除することをお勧めします。pytest コマンド例pytest-qtests/test_01.py--customer_code=0123456789--customer_password=abcdefghi--addressian_api_key=abcdefghijklmnopqrtsuvwxyz1234567890パラメーターの一覧parser.addoption("--customer_code",action="store",default="")parser.addoption("--customer_password",action="store",default="")parser.addoption("--customer_cls_cocde",action="store",default="")parser.addoption("--login_user_id",action="store",default="")parser.addoption("--addressian_api_key",action="store",default="")
Package: b2constsites
IntroductionBased on thissuggestionby Remco, we can correctly account for constant sites in a BEAST2
analysis by adding the followingdatatag below your currentdatatag:<data id="xyz" spec="FilteredAlignment" filter="-" data="@xyzOriginal" constantSiteWeights="100 200 300 400"/>This assumes that your original<data>tag hadid=xyzand was
renamed toid=xyzOriginal, and that you have 1000 constant sites
that were removed from the alignment, with:100 As200 Cs300 Gs400 TsWhat does this do?This script will take a FASTA file with a single DNA sequence (e.g., a
bacterial chromosome), a VCF file containing the position of SNPs along
the FASTA file (e.g., as outputted fromsnippy-core) and the XML
file produced by BEAUTi containing only variable sites. It will output a
new XML file named<original_xml_name>_plus_const.xmlwith the added
information to account for constant sites. There is nothing else you
need to do but run BEAST2.It will optionally also take a BED file with positions to mask (e.g.,
positions of phage).How to install?pip3 install b2constsitesHow to run it?If installed correctly, a scripted calledrun_b2csshould be
available in your path:run_b2cs --helpAt a minimum, you need to supply a sequence file with your reference
(assuming it has a single chromosome entry — this was designed for
bacterial genomics, but may work with viral too), a VCF file with
variants, and the XML output from BEAUTi.run_b2cs myref.fasta myvar.vcf myxml.xmlA new file calledmyxml_plus_const.xmlwill be created in the same
folder asmyxml.xml.ASSUMPTIONS and CAVEATSThis script will:Only take in to account SNPs and MNPs annotated in the VCF. Other
variant types will be ignored.Will only take into consideration A, C, G, and T bases in your
reference sequence. All other characters will be ignored.Has not been tested with BEAST1.8, and as far as I know it willnotwork with that version of BEAST. This was designed for use
with BEAST2.The output will be, therefore, an approximation. However, it should be a
close enough approximation that it will provide a better inference from
BEAST2 than if one uses only variable sites, and then corrects in somepost hocmanner.AuthorsAnders Gonçalves da SilvaSarah BainesJean LeeTorsten SeemannMaintainerAnders Gonçalves da SilvaIssues or QuestionsGitHub Issues
Package: b2filt
b2filtOutput filter forB2 buildfrom theBoost C++ project.Installpipinstallb2filtUsageJust replace any call tob2withb2filt. All command line options are forwarded tob2.FeaturesFilters out uninteresting stuff, but shows errors verbatimAutomatically shows long compilation error messages in pager at end of runWorks perfectly with-jNUsesb2in your current Boost super project and falls back tob2available in PATHDisplays wall time it took to compile/run everything
Package: b2-forms
b2-utilsPassosEm caso de ser sua primeira vez publicando a lib no pipy é necessario um arquivo de configuração no home do seu computador com o nome .pypirc, para mais dethes consulte o topico no clickup (b2-utils-pypi).Antes de rodar o script para publicar a lib no pip é necessario subir a versão dela no pyproject.toml.[project]name="b2-utils"version="0.X.XX"Logo apos é necessario o rodar o script que compila as dependencias ./compile.shPor fim só publicar ser feliz.
Package: b2gperf
# b2gperfb2gperf is a tool for testing the performance of[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS).## PrerequisitesYou will need a[Marionette enabled Firefox build](https://developer.mozilla.org/en-US/docs/Marionette/Builds)that you can[successfully connect to](https://developer.mozilla.org/en-US/docs/Marionette/Connecting_to_B2G).## InstallationInstallation is simple:pip install b2gperfIf you anticipate modifying b2gperf, you can instead:git clone git://github.com/mozilla/b2gperf.gitcd b2gperfpython setup.py develop## RunningUsage: b2gperf [options] app_name [app_name] ...For full usage details run `b2gperf --help`.## Test VariablesCurrently the only test variable support is for a wifi network. If you want toconnect to wifi before measuring performance, please specify a path to a JSONfile that describes the network. For example:{"wifi": {"ssid": "MyNetwork","keyManagement": "WPA-PSK","psk": "SecurePassword"}}
Package: b2gperf-v1.3
# b2gperfb2gperf is a tool for testing the performance of[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS).## PrerequisitesYou will need a[Marionette enabled Firefox build](https://developer.mozilla.org/en-US/docs/Marionette/Builds)that you can[successfully connect to](https://developer.mozilla.org/en-US/docs/Marionette/Connecting_to_B2G).## InstallationInstallation is simple:pip install b2gperfIf you anticipate modifying b2gperf, you can instead:git clone git://github.com/davehunt/b2gperf.gitcd b2gperfpython setup.py develop## RunningUsage: b2gperf [options] app_name [app_name] ...Options:-h, --help        show this help message and exit--dz-url=str      datazilla server url (default: https://datazilla.mozilla.org)--dz-project=str  datazilla project name--dz-branch=str   datazilla branch name--dz-key=str      oauth key for datazilla server--dz-secret=str   oauth secret for datazilla server--delay=float     duration (in seconds) to wait before each iteration--log-level=str   threshold for log output (default: INFO)--iterations=int  number of times to launch each app (default: 30)--no-restart      do not restart B2G between tests--settle-time     time to wait before initial launch (default: 60)--testvars=str    path to a json file with any test data required--test-type=str   type of test to run, valid types are: ['startup', 'scrollfps'] (default: startup)## Test VariablesCurrently the only test variable support is for a wifi network. If you want toconnect to wifi before measuring performance, please specify a path to a JSONfile that describes the network. For example:{"wifi": {"ssid": "MyNetwork","keyManagement": "WPA-PSK","psk": "SecurePassword"}}
Package: b2gperf-v1.4
# b2gperfb2gperf is a tool for testing the performance of[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS).## PrerequisitesYou will need a[Marionette enabled Firefox build](https://developer.mozilla.org/en-US/docs/Marionette/Builds)that you can[successfully connect to](https://developer.mozilla.org/en-US/docs/Marionette/Connecting_to_B2G).## InstallationInstallation is simple:pip install b2gperfIf you anticipate modifying b2gperf, you can instead:git clone git://github.com/davehunt/b2gperf.gitcd b2gperfpython setup.py develop## RunningUsage: b2gperf [options] app_name [app_name] ...Options:-h, --help        show this help message and exit--dz-url=str      datazilla server url (default: https://datazilla.mozilla.org)--dz-project=str  datazilla project name--dz-branch=str   datazilla branch name--dz-key=str      oauth key for datazilla server--dz-secret=str   oauth secret for datazilla server--delay=float     duration (in seconds) to wait before each iteration--log-level=str   threshold for log output (default: INFO)--iterations=int  number of times to launch each app (default: 30)--no-restart      do not restart B2G between tests--settle-time     time to wait before initial launch (default: 60)--testvars=str    path to a json file with any test data required--test-type=str   type of test to run, valid types are: ['startup', 'scrollfps'] (default: startup)## Test VariablesCurrently the only test variable support is for a wifi network. If you want toconnect to wifi before measuring performance, please specify a path to a JSONfile that describes the network. For example:{"wifi": {"ssid": "MyNetwork","keyManagement": "WPA-PSK","psk": "SecurePassword"}}
Package: b2gperf-v2.0
# b2gperfb2gperf is a tool for testing the performance of[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS).## PrerequisitesYou will need a[Marionette enabled Firefox build](https://developer.mozilla.org/en-US/docs/Marionette/Builds)that you can[successfully connect to](https://developer.mozilla.org/en-US/docs/Marionette/Connecting_to_B2G).## InstallationInstallation is simple:pip install b2gperfIf you anticipate modifying b2gperf, you can instead:git clone git://github.com/mozilla/b2gperf.gitcd b2gperfpython setup.py develop## RunningUsage: b2gperf [options] app_name [app_name] ...For full usage details run `b2gperf --help`.## Test VariablesCurrently the only test variable support is for a wifi network. If you want toconnect to wifi before measuring performance, please specify a path to a JSONfile that describes the network. For example:{"wifi": {"ssid": "MyNetwork","keyManagement": "WPA-PSK","psk": "SecurePassword"}}
Package: b2gperf-v2.1
# b2gperfb2gperf is a tool for testing the performance of[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS).## PrerequisitesYou will need a[Marionette enabled Firefox build](https://developer.mozilla.org/en-US/docs/Marionette/Builds)that you can[successfully connect to](https://developer.mozilla.org/en-US/docs/Marionette/Connecting_to_B2G).## InstallationInstallation is simple:pip install b2gperfIf you anticipate modifying b2gperf, you can instead:git clone git://github.com/mozilla/b2gperf.gitcd b2gperfpython setup.py develop## RunningUsage: b2gperf [options] app_name [app_name] ...For full usage details run `b2gperf --help`.## Test VariablesCurrently the only test variable support is for a wifi network. If you want toconnect to wifi before measuring performance, please specify a path to a JSONfile that describes the network. For example:{"wifi": {"ssid": "MyNetwork","keyManagement": "WPA-PSK","psk": "SecurePassword"}}
Package: b2gperf-v2.2
# b2gperfb2gperf is a tool for testing the performance of[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS).## PrerequisitesYou will need a[Marionette enabled Firefox build](https://developer.mozilla.org/en-US/docs/Marionette/Builds)that you can[successfully connect to](https://developer.mozilla.org/en-US/docs/Marionette/Connecting_to_B2G).## InstallationInstallation is simple:pip install b2gperfIf you anticipate modifying b2gperf, you can instead:git clone git://github.com/mozilla/b2gperf.gitcd b2gperfpython setup.py develop## RunningUsage: b2gperf [options] app_name [app_name] ...For full usage details run `b2gperf --help`.## Test VariablesCurrently the only test variable support is for a wifi network. If you want toconnect to wifi before measuring performance, please specify a path to a JSONfile that describes the network. For example:{"wifi": {"ssid": "MyNetwork","keyManagement": "WPA-PSK","psk": "SecurePassword"}}
Package: b2gpopulate
# b2gpopulateb2gpopulate is a tool to populate a
[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS)
device with content.## RequirementsYour device must be running a build of Firefox OS with
[Marionette](https://developer.mozilla.org/docs/Marionette) enabled.## InstallationInstallation is simple:pip install b2gpopulateIf you anticipate modifying b2gpopulate, you can instead:git clone git://github.com/mozilla/b2gpopulate.git
cd b2gpopulate
python setup.py develop## RunningFor full usage details runb2gpopulate –help.
Package: b2gpopulate-v1.3
# b2gpopulateb2gpopulate is a tool to populate a
[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS)
device with content.## RequirementsYour device must be running a build of Firefox OS with
[Marionette](https://developer.mozilla.org/docs/Marionette) enabled.## InstallationInstallation is simple:pip install b2gpopulateIf you anticipate modifying b2gpopulate, you can instead:git clone git://github.com/mozilla/b2gpopulate.git
cd b2gpopulate
python setup.py develop## RunningUsage: b2gpopulate [options]Options:-h,--helpshow this help message and exit--calls=intnumber of calls to create. must be one of: [0, 50, 100, 200, 500]--contacts=intnumber of contacts to create. must be one of: [0, 200, 500, 1000, 2000]--events=intnumber of events to create. must be one of: [0, 900, 1300, 2400, 3200]--messages=intnumber of messages to create. must be one of: [0, 200, 500, 1000, 2000]--music=intnumber of music files to create--pictures=intnumber of pictures to create--videos=intnumber of videos to create
Package: b2gpopulate-v1.4
# b2gpopulateb2gpopulate is a tool to populate a
[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS)
device with content.## RequirementsYour device must be running a build of Firefox OS with
[Marionette](https://developer.mozilla.org/docs/Marionette) enabled.## InstallationInstallation is simple:pip install b2gpopulateIf you anticipate modifying b2gpopulate, you can instead:git clone git://github.com/mozilla/b2gpopulate.git
cd b2gpopulate
python setup.py develop## RunningUsage: b2gpopulate [options]Options:-h,--helpshow this help message and exit--calls=intnumber of calls to create. must be one of: [0, 50, 100, 200, 500]--contacts=intnumber of contacts to create. must be one of: [0, 200, 500, 1000, 2000]--events=intnumber of events to create. must be one of: [0, 900, 1300, 2400, 3200]--messages=intnumber of messages to create. must be one of: [0, 200, 500, 1000, 2000]--music=intnumber of music files to create--pictures=intnumber of pictures to create--videos=intnumber of videos to create
Package: b2gpopulate-v2.0
# b2gpopulateb2gpopulate is a tool to populate a
[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS)
device with content.## RequirementsYour device must be running a build of Firefox OS with
[Marionette](https://developer.mozilla.org/docs/Marionette) enabled.## InstallationInstallation is simple:pip install b2gpopulateIf you anticipate modifying b2gpopulate, you can instead:git clone git://github.com/mozilla/b2gpopulate.git
cd b2gpopulate
python setup.py develop## RunningUsage: b2gpopulate [options]Options:-h,--helpshow this help message and exit--calls=intnumber of calls to create. must be one of: [0, 50, 100, 200, 500]--contacts=intnumber of contacts to create. must be one of: [0, 200, 500, 1000, 2000]--events=intnumber of events to create. must be one of: [0, 900, 1300, 2400, 3200]--messages=intnumber of messages to create. must be one of: [0, 200, 500, 1000, 2000]--music=intnumber of music files to create--pictures=intnumber of pictures to create--videos=intnumber of videos to create--workload=strworkload type to create. must be one of: [‘light’, ‘medium’, ‘heavy’, ‘x-heavy’]
Package: b2gpopulate-v2.1
# b2gpopulateb2gpopulate is a tool to populate a
[Firefox OS](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS)
device with content.## RequirementsYour device must be running a build of Firefox OS with
[Marionette](https://developer.mozilla.org/docs/Marionette) enabled.## InstallationInstallation is simple:pip install b2gpopulateIf you anticipate modifying b2gpopulate, you can instead:git clone git://github.com/mozilla/b2gpopulate.git
cd b2gpopulate
python setup.py develop## RunningUsage: b2gpopulate [options]Options:-h,--helpshow this help message and exit--calls=intnumber of calls to create. must be one of: [0, 50, 100, 200, 500]--contacts=intnumber of contacts to create. must be one of: [0, 200, 500, 1000, 2000]--events=intnumber of events to create. must be one of: [0, 900, 1300, 2400, 3200]--messages=intnumber of messages to create. must be one of: [0, 200, 500, 1000, 2000]--music=intnumber of music files to create--pictures=intnumber of pictures to create--videos=intnumber of videos to create--workload=strworkload type to create. must be one of: [‘light’, ‘medium’, ‘heavy’, ‘x-heavy’]