Saravanan666/pypi-org huggingface dataset:
Package: binance-pay-connector
Binance Pay Public API Connector PythonThis is a lightweight library that works as a connector toBinance Pay public APIInstallationpipinstallbinance-pay-connectorDocumentationhttps://binance-pay-connector.readthedocs.ioRESTful APIsUsage examples:frombinance.pay.merchantimportMerchantasClient# Setup merchant API from https://merchant.binance.com/en/dashboard/developersclient=Client(key='<api_key>',secret='<api_secret>')response=client.get_order(merchantTradeNo="<trade_no>")# Get an order detailsprint(response)Please findexamplesfolder to check for more endpoints.Optional parametersPEP8 suggestslowercase with words separated by underscores, but for this connector,
the methods' optional parameters should follow their exact naming as in the API documentation.# Recognised parameter nameresponse=client.get_order(merchantTradeNo="2223")# Unrecognised parameter nameresponse=client.get_order(merchant_trade_no="2223")Display logsSetting the log level toDEBUGwill log the request URL, payload and response text.ErrorIf a request has a parameter that is not provided but required from server, this library will throw an exceptionbinance.pay.error.ParameterRequiredError, except the endpoint that is for creating order.POST /binancepay/openapi/v2/orderthat used to create order has complicate parameter strucuture, the library doesn't any mandatory parameter. Please see the example file for how to place an order.Test Case# In case packages are not installed yetpipinstall-rrequirements/requirements-test.txtpytestContributingContributions are welcome.If you've found a bug within this project, please open an issue to discuss what you would like to change.If it's an issue with the API, please open a topic atBinance Developer Community
Package: binance.py
🦾 A python3 binance API wrapper powered by asyncio and python Decimals.Get binance.pyTo install the library, you can just run the following command:#Linux/macOSpython3 -m pip install -U binance.py#Windowspy -3 -m pip install -U binance.pyAlternatively you can build the package and install it manually:python setup.py sdist bdist_wheel
python -m pip install dist/binance.py-X.X.X-py3-none-any.whlWhy binance.py?The binance api is complex to grasp and using a wrapper saves time but also ensures that the right practices are adopted. Binance.py offers a modern and asynchronous solution.FeaturesCovers general endpoints (test connectivity and get exchange informations)Covers market data endpointsCovers Account endpoints (create and manage orders)Covers user data stream (receive real time user updates)Covers web socket streams (receive real time market updates)Async supportCompletely free and without limitationsWhat it does notBinance.py does not cover the withdraw APIBinance.py does not cover the margin trading APIIf you need these features, don't open an issue to ask me to implement themGet startedGenerate an API Keyand assign relevant permissions.import binance, create a client and send your first test order:importbinanceclient=binance.Client(API_KEY,API_SECRET)awaitclient.load()order=awaitclient.create_order("ETHPAX",binance.Side.BUY.value,binance.OrderType.MARKET.value,quantity="1",test=True,)print(order)awaitclient.close()Check someexamplesLicenseDonateETH (ENS):thomas.ethers.xyzETH (legacy address):0x54c5a92c57A07f33500Ec9977797219D70D506C9BTC:bc1qm9g2k3fznl2a9vghnpnwem87p03txl4y5lahyuPowered by binance.pymartin binanceFree trading system for Binance SPOT market. Adaptive customizable reverse grid strategy based on martingale.
Package: binanceSpotEasyT
binanceSpotEasyTeasyT,easyTo trade,easyTo use!WARNING!Now that I have your attention I would like you to reflect about the fact that$1.00 Dollarmight benotthatmuchto you, butyou, an incredible person, combined to other'samazing Sponsors, canfinancethis
project, and it willallows meto constantlyimprove and maintainit,and, I am not asking that much.Here is myPatreonlink.Yeah, I would like to do that, but I do not have that kind of money.That is Ok, and, there are many ways you can help me, here is a list:Starthis project on GitHub.Sharethis project.Open an account with Binance referral link:When you open an account on Binance you help me when you trade!Some of your tax paid returns for you and part goes for me.Below you can see the percentage cash back for me and for you, and you trade:For meFor youLink10%10%https://accounts.binance.com/en/register?ref=IBNF8RAW15%5%https://accounts.binance.com/en/register?ref=D11OJ6NP20%0%https://accounts.binance.com/en/register?ref=SAUNZ26XYou can find more information about theBinancereferral linkhereAnd, there areAdsin all the documentations, that hopefully, will help me finance this project.Installation:Keep in mind that it willonly work on Windows.pipinstallbinanceSpotEasyTIf you want to knowhow to useandexamples, please, see the link to thedocumentationbelow.All the information will be there.Libraries DocumentationAll the Libraries Documentation and useful links are linked below:easyTbinanceSpotEasyT -Documentation-GitHub-Pypimetatrader5EasyT -Documentation-GitHub-PypiMql5-Python-Integration -GitHubThe documentation for this specific project is this onebinanceSpotEasyT.See my page (Joao Paulo Euko) to see all my projects or for more information.
Package: binancetrader
OverviewIt is a client-side package of Jirnal's trading system as a Binance REST Api-based SDK midleware. Valid Binance account and Jirnal account are required to work with this package.RequirementspythonThis package only supports the latest patch release of Python.DependenciesrequestsInstallationpipinstallbinancetraderExampleLet's take a look at a quick example of using binancetrader package to send some simple orders over Jirnal system.frombinancetraderimportBinanceTraderasbintclient=bint(strat="gamma",address="You're given ip address",port=8000,api_key="You're given api tocken")client.marketOrder("BTCUSDT","BUY","0.001")#symbol,side,quantitclient.limitOrder("BTCUSDT","BUY","0.001","50000")#symbol,side,quantity,priceclient.stopOrder("BTCUSDT","sell","0.001","40000")#symbol,side,quantity,price,stopPriceclient.takeProfitOrder("BTCUSDT","sell","0.001","60000")#symbol,side,quantity,price,stopPriceclient.trailStopOrder("BTCUSDT","sell","0.001","55000","0.1")#symbol,side,quantity,activationPrice,callbackRateclient.currentPositions("BTCUSDT")#symbolclient.closeCurrentPositions("BTCUSDT")#symbolclient.currentOrders("BTCUSDT")#symbolclient.cancelOrder("BTCUSDT","19225478")#symbol,orderIdclient.cancelAllOpenOrder("BTCUSDT")#symbolclient.lastTrades("BTCUSDT","1640475569000","1640512577000","10")#symbolclient.futuresBalance("USDT")#symbol(DOT,BTC,SOL,BNB,ETH,ADA,USDT,XRP,BUSD)
Package: binancetrading
BinanceTradingBinanceTrading is a custom trading library using the Binance API for executing or backtesting trading strategies. It is hardcoded to only trade coins against USD Tether.InstallationUse the package managerpipto install.pipinstallbinancetradingIf you are on windows, follow theseinstructionsto be able to use Binance websocket client.UsageTo use this library it is necesary to have Binance API keys, it is also possible to work with Binance Testnet keys. Here we store them as environment variables.Get the current coin balances in the account.importosfrombinancetradingimportAccountAPI=os.environ.get('BINANCE_API')SECRET=os.environ.get('BINANCE_SECRET')account=Account(API,SECRET,paper_trade=False,apiurl='https://api.binance.com')balances=account.account_balances()print(balances)Print the last ten 1 minute candlesticks of BTCUSDT.frombinancetradingimportExchangeexchange=Exchange()data=exchange.kline_df('BTC','1m',10)print(data)See moreexamples.ModulesAccountThe account class is where all the relevant account data is stored like cash and token positions. It has methods to retrieve balances and these are updated if a trade is made.ExchangeThe exchange module is responsible for retrieving data from the Binance API using websockets and requests. It is also responsible for executing trades.Trading botTo trade and test stragies it is necessary to create an instance of an trading bot, which will retrieve data from the exchange and execute orders given by the strategy. These trades are made by an account instance.StrategiesThe strategies module contains the trading strategies to use. These are basic starting points and it is encouraged to implement own strategies. These should follow the TradingStrategy abstract base class.BacktestingThe backtesting module is to make an event driven trading strategy backtest. It also prints price charts with entry and exit points given by the strategy.Further developmentInclude an strategy optimizer module to optimize the parameters of a trading strategy using backtest results.Make order size a percentage of current holdings or dependant on the trading strategy.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: binanceus-python
binanceus-pythonA lightweight Python wrapper for the binance.us public API.Usesbinance-connector-pythonfor API connectivity.I am in no way affiliated with Binance or Binance US. Use this at your own risk.Quick StartInstall binanceus-python:pip install binanceus-pythonHere's some example code to get started with:fromwebsocket_bs.clientimportBsWebsocketClientimporttime# start real-time ticker stream for symbol BTCUSDsymbol='BTCUSD'ws=BsWebsocketClient()ws.subscribe(symbol)ws.start()# print live ticker feedtry:whileTrue:book_top=ws.get_book_top(symbol)bid=book_top[0]bid_qty=book_top[1]ask=book_top[2]ask_qty=book_top[3]print(f'{symbol}SPOT orderbook_top: ({bid:0.4f},{bid_qty})  ({ask:0.4f},{ask_qty})')time.sleep(1)exceptKeyboardInterruptase:print("Program finished.")ws.stop()ContributingContributions, fixes, recommendations, and all other feedback is welcome. If you are fixing a bug, please open an issue first with all relevant details, and mention the issue number in the pull request.ContactI can be reached on discord at Nenye#5335, or through email atnenye@ndili.net. Otherwise, feel free to open a PR or Issue here.
Package: binapy
BinaPyBinaPyis a module that makes Binary Data manipulation simpler and easier than what is offered in the Python standard library.With BinaPy, encoding or decoding data in a number of formats (base64, base64url, hex, url-encoding, etc.), compressing or decompressing (gzip), hashing (SHA1, SHA256, MD5, etc., with or without salt), is all a single method call away! And you can extend it with new formats and features.frombinapyimportBinaPybp=BinaPy("Hello, World!").to("deflate").to("b64u")print(bp)# b'80jNycnXUQjPL8pJUQQA'bp.decode_from("b64u").decode_from("deflate").ascii()# "Hello, World!"isinstance(bp,bytes)# TrueFree software: MITDocumentation:https://guillp.github.io/binapy/FeaturesFluent interface, based on abytessubclassProvides a convenient interface overhashlib,base64,zlib,urllib.parse,json,pickleand moreEasy to extend with new formatsTODOadd more parsing formats like YAML, CBOR, etc.optionally use faster third-party modules when available
Package: binario
Simple work with binary data.What is the binario?binariois the Python package that lets an application read/write primitive data types from an underlying input/output stream as binary data.And which primitive data types it can process?It can work with booleans, integers, shorts, long integers, floats, doubles, strings and any byte buffers.How to write data?It’s simple. Just create instance ofWriterand then do your work:>>> import binario
>>> w = binario.Writer("file.dat")
>>> w.write_short(2014)
>>> w.write_bool(True)
>>> w.write_float(3.1415)
>>> w.write_string("Hello, world!")
>>> w.write(bytes([128, 20, 10, 255, 0]))And how to read data?It’s simple too. Like outputting, createReaderand then do your work:>>> import binario
>>> r = binario.Reader("file.dat")
>>> r.read_short()
2014
>>> r.read_bool()
True
>>> r.read_float()
3.1415
>>> r.read_string()
"Hello, world!"
>>> r.read(5)
b'\x80\x14\n\xff\x00'Which byte order specified by default?By default it isnetworkorder (orbig-endian).Okay, it is good, but if I want to change byte order forReaderorWriter?Not a problem! Just specify it:>>> import binario
>>> r = binario.Reader("file.dat", binario.LITTLE_ENDIAN)
>>> w = binario.Writer("another_file.dat", binario.BIG_ENDIAN)What about append new data to existing file?Yeah, it is also very simple:>>> import binario
>>> w = binario.Writer("incomplete_file.dat", append=True)How to install this package?Just type in your terminal>>> pip install binarioWhere to find documentation?Look here:http://binarios-docs.readthedocs.org/en/latest/ContributionIf you do have a contribution for the package feel free to put up a Pull Request or open Issue on GitHub repo:http://github.com/asaskevich/binario.
Package: binarize2pcalcium
Binarize2PCalcium
=================

Binarize2PCalcium is a Python package for processing calcium imaging data.

Features
--------

- Support for data preprocessing.
- Visualization tools for calcium imaging data.

Installation
------------

You can install Binarize2PCalcium using pip:

.. code-block:: bash

   pip install binarize2pcalcium

Usage
-----

To use Binarize2PCalcium, import the package in your Python code:

.. code-block:: python

   from binarize2pcalcium import binarize2pcalcium as binca

   animal_id = 'DON-011733'
   session = '20230203'

   c = binca.Calcium(data_dir, animal_id)

   c.session = session 
   c.session_name = session

   c.data_type = '2p'
   c.remove_bad_cells = False
   c.verbose = False  # outputs additional information during processing
   c.recompute_binarization = True  # recomputes binarization and other processing steps; False: loads from previous saved locations

   # set flags to save matlab and python data
   c.save_python = True  # save output as .npz file 
   c.save_matlab = False  # save output as .mat file

   # manual thresholds for spike detection
   c.dff_min = 0.05  # min %DFF for [ca] burst to be considered a spike (default 5%) overwrites percentile threshold parameter
   c.percentile_threshold = 0.9999  # this is pretty fixed, we don't change it; we want [ca] bursts that are well outside the "physics-caused" noise
   c.maximum_std_of_signal = 0.08  # if std of signal is greater than this, then we have a noisy signal and we don't want to binarize it
								   # - this is a very important flag! come see me if you don't understand it

   #
   c.binarize_data()
Package: binarn
binarnbinarnis a small tool to find an arbitrary key in a deep dictionary. It returns the full path
to that key (if any) as well as its value.It is intended as a debugging/exploration tool only.Installpip install binarnUsageimportbinarnbinarn.find_one(my_deep_dict,key="my_key")# => (("key1", "key2", "my_key"), "value")Origin of the name"binarn" may look like a random name, but it has a true meaning. It stands for "binarn is not a
random name".
Package: binary
binaryprovides a bug-free and easy way to convert between and within
binary (IEC) and decimal (SI) units.Table of ContentsInstallationExamplesUsageTypesLicenseInstallationbinaryis distributed onPyPIas a universal
wheel and is available on Linux/macOS and Windows and supports
Python 2.7/3.5+ and PyPy.$pipinstallbinaryExamplesLet’s import what we need:>>>frombinaryimportBinaryUnits,DecimalUnits,convert_unitsBasic conversion:>>>convert_units(1536,BinaryUnits.KB,BinaryUnits.MB)(1.5,'MiB')How much actual storage your new hard drive has:>>>convert_units(4,DecimalUnits.TB,BinaryUnits.TB)(3.637978807091713,'TiB')Human readable:>>>amount,unit=convert_units(kubernetes_ingest_bytes_per_second)>>>'Incoming traffic:{:.2f}{}/s'.format(amount,unit)'Incoming traffic: 24.77 GiB/s'UsageJust a single function!convert_units(n, unit=BYTE, to=None, si=False, exact=False)Converts between and within binary and decimal units. If nounitis specified,nis assumed to already be in bytes. If notois
specified,nwill be converted to the highest unit possible. If
nounitnortois specified, the output will be binary units
unlesssiisTrue. IfexactisTrue. the calculations
will usedecimal.Decimal.Binary units conform to IEC standards, see:https://en.wikipedia.org/wiki/Binary_prefixhttps://en.wikipedia.org/wiki/IEC_80000-13https://www.iso.org/standard/31898.html(paywalled)Decimal units conform to SI standards, see:https://en.wikipedia.org/wiki/International_System_of_UnitsParametersn(intorfloat) - The number ofunits.unit- The unitnrepresents. Seetypes.to- The unit to convert to. Seetypes.si(bool) - Assume SI units when nounitnortois specified.exact(bool) - Usedecimal.Decimalfor calculations.TypesAlthough the string representations for binary units end iniB,
the attributes do not for ease of use.TypeShortLongBinaryUnitsBBYTEBinaryUnitsKBKIBIBYTEBinaryUnitsMBMEBIBYTEBinaryUnitsGBGIBIBYTEBinaryUnitsTBTEBIBYTEBinaryUnitsPBPEBIBYTEBinaryUnitsEBEXBIBYTEBinaryUnitsZBZEBIBYTEBinaryUnitsYBYOBIBYTEDecimalUnitsBBYTEDecimalUnitsKBKILOBYTEDecimalUnitsMBMEGABYTEDecimalUnitsGBGIGABYTEDecimalUnitsTBTERABYTEDecimalUnitsPBPETABYTEDecimalUnitsEBEXABYTEDecimalUnitsZBZETTABYTEDecimalUnitsYBYOTTABYTELicensebinaryis distributed under the terms of bothMIT LicenseApache License, Version 2.0at your option.
Package: binary4fun
binary4funbinary4fun is a small game written in Python that can be played in the cli. The game basically tries to guess a number between 1 and 100 by binary search.InstallationpipYou can install binary4fun from PyPI using pip:$ pip install binary4funUsageTo start the game, just runbinary4funin the command line:$ binary4funRelease History0.2.0: Allow running the game directly from the command line, switch to setuptools_scm for versioning0.1.0: First releaseThe package on PyPI:https://pypi.org/project/binary4funDistributed under the MIT license. SeeLICENSEfor more information.
Package: binaryai
BinaryAI Python SDKBinaryAIis a binary file security analysis platform. This SDK aims at providing
a simple client to upload file and get analysis result. It also works as
a demo on calling BinaryAI's GraphQL API directly.To use SDK, you need a valid credential. ReadBinaryAI docsabout detailed instructions.DependencyPython >= 3.9Download and installpython3-mpipinstallbinaryaiQuick startSee theSDK documentfor guide.InternalsEndpointsThe default endpoint ishttps://api.binaryai.cn/v1/endpoint.API CredentialsAPI Credentials are used for signing requests. We suggest you using our SDK or our library to sign it, but you can also
have your own implementation. We are using the signing methodTC3-HMAC-SHA256, same with the Tencent Cloud. You can
read theirdocumentabout how to sign requests. BinaryAI would
require following fields:Region="ap-shanghai"service="binaryai"Action="BinaryAI"Version="2023-04-15"Additional ReadingRead theChangelogof our product, and hope you can also have fun reading papers related to our job:Yu, Zeping, et al. "Codecmr: Cross-modal retrieval for function-level binary source code matching." Advances in Neural Information Processing Systems 33 (2020): 3872-3883.Yu, Zeping, et al. "Order matters: Semantic-aware neural networks for binary code similarity detection." Proceedings of the AAAI conference on artificial intelligence. Vol. 34. No. 01. 2020.Li, Zongjie, et al. "Unleashing the power of compiler intermediate representation to enhance neural program embeddings." Proceedings of the 44th International Conference on Software Engineering. 2022.Wong, Wai Kin, et al. "Deceiving Deep Neural Networks-Based Binary Code Matching with Adversarial Programs." 2022 IEEE International Conference on Software Maintenance and Evolution (ICSME). IEEE, 2022.Wang, Huaijin, et al. "Enhancing DNN-Based Binary Code Function Search With Low-Cost Equivalence Checking." IEEE Transactions on Software Engineering 49.1 (2022): 226-250.Jia, Ang, et al. "1-to-1 or 1-to-n? Investigating the Effect of Function Inlining on Binary Similarity Analysis." ACM Transactions on Software Engineering and Methodology 32.4 (2023): 1-26.Wang, Huaijin, et al. "sem2vec: Semantics-aware Assembly Tracelet Embedding." ACM Transactions on Software Engineering and Methodology 32.4 (2023): 1-34.Jiang, Ling, et al. "Third-Party Library Dependency for Large-Scale SCA in the C/C++ Ecosystem: How Far Are We?." Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis. 2023.
Package: binary-B64-encoder
Copyright (c) 2019 gerardoguPermission 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.Download-URL:https://github.com/gerardogu/binary-B64-encoder/tarball/1.0.8Description: # binary-B64-encoderEste script permite codificar correctamente ficheros binarios y de texto a base64Requiere Python 2.7. Para instalarlo simplemente ejecuta:` pip install binary_B64_encoder `Despues ejecutar:`ger@ger:/tmp$binary-B64-encoder`Keywords: b64encode,base 64,b64,binary_B64_encoder,file base64
Platform: UNKNOWN
Description-Content-Type: text/markdown