Saravanan666/pypi-org huggingface dataset:
Package: b-dist
This is a distribution class for calculating and visualizing a probaility distribution.It consist of two functions for now which areInstallationpip install --index-urlhttps://test.pypi.org/simple/b_distExample:~$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.from b_dist import Guassian
Guassian(10,7)
mean 10, standard deviation 7
Guassian(.4,8)
Package: bdist_docker
bdist_dockerDistutils extension command to build docker images for python applications.InstallationFirst install bdist_docker$ pip install bdist_dockerHow to useFirst you need to create a dockerfile, for exampleFROM ubuntu:14.04

EXPOSE 8080

RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip python3

ADD .docker_data /data
RUN pip3 install --no-index --find-links=/data/wheelhouse /data/dist/*.whl

CMD python3 -m MY_MODULEThe important part here is adding the docker data folder generated by bdist_docker and installing your package:ADD .docker_data /data
RUN pip3 install --no-index --find-links=/data/wheelhouse /data/dist/*.whlThen you just your setup.py with bdist_docker as your command:$ ./setup.py bdist_docker
Package: bdist_mpkg
bdist_mpkg is a distutils plugin that implements thebdist_mpkgcommand.
The command builds a Mac OS X metapackage for use by Installer.app for easy GUI
installation of Python modules, much likebdist_wininst.It also comes with abdist_mpkgscript, which is a setup.py front-end that
will allow you to easy build an installer metapackage from nearly any existing
package that uses distutils.Please email thePython-Mag SIG mailing listwith questions,
and let us know of bugs viagithub issuesCodeThe code started life at:http://undefined.org/python/#bdist_mpkgBob Ippolito wrote most of the code.Thecurrent repositoryis on Github.LicenseMIT license.  See theLICENSEfile in the source archive.CompatibilityThe code should be compatible with Pythons 2.5 through 3.3.
Package: bdist_nsi
The bdist_nsi module extends Python’s distutils module with a bdist_nsi
setup command to create binary Windows installers for Python modules,
based on NSIS. Thereby, bdist_nsi brings all the features of NSIS to
Windows installers for Python modules, such as silent install, modern
user interface, and internationalization.In actionTake a look at thescreenshots.What you needBesides Python and the bdist_nsi module, you will needNSIS. It can be run under windows and linux (see NSIS forum for instructions).InstallationThe latest version can always be downloaded fromhttps://sourceforge.net/projects/bdist-nsi/files.To install from source, simply run:python setup.py installUsageAddbdist_nsioption to your setup.py file.In your projects setup.py:try:
    import bdist_nsi
except ImportError:
    pass

nsis_options = {} # your nsis options
setup(
    name='your application name',
    version='0.0.x',
    author='your name',
    author_email='your email',
    url='http://yourdomain.com/',
    options={'bdist_nsi': nsis_options, },
    license='your license',) # your setup optionsYou can create installerpython setup.py bdist_nsicommand.If the makensis executable is not installed in one of the usual
locations (/usr/bin,C:\ProgramFiles\NSIS, orC:\ProgramFiles(x86)\NSIS), then you can specify the
NSIS folder with the–nsis-diroption, or just add-kto have a look
at the temporary generated files.DevelopmentDevelopment happens at github,http://github.com/amorilia/bdist_nsi/. Fork at will!
Package: bdist-pyinstaller
Overviewbdist_pyinstaller is a side-car distutils command to automate creation of the pyinstaller packages in a non-intrusive way.The problem dist_pyinstaller is trying to solveThe application written in Python is never directly executed natively. Similarly to Java, Python code is compiled into a byte code(opcode) and it's running on aPython VM.
As a consequence, to run anything written in Python one needs to have aninstallation of Pythoncompiler+VM.
It usually comes as OS-dependent package(rpm, deb etc.) or it can be compiled from source.Furthermore, despite having a very rich core libraries at their disposal, Python programs often need to pull some3rd party packagesin. Some packages require libraries which have to be pre-installed on the OS level.This would require the combination of:Internet connection or setting up the equivalent repositories holding the packagesPriviledge escalation if the installation of python and/or extra packages is to be treated as a system-wide oneAn extra care when dealing with version upgrades(both python itself as well as the packages) as various applications often come with conflicting requirements which are not straight forward to solve on a shared platform.There are solutions to all these problems, but they all come with the extra complexity, reduced reliability and maintanance cost when the aim is to have simple and stable way of executing a given program/utility.bdist_installeroffers a very simple path from a well defined Python utility to a single binary with all the required bits frozen-in. That includes the Python runtime. Thanks to pyinstaller used behind the scenes it is very powerful, yet still very simple in non-trivial use-cases.Table of ContentsGetting startedContributingHelp wantedGlossary
Package: bdist-venv2
Implements a python distutilsbdist_venv2command for creating avirtualenvbuilt distribution.It was based on what was already done by:https://github.com/mgood/bdist_venvbut incorporates ideas from:https://github.com/spotify/dh-virtualenvhttp://lucumr.pocoo.org/2012/6/22/hate-hate-hate-everywhereInstallsudopipinstallbdist-venv2ExampleSay you want to distribute a project called my-project. Get to itssetup.py:cd~/code/my-project/srcls...setup.py...Make sure you arenotin a virtualenv (you can’t create a virtualenv from
within a virtualenv). If you in one exit it:deactivateYou can either create a “relocatable” virtualenv alabdist_venv:pythonsetup.pybdist_venv2-fgztaror one “fixed-up” to be unpacked to a particular location:pythonsetup.pybdist_venv2-l/usr/lib/my-package-fgztarYou’ll find the results indistwhich might look something like:lsdist...dist/my-package-0.1.0.linux_x86_64-py2.7.tar.gz...depending on your environment.Usagepythonsetup.pybdist_venv2--helpCommoncommands:(see'--help-commands'formore)setup.pybuildwillbuildthepackageunderneath'build/'setup.pyinstallwillinstallthepackageGlobaloptions:--verbose(-v)runverbosely(default)--quiet(-q)runquietly(turnsverbosityoff)--dry-run(-n)don't actually do anything
  --help (-h)     show detailed help message
  --no-user-cfg   ignore pydistutils.cfg in your home directory

Options for 'bdist_venv2'command:--bdist-dir(-b)temporarydirectoryforcreatingthedistribution--location-dir(-l)locationwherevirtualenvwillbeinstalledto(default:relocatable)--extras(-e)listofextrastoincludedinthevirtualenv--plat-name(-p)platformnametoembedingeneratedfilenames(default:linux-x86_64)--keep-temp(-k)keeptheinstallationtreearoundaftercreatingthedistribution--keep-compiledkeepcompiledfilesinthedistribution--dist-name(-n)nameofthebuiltdistribution--dist-dir(-d)directorytoputfinalbuiltdistributionsin--format(-f)archiveformattocreate(tar,ztar,gztar,zip)(default:none)--owner(-u)Ownernameusedwhencreatingatarfile(default:currentuser)--group(-g)Groupnameusedwhencreatingatarfile(default:currentgroup)usage:setup.py[global_opts]cmd1[cmd1_opts][cmd2[cmd2_opts]...]or:setup.py--help[cmd1cmd2...]or:setup.py--help-commandsor:setup.pycmd--help0.1.2 (2014-01-05)Initial release.
Package: bdkpython
bdkpythonThe Python language bindings for theBitcoin Dev Kit.Install the packagepipinstallbdkpythonSimple exampleimportbdkpythonasbdkdescriptor=bdk.Descriptor("wpkh(tprv8ZgxMBicQKsPcx5nBGsR63Pe8KnRUqmbJNENAfGftF3yuXoMMoVJJcYeUw5eVkm9WBPjWYt6HMWYJNesB5HaNVBaFc1M6dRjWSYnmewUMYy/84h/0h/0h/0/*)",bdk.Network.TESTNET)db_config=bdk.DatabaseConfig.MEMORY()blockchain_config=bdk.BlockchainConfig.ELECTRUM(bdk.ElectrumConfig("ssl://electrum.blockstream.info:60002",None,5,None,100,True,))blockchain=bdk.Blockchain(blockchain_config)wallet=bdk.Wallet(descriptor=descriptor,change_descriptor=None,network=bdk.Network.TESTNET,database_config=db_config,)# print new receive addressaddress_info=wallet.get_address(bdk.AddressIndex.LAST_UNUSED())address=address_info.addressindex=address_info.indexprint(f"New BIP84 testnet address:{address}at index{index}")# print wallet balancewallet.sync(blockchain,None)balance=wallet.get_balance()print(f"Wallet balance is:{balance.total}")
Package: bd-metric
Bjontegaard_metricBjontegaard metric calculation. Include BD-PSNR and BD-rate.Seedemo.pyfor usage.References:[1] G. Bjontegaard, Calculation of average PSNR differences between
RD-curves (VCEG-M33)[2] S. Pateux, J. Jung, An excel add-in for computing Bjontegaard metric and
its evolution
Package: bdnotice
BDNOTICEGenerate Notice file from Blackduck in JSON, TEXT or HTML formatDescriptionThis is intended for generating Notice file from Blackduck in JSON, TEXT or HTML formatGetting StartedDependenciesBlackduckimportlib-resourcesInstallingpip install bdnoticeExecuting programHow to run the program<!-- on the folder it is running place this blackduck config file for blackduck library-->
.restconfig.json
{
    <!-- make sure Blackduck_url should not end with slash -->
  "baseurl": "Blackduck_url",
  "api_token": "API_KEY",
  "insecure": true,
  "debug": false
}

pip install bdnotice
ex:
bdnotice PJ PV -f C:\DIR\Blackduck_report -r HTML -c
bdnotice PJ PV -f C:\DIR\Blackduck_report -r TEXT -cHelpAny advise for common problems or issues.>bdnotice -h
usage: A program to generate the notices file for a given project-version
       [-h] [-f FILE_NAME_BASE] [-r {JSON,TEXT,HTML}] [-c] project_name version_name

positional arguments:
  project_name
  version_name

options:
  -h, --help            show this help message and exit
  -f FILE_NAME_BASE, --file_name_base FILE_NAME_BASE
                        Base file name to write the report data into. If the report
                        format is TEXT a .zip file will be created, otherwise a .json
                        file
  -r {JSON,TEXT,HTML}, --report_format {JSON,TEXT,HTML}
                        Report format - choices are TEXT, JSON or HTML
  -c, --include_copyright_info
                        Set this option to have additional copyright information from
                        the Black Duck KB included in the notices file report.AuthorsDinesh RaviVersion History0.1.0Initial ReleaseLicenseThis project is licensed under the MIT License - see theMITfile for detailsAcknowledgmentsBlackduckimportlib-resources
Package: bdoccore
How to install ?PreinstallBDOC-utils:pip install bdocutilsInstall from setup.py file :python setup.py installHow to exec tests ?Tests from setup.py file :python setup.py testContributingWe welcome contributions toBDOC-core! These are the many ways you can help:Submit patches and featuresMakeBDOC-core(new updates to improve main library)Improve theDocumentationReport bugsAnd Donatebdoc-donate!Please read ourdocumentationto get started. Also note that this project
is released with acode-of-conduct, please make sure to review and follow it.
Package: bdocutils
How to install ?Install from setup.py file :python setup.py installHow to exec tests ?Tests from setup.py file :python setup.py testContributingWe welcome contributions to BDOC-utils! These are the many ways you can help:Submit patches and featuresMake BDOC-utils (new updates for community server)Improve the documentation forBDOC-utilsReport bugsAnd Donatebdoc-donate!Please read ourdocumentationto get started. Also note that this project
is released with acode-of-conduct, please make sure to review and follow it.
Package: bdot
Bdot does big dot products (by making your RAM bigger on the inside).
It aims to let you do all the things you want to do with numpy,
but don’t have enough memory for. You can also use it to save space
in the cloud and quickly build production microservices.It’s pretty math.Bdot is based on Bcolz and includes transparent disk-based storage. It was created
to simplify production implementation of nearest neighbor search and other fancy
machine learning rigmarole.
Package: bdp
Welcome to BDPBDP (Block Diagrams in Python) aims to become a Python fronted forTikZwhen it comes to drawing block diagrams in order to facilitate the process. BDP wraps theTikZstatements into the Python objects so that users can describe diagrams in pure Python. However, inserting rawTikZin BDP is also possible. Figure below shows an BDP example image which represents the BDP compilation process.Figure can be rendered with thecompile_process.pyBDP diagram. It can be rendered into the PNG with BDP via command line:# bdp compile_process.py -pFor a complete list of command line options please take a look atcommand_linechapter of the documentation.Why BDP?BDP brings following benefits:Diagram description in Python which should render it more readableStep-by-step debugging of the diagram descriptionUse the tools and design environments available for Python development (debugging, code completion, refactoring, documentation utilities…)Use vast Python library of packagesBDP featuresBDP package comprises:Python classes that wrap the Tikz statementsClass for rendering PDF and PNG images from the Python descriptionShell entry point for rendering BDP images from command lineSphinx extensions for embedding BDP images into the Sphinx documentsImage below is a more complex example, which shows how power of Python programming can be used to generate diagrams with BDP. Image shows an UML-like diagram of few major BDP templates.Figure can be rendered with theuml.pyBDP diagram.Where to start?InstallationBDP package currently supports only Python 3. Following are alternative ways to install BDP.Install BDP using pip:pip3 install bdpInstall BDP using easy_install:easy_install3 bdpInstall BDP from source:python3 setup.py installBDP requires TeX Live, which could be installed on a Debian or a Debian-derived systems, with:# sudo apt-get install texliveFor converting PDF to PNG, pdftoppm, pnmcrop and pnmtopng are needed, which could be installed on a Debian or a Debian-derived systems, with:# sudo apt-get install poppler-utils
# sudo apt-get install netpbmRead the documentationRead theBDP documentationCheckout the examplesBDP images used in documentation are located in theimagesrepository documentation folder.Get involvedPull your copy fromgithub repository
Package: bdpy
BdPyPython package for brain decoding analysisRequirementsPython 3.8 or laternumpyscipyscikit-learnpandash5pyhdf5storagepyyamlOptional requirementsdataformmodulepandasdl.caffemoduleCaffePillowtqdmdl.torchmodulePyTorchPillowfigmodulematplotlibPillowmrimodulenipynibabelpandasrecon.torchmodulePyTorchPillowInstallationLatest stable release:$pipinstallbdpyTo install the latest development version ("master" branch of the repository), please run the following command.$pipinstallgit+https://github.com/KamitaniLab/bdpy.gitPackagesbdata: BdPy data format (BData) core packagedataform: Utilities for various data formatdistcomp: Distributed computation utilitiesdl: Deep learning utilitiesfeature: Utilities for DNN featuresfig: Utilities for figure creationml: Machine learning utilitiesmri: MRI utilitiesopendata: Open data utilitiespreproc: Utilities for preprocessingrecon: Reconstruction methodsstats: Utilities for statisticsutil: Miscellaneous utilitiesBdPy data formatBdPy data format (or BrainDecoderToolbox2 data format; BData) consists of two variables: dataset and metadata.datasetstores brain activity data (e.g., voxel signal value for fMRI data), target variables (e.g., ID of stimuli for vision experiments), and additional information specifying experimental design (e.g., run and block numbers for fMRI experiments). Each row corresponds to a single 'sample', and each column representes either single feature (voxel), target, or experiment design information.metadatacontains data describing meta-information for each column in dataset.SeeBData API examplesfor useage of BData.DevelopersShuntaro C. Aoki (Kyoto Univ)
Package: bdpyconsts
Python constant managerNew features2023.06.14
1. Support manual constant modification by locking the flag bit with a manual switch

    from bdpyconsts import bdpyconsts as consts

    consts.ABCD = "abcd"

    # one way
    consts.unlock()
    consts.ABCD = "abcd"
    consts.locked()

    # another way
    if not consts.lock:
        onsts.ABCD = "abcd"
Package: bdrc-db-lib
bdrc-db-libPackage which supports Uses an indirect config file for the database
connectionDevelopmentPycharm: although this is a subfolder in thearchive_opsproject, itmustbe developed as a standalone project. Other projects in
archive-ops use it as a client, and itmustbe imported into theirvenvOpen the projectbdrc_db_libin `archive_ops/bdrc_db_libDeployment# be in project main dirpython-msetupbdist_wheeltwineupload--verbose-rtestpypidist/bdrc_db_lib-x.MM.mm-py3-none-any.whlInstallationpyPI.org bdrc-db-libChangelogversionComments1.0.15Update doc1.0.14Base classes for timestamp and mixin1.0.10Initial
Package: bdren-finance
Setupyou need to add 3 variables in your settings.py file:# settings.pyBDREN_FINANCE_URL='https://finance.bdren.net.bd'BDREN_FINANCE_AUTH_EMAIL='your_username'BDREN_FINANCE_AUTH_PASSWORD='your_password'Usagefrombdren_financeimportget_accounts,create_entry,update_entryprint(get_accounts(query='your_query'))payload={"transNo":"","transDate":"2024-01-01","entryDate":"2024-01-01","generalParticular":"This is general Particular","vouchers":[{"accountNo":15600005,"accountName":"FDR with Jananta Bank -UGC Bhaban Branch","drAmount":100,"crAmount":0,"particular":"Bank will be debited","type":"dr"},{"accountNo":55500700,"accountName":"Sub-Project Revenue - DUET","drAmount":0,"crAmount":100,"particular":"The university will be credited ","type":"cr"}]}print(create_entry(payload))trans_no='your_trans_no'print(update_entry(trans_no,payload))
Package: bdsf
PyBDSF (the PythonBlobDetection andSourceFinder)
is a tool designed to decompose radio interferometry images into
sources and make available their properties for further use. PyBDSF can
decompose an image into a set of Gaussians, shapelets, or wavelets as
well as calculate spectral indices and polarization properties of
sources and measure the psf variation across an image. PyBDSF uses an
interactive environment based on CASA that will be familiar to most
radio astronomers. Additionally, PyBDSF may also be used in Python
scripts.The documentation is currently hosted athttps://pybdsf.readthedocs.ioInstallationInstallation can be done in a number of ways. In order of preference (read:
easy of use):Install the latest release from PyPI:pip install bdsfNoteThe interactive shellpybdsfis no longer installed by default.
To install it you have to specify the extra[ishell]. For example:pip install bdsf[ishell]Install themasterbranch from the PyBDSF git repository:pip install git+https://github.com/lofar-astron/PyBDSF.gitOr install a specific revision or release, for examplev1.9.3:pip install git+https://github.com/lofar-astron/PyBDSF.git@v1.9.3Install from a local source tree, e.g. after you cloned the git repository:pip install .or (to install the interactive shell as well):pip install .[ishell]If you get the error:RuntimeError: module compiled against API version 0xf but this version of numpy is 0xdthen please updatenumpywithpip install-Unumpy.Attention!It isnotrecommend to usepython setup.py install. It is
deprecated, and we donotsupport it.External requirements include the ubuntu packages (or similar packages in another Linux distribution):gfortranlibboost-python-devlibboost-numpy-dev(Only if boost > 1.63)python-setuptools.Also, a workingnumpyinstallation is required. At runtime, you will needscipyand eitherpyfitsandpywcsorpython-casacoreorastropy.If you install as a user not using conda, usepip install--user.
Make sure to use similar versions for gcc, g++ and gfortran
(use update-alternatives if multiple versions of gcc/g++/gfortran are present on the system).
In this case, the scriptpybdsfis installed in~/.local/bin, so you might want to add that to your$PATH.Installation on MacOS / OSX is more involved, you will need the packages mentioned above, for example installed with Homebrew.
You will need to tellsetup.pyto use the same compiler for fortran as for C++. In case of problems, seehttps://github.com/lofar-astron/PyBDSF/issues/104#issuecomment-509267088for some possible steps to try.
Package: bdsim-realtime
BDSim RealtimeReal-time execution and remote monitoring and tuning of BDSim Block-Diagrams for modelling and control of Dynamical Systems.
Seehttps://github.com/petercorke/bdsimfor the base framework and simulation package.TODO: more docsBDSim Web-TunerWeb-based telemetry and parameter tuning interface for BDSimNote: Screen-recording lead to low FPS - usual FPS was around 30 on the laptop used (max for webcam).Note: under heavy development (pre-alpha). These instructions will not fully work at the time of writing, but is supposed to give an idea of the usage once released.Installationpipinstall"bdsim_realtime[opencv]"# opencv optionalUsageFirst, start the server and keep it running:python-mbdsim_realtime.webappThen, add and run your bdsim script,importbdsim,numpyasnpimportbdsim_realtime# setup block-diagram and tuner clientbd=bdsim.BDSim(packages="bdsim_realtime").blockdiagram()# All TunableBlocks within this context manager will register their parameters swith the Tunerwithbdsim_realtime.tuning.tuners.TcpClientTuner()astuner:# use first local camera availableclock=bd.clock(24,unit='Hz')bgr=bd.CAMERA(0,clock=clock)# display in web streambd.DISPLAY(bgr,name="BGR Stream",web_stream_host=tuner,show_fps=True)# tune system parameters in the web editorgain=tuner.param(1,min=0,max=100)# stream some telemetry data (random for demo)data=bd.FUNCTION(lambda_:(gain.val*np.random.rand(3)).tolist(),nin=1,# unused import required here to use function as a Clocked Source Blocknout=3)bd.connect(bgr,data)bd.TUNERSCOPE(data[0],data[1],data[2],nin=3,labels=['x','y','z'],name='Random Data',tuner=tuner)bd.compile()# perform verificationbdsim_realtime.run(bd,tuner=tuner)# run foreverNow access the tuner athttp://localhost:8080DevelopmentSetuppython-mvenv.venv# create venvsource.venv/bin/activate# activate venvpipinstall-e".[opencv]"# install in editable symlink modenpmi# install JS depsFrontendnpm run dev # run hot-reloaded appBackendSame as non-development version. Run:python -m bdsim_realtime.webappAnd then run your example / test script:python examples/blob_detector_tuner.py
Package: bds-sampler
BDS-samplercython bindings for Charo Del Genio's bi-degree sequence generator (https://charodelgenio.weebly.com/directed-graph-sampling.html)which are an implementation of the paper Constructing and sampling directed graphs with given degree sequenceshttps://doi.org/10.1088/1367-2630/14/2/023012Installpythonsetup.pybuild_ext-i
pipinstall.Usagefrombds_samplerimportsampleimportnumpyasnpseq=np.array([[1,2],[3,2],[4,6],[3,3],[5,3],[4,4],])print(sample(in_seq=seq[:,0],out_seq=seq[:,1],N_samples=10))