Saravanan666/pypi-org huggingface dataset:
Package: bytestory
ByteStoryUnpacking from bytes and packing into bytes, with an object interface.Installpip install bytestoryUsageUnpacking from bytesimportbytestoryclassOneByte(bytestory.ByteStory):a=bytestory.Charone_byte=OneByte(b'\x11')assertone_byte.a==0x11Packing into bytesimportbytestoryclassOneByte(bytestory.ByteStory):a=bytestory.Charone_byte=OneByte(a=0x11)assertone_byte.pack()==b'\x11'More examples attests/test_bytestory.py.
Package: bytes-warning
arguments to the python interpreter, (like uwsgi)Home-page:https://github.com/davidszotten/bytes-warningAuthor: David Szotten
Author-email:davidszotten@gmail.comLicense: UNKNOWN
Description: # Bytes-warningHack to set the BytesWarning flag in environments where you can’t pass
arguments to the python interpreter, (like uwsgi)## Installation$ pip install bytes_warning## Usageimport warnings, bytes_warning
bytes_warning.set_flag(1)
warnings.filterwarnings(‘default’, category=BytesWarning)## LicenseMITPlatform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Package: bytetracker
ByteTrack-Pip: Packaged version of the ByteTrack repositoryOverviewThis repo is a packaged version of theByteTrackalgorithm.Installationpip install bytetrackerDetection Model + ByteTrackfrombytetrackerimportBYTETrackertracker=BYTETracker(args)forimageinimages:dets=detector(image)online_targets=tracker.update(dets)Reference:Yolov5-PipByteTrackCitation@article{zhang2022bytetrack,title={ByteTrack: Multi-Object Tracking by Associating Every Detection Box},author={Zhang, Yifu and Sun, Peize and Jiang, Yi and Yu, Dongdong and Weng, Fucheng and Yuan, Zehuan and Luo, Ping and Liu, Wenyu and Wang, Xinggang},booktitle={Proceedings of the European Conference on Computer Vision (ECCV)},year={2022}}
Package: byte-triggers
Byte-triggersDelviers integer triggers between 0 and 255 on a parallel port or on an LSL marker
stream.Installbyte_triggersis available onPyPI.pip install byte_triggersUsageFor the API reference, see the onlinedocumentation.from byte_triggers import LSLTrigger, MockTrigger, ParallelPortTrigger

trigger = MockTrigger()
trigger.signal(1)

trigger = LSLTrigger("MyTrigger")
trigger.signal(1)

# on-board parallel port on linux
trigger = ParallelPortTrigger("/dev/parport0")
trigger.signal(1)

# on-board parallel port on windows
trigger = ParallelPortTrigger(0x4FB8)
trigger.signal(1)

# arduino to parallel port converter
trigger = ParallelPortTrigger("arduino")
trigger.signal(1)Copyright and licenseThe code is released under theMIT License.
Package: byteworker
byteworkerConvert byte to word and world to decimalVersion: 1.0.0BackgroundWe are developing an automaton system. where hardware send data through post request but send only byte without any headers and formatting.
I have just build this package for working with this kind of situation easilyexample inputb'\\xd2\\x04.\\x164#\\x80\\r'orb'\xd2\x04.\x164#\x80\r'Output[1234, 5678, 9012, 3456]Available Functionsis_byte_has_double_slash() 
    1. return True or False
    
double_slash_to_sinble_slash() 
    1. Fix byte \\ issue convert it to \ 
    
get_perfect_byte() 
    1. Return perfect bye if it ha \\ change to \
    2. If it has \ just return it

byte_to_word_to_decemal_array()
	1. It receive a byte and return decimal array by wordEnjoyIf you like please give a starPortfolio|Send a mailChange Log1.0.0 (23/01/2022)First Tested and Stable ReleaseFix Wrong byte input like \ to \Convert word to decimalReturn and arry of decimal
Package: bytexpy
bytexpy.window.Createwindow(“BytexPy Work!”, 640, 480) #Create Windowbytexpy.window.waitWindow() #Wait Windowbytexpy.window.close() #Close Windowbytexpy.window.setIcon(“icon.ico”) #assets/images/window/icon.ico #standart folders#Canvasbytexpy.CanvasDraw.CreateText(10, 10, “Hello World!”, 72, 72) #xPos, yPos, text, widthFont, heightFontbytexpy.CanvasDraw.CreateCube(0, 0, 100, 100, 2) #xPos1, yPos1, xPos2, yPos2, widthCubebytexpy.CanvasDraw.CreateLine(0, 0, 100, 100, 2) #xPos1, yPos1, xPos2, yPos2, widthLinebytexpy.CanvasDraw.CreateCircle(0, 0, 100, 100, 2) #xPos1, yPos1, xPos2, yPos2, widthCirclebytexpy.CanvasDraw.ImageLoad(“BytexPy.png”)  #assets/images/BytexPy.png #standart folders
Package: byu-auvsi-imaging-client
Client Graphical User InterfaceThis client GUI is used for manual imaging target classification through the BYU AUVSI
imaging server.SetupEnd-userIf you just want to use the client to classify images, and don't plan on doing
any development with it, here's how you can set it up.Ubuntu:sudoaptinstallpython3-pippython3-tk
pip3installbyu-auvsi-imaging-clientAnd to run you can simply enter:./.local/bin/img_guiYou may also consider adding~/.local/bin/to your PATH:exportPATH="$HOME/.local/bin:$PATH"DevelopmentTo develop and contribute to this gui, clone the imaging repository.This gui was built with tkinter in python3 and relies on a few packagessudoaptinstallpython3-tkpython3-tk
./setup/dev_setup.shUseFor development you should run the gui in its local directory:cd...../src/imaging/client
pythongui.pyIf installed via pip, simply run it as a script:./~/.local/bin/img_guiSub FunctionsThis gui is built with with a tkinter tab framework. Each tab is initialized at startup which creates each container label and widget on each tab. Only one tab runs at a time.lib/client_rest.pycontains all functions that interact with the serverlib/tabX.pycontains the functions for tab Xlib/tab_tools.pycontains helper functions used by multiple tabsReleasing on PypiTravis takes care of most of the heavy lifting when you want to release a new version
of the gui onto pip/Pypi. In order to release a new version, you need to do two things:Update theVERSIONvariable in client/setup.py to whatever the new version is going to be called. If you dont do this, the new code will NOT be uploaded onto Pypi!Update theself.version_numat the top of the fileclient/lib/tab0.pyto
display on the gui the correct current version number.Create a release tag on github that matches theVERSION. (Goto Releases->Create a new Release). Once a commit
is tagged as a release, Travis will kick off a 'deploy' build for the current code, sending it to PyPi and thus to pip.Future UpdatesThe header of each file contains possible future improvements
Package: byu-jwt
byu-jwt-pythonA python JWT validator that does all the BYU specific stuff as well as handle caching well-known and cert fetchingInstallationpip install byu_jwtAPINote: It is important to declare the handler at a global level. This allows the caching of the well-known data as well as using the cache-control headers on the certificates only re-fetching those when cache-control has timed out. Reinitializing the class object will negate any benefit of the cachingInstantiate the class and reuse the object to utilize caching:importbyu_jwtbyujwt=byu_jwt.JWT_Handler()Check only if JWT is validassertbyujwt.is_valid(jwt_to_validate)Decode JWT and Check validitytry:jwt=byujwt.decode(jwt_to_validate)returnf"Hello,{jwt['preferredFirstName']}"exceptbyu_jwt.exceptions.JWTVerifyErrorasex_info:return"Invalid JWT"exceptbyu_jwt.exceptions.JWTHandlerErrorasex_info:return"Error attempting to verify the jwt"JWT Header NamesBYU's API Manager creates an HTTP header that contains a signedJWT. The names of the designed BYU signed headers can be referenced here for lookup convenience.BYU_JWT_HEADER_CURRENTThe property containing the name of the HTTP header that contains the BYU signed JWT sent directly from BYU's API Manager.Value is X-JWT-Assertion.Examplecurrent_jwt_header=byu_jwt.JWT_HEADERBYU_JWT_HEADER_ORIGINALThe property containing the name of the HTTP header that contains the BYU signed JWT forwarded on from a service that received the BYU signed JWT sent directly from BYU's API Manager.Value is X-JWT-Assertion-Original.Exampleoriginal_jwt_header=byu_jwt.JWT_HEADER_ORIGINALExample Python Lambda function that makes use of cachingimportbyu_jwtbyujwt=byu_jwt.JWT_Handler()defhandler(event,context):jwt_to_decode=event['headers'][byu_jwt.JWT_HEADER]try:jwt=byujwt.decode(jwt_to_validate)return{'statusCode':200,'body':f'Hello,{jwt["preferredFirstName"]}'}exceptbyu_jwt.exceptions.JWTVerifyErrorasex_info:return{'statusCode':403,'body':"Invalid JWT"}exceptbyu_jwt.exceptions.JWTHandlerErrorasex_info:return{'statusCode':500,'body':"Error attempting to verify the jwt"}Example Decoded JWT Structure{"iss":"https://api.byu.edu","exp":1545425710,"byu":{"client":{"byuId":"","claimSource":"","netId":"","personId":"","preferredFirstName":"","prefix":"","restOfName":"","sortName":"","subscriberNetId":"","suffix":"","surname":"","surnamePosition":""},"resourceOwner":{"byuId":"","netId":"","personId":"","preferredFirstName":"","prefix":"","restOfName":"","sortName":"","suffix":"","surname":"","surnamePosition":""}},"wso2":{"apiContext":"","application":{"id":"","name":"","tier":""},"clientId":"","endUser":"","endUserTenantId":"","keyType":"","subscriber":"","tier":"","userType":"","version":""}}
Package: byu-tpl
byutplbyutpl (Brigham Young University Thermophysical Properties Laboratory)
is a suite of tools for chemical and other engineers toperform thermodynamic calculations using cubic equations of
state andobtain thermophysical properties for a limited set
of compunds.Its target audience is students in chemical and mechanical engineering
majors. Before using this tool, students should fully understand the
principles behind the calculations being performed.It is most useful for courses inthermodynamics,fluids, andheat and mass transfer.DependenciesnumpyscipyUsageAvailable PackagesImport the module for the Soave, Redlich, Kwong equation of stateimport byutpl.eos.srk as srkImport the module for the Peng-Robinson equation of stateimport byutpl.eos.pr as prImport the modules for the properties of waterimport byutpl.properties.water as wtrImport the package for the properties of airimport byutpl.properties.air as airImport the package for the properties of benzeneimport byutpl.properties.benzene as bznExample CommandsThe following command returns the residual heat capacity in units of J/mol,
calculated using the Soave, Redlich, Kwong equation of state, at 300 K
and 500000 Pa for the liquid phase of the compound described bycritical temperature = 369 Kcritical pressure = 4800000 Paacentric factor = 0.81srk.hrl(300,5E5,369,48E5,0.81)The following command returns the liquid viscosity of water at 400 K in units of Pa*swtr.lvs(400)Complete DocumentationFor complete lists of functions, properties, and units use thehelp()function after importing the respective module.help(srk)help(pr)help(wtr)help(air)help(bzn)DeveloperThomas A. KnottsBrigham Young University Thermophysical Properties Laboratoryknotts.byu.edu(http://knotts.byu.edu/)LicenseGPL(https://www.gnu.org/licenses/gpl-3.0.txt)
Package: byu_ws_cli
byu-ws-cli-python=================A command-line web service client for calling BYU REST web services.Supports Python 2.7 and 3.3.It handles the authentication work so you don't have to.It supports URLEncoding and Nonce Encoding.  It also supports WSSession and API Keys.You can mix and match the encoding and the key type as well.To install from pypi runeasy_install byu_ws_cliorpip install byu_ws_cliNext, you need to setup a file called credentials.py somewhere on your python path with the following contents.# this file doesn't go into source controlkey = ''                # your apiKey's wsIdshared_secret = ''      # your apiKey's sharedSecretusername = ''           # your BYU netIdpassword = ''           # your netId passwordFinally, call the script.call_byu_ws -h
Package: bz2file
Bz2file is a Python library for reading and writing bzip2-compressed files.It contains a drop-in replacement for the file interface in the standard
library’sbz2module, including features from the latest development
version of CPython that are not available in older releases.Bz2file is compatible with CPython 2.6, 2.7, and 3.0 through 3.4, as well as
PyPy 2.0.FeaturesSupports multi-stream files.Can read from or write to any file-like object.Can open files in either text or binary mode.Added methods:peek(),read1(),readinto(),fileno(),readable(),writable(),seekable().InstallationTo install bz2file, run:$ pip install bz2fileDocumentationTheopen()function andBZ2Fileclass in this module provide the same
features and interface as the ones in the standard library’sbz2module in
the current development version of CPython,documented here.Version History0.98: 19 January 2014Added support for the ‘x’ family of modes.Ignore non-bz2 data at the end of a file, rather than raising an exception.Tests now pass on PyPy.0.95: 08 October 2012Added theopen()function.Improved performance when reading in small chunks.Removed thefileobjargument toBZ2File(). To wrap an existing file
object, pass it as the first argument (filename).0.9: 04 February 2012Initial release.
Package: bzComplexityAnalyzer
bzComplexityAnalyzerGetting StartedimportbzComplexityAnalyzerPreparing an analyzer objectanalyzer=bzComplexityAnalyzer.Analyzer(alphabet="dna",ignoreCase=True,iterations=1000)alphabet:string or list of characters  Specifies the alphabet to be compared against. Default: DNAignoreCase:boolean  If true, casing of letters will be homogenized before analysis to neutralize their effects on complexityiterationsint  Number of random sequences to use for finding the distribution of compressed product lengthsEstimating the complexity of a sequenceanalyzer.getCompressionZScore("GAATTCGAATTCGAATTC")# Returns a Z-scoreanalyzer.getCompressionPercentile("GAATTCGAATTCGAATTC")# Returns a percentile
Package: bzconsole
bzconsole is a simple python API to bugzilla’s bzapi.
Currently, it only has a few functions, including getting the
configuration, listing the products and components, and filing a new
bug.  I mostly introduced it to make filing bugs from the command line
simple. I’ll probably include more features going forward as I need
them, but if anyone else is interested I’m happy to take feature
requests.UsageThe console entry point isbz.  Invoking without options gives you
the usage and help.  The general pattern isbz [options] <command>[command-options]. Usingbz help <command>displays the help for the command.You can have a ~/.bz dotfile to contain your username and password in.Feel free to contact me with any questions!jhammel@mozilla.com
Package: bzctl
BZCTLThis tool can be downloaded withpip install bzctlIt adds dirs named~/bzctland~/bzctl/configSimply checkbzctl -hUsesbzctl token --prefix {prefix} --save_token {token}bzctl host --save_host {host}bzctl run --image imagename --version imageversion --argument --argument ..bzctl delete --image imagenamebzctl delete-allExamplebzctl token --prefix Bearer --save_token eyJhbGciOi.....bzctl host --save_host http://127.0.0.1:8080/bzctl run --image geth2 --version v0.0.1 --http --http.corsdomain https://remix.ethereum.org --http.api personal,eth,net,web3bzctl delete --image geth2bzctl delete-all
Package: bzflag-networking
BZFlag NetworkingA Python 3 package for reading and handling BZFlag network packets.BZFlag Replay files are simply the raw packets stored in a file together, so this library will let you read replay files and unpack them into Python objects that can be serialized into JSON.importjsonfrombzflag.utilities.json_encoderimportRRLogEncoderfrombzflag.replayimportReplayreplay=Replay('my-bz-replay.rec')withopen('my-bz-replay.json','w')asjson_file:json_file.write(json.dumps(replay,cls=RRLogEncoder,indent=2))LicenseMIT
Package: bzip3
✨ python-bz3 ✨The python binding forbzip3with parallel supportinstallpipinstallbzip3Usagefrombz3importcompress_file,decompress_file,test_file,compress,decompressimportbz3withopen("test_inp.txt","rb")asinp,open("compressed.bz3","wb")asout:compress_file(inp,out,1000*1000)withopen("compressed.bz3","rb")asinp:test_file(inp,True)withopen("compressed.bz3","rb")asinp,open("output.txt","wb")asout:decompress_file(inp,out)print(decompress(compress(b"12121")))withbz3.open("test.bz3","wt",encoding="utf-8",num_threads=4)asf:f.write("test data")withbz3.open("test.bz3","rt",encoding="utf-8",num_threads=4)asf:print(f.read())useBZ3_USE_CFFIenv var to specify a backendnum_threadsis only available on cython backend which have openmp supportPublic functionsfromtypingimportIO,Optional,Uniondefcompress_file(input:IO,output:IO,block_size:int)->None:...defdecompress_file(input:IO,output:IO)->None:...defrecover_file(input:IO,output:IO)->None:...deftest_file(input:IO,should_raise:bool=...)->bool:...classBZ3File:def__init__(self,filename,mode:str=...,block_size:int=...,num_threads:int=...,ignore_error:bool=False)->None:...defclose(self)->None:...@propertydefclosed(self):...deffileno(self):...defseekable(self):...defreadable(self):...defwritable(self):...defpeek(self,n:int=...):...defread(self,size:int=...):...defread1(self,size:int=...):...defreadinto(self,b):...defreadline(self,size:int=...):...defreadlines(self,size:int=...):...defwrite(self,data):...defwritelines(self,seq):...defseek(self,offset,whence=...):...deftell(self):...defopen(filename,mode:str=...,block_size:int=...,encoding:str=...,errors:str=...,newline:str=...,num_threads:int=1,ignore_error:bool=False)->BZ3File:...defcompress(data:bytes,block_size:int=...,num_threads:int=1)->bytes:...defdecompress(data:bytes,num_threads:int=1)->bytes:...deflibversion()->str:...# Get bzip3 versiondefbound(inp:int)->int:...# Return the recommended size of the output buffer for the compression functions.# High-level api# Compress a block of data into out buffer, zerocopy, both parameters accept objects which implements buffer-protocol.# out must be writabel, size of out must be at least equal to bound(len(inp))defcompress_into(inp:Union[bytes,bytearray],out:bytearray)->int:...# Decompress a block of data into out buffer, zerocopydefdecompress_into(inp:Union[bytes,bytearray],out:bytearray)->int:...Note, high-level api won't work with low-level api, seethis
Package: bzmicrostitcher
BZMicroStitcherWhat is BZMicroStitcher?BZMicroStitcher was created to solve the problem with whole slide scanning using the Keyence BZ-X810 microscope. The problem with this microscope for scanning slides is that the stitching can not be easily automated and the output files are either in a proprietary format that is not compatible with BioFormats or are saved as a .TIFF file which carries with it no important metadata. This package allows the user, with the help of a simple GUI, to automatically stitch/convert their whole slide images into OME-TIFF files for further analysis.What type of microscopy is this compatible with?Currently it is only compatible with brightfield microscopy. Hopefully fluorescence microscopy and Z-stacks will be implemented at some point. Phase contrast images have not been validated.I don't use a Keyence Microscope, can I still use BZMicroStitcher?With the current release there is not a user-friendly way to do this.
If you need to do some basic stitching for your microscopy work I would suggest using the "Grid/Collection stitching" plugin that comes withFIJI.
You can semi-automate this plugin by recording a macro, stitching/saving/closing a single whole slide image, then making copies of that macro and changing any relevant information to make it work correctly.Where do I start?Probably the easiest way to get started would be to download the .YAML file from this page and use it to import an environment into Anaconda.
The next best way would be to use pip from the terminal:pip install BZMicroStitcherHow do I use BZMicroStitcherCHANNEL 4 NEEDS TO BE USED FOR SCANNING, BUT THIS MAY CHANGE IN A FUTURE RELEASE1.Make sure that you save all of your whole slide images into a single directory as shown below. Since the BZ-X810 microscope can scan 3 slides at a time I am going to assume that there is only 3 scanned slides per folder:Slide_Folder
├── SlideList.xlsx
├── SlideGroup-1
│   └── XY01
│   └── XY02
│   └── XY03
├── SlideGroup-2
│   └── XY01
│   └── XY02
│   └── XY03
├── SlideGroup-3
    └── XY01
    └── X...
    └── ....2. IT MAY BE A GOOD IDEA TO MAKE THIS WHILE SCANNING SLIDESMake sure that the XLSX file is configured correctly. Please download the example file and use that as a template.Column 1 = slide/sample name. This is what the final OME-TIFF is going to be labeled as and it does not need any file extension.Column 2 = The name of the slide group folder that contains the images.Column 3 = The XY folder name that contains that specific sample.3.When ready, start your Anaconda environment and/or open a cmd terminal and type:python -m BZMicroStitcher4.When the GUI opens, select the MAIN folder that contains each group of scanned slides. Then select the XLSX file which you have created earlier. You can now start stitching.
Unfortunetly, there may not be an indication that anything is happening at this time depending on how large your images are, but over time the final images will be saved to the main folder containing all of the groups.5.When finished, you may close the GUI. :)
Package: bzoinq
bzoinqRun tasks and/or play sound alarms at a given datetimeFree software: MIT licenseDocumentation:https://bzoinq.readthedocs.io.FeaturesCreate tasks that run functions and/or play a sound alarmBzoinq object is like a task listMonitor object has it’s own thread and watches for new tasks and sorts tasks according to task alarm timeTasks will load automatically when you start your program but you must save your tasks when you exit.DependenciesThis package has only been tested on Ubuntu Linux.CreditsBzoinq is by Luis Louro and contributers are welcomeHistory0.1.4 (2017-05-12)Tasks can now include external functionssound plays by default but can be turned off if parameter sound=False when creating a task.0.1.3 (2017-04-06)Minor bug fixes0.1.2. (2017-03-19)Adds sound file0.1.1 (2017-03-19)Fixes some bugs and now uses pysound0.1.0 (2017-03-04)First release on PyPI.
Package: bzr
Bazaar (bzr) is a decentralized revision control system, designed to be
easy for developers and end users alike.  Bazaar is part of the GNU project to
develop a complete free operating system <http://www.gnu.org/>, and a project
of Canonical <http://www.canonical.com/>.Ready-to-install packages are available for most popular operating systems from
<http://wiki.bazaar.canonical.com/Download/> or you can install from source by
following the instructions in the INSTALL file.To learn how to use Bazaar, see the official documentation in thedocdirectory or at <http://doc.bazaar.canonical.com/en/>.For additional training materials including screencasts and slides,
visit our community wiki documentation page at:http://wiki.bazaar.canonical.com/Documentation/Bazaar is Free Software, and is released under the GNU General Public License,
version 2 or later.Bazaar highlightsBazaar directly supports both central version control (like cvs/svn) and
distributed version control (like git/hg). Developers can organize their
workspace in whichever way they want on a per project basis including:checkouts (like svn)feature branches (like hg)shared working tree (like git).It also directly supports and encourages a large number of development best
practices like refactoring and pre-commit regression testing. Users can
choose between our command line tool and our cross-platform GUI application.
For further details, see our website athttp://bazaar.canonical.com/en/FeedbackIf you encounter any problems with Bazaar, need help understanding it, or would
like to offer suggestions or feedback, please get in touch with us:Ask a question through our web support interface, athttps://answers.launchpad.net/bzr/Report bugs athttps://bugs.launchpad.net/bzr/+filebugWrite to us atbazaar@lists.canonical.comYou can join the list at <https://lists.ubuntu.com/mailman/listinfo/bazaar>.
You don’t need to subscribe to post, but your first post will be held
briefly for manual moderation.Talk to us inirc://irc.ubuntu.com/bzrOur mission is to make a version control tool that developers LOVE to use
and that casual contributors feel confident with. Please let us know how
we’re going.The Bazaar Team