Saravanan666/pypi-org huggingface dataset:
Package: bitspec
Bit pattern mini-language for instruction encodings. Bytes in, IR out!Seedocsfor a step-by-step tutorial and API
reference. Here's a complete example:>>>importbitspec>>>@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 000 r:3',op='RLC')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 001 r:3',op='RRC')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 010 r:3',op='RL ')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 011 r:3',op='RR ')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 100 r:3',op='SLA')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 101 r:3',op='SRA')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 110 r:3',op='SL1')# "SLL"...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 00 111 r:3',op='SRL')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 10 b:3 r:3',op='RES')...@bitspec.bitspec('11 xy:1 11101 0xCB nn:s8 11 b:3 r:3',op='SET')...classZ80UndocBitOps:# NORTHERN BYTES Volume 3 #10 (October 1982)...def__str__(self):# mirrored at http://z80.info/z80undoc.htm...dst=['B,','C,','D,','E,','H,','L,','','A,'][self.r]...bit=''ifself.b==Noneelsef'{self.b},'...src=['IX','IY'][self.xy]...returnf'{self.op}{dst}{bit}({src}{self.nn:+})'...def__repr__(self):returnf'<{self!s}>'...def__init__(self,xy,nn,r,op,b=None):...self.xy,self.nn,self.r,self.op,self.b=xy,nn,r,op,b>>>code=bytes.fromhex('fdCB7f17 ddCBfe88 fdCB0125')>>>Z80UndocBitOps.from_bytes(code)<RLA,(IY+127)>>>>{hex(op.addr):opforopinZ80UndocBitOps.iter_bytes(code,addr=0x50)}{'0x50':<RLA,(IY+127)>,'0x54':<RESB,1,(IX-2)>,'0x58':<SLAL,(IY+1)>}Install fromPypior just copybitspec.pyinto your project.Bugs, questions,
orother feedbackare welcome!
Package: bitsrun
bitsrunA headless login / logout script for 10.0.0.55 at BIT.:sparkles:Blazingly™ Fast Rust re-implementation ofbitsrunavailable atspencerwooo/bitsrun, if you require or prefer a single compiled executable (or 🦀 Rust).InstallYou need at leastPython 3.8. We recommend installing withpipx.python3-mpipinstall--userpipx
python3-mpipxensurepathAfter which, installbitsrunwithpipx.pipxinstallbitsrunAlternatively, you can download a self-contained executable fromGitHub Releasesif you are working from an environment that does not have internet access.UsageCLICheck login status of your device.Usage: bitsrun status [OPTIONS]

  Check current network login status.

Options:
  --json / --no-json  Output in JSON format.
  --help  Show this message and exit.Note: this is the output ofbitsrun status --help.Login or logout with your username and password.Usage: bitsrun login/logout [OPTIONS]

  Log into or out of the BIT network.

Options:
  -u, --username TEXT  Your username.
  -p, --password TEXT  Your password.
  -v, --verbose        Verbosely echo API response.
  --help               Show this message and exit.Note: this is the output ofbitsrun login/logout --help.Credentials configCreate new file namedbit-user.json:{"username":"xxxx","password":"xxxx"}This file should be put under the following directory:Windows:%APPDATA%\bitsrunmacOS and Linux:~/.config/bitsrun(Following the XDG spec)On unix, set the file permission to600, i.e., only read/writeable by the owner:chmod600path/to/bit-user.jsonNow you can simply call:bitsrunlogin
bitsrunlogoutBesides, a system-wide configuration file is supported, and the location also depends on your platform.To list all possible paths for your system (including those only for backward compatibility), call:bitsrunconfig-pathsRaycast script (macOS)Import the two Raycast scripts from./scriptsand setup your config file in~/.config/bit-user.json. The script uses/usr/bin/python3by default, so you either need to installbitsrunwith this Python interpreter or setup your own Python interpreter path in the script.DevelopingCreate virtual environment and install deps:python-mvenvvenvsourcevenv/bin/activate
pipinstall-e.Running CLI entry:pythonsrc/bitsrun/cli.pyBuild:pipinstallsetuptoolsbuild
python-mbuildCredits and relatedAloxaf/10_0_0_55_login- BIT 10.0.0.55 的登入与登出的 Python 实现 (This project's predecessor, archived)spencerwooo/bitsrun-rs- A Rust implementation ofbitsrun. (Rust)zu1k/srun- Srun authentication system login tools. (Rust)Mmx233/BitSrunLoginGo- 深澜校园网登录脚本 Go 语言版 (Go)vouv/srun- An efficient client for BIT campus network. (Go)LicenseWTFPL License
Package: bitssh
bitsshA New and Modern SSH connector written in Python.Terminal user interface for SSH. It uses ~/.ssh/config to list and connect to hosts.DemoInstallationInstall my-project with pippip3installbitsshbitsshInstall from sourcegitclonehttps://github.com/Mr-Sunglasses/bitsshcdbitsshpython3-mpip3install.bitsshTroubleshooting[...]/.ssh/config: no such file or directoryCheck if you have~/.ssh/configfileIf you don't, create it withtouch ~/.ssh/configHere's a sample~/.ssh/configfile that is recognized by bitssh:HostabcHostnamexxx.xx.xx.xxUsertest1port22HostpqrHostnameec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.comUserubuntuport22HostwxyHostnamexxx.xx.xxx.xxUsertest2port22You can check theOpenBSDssh_configreferencefor more information on how to setup~/.ssh/config.DocumentationDocumentationContributingContributions are always welcome!Seecontributing.mdfor ways to get started.Please adhere to this project'scode of conduct.Authors@Mr-SunglassesLicenseMIT💪 Thanks to all Wonderful ContributorsThanks a lot for spending your time helping AutoType grow.Thanks a lot! Keep rocking 🍻🙏 Support++This project needs your shiny star ⭐.Don't forget to leave a star ⭐️
Package: bitstamp-api-client
Bitstamp API ClientOverviewInstallInstall from PyPI:pipinstallbitstamp-api-clientGetting startedHow to use the public client:frombitstamp_api.clients.publicimportPublicApiClientfrombitstamp_api.models.tickersimportMarketSymbolpublic_api_client=PublicApiClient()market_ticker=public_api_client.get_market_ticker(MarketSymbol.BTCUSD)How to use the private client:frombitstamp_api.clients.privateimportPrivateApiClientprivate_api_client=PrivateApiClient(key="<bitstamp-api-key>",secret="<bitstamp-api-secret>",username="<bitstamp-username>",)account_balances=private_api_client.get_account_balances()
Package: bitstampy
bitstampyBitstamp API wrapper for PythonContributebitstampy is maintained on Github athttps://github.com/unwitting/bitstampyLicensebitstampy is of course completely open, under the MIT license:The MIT License (MIT)Copyright (c) 2013 Jack PrestonPermission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: bitstore
bitstoreThis python3 library contains functions to create, interpret and manipulate sequences of bits stored in integers.InstallationTo install this library just run the following code in you python3 venv:
pip3 install -e .UsageDevelopmentTo install dev dependencies run the following command in your venv:
pip3 install -e '.[dev]'TestingTo test the code simply run the following command in your python3 venv:
python3 -m pytest
Package: bitstream
BitstreamA Python library to manage binary data asbitstreams.OverviewBitstream three main features:It is easy to use since the bitstream abstraction is simple.It works seamlessly at the bit and byte level.It supports Python, NumPy and user-defined types.See the documentationOverviewsection for more details.QuickstartMake sure that Python 2.7 or Python 3.6 to 3.9 are installed and that
pip, NumPy and a C compiler are available, then install bitstream with$ pip install bitstreamFor more details, refer tothe
documentation.ExamplesFirst, the mandatory “Hello World!” example:>>> from bitstream import BitStream
>>> BitStream(b"Hello World!")
010010000110010101101100011011000110111100100000010101110110111101110010011011000110010000100001The basic API is made of three methods only:stream = BitStream()to create an empty stream.stream.write(data, type)to write datadataof typetype.data = stream.read(type, n)to readnitems of typetype.For example:>>> stream = BitStream()        # <empty>
>>> stream.write(True, bool)    # 1
>>> stream.write(False, bool)   # 10
>>> from numpy import int8
>>> stream.write(-128, int8)    # 1010000000
>>> stream.write(b"AB", bytes)  # 10100000000100000101000010
>>> stream.read(bool, 2)        # 100000000100000101000010
[True, False]
>>> stream.read(int8, 1)        # 0100000101000010
array([-128], dtype=int8)
>>> stream.read(bytes, 2)       # <empty>
b'AB'Refer to the documentationOverviewsection for more
elementary examples.ContributingRefer toContributingin
the documentation.SupportIf you need some support with bitstream and you haven’t found a solution
to your problemin the
documentation, please open an
issue in theGitHub issue
tracker.If you don’t feel like you problem belongs there, you can send me an
e-mail instead; please include “bitstream” in the subject. You will find
my e-mail address in myGitHub
profile.In both cases, you will need to sign into GitHub (andjoin
GitHubif you don’t already have an
account).LicenseBitstream is open source software released under theMIT
license.Copyright (c) 2012-2021 Sébastien Boisgérault
Package: bitstring
bitstringis a Python module to help make the creation and analysis of binary data as simple and efficient as possible.It has been maintained since 2006 and now has many millions of downloads per year.NewsNovember 2023: bitstring 4.1.3 released. Version 4.1 is a large update in terms of how much of the code has changed.Speed increased with bitarray dependency.New Array class for homogeneous data.Support for 8-bit floating point values.See therelease notesfor details. Please let me know if you encounter any problems.OverviewEfficiently store and manipulate binary data in idiomatic Python.Create bitstrings from hex, octal, binary, files, formatted strings, bytes, integers and floats of different endiannesses.Powerful binary packing and unpacking functions.Bit-level slicing, joining, searching, replacing and more.Create and manipulate arrays of fixed-length bitstrings.Read from and interpret bitstrings as streams of binary data.Rich API - chances are that whatever you want to do there's a simple and elegant way of doing it.Open source software, released under the MIT licence.DocumentationExtensive documentation for the bitstring module is available.
Some starting points are given below:OverviewQuick ReferenceFull ReferenceYou can also try out the interactive walkthrough notebook onbinder.Release NotesTo see what been added, improved or fixed, and also to see what's coming in the next version, see therelease notes.ExamplesInstallation$ pip install bitstringCreation>>> from bitstring import Bits, BitArray, BitStream, pack
 >>> a = BitArray(bin='00101')
 >>> b = Bits(a_file_object)
 >>> c = BitArray('0xff, 0b101, 0o65, uint6=22')
 >>> d = pack('intle16, hex=a, 0b1', 100, a='0x34f')
 >>> e = pack('<16h', *range(16))Different interpretations, slicing and concatenation>>> a = BitArray('0x3348')
 >>> a.hex, a.bin, a.uint, a.float, a.bytes
 ('3348', '0011001101001000', 13128, 0.2275390625, b'3H')
 >>> a[10:3:-1].bin
 '0101100'
 >>> '0b100' + 3*a
 BitArray('0x866906690669, 0b000')Reading data sequentially>>> b = BitStream('0x160120f')
 >>> b.read(12).hex
 '160'
 >>> b.pos = 0
 >>> b.read('uint12')
 352
 >>> b.readlist('uint12, bin3')
 [288, '111']Searching, inserting and deleting>>> c = BitArray('0b00010010010010001111')   # c.hex == '0x1248f'
 >>> c.find('0x48')
 (8,)
 >>> c.replace('0b001', '0xabc')
 >>> c.insert('0b0000', pos=3)
 >>> del c[12:16]Arrays of fixed-length formats>>> from bitstring import Array
 >>> a = Array('uint7', [9, 100, 3, 1])
 >>> a.data
 BitArray('0x1390181')
 >>> a[::2] *= 5
 >>> a
 Array('uint7', [45, 100, 15, 1])Unit TestsThe 700+ unit tests should all pass. They can be run from the root of the project withpython -m unittestCreditsCreated by Scott Griffiths in 2006 to help with ad hoc parsing and creation of compressed video files.
Maintained and expanded ever since as it became unexpectedly popular. Thanks to all those who have contributed ideas
and code (and bug reports) over the years.Copyright (c) 2006 - 2023 Scott Griffiths
Package: bitsv-data
bitsv-dataEasily store your data on Bitcoin SVFree software: MIT licenseDocumentation:https://bitsv-data.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2019-05-04)First release on PyPI.
Package: bitsy
bitsyThis project provides a Python library to access/modify a numpy array bit-wise, like a stream of bits which can be accessed in FIFO manner only.Getting StartedPrerequisitesThe prerequisites are :Python 3 (or more)NumpyYou can download python fromhere. And to install numpy run the following command in command prompt.pip intall numpyInstallingTo install the package on your machine use the following command.pip install bitsyExamplesTo use the library you need to import it. And then you can declare an empty bitstream object or instantiate it with a numpy array.import numpy 
import bitsyThe numpy array used must be of dtype = 'uint8'/ 'uint16'/ 'uint32'.arr = numpy.array([255,5,31], dtype='uint8')Declare the bit streams.bs = bitsy.bitstream(arr) #bitstream initialized with arr
bs2 = bitsy.bitstream() #empty bitstreamPrint the bit streams.bs.show()Output :0b11111111
0b101
0b11111Read from bitstream and write in other.five_bits = bs.read(5)
print(bin(five_bits))
bs2.write(5,five_bits)Output :0b11111Now the bit streams are :bs.show()
print(" ")
bs2.show()Output:0b111
0b101
0b11111

0b11111AuthorsJaideep SagarHere.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: bits-yoshi
BITS: miscellaneous BioInformatics ToolSBasically bioinformatics-related, reusable Python3 codes as a package.RequirementsPython packages listed insetup.cfg(automatically installed)Seqkit(if you usebits.seq.load_fast[a|q]withrange=option)Edlib(if you usebits.seq.EdlibRunner)Gepard(if you usebits.seq.DotPlot)DAZZ_DB(if you usebits.seq.load_dbetc)How to install$gitclonehttps://github.com/yoshihikosuzuki/bits
$cdbits
$pipinstall.How to useBITS has two submodules:bits.seqfor DNA sequence manipulations, andbits.utilfor other, general purposes in Python programming.Import and use any function/class as follows:importbits.seqasbsprint(bs.revcomp_seq('aactg'))> cagtt
Package: bitte
BittePlease, somebody get me a beer instead of another 4 hours preprocessing NLP!This module speeds you up so you can get to the exciting tasks.It is a quirky collection of the makeshift-tasks most NLP tools run into, but are either too recently relevant,
too small, or too monolingual to have made it to the common NLP modules like spacy, nltk, huggingface transformers, spark etc.You hit walls processing data with NLPThis module helps you overcome annoying wastes of time. Now you can glue together the jagged OCR output from some strange .epub file
that once had a life as a .pdf file exported frrom .pptx, into your pristine and beautiful BERT acronym
recognition model which ONLY WORKS WITH FULL SENTENCES AND NORMAL GRAMMAR[*1]Quick startsRepunctuaterepunctuated = bitte.repunctuate([list])Combined functionality of modules like rpunct, NNSplitter(sentence splitting) and transformer models performing CoLA
task. Runs quickly, you don't have to deal with the hassle of rpunct difficulties on windows or fast execution of a quantized DistilBERT model: It'll just work.This tool has 0 reliance on external APIs. It does not use a large language model API under the hood. That's why it's fast and cheap.Semantic Chunk Textchunks: List[List[str]] = bitte.chunk_semantically(input_string)Semantic search is amazing. There's so much. But the second or third time you run it, you'll get some weird disappointing half sentence returned as a result.
Oh no, you realise. The real world isn't like Wikipedia. We aren't in Kansas. The OCR parser is in Kan sa5.You're going to need the big guns. Semantic Chunk Text can deal with any string of text and make it reasonably semantically chunked together,
ideal for retrieval tasks for semantic search and for embedding tasks.This API functions similarly to the Autochapter API of Audacity, but it works for text and does not use transcript timing information.This API isn't super fast as it runs transformer models often multiple times. It is cheap and quality.Wholesomesentence_classifications = bitte.are_full_sentences(sentences)
# Filter for full sentenecs only:
full_sentences = [sentence for ind, sentence in enumerate(sentences) if sentence_classifications[ind]]Have you ever felt your sentence was incomplNow, you can check if an english sentence is complete. This is useful for grammar merging decisions, detecting conversational interupts,
and deciding whether to display questionable quality content to users or not.This API isn't super fast, as it needs a transformer model too. It is cheap and quality.Why now?It's a fact that lots of NLP right now works better for english. Large language models; medium ones like BERT;
OCR trained on english datasets... you get the point. If you speak english, you'll be tempted to take advantage
of this somewhere in your pipeline. These tools are for you.
Package: bittensor-config
BittensorConfig - v0.0.1BittensorConfig is a library for managing the configuration of theBittensor Python API.InstallationThis package can be installed fromPyPi.org:pipinstallbittensor-config==0.0.1or via this repo (usinggh-cli):ghrepocloneopentensor/bittensor-configcdbittensor-config
pipinstall-e.
Package: bittensor-wallet
BittensorWallet - v0.0.5BittensorWallet is a library for managing wallet keypairs, keyfiles, etc. for theBittensor Python API.The purpose of this repo is to separate the concern of keyfile management from thehttps://github.com/opentensor/bittensorrepo, to decrease the attack surface of Bittensor related to local keys and wallet functionality.InstallationThis package can be installed fromPyPi.org:pipinstallbittensor-wallet==0.0.5or via this repo (usinggh-cli):ghrepocloneopentensor/bittensor-walletcdbittensor-wallet
pipinstall-e.
Package: bitterGravel
# bitterGravel## Overview## InstallationShould be as simple aspip install bitterGravel## Example usage## HelpIf you experience any problems using bitterGravel, open an [issue](https://github.com/minillinim/bitterGravel/issues) on GitHub and tell us about it.## Licence and referencingProject home page, info on the source tree, documentation, issues and how to contribute, seehttp://github.com/minillinim/bitterGravelThis software is currently unpublished## CopyrightCopyright (c) 2014 Michael Imelfort. See LICENSE.txt for further details.
Package: bittivahti
A simple local network interface bandwidth monitor tool for Linux.Installation$pipinstallbittivahtibittivahti 0.9.2
interface   |      RX bw / packets |      TX bw / packets | total:  RX       TX
lo          |   0.0 kB/s    0  p/s |   0.0 kB/s    0  p/s |     0.0 kB   0.0 kB
br1         |   0.0 kB/s    0  p/s |   0.0 kB/s    0  p/s |     0.0 kB   0.0 kB
br0         |   0.1 kB/s    2  p/s |   0.7 kB/s    6  p/s |     0.9 kB   2.6 kB
vnet0       |   0.0 kB/s    0  p/s |   0.0 kB/s    0  p/s |     0.0 kB   0.1 kB
vnet1       |   0.0 kB/s    0  p/s |   0.0 kB/s    0  p/s |     0.0 kB   0.0 kB
eth4        |   0.1 kB/s    2  p/s |   0.7 kB/s    6  p/s |     1.1 kB   2.7 kB
Package: bittle
DescriptionBittle is a simple module to help me to things with bits.InstallationNew versions will be updated to PyPI pretty regularly so it should be as
easy as:pip install bittleExamplesfrom bittle import FlagWord

Status = FlagWord(["pending", "approved", "actioned"])

status = Status()
status.set(status.approved)
status.has(Status.approved)  # True
status.has("actioned")  # False
Package: bittrade
Crypto trading AI agent.Free software: MIT licenseInstallationpip install bittradeDocumentationhttps://bittrade.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2018-01-31)First release on PyPI.
Package: bittrade-kraken-websocket
Kraken Websocket[NOT RELEASED] This is very much a work in progress, despite being on pypi.
Most things might be wrongly documented; APIwillchangeFeaturesReconnect with incremental backoff (per Kraken's recommendation)Automatically reset subscription for private feeds when sequence is out of whackrequest/response factories e.g.add_order_factorymake websocket events feel like calling an API... but provides more info than a simple request/response;
for instance,add_ordergoes through each stage submitted->pending->open or canceled,
emitting a notification at each stageInstallingpip install bittrade-kraken-websocketorpoetry add bittrade-kraken-websocketGeneral considerationsObservables/ReactivexThe whole library is build withReactivex.Though Observables seem complicated at first, they are the best way to handle - and (synchronously) test - complex situations that arise over time, like an invalid sequence of messages or socket disconnection and backoff reconnects.For simple use cases, they are also rather easy to use as shown in theexamplesfolder or in the Getting Started belowConcurrencyInternally the library uses threads.
For your main program you don't have to worry about threads; you can block the main thread.Getting startedConnect to the public feedsfrombittrade_kraken_websocketimportpublic_websocket_connection,subscribe_tickerfrombittrade_kraken_websocket.operatorsimportkeep_messages_only,filter_new_socket_only# Prepare connection - note, this is a ConnectableObservable, so it will only trigger connection when we call its ``connect`` methodsocket_connection=public_websocket_connection()# Prepare a feed with only "real" messages, dropping things like status update, heartbeat, etc…messages=socket_connection.pipe(keep_messages_only(),)socket_connection.pipe(filter_new_socket_only(),subscribe_ticker('USDT/USD',messages)).subscribe(print,print,print# you can do anything with the messages; here we simply print them out)socket_connection.connect()(This script is complete, it should run "as is")LoggingWe use Python's standard logging.
You can modify what logs you see as follows:logging.getLogger('bittrade_kraken_websocket').addHandler(logging.StreamHandler())Private feedsSimilar tobittrade-kraken-rest, this library attempts to get as little access to sensitive information as possible.Currently, you need to set the token onto theEnhancedWebsocket; this means we have no access to your Api key and secret.
Since the token is connection based and can't be reused, this protects you as much as Kraken's current authentication method allows.In the future we might even let you code your ownsend_jsonmethod instead.Seeexamples/private_subscription.pyfor an example of implementationnew_sockets=connection.pipe(filter_new_socket_only(),operators.map(add_token),operators.share(),)ExamplesMost examples in theexamplesfolder make use of thedevelopmentmodule helpers and the rich logging. You will need to install the dependencies from therichgroup to use them:poetry add bittrade_kraken_websocket -E rich