Saravanan666/pypi-org huggingface dataset:
Package: hostp2pd
hostp2pdThe Wi-Fi Direct Session Managerhostp2pdimplements a soft hostAccess Point(AP) software inWi-Fi Directmode, enabling awireless network interface cardto act asAd hocaccess point andWi-Fi Protected Setup(WPS)authentication server. It features basic functionalities roughly similar tohostapd(with itshostapd.confconfiguration file), which is the common AP software integrated withwpa_supplicant, generally used forinfrastructure mode networking. When implementing aP2P persistent group,wpa_supplicantoffers theP2P-GOfeatures enabled byhostp2pdto connect P2P Clients like Android smartphones, as well as provide the standard infrastructure AP mode to the same P2P-GO group, without the need ofhostapd.In order to acceptWi-Fi Directconnections from P2P Clients, to activate a localP2P-GO(Wi-Fi Direct Group Owner) and to perform WPS authentication,hostp2pdfully relies onwpa_supplicant, interfacing it through thewpa_clicommand-line interface (CLI):wpa_cliis run in background andp2p commandsare piped via pseudo-tty communication, while events returned bywpa_cliare read and processed.hostp2pdincludes a command-line interface mode for monitoring and controlling; it can be executed as a batch or as a daemon and provides an API for integration into other Python programs.Full information and usage details at thehostp2pd GitHub repository.
Package: hostparse
hostparsehostparse- A command-line client for URL and hostname swizzlingInstallationhostparsecan be installed manually by cloning this repository, going to the main directory and typing:pip install .Or it can be installed using PyPI:pip install hostparseUsagehostparseinstalls as a commandline utility and takes input from stdin. In essence hostparse has a few simple parseable items it can extract from a URL. This is the full list of items:schemeusernamepasswordsubdomaindomainhostnametldportpathparamsqueryfragmentThese items can be used as 'swizzling' operators seperated by a comma (,). For example, lets say the input contains a url from which you want to extract just the registered domain with its tld you can do:hostparse domain,tldNow what is neat with these items is that the tool will match the shortest match without duplicates. This means that instead of typingtldyou can also typetlor eventas there are no other items that would conflict. The same query as before can also be written as:hostparse d,tThe only thing to be careful of is the match, for example you can't usepforportas it will also match other items (the tool will warn you about this and simply return without processing data). You have to get the right match,powill work forportshoweverpawon't work wothpathas it will also matchparamswhich means you have to usepatfor path.Additionally the data the tool outputs uses a delimiter based on the items you choose, so if you choosedomainandtldit will be outputed as:<domain>.<tld>. You can change this delimiter value with the-doperator after you specify the items to filter out. If you don't want a delimiter you can specify it as-d''.One extra thing to point out: the order of the items you specify is also how they are represented in the output.Bugs & FeaturesFeel free to open issues for features or bugs you've found or do a pull request and you will be rewarded somewhere later in life for it.
Package: host-picker
HOSTAuthor:Matteo BagagliDate:10/2021Version:2.4.3What is it?TheHOSTacronym stands forHigh-Order-STatistics seismic pickers.
This algorithm took inspiration from the one described inBaillard et al. 2014.
The idea behind this package is to provide user-friendly classes for seismic phase picking withskewnessandkurtosischaracteristic-functions.
Originally applied to seismograms bySaragiotis et al.,
the HOS-CF are able to detect energic transient when the statistical properties of a seismogram
(or time series) change abruptly. These CF are calculated on moving window with fixed window.Measurements of statistical properties in a moving window are suitable for frequency-specific
(or expected) transient. For this reason, the picker support a multi-window analysis,
in order to collect more information or even increase the quality of detections.
Bothskewnessandkurtosisare calculated with C-routine under the hood,
making this package fast and suitable also for realtime picking porpouses.Standard installationIn general, the usage of virtual env is a good habit for python users.
Although this package's dependencies is not For separatedcondaenvironment is recommended.
Since versionv2.4.1the picker can be found in PyPI repository. Therefore to install the latest
stable version you may simply type:$pipinstallhost-pickerand be ready to go.Developer installationIf you want to be updated with the latest patches or even contribute to
the project (yes, really your PR are welcome!), fork-me and clone it
to your device:$gitclonehttps://github.com/mbagagli/hosthost
$cdhost/
$# conda activate myenv (optional)$pipinstall.... et voila'!Additional infosAlthough the package testing is inTravis-CI, you could still installpytestand
inside the cloned folder type:$pytestto check everything is fineThe package comes with jupyter-notebooks (underbookssubdir) where you
can test and understand this picking-algorithm.CitingIf you use this code for your science, please consider citing it in your final results or manuscripts.M. Bagagli (2021). mbagagli/host-picker: host-picker. Zenodo. https://doi.org/10.5281/zenodo.5579271ReferenceBaillard, C., Crawford, W.C., Ballu, V., Hibert, C. and Mangeney, A., 2014. An automatic kurtosis‐based P‐and S‐phase picker designed for local seismic networks. Bulletin of the Seismological Society of America, 104(1), pp.394-409.Saragiotis, C.D., Hadjileontiadis, L.J. & Panas, S.M., 2002. PAI-S/K: a robust automatic seismic P phase arrival identification scheme, IEEE Trans. Geosci. Remote Sens. 40, 1395–1404.
Package: hostport
Simple parser strings like asgrpchost:50051.Installation$pipinstallhostportUsage>>>importhostport>>>hostport.parse('host:30')HostPort(host='host',port=30)>>>hostport.parse('host:30').host'host'>>>hostport.parse('host:30').port30>>>hostport.parse('[fe80::95f3]:50051')HostPort(host='[fe80::95f3]',port=50051)>>>hostport.parse('[fe80::95f3]')HostPort(host='[fe80::95f3]',port=None)>>>hostport.parse('host',default_port=30)HostPort(host='host',port=30)>>>hostport.parse('30',default_host='host')HostPort(host='host',port=30)>>>hostport.parse('host.production:50051',default_host='host',default_port=30)HostPort(host='host.production',port=50051)>>>hostport.parse('host.production')HostPort(host='host.production',port=None)>>>hostport.parse('50051')HostPort(host=None,port=50051)It’s all.
Package: hostray
hostrayhostrayis a pure python project adding simple, scalable, and configurable module framework and utilties to opensource web frameworks. It's currently based onTornado Web Serverprerequest: python 3.6+, pipInstallhostray with pip:pip install hostrayHello worldcreate a minimal runable server project:In command prompt, create a project named hello:python3 -m hostray create helloStart the project:python3 -m hostray start helloOpen Browser views the response of hello api,http://localhost:8888/helloTo stop server, pressctrl+cin the command promptReaddocumentationfor more information (still updating...)Change log0.7.5.1 - Mar. 20, 2020:Add missing dependency,requests0.7.5 - Mar. 20, 2020:Useaiohttpfor sending requests asynchronously.Set logger level to Error when debug set to false in server_config.yaml.Method dispose() of component classes become awaitable.Add certification authority 'ca' parameter for ssl settings in server_config.yaml.Fix bugs.0.7.3 - Dec. 31, 2019:Bug Fix:Arcpath (path in compressed file) might be incorrect when packing projects.Changing test server port in unittest ofhostraylibrary to avoid conflict with default port 8888The 'required' parameter of ConfigValidator classes does not work properly in all cases.0.7.2 - Dec. 8, 2019:Initalizing github project.
Package: hostsed
hostsed is a simple python tool for editing hosts file(default
/etc/hosts), you can add or delete a DNS entry via command line
shell(e.x. bash). Editing hosts file with hostsed would be a more
idemponent command line experience, i.e., add/del the same record won’t
result duplicated or missing entries in the hosts file. hostsed will
check the validity ip address for both IPV4 and IPV6.InstallYou may install hostsed via pip. Python3 is preferred:sudo pip3 install hostsedOr on system default pip command:sudo pip install hostsedUsageDisplay the hosts file contentsudo hostsed
# specify a location other than /etc/hosts
hostsed --file hosts.exampleAdd an entrysudo hostsed add <ip address> <hostname1> <hostname2> ...Example:sudo hostsed add 192.168.1.1 gateway
sudo hostsed add 172.17.0.5 mongo-store-1 mysql-02
hostsed --file hosts.exmaple add 127.0.0.1 valarmorghulis.ioDelete an entryrm/delete/remove are all alias for del:sudo hostsed del <ip address> <hostname>Example:sudo hostsed remove 192.168.1.1 gateway
hostsed --file hosts.exmaple rm ::1 localhostDrop lines with specified ip or hostnamesudo hostsed drop <ip or hostname>Example:sudo hostsed drop 192.168.1.1
sudo hostsed drop www.example.com
hostsed --file hosts.exmaple drop ::1Get the ip address of a docker containersudo hostsed docker <docker-container-name>AcknowledgementThanks for @noahfx provide some awesome improve for hostsed.
Package: hostsmate
HostsMateWelcome to HostsMate! A CLI tool for Unix-like operating systems that works with /etc/hosts file.Protect yourself from malware, tracking, ads, and spam. HostsMate blocks over 1.2M domains from regularly updated sources to keep your system safe. Customize blacklist and whitelist sources, manually block or whitelist domains, suspend HostsMate if necessary.InstallationTo installhostsmate, you can usepip. Make sure to run the installation command withsudoto be able to further runhostsmatewithsudo, which is required.sudopipinstallhostsmateTo run tests as well, installhostsmatewith dev dependencies:sudopipinstallhostsmate[dev]How to useAlways usesudowhen runninghostsmateto ensure that it has the necessary permissions to modify your system's hosts file.Starthostsmatewithsudo hostsmate --run.sudo hostsmateorsudo hostsmate -hwill show the help message:usage: hostsmate [-h] [-R | -a | -s | -r | -b [backup-path] | -x [domain] |
 -w [domain] | -W [url] | -B [url] | -i [url] | -o [url]]

options:
  -h, --help            show this help message and exit
  -R, --run             parse domains from blacklist sources and start the HostsMate
  -a, --autorun         setup automatic update of your Hosts file (Linux and FreeBSD only)
  -s, --suspend         suspend HostsMate
  -r, --resume          resume HostsMate.
  -b [backup-dir], --backup [backup-dir]
                        create a backup of the existing Hosts file in the specific directory
  -x [domain], --blacklist-domain [domain]
                        blacklist specified domain
  -w [domain], --whitelist-domain [domain]
                        whitelist specified domain
  -W [url], --add-whitelist-source [url]
                        add URL with whitelisted domains to whitelist sources
  -B [url], --add-blacklist-source [url]
                        add URL with blacklisted domains to blakclist sources
  -i [url], --remove-whitelist-source [url]
                        remove URL with whitelisted domains from whitelist sources
  -o [url], --remove-blacklist-source [url]
                        remove URL with blacklisted domains from blacklist sourcesUsage details--blacklist-domainoption saves the specified domain touser's custom domainssection of the Hosts file.
These domain names will be preserved when the Hosts file is updated.Using--add-blacklist-sourceand--add-whitelist-sourceoptions you can add URL containing a list of domains,
it will be parsed, formatted, deduplicated and used in your Hosts file.While running--suspendoption you need to manually enable it back with--resume.--autorunis implemented throughanacrontabdependency which is available on Linux and FreeBSD, hence this feature is limited to these OS.Autorun frequency may be set todaily,weeklyormonthly. Daily is recommended ;)All sources are being parsed concurrently, so it's faster than a lot of similar tools.LogsA log file is created for every datehostsmateran in/var/log/hostsmatedirectory.LicenseThis project is licensed under the terms of theMIT License.
Package: hostsmgr
hostsmgr (Hosts Manager)API for manage hosts fileFree software: Apache-2.0Documentation:https://hostsmgr.readthedocs.io.FeaturesUsagefromhostsmgrimportHostsMgrfromhostsmgr.hostsmgrimportguess_hosts_pathfromhostsmgr.conditionsimportAny,All,IPAddress,Host,InlineCommentmgr=HostsMgr()# Load system hosts filemgr.load(guess_hosts_path())# Save hosts to another place (Must open with text mode !)mgr.save(open('/etc/hosts.old','w'))# Save hosts to string with hosts file formathosts_string=mgr.saves()# Find all hosts entries that with 127.0.0.1 addressentries=mgr.find(IPAddress('127.0.0.1'))# Find all entries that contained specific hostentries=mgr.find(Host('localhost'))# Find all entries that contained specificed ip address and host bothentries=mgr.find(IPAddress('127.0.0.1')&Host('localhost'))# Find all entries that contained either hostsentries=mgr.find(Host('ip6-localhost')|Host('localhost'))# Find all entries that contained either hosts, another methodentries=mgr.find(Any(Host('ip6-localhost'),Host('localhost')))# Find all entries that contained both hostsentries=mgr.find(Host('ip6-localhost')&Host('localhost'))# Find all entries that contained both hosts, another methodentries=mgr.find(All(Host('ip6-localhost'),Host('localhost')))# Find all entries that contained target inline commententries=mgr.find(InlineComment('THIS_IS_A_TAG'))# Find only one entry that contained target inline commententries=mgr.find(InlineComment('THIS_IS_A_TAG'),at_most=1)# Remove an entry that found by find()mgr.remove(entry)# Remove all hosts from hosts entriesmgr.remove_hosts(['localhost','ip6-localhost'])# Remove all entries by inline comment exactly matchedmgr.remove_by_inline_comment(InlineComment('TAG_FOR_EXAMPLE'))# Remove all entries by inline comment partial matchedmgr.remove_by_inline_comment(InlineComment('TAG_FOR_EXAMPLE',partial=True))CreditsThis package was created withCookiecutterand thePyPackageTemplateproject template.History0.0.1 (2018-04-15)First release on PyPI.
Package: hostypage
IntroductionThis documentation covers the usage of the Hosty.Page CLIInstallationpipinstallhostypageThe CLI can be installed withpipQuick start# Create a new sitehostypagepublishindex.htmlTo publish a site on Hosty.Page, simply callhostypage publish, specifying a path to a local HTML
or zip file. Once the Hosty.Page CLI uploads your file, it will deploy your files to a CDN and return
a URL in the formathttps://randomstring.hosty.page. This site will be live for 24 hours, before it
expires and will be removed.Authentication# Sending API key with single request:hostypagepublish--api_keymyapikey[...args]# Storing the API key locally for future re-use:hostypageset-api-keymyapikeyIn order to use the premimum features of Hosty.Page, you will need to authenticate. For free users, there is no need
to authorize requests. To obtain an API key, you'll need to register for an account atHosty.Page.Once you have created an account, you can view/change it on theDashboard.Once you have a valid API key, you can either send it with every single request to the API by passing the--api-keyparameter, or store it locally using theset-api-keycommand.More publishing optionsCustom domains# Publish to `randomstring.example.com`hostypagepublishindex.html--domainexample.comIf you have a custom domain, you can pass the--domainoption to the CLI to publish your
site to this domain.Subdomains# Publish to `customsubdomain.hosty.page`hostypagepublishindex.html--subdomaincustomsubdomainSimilar to custom domains, it's also possible to publish to a specific subdomain using the
Hosty.Page CLI, by simply passing the--subdomain argument.It's also possible to combine the--subdomainand--domainparameters to specify
exactly where you want your site to be published.Expiry# Change expiry to 1 week (168 hours)hostypagepublishindex.html--expiry168# Site never expireshostypagepublishindex.html--no-expiryHosty.Page lets you customize the expiry of your published sites, or to remove the expiry
completely so that sites remain live until they are manually deleted. If you do not provide
an expiry option, all published sites will expire and be deleted after 24 hours.You can change the expiry duration by providing an expiry value, in hours, using the--expiryparameter.To remove the expiry completely, you can pass the--no-expiryparameter.You may not pass both the--expiryand--no-expiryfields simultaneouslyAPI parameter referenceCommandParameterPro account required?Descriptionset-api-keyapi_keyNoStores the API key to your local configpublishfileNoThe file to publish - Must be a HTML or zip filepublish--api_keyNoPasses the API key at the time of publishingpublish--subdomainYesSpecify the subdomain to publish topublish--domainYesSpecify the domain to publish topublish--expiryYesThe duration, in hours, before the site gets deletedpublish--no-expiryYesSite will never expire
Package: hotAD
hotADA Python package for forward mode automatic differentiation for multivariate functions, Jacobian/Hessian matrix computation, root-finding, and optimization routines.BackgroundClassically, scientists have used symbolic differentiation and finite difference method to compute derivatives of functions, but these approaches face issues of increasing errors and increasing time cost in evaluating the derivatives as dimensions and complexities of the function go up.Automatic differentiation (AD)applies the chain rule - a rudimentary differentiation technique - over and over on a series of elementary arithmetic operations that make up any function. As the order increases, the complexity of AD calculation is not worse than the original function, therefore achieving efficiency.Our Python package employs the forward mode of AD to evaluate the first and second derivatives of functions. Users are welcome to use our forward mode AD module and accompanying the elementary functions module for their own applications or to take advantage of our even more user-friendly Jacobian-calculating and optimization module.InstallationTo install, users have two optionsPip:pip install hotAD(coming soon)Download source code: Find the code underhotAD/hotADand the requirements in therequirements.txtfile.UsageAutoDiffObjectUsers can instantiate variables they wish to differentiate and then combine these variables into a function, which will now contain the function value and first derivative. To call vector-valued functions, simply create a list of functions. Users can specify an optional argumentH=Trueif they wish to compute the second derivative as well.x = AutoDiff(3, 'x')y = AutoDiff(4, 'y')f = x*y + xElementaryFunctionsUsers are strongly recommended to use our elementary functions. Currently we have implemented:trigonometric functions (sin,cos,tan,arcsin,arccos,arctan)power functions (power,sqrt)exponential functions (log,exp)logistic function (logit)x = AutoDiff(np.pi, 'x')y = AutoDiff(np.pi/4, 'y'f = ef.sin(x) + np.tan(y)ADfunUsers can use the methods in this module to compute the Jacobian matrix of a function, to perform root-finding via Newton's Method, and to perform minimization vianewton,quasi-newton-BFGS, andgradient-descentmethods.More informationFor additional information on how to use the package, please seedocs/milestone2.ipynb.Our group members are:Yuanheng WangJiayin LuLipika RamaswamyAnthony Rentsch
Package: hotaru
HOTARUHigh performance Optimizer to extract spike Timing And cell location from calcium imaging data via lineaR impUlseAuthorTAKEKAWA Takashitakekawa@tk2lab.orgReferencesTakekawa., T, et. al.,
bioRxiv,https://biorxiv.org/content/10.1101/2022.04.05.487077v2(2023).Takekawa., T, et. al.,
bioRxiv,https://biorxiv.org/content/10.1101/2022.04.05.487077v1(2022).Takekawa., T, et. al.,
bioRxiv,https://www.biorxiv.org/content/10.1101/215145(2017).InstallRequirepython >=3.10,<3.12jax >= 0.4RecommendedNvidia GPUcuda 12.0cudnn 8.9Install Procedure (using venv)Create venv environment for hotarupython3.10-mvenvhotaruActivate hotaru environmentsourcehotaru/bin/activateInstall hotarupipinstallhotaruUsagesee helphotaru--helpDemonstrationDownloadsample.tifhotarudata.imgs.file=sample.tifmode=test# see figs/test_*.pdfhotarudata.imgs.file=sample.tifmode=run# see figs/run_*.pdfDemo Movies
Package: hotbit
Python-HotbitA Python package for the cryptocurrency exchange Hotbit that doesn't require an API Key, making it available to everyone.The package also work with official api keys, if you want help getting one, join myDiscord.This is still at the development stage which is why not all endpoints are covered.Installationpip install hotbitorpip install python-hotbitHelp/DiscordJoin clickhereto join our Discord, we're always happy to help.Common errorsIf you are experiencing errors please try to type this in the terminal:$ pip install --upgrade requestsWS
$ pip install git+https://github.com/websocket-client/websocket-client.gitDocumentationAuthEmail, Password, 2FAFor this method the eitherAnti-Captchaor2Captchais neededPlease notice the price of login is about$0.0019onAnti-Captchaand about$0.0029on2Captcha, as they charge for the captcha solving.If you don't want to pay you can use eitherKey/SecretorCookieas the authorization method.importhotbitemail="myemail@email.com"password="MyPassword"authenticatorCode="MyAuthenticatorCode"captchaKey="My 2Captcha Key or Anti-Captcha Key"auth=hotbit.auth.login(email=email,password=password,authenticatorCode=authenticatorCode,antiCaptcha=captchaKey)#If you use 2Captcha write twoCaptcha instead of antiCaptchaClient=hotbit.Hotbit(auth)Official API (Key/Secret)If you want help gaining access to the official api, join theDiscord.importhotbitauth=hotbit.auth.api(api_key="My API Key",api_secret="My API Secret")client=hotbit.Hotbit(auth)Cookieimporthotbitauth=hotbit.auth.cookie(cookies="My Cookie String")client=hotbit.Hotbit(auth)HotbitServer TimeGet the server time of Hotbit.client.serverTime()Place OrderBuy/sell something.client.order(market="ADA/USDT",side="BUY",amount=10,price=0.6)Cancel OrderCancel a select order.client.cancelOrder(market="ADA/USDT",order_id="4365873")Balance QueryQuery your balance on Hotbit.client.balanceQuery()Market PriceRetrieve the instant buy/sell price of a select market.This function has some logic behind it meaning it does not only use Hotbit's endpoints to calculate.market="ADA/USDT"side="BUY"amount=1000# USDT (Last part of market)client.marketPrice(market=market,side=side,amount=amount)Depth QueryQuery ask and bid prices and amount.market="ADA/USDT"client.depthQuery(market)Market ListRetrieve a list of all markets.client.marketList()AlltickerRetreve a list over all tickers.client.allticker()AlltickerGet the order history.client.fetchOrderHistory(since)HTTPThis only works when using the official API. Endpoints can be found here:https://hotbitex.github.io/slate/docs/spot/v2/en.urlPath="/p2/balance.query"payload='assets=[]'client.http(urlPath,payload).json()