Saravanan666/pypi-org huggingface dataset:
Package: bx-jsonrpc-py
JSON-RPC Python ClientLibrary for interacting with JSON-RPC servers. Implements theJSON-RPC 2.0 spec, as well as
first-class support for the subscription streaming endpoints exposed by
most blockchain RPC interfaces (e.g. Ethereum, Solana) for JSON-RPC websockets
connections.FeaturesWebsockets connection wrapper with full support for matching request IDs to responses and subscription updates to subscription IDsClasses for (de)serializing JSON-RPC spec compliant message typesInstallation$ pip install bx-jsonrpc-pyWebsockets StreamingMany blockchains use a subscription RPC endpoint with JSON-RPC notifications
to provide real-time event streams of updates in the network. They usually look
something like this:// create subscription
>> {"id": 1, "method": "subscribe", "params": ["feedName"]}
<< {"jsonrpc":"2.0","id":1,"result":"subscriptionID"}

// incoming notifications
<< {"jsonrpc":"2.0","method":"subscribe","params":{"subscription":"subscriptionID","result":"data"}}}
<< {"jsonrpc":"2.0","method":"subscribe","params":{"subscription":"subscriptionID","result":"data}}}

// cancel subscription
>> {"id": 1, "method": "unsubscribe", "params": ["subscriptionID"]}
<< {"jsonrpc":"2.0","id":1,"result":true}Some examples:go-ethereum,solanaThe includedjsonrpc.WsRpcConnectionclass fully implements this feature.Usageimportjsonrpcasyncwithjsonrpc.WsRpcConnection("ws://...")asws:print(awaitws.call("method",{"param":"value"}))subscription_id=awaitws.subscribe("feedname",{"option":"value"})asyncfornotificationinws.notifications_for_id(subscription_id):print(notification)Seeexamples/client.pyfor a working sample.Anticipated Future WorkReconnection support for websockets to reconnect and resubscribe to former feedsComments / QuestionsFeel free to open up a Github issue to discuss enhancements or problems.MIT LicenseCopyright (c) 2022 bloXroute LabsPermission 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: bxl
The Boring XNAT Library (BXL)BXL is a library for interacting with the REST interface of XNAT (Extensible Neuroimaging Archive Toolkit),
an open-source imaging informatics software platform.UsageInstallationBXL is available atPyPI, the Python Package Index.Withpippackage management system:pip install bxlWithout pip:git clone https://gitlab.com/bbrc/xnat/bxl.git .
 cd ./bxl
 python setup.py installCredentials handlingThexnat.Connection()class constructor expects acredentialsargument to be passed when instantiated,If is atuple, it will proceed to a basic authentication procedure against thehostXNAT instance.If is abasestring, it will reuse it as a cookie for authentication against thehostXNAT instance.Otherwise (or if authentication procedure failed in the aforementioned cases), it will remain offline.ExamplesConnect to XNAT instance using an existing JSESSIONID token and get a list of user-visible XNAT projectsimportbxl.xnatasxlibc=xlib.Connection(hostname='http://myxnat.org',credentials='1A12346385E876546C99B4179E20986A')data=c.get_projects()projects={item['ID']:item['URI']foritemindata.values()}print(projects)c.close_jsession()Connect via'with' statementto create a new Female subject 'dummy' in the 'test' projectfrombxlimportxnatwithxnat.Connection(hostname='http://myxnat.org',credentials=(usr,pwd))asc:response=c._put_resource(URI=c.host+'/data/projects/test/subjects/dummy',options={'gender':'female'})subject_uid=response.contentprint'New subject%screated!'%subject_uid
Package: bxlogs
bxlogsbxlogsis a minimal Python module for a basic logging setup. It exposes a single function,get_logger, which acts
as a wrapper aroundlogging.getLoggerto set a default output on stderr with a sensible format. That’s all.InstallWith pip:pip install bxlogsWith poetry:poetry add bxlogsUsagefrombxlogsimportget_loggerlogger=get_logger("my.module")logger.info("all set!")The default level isINFO.You can set the level toDEBUGusing various means:debug=Truelevel="DEBUG"orlevel=logging.DEBUGSet the environment variableBX_DEBUGfrombxlogsimportget_logger# All the calls below are equivalentlogger=get_logger("my.module",debug=True)logger=get_logger("my.module",level="DEBUG")importlogginglogger=get_logger("my.module",level=logging.DEBUG)importosos.environ["BX_DEBUG"]="1"logger=get_logger("my.module")You can set any other level usinglevel=.There’s nothing more. If you need anything more complex than that, use the Pythonloggingmodule directly.
Package: bx-python
bx-pythonThe bx-python project is a Python library and associated set of scripts for rapid implementation of genome scale analyses. The library contains a variety of useful modules, but the particular strengths are:Classes for reading and working with genome-scale multiple local alignments (in MAF, AXT, and LAV formats)Generic data structure for indexing on disk files that contain blocks of data associated with intervals on various sequences (used, for example, to provide random access to individual alignments in huge files; optimized for use over network filesystems)Data structures for working with intervals on sequences"Binned bitsets" which act just like chromosome sized bit arrays, but lazily allocate regions and allow large blocks of all set or all unset bits to be stored compactly"Intersecter" for performing fast intersection tests that preserve both query and target intervals and associated annotationRequirementsBuild currently requires liblzo, e.g. sudo apt-get install liblzo2-dev on debian/ubuntu).InstallingThe package can be installed with pip:pip install bx-pythonIt is available inbioconda(recommended):conda install -c conda-forge -c bioconda bx-pythonIt is available inDebianandUbuntu:sudo apt install python3-bxOr can be built from a checkout of the repository:python setup.py install
Package: bxserum
Serum Python ClientProvides a Python SDK for bloXroute's Serum API.Installation$ pip install bxserumUsageThis library supports HTTP, websockets, and GRPC interfaces. You can use it with
a context manager or handle open/closing yourself.For any methods involving transaction creation you will need to provide your
Solana private key. You can provide this via the environment variablePRIVATE_KEY, or specify it via the provider configuration if you want to load
it with some other mechanism. See samples for more information.
As a general note on this: methods namedpost_*(e.g.post_order) typically
do not sign/submit the transaction, only return the raw unsigned transaction.
This isn't very useful to most users (unless you want to write a signer in a
different language), and you'll typically want the similarly namedsubmit_*methods (e.g.submit_order). These methods generate, sign, and submit the
transaction all at once.Context manager:frombxserumimportproviderasyncwithprovider.http()asapi:print(awaitapi.get_orderbook(market="ETHUSDT"))asyncwithprovider.ws()asapi:asyncforupdateinapi.get_orderbooks_stream(market="ETHUSDT"):print(update)Manual:importbxserumfrombxserumimportproviderp=provider.grpc()api=awaitbxserum.serum(p)try:awaitapi.get_orderbook(market="ETHUSDT")finally:awaitp.close()Refer to theexamples/for more info.DevelopmentbloXroute Serum API's interfaces are primarily powered by protobuf, so you will
need to install it for your system:https://grpc.io/docs/protoc-installation/Clone project and install dependencies:$ git clone https://github.com/bloXroute-Labs/serum-client-python.git
$ cd serum-client-python
$ pip install -r requirements.txtRun tests:$ make testRegenerate protobuf files:$ make protoLinting:$ make lintMIT LicenseCopyright (c) 2022 bloXroute LabsPermission 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: by0websitegenerator
With WebsiteGenerator you can easily generate web pages in the terminal.Browse the icons on our website•Get helpMake a issueif you want to request a new icon.Run via pipInstall Python and pipInstall it withpipinstallby0websitegeneratorRungeneratewebsite``## Run the standalone1.[Downloadthelatestversion](https://github.com/byZeroOfficial/WebsiteGenerator/releases/latest/download/WebsiteGenerator.zip)2.InstallPython3.Inthe./src/Folder,runpython main.py4. It should work.




## Demo

https://demo.generator.byzero.dev/


## Documentation

You can find documentation on how to install Python and what image codes are available [here](https://generator.byzero.dev).



## Icons
<p align="center">
    <i>The new image codes allow you to easily find icons for the cards and the social media icons.</i>
</p>
<p align="center">
   <b><a href="https://generator.byzero.dev/image-codes">Browse the icons on our website</a></b>
</p>

### Credits
- Some Images used are by https://solo.to.
- xmpp-Logo by https://github.com/xmpp-ftw/logo.
- session-Logo by the Official Repository: https://by0.link/D8k8Fw
- Generic-Icons by [aegis-icons](https://aegis-icons.github.io/)
## Used By
This project is used by:

    https://adb.sh/chat
    https://byzero.dev/chat
    https://edwinproking.ml

Create a Pull Request, so I can add your Website!

## Disclaimer
Before you use an icon, make sure you are not breaking any laws, design/trademark guidelines or licenses. **I have never had any problems with it.**
If you're owner of certain trademark(s) and want icon taken down for whatever reason, please [contact me](mailto:mail@byzero.dev).
Also, make sure to use an imprint for your website.
Package: byarse
Bytes Argument SerializerBAS ObjectfrombyarseimportBASbas=BAS(safe=True,# Enable/disable safe mode. Safe mode prevents Pickle objects from being deserialized! (enabled by default))Serializeserialized=bas.s(['Hello, world!',# stringb'Hello, world!',# bytes42,# int2.5,# floatdatetime.datetime.utcnow(),# datetime])# b'...'Deserializedata=bas.u(serialized)PickleYou can have anything Pickleable be pickled and unpickled automatically by Byarse.
Pickle can be potentially dangerous, so try not to avoid it, or sign and verify all serializations with something like HMAC!
Safe mode must be set toFalsefor pickled objects to be deserialized.classTest:a=1serializedbas.s([Pickle(Test)])# b'...'self.safe=Falsebas.u(serialized)# <class 'Test'>self.safe=Truebas.u(serialized)# raises TypeErrorExample Programimportos,datetimefrombyarseimportPicklefrombyarseimportBASbas=BAS(safe=True)# Serializer/DeserializerclassTest:# Test class (for pickling)randomdata=os.urandom(16)i=input("Read or write? (r/w)\n")ifi.lower().startswith('w'):# 'w'# ----# Serialize# ----withopen('test','wb')asf:f.write(bas.s(['Hello, world!',b'Hello, world!',42,2.5,datetime.datetime.utcnow(),# Pickle(Test) # Will raise TypeError when read if safe mode is enabled.]))else:# 'r'# ----# Deserialize# ----withopen('test','rb')asf:ua=bas.u(f.read())# Unserializeforiinua:print(type(i).__name__,':',i)# Output: "type : argument" (ex. str : Hello, world!)
Package: byase
BYASEA library that uses Bayesian inference to identify gene-level
and isoform-level ASE (Allele-specific expression) in polyploid
(diploid or higher) organisms from single-end or
paired-end RNA-seq data.InstallationBYASE is released as a Python package and can be installed by:pip3install--userbyaseBYASE will automatically install some package dependencies,
such asnumpy,scipy,pandas,pymc3,htseqandpyarrow. In order to avoid possible installation problems
on the server or cluster system, BYASE does not automatically
install the packagematplotlib.
To use theplotting module,matplotlibshould be
installed manually on the computer:pip3install--usermatplotlibDocumentationThe documentation of BYASE can be foundhere.
Package: byase-gui
BYASE-GUIA GUI (Graphical User Interface) tool for BYASE software.InstallationBYASE-GUI is built using thewxPythonframework, in order to successfully compile the packagewxPython, some system libraries should be pre-installed.
For example, onUbuntu 18.04, these libraries may need
to be installed:sudoaptinstalllibgtk-3-0libgstreamer1.0-devlibgstreamer-plugins-base1.0-devfreeglut3-devlibwebkitgtk-3.0-devlibjpeg-devlibtiff-devThe packagepathlib2may also need to be installed:pip3install--userpathlib2Then BYASE-GUI can be installed by:pip3install--userbyase-guiThis will automatically installbyase,wxPythonandpsutil.DocumentationThe documentation of BYASE can be foundhere.
Package: byb2lsl
Driver to stream data from BackyardBrain's Heart & Brain kit to the Lab Streaming LayerExample below shows how to use the driver withOpenVibe1- Installing the packageUsingPip>pipinstallbyb2lsl2- Launch the driver> python -m byb2lsl.driver3- Connect to OpenVibeLaunch the program OpenVibe Acquisition Server.In Driver, select "LabStreamingLayer".In Driver Properties > Signal Stream, select "ByB Heart&Brain".In Preferences > Drift Correction, select "Let the driver decide".4- Use in OpenVibe DesignerStart OpenVibe Designer.
Add a new "Acquisition Server" node, which will stream the data from the Backyard Brain.
Connect to your pipeline...
Package: bybit-backtest
bybit-backtestbybit-backtest is a python library for backtest with bybit fx trade on Python 3.7 and above.backtest data fromhereInstallation$ pip install bybit-backtestUsagebasic runfrombybit_backtestimportBacktestclassMyBacktest(Backtest):defstrategy(self):fast_ma=self.sma(period=5)slow_ma=self.sma(period=25)# golden crossself.sell_exit=self.buy_entry=(fast_ma>slow_ma)&(fast_ma.shift()<=slow_ma.shift())# dead crossself.buy_exit=self.sell_entry=(fast_ma<slow_ma)&(fast_ma.shift()>=slow_ma.shift())MyBacktest().run()advanced runfrombybit_backtestimportBacktestclassMyBacktest(Backtest):defstrategy(self):rsi=self.rsi(period=10)ema=self.ema(period=20)lower=ema-(ema*0.001)upper=ema+(ema*0.001)self.buy_entry=(rsi<30)&(self.df.C<lower)self.sell_entry=(rsi>70)&(self.df.C>upper)self.sell_exit=ema>self.df.Cself.buy_exit=ema<self.df.Cself.qty=0.1# order quantity (default=0.001)self.stop_loss=50# stop loss (default=0 stop loss none)self.take_profit=100# take profit (default=0 take profit none)MyBacktest(symbol="BTCUSD",# default=BTCUSDsqlite_file_name="backtest.sqlite3",# (default=backtest.sqlite3)from_date="2020-04-01",# (default="")to_date="2020-10-25",# (default="")interval="1T",# 5-60S(second), 1-60T(minute), 1-24H(hour) (default=1T)download_data_dir="data",# download data directory (default=data)).run("backtest.png")totalprofit491.800totaltrades10309.000winrate65.700profitfactor1.047maximumdrawdown135.500recoveryfactor3.630riskrewardratio0.551sharperatio0.020averagereturn0.001stoploss1779.000takeprofit93.000Supported indicatorsSimple Moving Average 'sma'Exponential Moving Average 'ema'Moving Average Convergence Divergence 'macd'Relative Strenght Index 'rsi'Bollinger Bands 'bbands'Stochastic Oscillator 'stoch'Getting startedFor help getting started with Bybit APIs and Websocket, view our onlinedocumentation.
Package: bycon
Bycon - a Python-based environment for the Beacon v2 genomics APIThebyconproject - at least at its current stage - is a mix ofProgenetix(i.e. GA4GH object model derived,MongoDBimplemented) - data management, and the implementation of middleware & server for the Beacon API.In its current state thebyconpackage is undergoing a transition from resource
specific to general use environment. There is still some entanglement between
code and use case specific definitions (e.g. database definitions inside the
distribution) though this is (early 2023) in a process of "disentanglement".More DocumentationDocumentation has been moved tobycon.progenetix.org.
W/ the rapid code development it is recommended to keep following theChangespage.InstallationThe installation is documentedon the website(and in the page's Markdownsource here).Since version1.0.55(2023-06-22) additional "services" may be installed from
thebyconautrepository.
Package: byc-pyflow
PyFlowPyFlow is an open-source graph-structured interactive Python development toolAlthough for now Pyflow is in closed Beta and features are coming in bit by bit, stay tuned for the first release soon !CommunityJoin ourDiscordto beta-test features, share your ideas, contribute or just to have a chat with us.FeaturesCreate blocks of code in which you can edit and run Python codeMove and resize blocks on an infinite 2D planeLink blocks to highlight dependencies, Pyflow will then automatically run your blocks in the correct orderConvert your Jupyter notebooks to Pyflow graphs and vice versaInstallationMake sure you have Python 3 installed. You can download it fromhereInstall PyFlowUsing pip:pipinstallbyc-pyflowRun PyFlowpython-mpyflowContributingIf you are interested in contributing to the project, seeCONTRIBUTING.md.You can also join ourDiscordto get in touch with us.LicenseSeeLICENSE
Package: bye-bye-shopify
If your Shopify store isn’t doing too well, it’s time to close it, but Shopify doesn’t
provide an easy way to extract all your product catalogue. This Python utility allows
you to do that. I wrote it for and tested it only on my mom’s candle store.FeaturesExtract products and product variations to a JSON file, one per productExtract product images to a local directoryExtract custom collectionsInstallationpipinstallbye-bye-shopifyConfigurationIn Shopify Admin, underApps/Manage private apps(link at the very bottom
of the page), create a new private app. The name of the app doesn’t matter.
Set the following environment variables by copying the values ofAPI keyandPassworddisplayed on the page:exportBYE_BYE_API_KEY="..."exportBYE_BYE_API_PASSWORD="..."You will also need to set the hostname of your shop which is probably something
likeyourshopname.myshopify.com:exportBYE_BYE_API_HOSTNAME="yourshopname.myshopify.com"bye-bye-shopify--helpbye-bye-shopifydownload_allls-aldata/products/ls-aldata/custom_collections/
Package: byecycle
byecycle 🚲Find and expose cyclic imports in python projects.Installationbyecycleuses the built-inast moduleto parse code files. As a consequence, it can only handle python code within the same
major version (read: no support for python 1 and 2), and the same or lower minor version
of the python interpreter it was installed with. IfbyecycleraisesSyntaxErrors in
code that you know to be working, try using abyecyclethat is installed with the same
python version that can run the code in question.From PyPIRequirements:python 3.11 or higherpipxpipxinstallbyecycleDevelopment SetupRequirements:python 3.11 or higherpdmgitgitclonehttps://github.com/a-recknagel/byecycle.gitcdbyecycle
pdminstall-G:allUsageAs a Command Line Tool# with a pathbyecycle/home/me/dev/byecycle/src/byecycle/# or the name of an installed packagebyecyclebyecycleThe result will be a json string:{"byecycle.misc":{},"byecycle.graph":{"byecycle":{"tags":["vanilla","parent"],"cycle":"complicated"},"byecycle.misc":{"tags":["vanilla"],"cycle":null}},[...]"byecycle":{"byecycle.graph":{"tags":["vanilla","parent"],"cycle":"complicated"}}}By default, the result is printed with some rich formatting to highlight types and such.
If you need the output to be plain ascii, pass the--no-richflag.For bigger projects, you might get much more complex output. The intent of returningjsonis to have something that can be easily piped into e.g.jqfor further
processing:# filter out imports that don't have a cyclebyecyclebyecycle|jq'.[] |= (.[] |= select(.cycle != null) | select(. != {}))'{"byecycle.graph":{"byecycle":{"tags":["parent","vanilla"],"cycle":"complicated"}},"byecycle.cli":{"byecycle":{"tags":["parent","vanilla"],"cycle":"complicated"}},"byecycle":{"byecycle.graph":{"tags":["parent","vanilla"],"cycle":"complicated"},"byecycle.cli":{"tags":["parent","vanilla"],"cycle":"complicated"}}}Alternatively, you can also call the main entrypoint's core functionality as a regular
python function. Among other things, it returns a dictionary equivalent to the CLI's json
that you can work with:frombyecycleimportruncycles,*_=run("byecycle")# filter out imports that don't have a cycleforouter_k,outer_vincycles.items():forinner_k,inner_vinouter_v.items():ifinner_v["cycle"]:print(f"{outer_k}->{inner_k}:{inner_v['cycle']}")byecycle.graph -> byecycle -> complicated
byecycle.cli -> byecycle -> complicated
byecycle -> byecycle.graph -> complicated
byecycle -> byecycle.cli -> complicatedSee the help text ofbyecyclefor an explanation of tags/ImportKinds and
cycle/EdgeKinds.In short, if there is a cycle, the tags of all involved imports inform
the cycle-severity, with the highest severity winning out if multiple apply. The defaults
can be overriden in order to isolate, filter, or highlight cycles with specific
severities.To Visualize the Import GraphIf you pass the--drawflag1on your command-line-call,byecyclewill create an image of
the import graph instead:byecyclebyecycle--draw[1]Requires installation of thedraw-extra, i.e.pipx install "byecycle[draw]".
Package: byerecaptcha
byerecaptcha - Google Recaptcha solver with selenium.Model and some codes takes fromembium's repository-Installation-pipinstallbyerecaptcha-How to use-fromseleniumimportwebdriverfromselenium_utilitiesimportgetChromeDriverfrombyerecaptchaimportsolveRecaptchaoptions=webdriver.ChromeOptions()options.add_argument('--lang=en-US')#need for recaptcha be in englishdriver=webdriver.Chrome(executable_path=getChromeDriver(),chrome_options=options)driver.get('https://www.google.com/recaptcha/api2/demo')solveRecaptcha(driver)#FOR PREDICTION ON YOUR PCsolveRecaptcha(driver,server="https://myserver.com")#FOR PREDICTION IN YOUR SERVER (check server.py)solveRecaptcha(driver,invisible=True)#FOR PREDICTION INVISIBLE CAPTCHA