Saravanan666/pypi-org huggingface dataset:
Package: btc-simple-wizard
A simple application with some classes and scripts for wizard implementation.Detailed documentation is in the “docs” directory.Quick startAdd wizard app to project app list in project settings:INSTALLED_APPS = [
    ...
    'simple_wizard'
]Add wizard modal to base template:{% include 'simple_wizard/wizard_modal.html' %}Construct management view with steps like this:class WizardManagementView(WizardBaseView):
    """
    View for creating wizard with 3 steps
    """

    management_url_pattern = 'test_app:wizard_management'
    common_title = 'Common Title'  # for steps without own title

    class FirstStep(WizardModalStepMixin, TemplateView):
        """
        First step - simple modal with text message and continue button.
        """

        unique_name = 'message_step'
        template_name = 'simple_wizard/wizard_modal_message.html'
        message = 'Simple message step'
        cache_step = False  # step doesn't ask server on repeat show (if it already fetched)
        buttons = [
            LoadWizardStepButton(
                load_step='form_step',  # next step (get request)
                title='Continue',
                css_classes=['btn btn-primary']
            )
        ]

    class SecondStep(WizardModalStepWithFormMixin, FormView):
        """
        Second step - modal with form (can be form or model form), validation supported.
        """

        unique_name = 'form_step'
        template_name = 'simple_wizard/wizard_modal_form.html'
        form_class = SecondStepForm
        redirect_to_step_if_valid = 'third_step'
        buttons = [
            LoadWizardStepPostButton(
                load_step='form_step',
                title='Continue',
                css_classes=['btn btn-primary']
            )
        ]

        def form_valid(self, form):
            test_model = TestModel.objects.filter(pk=self.kwargs.ger('pk')).first()
            test_model.field_1 = form.cleaned_data.get('field_1')
            test_model.save()

        return super().form_valid(self, form):

    class ThirdStep(WizardModalStepWithFormMixin, TemplateView):
        """
        Third step - just a template modal
        """

        unique_name = 'third_step'
        template_name = 'third_step.html'
        buttons = [
            CloseWizardModalButton(
                title='Finish',
                css_classes=['btn btn-primary']
            )
        ]Setupsurls:app_name = 'test_app'

...

urlpatterns = [
    ...
    path('wizard-management/<step_to_load>/<int:pk>/', WizardManagementView.as_view(), name='wizard_management')
]Add static files for wizard work:<script src="{% static 'simple_wizard/wizard.js' %}"></script>Initialize wizard handler:$(document).ready(function () {
    const django_modal_wizard = new DjangoModalWizard(
        '#wizard-modal',
        '.js-wizard_modal_content',
        '.js-load_wizard',
        '.js-close_wizard'
    );
    django_modal_wizard.initSignals();
});
Package: btc-top-pool-api-sdk
pool open api sdksetuppipinstallbtc-top-pool-api-sdkusageexample code:frombtc_top_pool_api_sdkimportClientopen_api_url='https://test/open-api/'client_id='xxx'secret_key='xxxx'secret_salt='xxxxx'client=Client(url=open_api_url,client_id=client_id,secret_key=secret_key,secret_salt=secret_salt)result=client.call_api('Speed.GetSubAccountAllWorkersHourlySpeedBulk',{'userName':'test1','start':'2020-01-01 00:00:00','end':'2020-01-01 23:00:00'})print(result)History1.0.2 (2020-10-29)fix setup problem.1.0.1 (2020-10-29)Update readme.1.0.0 (2020-10-29)First release.
Package: btctrade
AboutPython bindings for btc-trade.com.ua. I am Not associated – use at your own risk, etc.Installationpip install btctradeUsingimport btctrade

btc = btctrade.Btctrade('YOUR PUBLIC KEY', 'YOUR PRIVATE KEY')

btc.get_my_orders('btc_uah')Supported callsPublic methods (you can call these method without public and private keys)get_deals(pair)get_sell_trades(pair)get_buy_trades(pair)get_japan_stats(pair)Private methods(public and private keys are required)get_balance()sell(pair, price, amount)buy(pair, price, amount)get_my_orders(pair)get_order_status(order_id)remove_order(order_id)bid(pair, amount)ask(pair, amount)DonationsBTC: 1J2ZSc97yzrGihULVMPCtEZs7zUDD6j7vETH: 0x86735BCB1990CE2E2C264F850732255a7D9dEC21
Package: btcturk-api
BTCTurk API - Python Wrapperbtcturkapi-python is a wrapper library built around Btcturk's REST api implementation.It provides more abstract version of REST Client for traders using Btcturk as a cryptocurrency platform.DocumentationCheck out thedocumentationfor learning  how to use this library and further referenceTable of ContentsFeaturesQuickstartRequirementsInstallationUsageLicenseContactDonationFeaturesMonitor cryptocurrency prices.Place buy, sell orders with stop, limit, or market methods.List and cancel open orders.Get crypto/fiat transaction history.QuickstartIn order to use this library for your projects, you can checkout installation and usage sectionsRequirementsBTCTurk API Credentials (For Authentication Necessary Operations)https://www.btcturk.com/ApiAccessYou can go to link above and create your api credentials.InstallationYou can install this library via pip.It is the best practice using a virtual environment for your project, keep that in mind.Run this command through terminal:pipinstallbtcturk-apiSince the project's current version doesn't have support for websockets and any advanced features, dependencies are simple and you should not encounter any installation error.UsageAfter installing the library, just import the client and you are good to go. You can use any feature btcturk api provides without dealing with preparing requests, handling responses etc.frombtcturk_api.clientimportClientYou can use public endpoints without providing an api key/secret pair.>>>my_client=Client()>>>my_client.get_server_time(){'serverTime':1613292018131,'serverTime2':'2021-02-14T08:40:18.1308832+00:00'}If you have an api key/secret pair, you can use account endpoints and trading operations>>>my_client=Client(api_key='<Your Api Key>',api_secret='<Your Api Secret>')>>>my_client.get_account_balance()[{'asset':'TRY','assetname':'Türk Lirası','balance':'100.00','locked':'0','free':'100.00','orderFund':'0','requestFund':'0','precision':2},{...}]LicenseYou can use this library in your personal projects free of charge. Detailed information is in LICENSE.txt file.ContactMiraç Baydemir -omermirac59@gmail.comProject Link:https://github.com/outlier-1/btcturkapi-python/DonationBitcoin Address - '34FSjtdwTSB21uVDcptgJ8kPHHimMSCGxq'
Package: btctxstore
A library to read/write data to bitcoin transactions as nulldata outputs.InstallationInstall btctxstore libpip install btctxstoreUse fast native functionsThere is experimental code that will call into OpenSSL for slow functions.
To enable this, set (and export) environment variable PYCOIN_NATIVE=openssl.$ export PYCOIN_NATIVE=opensslstoring data in nulldata outputsStore data in blockchain in new transaction with nulldata output.# from examples/store_nulldata.pyimportbinasciifrombtctxstoreimportBtcTxStore# Wallet used to pay for fee. Please do not spend the testnet coins is# this wallet or the example will fail due to lack of funds.wifs=["cUZfG8KJ3BrXneg2LjUX4VoMg76Fcgx6QDiAZj2oGbuw6da8Lzv1"]# use testnet and dont post tx to blockchain for exampleapi=BtcTxStore(testnet=True,dryrun=True)# store data in blockchain as nulldata output (max 40bytes)data=binascii.hexlify(b"github.com/F483/btctxstore")txid=api.store_nulldata(data,wifs)print(txid)retrieving data from nulldata outputsRetrieve transaction from blockchain and read data stored as nulldata output.# from examples/retrieve_nulldata.pyfrombtctxstoreimportBtcTxStoreapi=BtcTxStore(testnet=True,dryrun=True)# use testing setup for exampletxid="987451c344c504d07c1fa12cfbf84b5346535da5154006f6dc8399a8fae127eb"hexnulldata=api.retrieve_nulldata(txid)print(hexnulldata)sign/verify data (bitcoind compatible)# from examples/signverify.pyimportbinasciifrombtctxstoreimportBtcTxStoreapi=BtcTxStore(testnet=True,dryrun=True)# use testing setup for examplewif=api.create_key()# create new private keyaddress=api.get_address(wif)# get private key addressdata=binascii.hexlify(b"messagetext")# hexlify messagetext# sign data with private keysignature=api.sign_data(wif,data)print("signature:",signature)# verify signature (no public or private key needed)isvalid=api.verify_signature(address,signature,data)print("valid signature"ifisvalidelse"invalid signature")Split utxosSplit utxos of wallet unitil limit or max_outputs reached.# from examples/split_utxos.pyfrombtctxstoreimportBtcTxStore# Please do not spend the testnet coins is this wallet# or the example will fail due to lack of funds.wif="cUZfG8KJ3BrXneg2LjUX4VoMg76Fcgx6QDiAZj2oGbuw6da8Lzv1"# use testnet and dont post tx to blockchain for exampleapi=BtcTxStore(testnet=True,dryrun=True)limit=10000000# 0.1BTCtxids=api.split_utxos(wif,limit)print(txids)
Package: btc-version-manager
This is a Django app that add functionality to track model object
versions for any other Django applicationDetailed documentation is in the “docs” directory.Quick startAdd “version_control” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'version_control',
)Add “version_control” middleware to middleware list in project settings:MIDDLEWARE = [
    ...
    'version_control.middleware.VersionControlMiddleware',
]Include the “version_control” URLconf in your project urls.py like this:path('version_control/', include('version_control.urls')),Setup project cache handler (Redis or another one).Register and setup “version_control” models in Django admin for use in project.Add class “AbstractVersionControl” to every model that must be tracked.
Package: btc-weasy-pdf
View mixin and template filters for PDF creation from the HTML-template.Detailed documentation is in the “docs” directory.Quick startAdd “weasy_pdf” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'weasy_pdf',
)Help functions:safety_get_attribute(),safety_parse_dict(),format_date()(see utils.py)Create data-object. When using thesafety_get_attribute()function do not forget to join the related tables
(prefetch_related, select_related):class PDFDataObject:

    def __init__(self, data_obj: MyModel):
        get = safety_get_attribute
        self.data_obj = data_obj

        self.first_name = get(data_obj, 'first_name')
        ...Prepare PDF template. Use built-in template filters:times,parse_dict:<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">

        {% load static %}
        {% load weasy_pdf %}

        <link rel="stylesheet" href="{% static '/styles/pdf.css' %}">

        <title>Title</title>
        <meta name="description" content="Description">
        <meta name="author" content="Author">

    </head>
    <body>
        <span>{{ data_object.first_name }}</span>
        ...
    </body>
</html>

<!-- Filters usage:

{% for i in 8|times %}
    <td colspan="2"></td>
{% endfor %}

<td colspan="5">{{ data_object|parse_dict:'0__NAME' }}</td>
 -->Prepare view:class PDFView(WeasyPDFViewMixin):

    template_name = 'pdf.html'
    file_name = 'my_pdf.pdf'

    def get_object(self) -> Any:
        passport = get_object_or_404(Passport, pk=self.kwargs.get('pk'))
        return PDFDataObject(passport)Example
Package: btd6
btd6FeaturesTODORequirementsTODOInstallationYou can installbtd6viapipfromPyPI:$pipinstallbtd6UsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,btd6is free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: btdht
The aim of btdht is to provide a powerful implementation of the Bittorrent
mainline DHT easily extended to build application over the DHT.
The author currently uses it to crawl the dht and has been able to retrieve
more than 200.000 torrents files a day.The implementation is fully compliant with theBEP5and the kademlia paper[1](with a predominance of the BEP5 over the paper)
For example, this implementation uses a bucket-based approach for the routing table.Table of ContentsDependenciesBuild dependenciesInstallationUsage examplesDependenciespython 2.7 or 3.4 or abovedatrienetaddrBuild dependenciesA C compilercythonpython header filesInstallationThe recommended installation mode is to use avirtualenv.To Installbtdhtusing the last published release, run:$ pip install btdhtAlternatively if you want to use the version of the git repository, you can clone it:$ git clone https://github.com/nitmir/btdht
$ cd btdht
$ pip install -r requirements-dev.txtThen, runmake installto compile the sources and create a python package and install it with pip.For installing or building on linux and unix systems, you will need a C compiler and the python
headers (installing the packagesbuild-essentialandpython-devshould be enough on debian
like systems, you’ll probably gonna needmake,gcc,python2-develandredhat-rpm-configon centos like systems).On windows systems, we provide pre-builded releases for python 2.7 and 3.5 so just runningpip install btdhtshould be fine. If you want to build from the sources of the repository or,
for another python version, you will also need aC compiler.Usage examplesSearch for the peers announcing the torrent0403fb4728bd788fbcb67e87d6feb241ef38c75a(Ubuntu 16.10 Desktop (64-bit))>>>importbtdht>>>importbinascii>>>dht=btdht.DHT()>>>dht.start()# now wait at least 15s for the dht to boostrapinitsocketfor4c323257aa6c4c5c6ccae118db93ccce5bb05d92Bootstraping>>>dht.get_peers(binascii.a2b_hex("0403fb4728bd788fbcb67e87d6feb241ef38c75a"))[('81.171.107.75',17744),('94.242.250.86',3813),('88.175.164.228',32428),('82.224.107.213',61667),('85.56.118.178',6881),('78.196.28.4',38379),('82.251.140.70',32529),('78.198.108.3',10088),('78.235.153.136',10619),('88.189.113.32',33192),('81.57.9.183',5514),('82.251.17.155',14721),('88.168.207.178',31466),('82.238.89.236',32970),('78.226.209.88',2881),('5.164.219.48',6881),('78.225.252.39',31002)]Subsequent calls to get_peers may return more peers.You may also inheritbtdht.DHT_BASEand overload some of theon_`msg`_(query|response)functions. See thedocfor a full overview of thebtdhtAPI.[1]Maymounkov, P., & Mazieres, D. (2002, March). Kademlia: A peer-to-peer information system
based on the xor metric. In International Workshop on Peer-to-Peer Systems (pp. 53-65).
Springer Berlin Heidelberg.
Package: btdripper
btdripperControl yourKamoer Dripping Proplant irrigation pump with Python.You can read more about the idea behind this inthis blog post.Installationpip3installbtdripperDemoYou can runbtdripper.pyfrom the command line.$ btdripper.py --help
usage: btdripper.py [-h] [--adapter ADAPTER] [--mac MAC] [--duration DURATION]

Dripper Pro SDK Demo

optional arguments:
  -h, --help           show this help message and exit
  --adapter ADAPTER    Name of Bluetooth adapter, defaults to 'hci0'
  --mac MAC            Mac address of Dripper Pro device to connect to
  --duration DURATION  Duration in seconds to turn on the pump. Default is 1sOr you can directly import it into your project$pythonPython3.6.8(default,Jan142019,11:02:34)>>>importbtdripper>>>dripper=btdripper.BtDripper()>>>dripper.on()>>>dripper.off()APIFirst, you need to create a newBtDripperinstance.
When you use an empty constructor, the library will try to connect to the first BLE device called "grow_c" that it finds.
If you already know your dripper's MAC address, you can provide it as a parameter to speed up connection. The parameter ismac_addressand it takes an address in the format"90:e2:02:9c:db:50".
Should you have more than one bluetooth adapter, you can supply that with theadapter_nameparameter (default is"hci0")
There is also a way to reuse agatt.DeviceManagervia themanagerparameter if you need to support more than one bluetooth device.The BtDripper class supports the following methods:on- turns dripper onoff- turns dripper offsend_sequence- sends a sequence of user-defined byte strings, should you want to experiment yourself.Note that if you send malformed custom sequences, it can cause the driiper's software to hang. It will not reconnect and only a power cycle helps.TodoThis is a very basic implementation. It should be possible to find out how the timer mode works and integrate that. Maybe there is even a way to run the pump at lower speeds?There are currently no timeouts or error handling. Also I wouldn't be surprised if the library breaks in an unexpected situation. Use at your own risk :)
Package: btd.sphinx.autoprogram
btd.sphinx.autoprogramThis contrib extension,sphinxcontrib.autoprogram, provides an automated
way to document CLI programs.  It scansargparse.ArgumentParserobject,
and then expands it into a set of.. program::and.. option::directives.This is a patched version ofsphinxcontrib.autoprogramwritten by Hong Minhee.Note:Patched versions of internal packages from Sphinx are released as M.M.P.postN
versions. So2.3.1.post1is the patched module version derived from Sphinx2.3.1.Added features and changes0.1.7.post1Updated patched version to match upstream version 0.1.7.0.1.6.post1New optionlabelto add a label/anchor that can be referenced with:ref:Install usingpip:$pipinstallbtd.sphinx.autoprogramYou can find the original documentation from the following URL:https://sphinxcontrib-autoprogram.readthedocs.io/
Package: btd.sphinx.graphviz
btd.sphinx.graphvizThis is a patched version ofsphinx.ext.graphviz.Note:Patched versions of internal packages from Sphinx are released as M.M.P.postN
versions. So2.3.1.post1is the patched module version derived from Sphinx2.3.1.Added features and changes2.3.1.post1Updated directive options according to documentation (see:sphinx-doc/sphinx#6991)Cross-Referencessphinx.ext.inheritance_diagramIf inheritance diagrams are enabled as an extension in Sphinx, these will
referencegraphvizand cause anImportError. Please also install the
patched variationbtd.sphinx.inheritance_diagram,
which patches internal cross-references.Install usingpip$ pip install btd.sphinx.graphvizSPDX-License-Identifier: BSD-2-Clause
Package: bte-pytorch
bte-pytorchFully Differentiable Boltzmann Transport Equation solver in PyTorchDocumentsSupported AlgorithmsOnly support D1V1,D1V2,D1V3 now.DVMspace: 1,2,WENO5time: RK1/2/3,IMEX-RK1/2/3,...collision: BGK, BinaryGrad...13 Moment EquationInstallationpipinstallbte-pytorchUsagerun the examples in./examples/
Package: btester
btester -   Trading Strategy Backtesting Frameworkbtesteris a Python framework optimized for running backtests on multiple assets and supports full portfolio backtesting. It provides tools for backtesting trading strategies based on historical market data. The framework includes classes for managing financial positions, completed trades, and a flexible abstract base class for implementing custom trading strategies.InstallationYou can installbtesterusing pip. Simply run the following command:pipinstallbtesterUsageDefine your custom trading strategy by creating a class that inherits from theStrategyabstract class.Implement the required methods in your custom strategy:initfor initialization andnextfor the core strategy logic.Instantiate theBacktestclass with your custom strategy, historical market data, and other parameters.Run the backtest using therunmethod, which returns aResultobject containing backtest results.Example Usage# Example usage of the btesterfrombtesterimportStrategy,Backtestimportpandasaspd# Define a custom strategy by inheriting from the abstract Strategy classclassMyStrategy(Strategy):definit(self):# Custom initialization logic for the strategypassdefnext(self,i:int,record:Dict[Hashable,Any]):# Custom strategy logic for each time steppass# Load historical market datadata=pd.read_csv('historical_data.csv',parse_dates=['Date'])data.set_index('Date',inplace=True)# Initialize and run the backtestbacktest=Backtest(strategy=MyStrategy,data=data,cash=10000,commission=0.01)result=backtest.run()# Access backtest resultsreturns_series=result.returnscompleted_trades=result.tradesremaining_positions=result.open_positionsExamplesCheck out the examples in theexamplesdirectory for additional use cases and demonstrations. The examples cover various scenarios and strategies to help you understand the versatility of thebtester.Example 1: Multiple Assets Breakout StrategyExample 2: Multiple Assets Moving Average Crossover StrategyExample 3: Single Asset Breakout StrategyExample 4: Single Asset Moving Average Crossover StrategyFeel free to explore and adapt these examples to suit your specific needs and trading strategies.
Package: bteval
BTEvalBTEval is a Python library for measuring the robustness of natural language understanding models to speech recognition errors.
It implements the family ofR*robustness measures defined inBack Transcription as a Method for Evaluating Robustness of Natural Language Understanding Models to Speech Recognition Errors(Kubis et al., EMNLP 2023).Installationpip install btevalUsagefrombtevalimportr1_scorey_true=["Inform","Request","Inform"]y_before=["Inform","Request","Request"]y_after=["Inform","Confirm","Confirm"]r1_score(y_true,y_before,y_after)CitingIf you use bteval for your research, please cite the following paper:Marek Kubis, Paweł Skórzewski, Marcin Sowański, and Tomasz Zietkiewicz. 2023.Back Transcription as a Method for Evaluating Robustness of Natural Language Understanding Models to Speech Recognition Errors. InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 11824–11835, Singapore. Association for Computational Linguistics.@InProceedings{kubis-etal-2023-back,title="{Back Transcription as a Method for Evaluating Robustness of Natural Language Understanding Models to Speech Recognition Errors}",author="Kubis, Marek and Skórzewski, Paweł and Sowański, Marcin and Ziętkiewicz, Tomasz",booktitle="Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing",month=dec,year="2023",address="Singapore",publisher="Association for Computational Linguistics",URL="https://aclanthology.org/2023.emnlp-main.724",doi="10.18653/v1/2023.emnlp-main.724",pages="11824--11835",}
Package: btf-extractor
BTF ExtractorExtract UBO BTF archive format(UBO2003,ATRIUM,UBO2014).This repository useszeroeffects/btf'sbtf.hh(MIT License).Extract to ndarray compatible with openCV(BGR, channels-last).Installpipinstallbtf-extractorThis package uses theCython.
To install this package, a C++ and OpenMP build environment is required.Build is tested onWindows 10 20H2 + MSVC v14.28 (Build Tools for Visual Studio 2019)MacOS 11(Big Sur) + clang 13.0.0 (xcode-select --install) + libomp (brew install libomp)Ubuntu 20.04 + GCC 9.3.0 (build-essential)Example>>>frombtf_extractorimportUbo2003,AtriumHdr,Ubo2014>>>btf=Ubo2003("UBO_CORDUROY256.zip")>>>angles_list=list(btf.angles_set)>>>print(angles_list[0])(0,0,0,0)>>>image=btf.angles_to_image(*angles_list[0])>>>print(image.shape)(256,256,3)>>>print(image.dtype)uint8>>>btf=AtriumHdr("CEILING_HDR.zip")>>>angles_list=list(btf.angles_set)>>>print(angles_list[0])(0,0,0,0)>>>image=btf.angles_to_image(*angles_list[0])>>>print(image.shape)(256,256,3)>>>print(image.dtype)float32>>>btf=Ubo2014("carpet01_resampled_W400xH400_L151xV151.btf")>>>print(btf.img_shape)(400,400,3)>>>angles_list=list(btf.angles_set)>>>print(angles_list[0])(60.0,270.0,60.0,135.0)>>>image=btf.angles_to_image(*angles_list[0])>>>print(image.shape)(400,400,3)>>>print(image.dtype)float32Supported DatasetsUBO20036561 images, 256x256 resolution, 81 view and 81 light directions.Mirko Sattler, Ralf Sarlette and Reinhard Klein "Efficient and Realistic Visualization of Cloth", EGSR 2003.ATRIUM (non-HDR and HDR)6561 images, 800x800 resolution, 81 view and 81 light directions.UBO201422,801 images, 512x512(400x400) resolution, 151 view and 151 light directions.Michael Weinmann,Juergen GallandReinhard Klein. "Material Classification based on Training Data Synthesized Using a BTF Database", accepted at ECCV 2014.