Saravanan666/pypi-org huggingface dataset:
Package: bitscreen-updater
list-updaterPython process to keep the list of filters up to dateSetupEnvironment variablesdescriptionenv vardefaultsocket_portBITSCREEN_SOCKET_PORT5555hostBITSCREEN_BACKEND_HOSThttp://localhost:3030filecoin (lotus) cids fileFILECOIN_CIDS_FILE~/.murmuration/bitscreenipfs (kubo) cids fileIPFS_CIDS_FILE~/.config/ipfs/denylist/bitscreen.denyShould lotus block from fileLOTUS_BLOCK_FROM_FILE0keyBITSCREEN_PROVIDER_KEYseed_phraseBITSCREEN_PROVIDER_SEED_PHRASETo load the provider wallet to communicate with the backend either BITSCREEN_PROVIDER_KEY or BITSCREEN_PROVIDER_SEED_PHRASE must be set.For Lotus: To use the specified file to block unwanted deals you must set the environment variable LOTUS_BLOCK_FROM_FILE to 1. The default value (0) queries the server directly instead of using the file content.pip installpipinstallbitscreen-updaterDevelopment installsudopythonsetup.pyinstallRun from source# clone this repocdbitscreen-updaterexportBITSCREEN_PROVIDER_SEED_PHRASE="provider wallet seed phrase"# Run the Updaterpython-mbitscreen_updaterrun# Start the daemonpython-mbitscreen_updaterstart# Stop the daemonpython-mbitscreen_updaterstop# Restart the daemonpython-mbitscreen_updaterrestart# Get the status of the daemonpython-mbitscreen_updaterstatusRun installedbitscreen-updater[run|start|stop|restart|status]IPFS CONTENT FILTERING GUIDEThis guide applies to anyone who wants to filter the content that can be retrieved from their IPFS nodes. For the initial setup (unrelated to BitScreen) the IPFS node must be initialized through KUBO (https://docs.ipfs.tech/how-to/command-line-quick-start/) and the Nopfs plugin must be added (https://github.com/ipfs-shipyard/nopfs).Afterwards, the BitScreen Updater has to be installed:https://github.com/Murmuration-Labs/bitscreen-updaterThe BitScreen Updater connects to an existing account on BitScreen. One can be created in the BitScreen GUI here:https://app.bitscreen.co. The account must be created with a wallet or have a wallet address associated to it. To load the provider wallet to communicate with the backend eitherBITSCREEN_PROVIDER_KEYorBITSCREEN_PROVIDER_SEED_PHRASEmust be set.We then run the BitScreen Updater with the command:bitscreen-updater run. The Updater will create thebitscreen.denylistfile used by the Nopfs plugin and will keep it updated by constantly communicating with the server. Restart the IPFS node if it was already running when the BitScreen Updater was first started, as the plugin will not identify the creation of new .denylist files.In order to block different content ids (CIDs) from being retrieved you must add them in a filter list in BitScreen either through the BitScreen CLI or through the BitScreen GUI. These CIDs will be added to the denylist in a hashed version. As previously mentioned the file is always kept up-to-date for both adding new CIDs or allowing some that were previously blocked.
Package: bitshares-pricefeed
# Price Feed Script for BitShares## InstallationUbuntu 16.04 LTSStart the installation```cd ~pip3 install bitshares-pricefeed --user```Create config.yml```bitshares-pricefeed create```Add a feed producer name to the config.yml file just created```vim config.yml# The producer name(s)producer: your_witness_name```Enter Credentials```bitshares-pricefeed addkey```You will need to enter your cli wallet encryption passphrase. If youdon't have a pybitshares wallet, yet, one will be created:```Wallet Encryption Passphrase:Repeat for confirmation:```You will need to enter your Private Key (Active key) here. Hit enter the second time it asks you.```Private Key (wif) [Enter to quit]:```Manually run the feed update```bitshares-pricefeed update```Create a place for a logfile```sudo touch /var/log/bitshare-pricefeed.logsudo chown ubuntu /var/log/bitshare-pricefeed.log```Add to cron, where PASSWD is your Wallet Encryption Passphrase. This logic will send stdin and sterr to the logfile.```$ crontab -eSHELL=/bin/bashPATH=/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/binUNLOCK="PASSWD"0,15,30,45 * * * * bitshares-pricefeed --configfile /home/ubuntu/config.yml --skip-critical --no-confirm-warning update >> /var/log/bitshares-pricefeed.log 2>&1```## Help```# bitshares-pricefeed --helpUsage: bitshares-pricefeed [OPTIONS] COMMAND [ARGS]...Options:--configfile TEXT--confirm-warning / --no-confirm-warningNeed for manual confirmation of warnings--skip-critical / --no-skip-criticalSkip critical feeds--help                          Show this message and exit.Commands:addkey  Add a private key to the walletcreate  Create config fileupdate  Update price feed for assets```# IMPORTANT NOTETHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 INTHE SOFTWARE.
Package: bitsharesscripts
bitshares-scriptsThis is a small scripts collection for doing various stuff in Bitsharesbalances_as_btc.py- Summarize all assets on all accounts and show BTC valuecancel_all_orders.py- Cancel all orders on the specified accountcreate_account.py- Create new account with random password and providing all keys to stdoutget_account.py- Display account objectget_worker.py- Display worker objectget_asset.py- Display asset objectget_balance.py- Display account balancesget_balance_multi.py- Display summarized balance of multiple accountsget_feeds.py- Show price feeds for specified assetget_keys.py- Generate private and public keys from account name and passwordget_op_id.py- Display operation id numbers and corresponding nameget_witness.py- Display witness objectupdate_keys.py- Change account keys using generated random password and providing all keys to stdoutNote:some scripts are sending transactions, you need to add private active keys for your accounts viauptick addkeyInstallation via poetryMake sure you have installed required packages:apt-get install gcc make libssl-devInstallpoetryRunpoetry installto install the dependenciesCopycommon.yml.exampletocommon.ymland change variables according to your needsNow you're ready to run scripts:poetry shell
./script.pyReusable partsReusable parts are being moved slowly intobitsharesscriptspackage namespace. It can be installed viapip install bitsharesscripts.
Package: bit-shifrator
AboutThis library turns bytes into bits and allows them to be encrypted with a passwordInstalling:pipinstallshifratorUsing:BitEncodefromshifratorimportBitArraydata=BitArray('Hello'.encode('UTF-8'))print(data)# Printing bitsdata.bitEncode('password')# Encoding with password, password must be strprint(data.to_bytes())# printing bytesdata.bitDecode('password')# Decoding with password, password must be strprint(data.to_bytes())# Printing of original valueXORfromshifratorimportBitArraydata=BitArray('Hello'.encode('UTF-8'))print(data)# Printing bitskey=data.xorEncode()# Return keyprint(data.to_bytes())# printing bytesdata.xorDecode(key)# Decoding with key, key must be bytesprint(data.to_bytes())# Printing of original value
Package: bitsidy-sdk
Bitsidy Python SDKBitsidy SDK is a toolkit for integrating Bitsidy's cryptocurrency invoice services into your Python projects. Whether you are using npm for dependency management or prefer manual inclusion, this SDK is designed for easy integration.Project Structurebitsidy_sdk/sdk.py: The core SDK file.examples/example.py: An example script demonstrating SDK usage.examples/callback.py: An example script demonstrating how to handle received callback data.pyproject.toml: The configuration file for packaging tools.RequirementsThe dependencies are specified in therequirements.txtfile. To install them manually, run:pipinstall-rrequirements.txtTo run theexamples/callback.pyexample script, which demonstrates handling callback data, the following specific requirements must be met:pipinstallflaskInstallationUsing PyPiTo install via PyPi, run:pipinstallbitsidy-sdkThen, require the SDK in your script:frombitsidy_sdkimportBitsidySDKManual InstallationDownload or clone the Bitsidy SDK repository.Place the SDK folder in your project directory.In your Python file, use require to include the SDK. Assuming the SDK folder is named bitsidy_sdk and it's placed in your project's root directory, the code to include it would be:fromsrc.bitsidy_sdkimportBitsidySDKUsageRefer to examples/example.py for a practical demonstration on using the Bitsidy SDK to create invoices and handle responses. For understanding how our server communicates invoice status updates, consult examples/callback.py.ContributingContributions to the Bitsidy SDK are welcome. Please ensure that your code adheres to the project's coding standards and include tests for new features or bug fixes.LicenseThis project is licensed under the GPLv3.For more information and updates, visit the project repository.
Package: bitsight
Unofficial Library for using the BitSight APIThis library makes it easy to perform some of the most common BitSight tasks via the BitSight API, while accounting for
common responses and pagination.Official BitSight API Documentation:BitSight Knowledge Base API Documentationv1 Swaggerv2 SwaggerSetup:pip install bitsightOptional:Set your BitSight API Token as an environment variable named BST_API_KEY. Otherwise, you will be prompted to enter your
api token.Example Usage:import bitsightSearch for a companycompanies = bitsight.Companies()
search_results = companies.get_company_search('example.com')Subscribe to a companyguid = search_results[0]['guid']
subscriptions = bitsight.Subscriptions()
subscribe_result = subscriptions.post_subscribe(guid, bitsight.LicenseType.continuous_monitoring)Get findings for a companyfindings = companies.get_findings(guid)Get risk vectors and rating historycompany_details = companies.get_company_details(guid)Download a company reportreports = bitsight.Reports()
report_successful = reports.post_download_company_report(guid, file_path='example_report.pdf')Request a companycompany_requests = bitsight.CompanyRequests()
company_request_response = company_requests.post_request_company('example.com')Request a fast ratings report for a companyrua = bitsight.RapidUnderwriting()
fast_ratings_report = rua.post_request_rua(domain='example.com', company_name='Example', industry=bitsight.Industries.technology)Get all companies in your portfolioportfolio = bitsight.Portfolio()
portfolio_companies = portfolio.get_portfolio()Get the latest alerts for your portfolioalerts = bitsight.Alerts()
latest_alerts = alerts.get_latest_alerts()Make any requestsession_manager = bitsight.BitSight()
industries = session_manager.get(bitsight.Endpoints.V1.industries)
Package: bitsio
BitsIO: A bit stream I/O class========================.. image:: https://travis-ci.org/m-hiki/bitsio.svg?branch=master:target: https://travis-ci.org/m-hiki/bitsio.. image:: https://img.shields.io/github/license/m-hiki/bitsio.svg:target: https://github.com/m-hiki/bitsio.. image:: https://img.shields.io/pypi/m-hiki/bitsio.svg:target: https://pypi.python.org/pypi/bitsio.. image:: https://img.shields.io/pypi/v/bitsio.svg:target: https://pypi.python.org/pypi/bitsio---------------Installing------------Use pip to install BitsIO:.. code-block:: bashpip install bitsioUsage------------.. code-block:: pythonfrom bitsio import BitsIOExample test running:.. code-block:: bashpython -m unittest discover ./tests/`Release notes <https://github.com/m-hiki/bitsio/releases>`__.Copyright (c) 2018 Minoru Hiki. All rights reserved.
Package: bitskins
bitskins.pyA basic WIP API wrapper for the BitSkins website in Python, mapping the API Commands to corresponding functions.Features support for all BitSkins supported games:PUBGPAYDAY2,KILLING FLOOR 2RUSTDEPTHUNTURNEDCSGODOTA2TF2Example Usage:frombitskinsimportBitSkins,RUSTwrapper=BitSkins("api key here","secret here")print(wrapper.getAccountInventory(game=RUST,page=10)
Package: bitskins-v2
# bitskins-v2-wrapper
An unofficial wrapper for the Bitskins V2 API in Python.Quick Startpipinstallbitskins-v2REST API examplefrombitskins.clientimportClientclient=Client(api_key)# get all available items on saleitems=client.get_all_items_for_sale_list(app_id=730)# get account balancebalance=client.get_account_balance()Websockets exampleimportjsonfrombitskins.streamsimportWebsocketClientdefws_callback(_,msg):data=json.loads(msg)print(data)ws_client=WebsocketClient(api_key,ws_callback)# subscrive to websocket channelsws_client.subscribe("listed")ws_client.subscribe("price_changed")
Package: bits-leankit
bits-leankitLeankit client library package for pythonBasicsBasic information about the packageFeaturesA list of features this package providesInstallingHow do you install this package?ExamplesCode examples using this packageContributingPull requests to add functionality and fix bugs are always welcome.  Please check the CONTRIBUTING.md for specifics on contributions.TestingHow do you run unit tests on the code in this repo?ReleasesReleases to the codebase are typically done using thebump2versiontool.  This tool takes care of updating the version in all necessary files, updating its own configuration, and making a GitHub commit and tag.  We typically do version bumps as part of a PR, so you don't want to havebump2versiontag the version at the same time it does the commit as commit hashes may change.  Therefore, to bump the version a patch level, one would run the command:bump2version--verbose--no-tagpatchOnce the PR is merged, you can then checkout the new master branch and tag it using the new version number that is now in.bumpversion.cfg:gitcheckoutmaster
gitpull--rebase
gittag1.0.0-m'Bump version: 0.1.0 → 1.0.0'gitpush--tagsCreditsThis package was created withCookiecutterand thebroadinstitute/cookiecutter-bits-pypiproject template.Cookiecutterhttps://github.com/broadinstitute/cookiecutter-bits-pypi
Package: bitslice
BitsliceVerilog-like bitslicing for Python.InstallationInstall the library from PyPI:pip install bitsliceQuickstartBitslice is designed to behave as an integer value as much as possible.
All operators defined onintshould be supported.Bitslice adds the ability to extract or set one or more bits of the value:frombitsliceimportBitslicevalue=Bitslice(5,size=4)value[3:1]-1Advanced features: slice aliasingvalue=Bitslice(5,size=4)value.add_alias('lower',start=0,end=1)value.add_alias('upper',start=2,end=3)value['lower']==value[1:0]Seebitslice.pyfor more examples.
Package: bitslicer9k
Bit Slicer 9kSuper fast bitslicing.bitshift speed without bitwise complexity.Installpipinstallbitslicer9kHelp(Slicer9k)Help on class Slicer9k in module bitslicer9k:

class Slicer9k(builtins.object)
 |  Slicer9k(bites)
 |  
 |  Methods defined here:
 |  
 |  __init__(self, bites)
 |      From bytes to bits
 |  
 |  as90k(self, num_bits)
 |      return bitslice as 90k time
 |  
 |  asdecodedhex(self, num_bits)
 |      return decoded hex of a bitslice
 |  
 |  asflag(self, num_bits=1)
 |      returns one bit as True or False
 |  
 |  ashex(self, num_bits)
 |      return the hex value of a bitslice
 |  
 |  asint(self, num_bits)
 |      Starting at self.idx of self.bits, slice off num_bits of bits.
 |  
 |  ----------------------------------------------------------------------I used to do thisfromstructimportunpacksync,two_bytes,one_byte=unpack('>BHB',packet[:4])tei=two_bytes>>15pusi=two_bytes>>14&0x1ts_priority=two_bytes>>13&0x1pid=two_bytes&0x1fffscramble=one_byte>>6afc=(one_byte&48)>>4count=one_byte&15Now I use bitslicer9k and do thisfrombitslicer9kimportSlicer9kheader=Slicer9k(packet[:4])sync=header.asint(8)tei=header.asflag(1)pusi=header.asflag(1)ts_priority=header.asflag(1)pid=header.asint(13)scramble=header.asint(2)afc=header.asint(2)count=header.asint(4)Example UsageParse  a SCTE 35 splice information section from a hex encoded string>>>frombitslicer9kimportSlicer9k>>>bites=bytes.fromhex('FC302F000000000000FFFFF00506FEAEF17C4C0019021743554549480000077F9F0808000000002CA56C97110000C4876A2E')>>>classSplice_Info_Section:def__init__(self,bs):self.table_id=bs.ashex(8)self.section_syntax_indicator=bs.asflag(1)self.private=bs.asflag(1)self.reserved=bs.asint(2)self.section_length=bs.asint(12)self.protocol_version=bs.asint(8)self.encrypted_packet=bs.asflag(1)self.encryption_algorithm=bs.asint(6)self.pts_adjustment=bs.as90k(33)self.cw_index=bs.ashex(8)self.tier=bs.ashex(12)self.splice_command_length=bs.asint(12)self.splice_command_type=bs.asint(8)>>>bs=Slicer9k(bites)>>>sps=Splice_Info_Section(bs)>>>vars(sps){'table_id':'0xfc','section_syntax_indicator':False,'private':False,'reserved':3,'section_length':47,'protocol_version':0,'encrypted_packet':False,'encryption_algorithm':0,'pts_adjustment':'0.000000','cw_index':'0xff','tier':'0xfff','splice_command_length':5,'splice_command_type':6,'descriptor_loop_length':25}>>>
Package: bitsmiths-monitor
BITSMITHS MONITORThe monitor is a light weight orchestration package where a system requires batch jobs to be run on a recurring basis.  The monitor
uses a relational database to track which jobs are to be scheduled, running, and have completed.The main features are:Create batch schedules on a minute, hour, day, week, month, or yearly cycle.Batch schedules can have dependencies on one another.Limit the amount of concurrent running jobs.Overload the main classes to customize the package for your needs.Supports ad-hoc running of batch jobs.Stores a full run history of all your batch jobs.This product has a dependency on:Mettle (bitsmiths-mettle)Bitsmiths Library (bitsmiths-lib)Notethat we package the generated Mettle code in this package, which means that the Mettle version required in this module is important.Tables & SetupMonitoris designed to use a relational database with a schema/namespace ofmonitorin your database. You will need to create this schema manually.
It requires several other relational database tables.The package provides the SQL code to create these tables. There are two ways to access the table creation SQL.You can runbs-monitor -g postgresqlat the command line, this will print all the SQL tostdout.You can import the bs_monitor module and get the SQL as shown below:importbs_monitorprint(bs_monitor.get_table_sql('postgresql'))Note!Currently onlypostgresqlSQL is added to the package. If you want us to support another database let
us know and we will put it into the development pipeline.Change History2.2.2TypeDescriptionBugFixed atuibug that was introduced because of the mettle upgrade.2.2.1TypeDescriptionNewUpgraded to usebitsmiths-mettleversion 2.2.32.2.0TypeDescriptionBreakingUpgraded to usebitsmiths-mettleversion 2.2.22.1.10TypeDescriptionNewImplemented the dataclass feature from the latest mettle (2.1.13) version.2.1.9TypeDescriptionBugApplied code generation bug fix from lastest mettle library.2.1.8TypeDescriptionNewImproved TUI shortcuts and fixed some minor TUI issues.2.1.7TypeDescriptionNewAdded shortcuts to all the TUI buttons.BugFixed TUI crash when using the button to Rerun a Job Instance.2.1.6TypeDescriptionNewAdded--tuioption the command line interface. This will bring up a text user interface for the monitor. You will needpip install asciimaticsas it is optional.2.1.5TypeDescriptionBugFixed a monitor manager crash when handling database lock timeouts, introduced by the mettle refactor.2.1.4TypeDescriptionBugFixed a crash when using monthly or yearly monitor intervals.2.1.3TypeDescriptionBugDefault job and runtime arguement generation was still using old C++ style, has been fixed.2.1.2TypeDescriptionBugFixed a bug where schedule batch jobs would not set or wait for their parent job.2.1.1TypeDescriptionBugFixed a typo bug in the job-runner, where any job that had a parent would cause it to raise an exception.BugFixed a bug where the monitor-cli spawn job command would add its arguments to the spawned job.2.1.0TypeDescriptionNewThe python equivalent of the monitor is finally released.
Package: bits_mod
A Pure Python bit array is provided.It passes pylint, passes pep8, is thoroughly unit tested, and runs on CPython 2.[4567], CPython 3.[01234],
Pypy 2.4.0, Pypy3 2.3.1 and Jython 2.7b3.It adapts to different “long” lengths, so it is not wasteful with 32 bit or 64 bit longs.
Package: bitsoframework
Bitso FrameworkPython library companion for the Bitso FrameworkHow to build from sourcegitclone...cdbitsoframework
python3-mvenv.python-envsource.python-env/bin/activate
pipinstall-rrequirements/local.txt## at least once to set up all your libraries needed to build#sourcescripts/pre-build.sh## actually build the local package#sourcescripts/build.shPYPITo set credentials to publish you may run the following command:python3 -m keyring sethttps://upload.pypi.org/legacy/bitsoDocker Quick StartThis project creates a shared database.
If using docker it will create a shared network and volume that the other projects can connect to.Start bitsoframework by runningdocker-compose -f local.yml up --buildIf you are missing the network or volume you will see the following prompts:create network withdocker network create bitso_local_networkcreate volume withdocker volume create --name=bitso_local_db_volume
Package: bits_parser
Extract BITS jobs from QMGR queue and store them as CSV records.This topic has been presented during a talk at the French conferenceCORI&IN 2018InstallationIf you want to run the latest version ofbits_parseryou can install it
from PyPI by running the following command:pipinstallbits_parserTo install it from the sources:pythonsetup.pyinstallUsageQMGR queues are usually.datfiles located in the folder%%ALLUSERSPROFILE%%\Microsoft\Network\Downloaderon a Windows system.Once those files have been located (e.g.qmgr0.datandqmgr1.dat) you
can runbits_parserby issuing the following command:bits_parserqmgr0.datbits_parseralso supports full-disk analysis but the process is longer and
the results are dirtier (some data from adjacent data clusters can leak in the
result). This mode is enable with the switch-i:bits_parser-iimage.binThe disk mode works by looking for expected bit sequences (markers) and
collecting surrounding data. The amount of surrounding data (the radiance) is
settable and defaulted to 2048 kB:bits_parser-i--radiance=4096image.binIncreasing the radiance could help to retrieve more data but the default value
is normally enough.When the processing is finished, the result is csv-formatted and then displayed
on the standard output. The output can be written to a file with-o:bits_parser-ojobs.csvqmgr0.datUse–helpto display all options options ofbits_parser.Related worksFinding your naughty BITS[DFRWS USA 2015, Matthew Geiger]BITSInject[DEFCON 2017, Dor Azouri]