Saravanan666/pypi-org huggingface dataset:
Package: hyfive
HyFiveWhat Is HyFive?HyFive is aHylibrary that provides a Lispy functional interface by wrapping Python's popular data libraries, such asPandasandMatplotlib.HyFive vs. Vanilla PandasPandasDataFramehas its own quirks. It ranges from not having afiltermethod to having a different definiton ofjointo that of SQL. This is evident from the bewildering comparison betweenPandas and SQL. HyFive aims to provide a Lispy interface that is as close as possible to that ofSpark'sSQL and DataFrame.From a functional programming perspective, Pandas interfaces are oddly difficult to compose unlike Spark SQL's method-chaining convention. Due to this difficulty, Pandas often perversely incentivises short names for dataframes in favour of creating intermediate variables, which litters the namespace.HyFive utilises Hy's threading macros to mimic Spark DataFrame's method chaining convention, whilst staying with the familiar Pandas dataframe. Consider the following HyFive snippet:(setvDATAFRAME(->NAME-REGISTRY(hf.with-column"variant"(let[mod-res-id(hf.mod"resident_id"3)](hf.cond-col[(hf.eq?mod-res-id1)(hf.lit"a")][(hf.eq?mod-res-id2)(hf.lit"b")][:else(hf.lit"c")])))(hf.filter(hf.is-in"variant"["a""b"]))(hf.joinAGE-REGISTRY:on"resident_id")(hf.group-by"variant")(hf.agg{"min_age"(hf.min"age")"mean_age"(hf.mean"age")"std_age"(hf.std"age")"max_age"(hf.max"age")})(hf.order-by"min_age":descTrue)))Here, we carry out simple operations of adding a column, filtering rows, joining tables, aggregating groups and sorting rows. Apart from the Lispycond, these operations would have a one-to-one translation to Spark dataframe or SQL.In contrast, one would have to work a bit harder in pure Pandas:mod_res_id=NAME_REGISTRY.resident_id%3variant=np.where(mod_res_id==1,'a',np.where(mod_res_id==2,'b','c'))select_ix=np.isin(variant,['a','b'])dataframe=(NAME_REGISTRY.assign(variant=variant)[select_ix].merge(AGE_REGISTRY,on='resident_id').groupby('variant').apply(lambdadf:pd.Series({'min_age':df.age.min(),'mean_age':df.age.mean(),'std_age':df.age.std(),'max_age':df.age.max()})).reset_index().sort_values(by='min_age',ascending=False).reset_index(drop=True))The Pandas version is less readable and we lose the one-to-one translation to Spark dataframe or SQL.Trying HyFiveClone the repository, and on the root directory of the enter the following command on terminal:./runbuild-dockerRun the unit tests with the following command:./rununit-tests.Invoke the Hy REPL by running:./runreplAnd finally, import HyFive using:(import[hyfive:ashf])
Package: hygdas
HygDAS is a database management system based ongraph/hypergraph model as the underlying data model. At the lowest end of
a hypergraph-based model is a set of primitive nodes and its attributes
(data values). Primitive nodes can related to each other via edges (with
relevant attributes). Primitive nodes can also be aggregated into a set of
nodes, known as hypernodes, which can be linked to eachother via edges
(with relevant attributes). Related edges can be aggregated into a set of
edges, known as hyperedge.
Package: hygge
Hygge (‘Cozzy’) Response“A cozzy(‘hygge’) way to get json response back asynchronously”TopicsHygge (‘Cozzy’) ResponseOverviewOverviewIt should be easy to return json response asynchronously. hygge aim to be a fuzzy-less way to do just that.
Just pass a url and ‘get’ arguments such as params, headers, and receive back a json response.website:hygge.#installhyggepip install hyggeHow to usefromhygge.getimportGetResponseurl='https://www.trustpilot.com/businessunit/search'params={'country':'dk','query':'mate.bike'}# passing url and parametersres=GetResponse(url).get(params=params)print(res)# passing only urlinfo_url=f'https://www.trustpilot.com/businessunit/{res["businessUnits"][0]["id"]}/companyinfobox'print(GetResponse(info_url).get())
Package: hygieia
# Hygieia
Hygieia — The Python Package that Utilizes Feature Selection to Predict the Clinical and Genomic Basis of DiseaseHygieia is an open-source Python package that conducts feature selection on patient records, extracting
impactful information about non-genomic and genomic characteristics. Hygieia combines cutting-edge
and tried-and-tested gene expression analysis methods, placing machine learning algorithms and
classical statistics tests at its user’s fingertips. Hygieia is simple to use and provides easy-to-interpret
results, cementing itself as a fantastic tool for scientists without a solid computational background. The
Ahmed Lab plans to expand Hygieia further as we explore the uncharted intersection between artificial
intelligence and gene expression analysis, incorporating a vaster array of feature selection methods into
the package in the future.
Package: hygrometry
hygrometryHelpful hygrometry python functions, like dew point, wetbulb, absolute humidity, mixing ratio, etc.For install instructions and API see the documentationhere.A jupyter notebook with some simple analysis on the wetbulb
algorithmhere.Installpip3 install hygrometryORpip3 install git+https://github.com/bluthen/hygrometry.gitRun doctestspython -m doctest -v hydrometry/__init__.py
Package: hygro-premium-sp-server
EasyHome Hygro Premium SP controllerUnofficial speed controller for EasyHome Hygro Premium SP via web. It exposes an API REST server with a simple
frontend in order to control the current speed.RequirementsRaspberry PIUp to 7 relaysSoftware: pipDevelopment Software: pip, node, yarnSetupWe need to interface our Raspberry PI to the EasyHome Hygro card through relays.
There are currently two types of configurations available:With normal relays. When the Raspberry PI has not started is inQUIETspeed.With solid state relays.NOTE: If you want to shut down the EasyHome Hygro when the Raspberry PI has not started with
normal relays use the solid state configuration.Interfacing EasyHome Hygro card with Raspberry PIArray of 7 relaysArray of 7 solid state relaysInstallationsudopipinstallhygroWeb serverRun the commandhygro-premium-sp-server.
If do you prefer to have it in a background process you can run asnohup hygro-premium-sp-server &It will open a web frontend in Raspberry PI at port 21000. It exposes an API rest too in the same port.API RESTGET /api/status{"speeds":["quiet","normal","maximum"],"available_speeds":["quiet","maximum"],"current":{"speed":"maximum","ratio":1.00,"real_ratio":1.00}}GET /api/configuration{"velicity_ratio":1.00,"product":"default"}POST /api/configure{"velocity_ratio":0.54,"velocity_percentage":66,"velocity":"quiet","product":"default"}Power consumption and acoustic measurementsPower consumption [1]Acoustic [1]References[1] Page 36:https://www.aldes-international.com/img/2019/10/Gamme_EasyHOME_Tech_Corp_En_2_HD.pdf
Package: hy-ipython
Hy-IPython: a Hy magic for IPythonCurrently requiresexactlyHy 0.24.Based on asnippet by Ben Denham.Installationpipinstallhy-ipythonDevelopmentRequiresFlit.# Create a venv (or use virtualenv)python-mvenv./project.venv# Install into the venvflitinstall--symlink--python./project.venv/bin/python# Build wheel and sdistflitbuild--formatwheel--setup-py
flitbuild--formatsdist--setup-py# Publish to PyPIflitpublish--formatwheel--setup-py
flitpublish--formatsdist--setup-pyDon't forget to set up yourpypircfile:https://packaging.python.org/en/latest/specifications/pypirc/.
Package: hyjinx
🦑 HyjinxFunctions and macros useful for modern living in theHyREPL.Compatible with Hy 0.28.0.HylightsREPL syntax highlighting (put(import hyjinx.source [hylight]) (setv repl-output-fn hylight)in your .hyrc)pretty tracebacks with correct syntax highlighting for hy or pythonprint/get/edit source code of a function, module etc.in-repl code analysis and discussion using LLMsdefmethod(ifmultimethodis installed)numpy array pretty printinga zmq lazy pirate protocola minimal ncurses classModuleshyjinx.lib: a smorgasbord of convenience functions.hyjinx.source: code inspection.hyjinx.doc: peruse hy documentation.hyjinx.screen: a convenient ncurses wrapper.hyjinx.mat: numpy pretty-printing for humans. (requires numpy, jax optional)hyjinx.[zmq_client, zmq_server, crypto, wire]: lazy-pirate zmq RPC architecture. (requires zmq, ecdsa, zstandard)hyjinx.llm: discuss code with a Large Language Model (AI). TabbyAPI and OpenAI-compatible are supported. (requires openai)Install$pipinstall-Uhyjinxor, with optional dependencies,$pipinstall-Uhyjinx[zmq]$pipinstall-Uhyjinx[llm]To install offline hy/hyrule documentation,$hy-mhyjinx.docsSee hyjinx.hyrc for example usage.Optional dependenciesYou can install with the[zmq]option which also installs ecdsa,pyzmqandzstandardfor the zmq server/clientYou can install with the[llm]option which also installs openai and lets you discuss code objects with ChatGPT or a locally-served LLM (via TabbyAPI or similar).
Package: hyj-open-api
胡宇杰的open apis功能介绍爬虫模块办公自动化模块注意事项为在校大学生书写，存在以下问题方法效率不高大规模处理延时较高存在暂未修复的bugbata方法尽量不用，存在大量未知bug本项目遵循 XX 协议
Package: hyko_sdk
The HYKO SDK./hyko_sdkpackage which defines functions endpoitns/on_startup,/on_execute, defines hyko typing system and what downloads/uploads inputs and outputs../hyko_toolkitA collection of functions and AI models that are available on hyko../scripts/sdk_builder.pyallows you to validate and build images of sdk functions and to push them to a registry.To publishBefore publishing a new version ofhyko-sdkmake sure to update its version inpyproject.tomlFollow this convetion bynpmCode statusStageRuleExample versionFirst releaseNew productStart with 1.0.01.0.0Backward compatible bug fixesPatch releaseIncrement the third digit1.0.1Backward compatible new featuresMinor releaseIncrement the middle digit and reset last digit to zero1.1.0Changes that break backward compatibilityMajor releaseIncrement the first digit and reset middle and last digits to zero2.0.0Generate apypitoken and add it to configure poetry to use itpoetryconfigpypi-token.pypiyour-pypi-tokenNow you can build and publishpoetrybuild
poetrypublishHow to add a new functionCreate a new directory inside./sdkwith the following naming convention./sdk/category_name/function_name/version/This directory can contain anything (git repo, helper modules, requirements.txt, etc.), but most importantly it needs to containmetadata.pywhere you define the inputs, params and outputs of your function, amain.pywhere you define theon_execute,on_startupandon_shutdownfunctions and finally aDockerfilefor building your function.metadata.pyfrompydanticimportFieldfromhyko_sdk.functionimportSDKFunctionfromhyko_sdk.metadataimportCoreModelfunc=SDKFunction(description="description of your function goes here",)@func.set_inputclassInputs(CoreModel):input_name:input_type=Field(...,description="Input description")# example@func.set_paramclassParams(CoreModel):# same as abovepass@func.set_outputclassOutputs(CoreModel):# same as abovepassmain.pyfrommetadataimportInputs,Outputs,Params,func@func.on_startupasyncdefload():"""define here what you need to run while starting your function ex. loading model weights."""pass@func.on_executeasyncdefmain(inputs:Inputs,params:Params)->Outputs:"""define the logic of your function"""returnOutputs()@funcasyncdefshutdown(x)"""define what you need to run when shutting down your function"""passDockerfileFROMtorch-cuda:latest# or FROM hyko-sdk:latest in case you dont need torch and cudaWORKDIR/appCOPY..CMD["poetry","run","uvicorn","--host","0.0.0.0","--port","3000","main:func"]Finally runsdk_builder.pyon your function to validate it, build its image and push it to your registry.python./scripts/sdk_builder.py--dirpath/to/your_function--cuda--registryregistry.treafik.meResourcesget started with dockerpython exceptionsfastapi deprecated on_eventPydantic DocsGet started with Json Schema
Package: hylaa
HylaaHylaa (HYbridLinearAutomataAnalyzer) is a verification tool for system models with linear ODEs, time-varying inputs, and possibly hybrid dynamics.The is version 2 of Hylaa, with support for resets and hybrid automata with time-varying inputs. The focus has shifted from performance to handling more general dynamics.The latest version of Hylaa is always available on our github repository athttps://github.com/stanleybak/hylaa. A website for Hylaa is maintained athttp://stanleybak.com/hylaa.The main citation to use for Hylaa is: "HyLAA: A Tool for Computing Simulation-Equivalent Reachability for Linear Systems", S. Bak, P. Duggirala, 20th International Conference on Hybrid Systems: Computation and Control (HSCC 2017)The code was mostly written by Stanley Bak (http://stanleybak.com) with input from Parasara Sridhar Duggirala (http://engr.uconn.edu/~psd).Hylaa is released under the GPL v3 license (see the LICENSE file). Earlier versions have been approved for public release (DISTRIBUTION A: Approved for public release; distribution unlimited #88ABW-2016-5976, 22 NOV 2016).InstallationThis version of Hylaa runs inpython3and requires a few other libraries that you can install withpip3, the python package manager. You must also set yourPYTHONPATHenvironment variable so that it knows where the hylaa source is located. There is aDockerfilein this repository which is used as part of our continuous integration framework that has step by step commands for installing the necessary packages and dependencies. This serves as the installation documentation, as it's always up to date.Getting Started + ExampleThe easiest way to get started with Hylaa is to run some of the examples. Once installed and setup, Hylaa models are just python source files you directly withpython3in a terminal.Go toexamples/harmonic_oscillatorand runha.pyfrom the command line (python ha.py). This should createplot.pngin the same folder, which will be an 2-d plot of the reachable set.The dynamics in this example are given as x' =Ax, whereAis the (potentially sparse) dynamics matrix. This is defined in thedefine_hafunction in theha.pysource file.Initial states and unsafe states are given as conjunctions of linear constraints. These are defined in themake_initfunction.Finally, computation settings are given in thedefine_settingsfunction. There are lots of settings that can be adjusted, which can be found inhylaa/settings.py, including comments describing what each one does.The easiest way to use Hylaa on your example is to copy an example from the examples folder and edit that. Notice that models are python code, which means you can
create the model programatically using loops or by loading the dynamics from a .mat file.Pending Deprecation Warnings in Test SuiteThe test suite produces pending deprecation warnings. This comes from scipy sparse matrices using matrix objects, particularly for computing the matrix exponential. I expect at some point scipy will make an update that will fix these, and then they'll go away. For now, we're ignoring them.
Package: hyload
Introductionhyloadis a performance testing framework.It is used to test Web/HTTP API server, as the following figure shows.It provides a high-performance Python library to develop load testing. So you could run your test program on Windows， MacOS and Linux.Based on gevent, by launching multiple hyload workers, it could reach about tens of thousands of requests per second and hundreds of thousands of concurrent connections on a single machine.It also provides a VS Code extension to let you observe realtime statistics, remote multi-host deploy and remote launching test. VS Code extension includes a code-helper to facilitate developing.InstallationIncluding install hyload library and hyload vscode extensionhyload libraryjust runpip3 install hyloadhyload VS Code extensionsearchhyloadin VS Code marketplace and install itUser GuidePlease refer tohttps://jcyrss.github.io/hyload
Package: hynbp
N Body ProblemA quick implementation of the N Body Problem of Celestial MechanicsFeaturesCreateBodieswith 3 initial parameters:paramdtypedescriptionmassfloatmass of the bodyposnp.arrayposition vector <i, j, k>velnp.arrayscape velocity vector <i, j, k>Create anNBPSolverwith two parameters:paramdtypedescriptionbodieslistlist of bodiestsfloattime stepUtilize the NBPSolver methodsolve_timestep()to update each body's position after the specified time step has passed.Call the methodplot_animation(time_lim, frame_size, output), where the parameters are:paramdtypedescriptiontime_limintlimit number of secondsframe_sizeintamount of iterations before recording a frameoutputstringoutput file name (include file extension, e.g. output.gif)This package offers flexibility in terms of handling the output, as well as dinamically adding or removing bodies during run time.TODO:Add different integration methodsAdd efficiency monitoring (*hint: create a context manager to monitor execution times)
Package: hyoga
Hyogais aPythonlibrary to prepare and visualize ice-sheet model datasets.
It acts as a thin wrapper aroundGeoPandasandxarrayforCF-compliant
datasets on regular grids used for instance inPISM. Hyoga (氷河) is the
Japanese word for glacier (lit. ice river). See thedocumentationfor more.Since April 2022, development has been funded by a Trond Mohn Foundation (TMS)
researchprojecton alpine biodiversity at the University of Bergen (UiB).
Package: hyou
Hyou provides a simple Pythonic interface to access your Google
Spreadsheet data.Synopsisimporthyou# Login to Google Spreadsheet with credentialscollection=hyou.login('/path/to/credentails.json')# Open a spreadsheet by IDspreadsheet=collection['1ZYeIFccacgHkL0TPfdgXiMfPCuEEWUtbhXvaB9HBDzQ']printspreadsheet.title# => "Hyou Test Sheet"# Open a worksheet in a spreadsheet by sheet nameworksheet=spreadsheet['Sheet1']printworksheet.title# => "Sheet1"printworksheet.rows# => 5printworksheet.cols# => 3# Worksheet objects can be accessed just like two-dimensional listsprintworksheet[1][0]# => "banana"printworksheet[1][1]# => "50"# Call Worksheet.commit() to apply changesworksheet[2][0]='cinamon'worksheet[2][1]=40worksheet.commit()DocumentationDocumentation is available athttps://hyou.readthedocs.io/.AuthorShuhei TakahashiWebsite:https://nya3.jp/Twitter:https://twitter.com/nya3jp/DisclaimerThis library is authored by a Googler and copyrighted by Google, but is
not an official Google product.LicenseCopyright 2015 Google Inc. All Rights Reserved.Licensed under the Apache License, Version 2.0 (the “License”); you may
not use this file except in compliance with the License. You may obtain
a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: hyp
Hyp===JSON-API responses in Python.About-----Hyp is a library implementing the _must_ parts of the [JSON-API](http://jsonapi.org) response specification. This means that you can use Hyp to serialize your models into responses that contain links and linked compound documents. It works really good in combination with your micro web framework of choice, preferably [Flask](http://flask.pocoo.org).It has built in support for both [Schematics](https://schematics.readthedocs.org/) and [Marshmallow](http://marshmallow.readthedocs.org) in the sense that you can use any of them for serializing your models (or primitives) into JSON that Hyp creates responses from. To add support for more data serialization libraries such as [Colander](http://docs.pylonsproject.org/projects/colander/en/latest/) should be trivial though.Tutorial--------First let's define some serializers for your models:```pythonfrom marshmallow import Serializer, fieldsclass CommentSerializer(Serializer):id = fields.Integer()content = fields.String()class PersonSerializer(Serializer):id = fields.Integer()name = fields.String()class PostSerializer(Serializer):id = fields.Integer()title = fields.String()```We can then create our own responders using the `hyp.Responders` class:```pythonfrom hyp.responder import Responderclass CommentResponder(Responder):TYPE = 'comment'SERIALIZER = CommentSerializerclass PersonResponder(Responder):TYPE = 'person'SERIALIZER = PersonSerializerclass PostResponder(Responder):TYPE = 'post'SERIALIZER = PostSerializerLINKS = {'comments': {'responder': CommentResponder(),'href': 'http://example.com/comments/{posts.comments}',},'author': {'responder': PersonResponder(),'href': 'http://example.com/people/{posts.author}',},}```Finally we can use our responders for creating responses. These responses goes perfectly into any Flask application out there:```pythonpost = {'id': 1,'title': 'My post','comments': [{'id': 1, 'content': 'A comment'},{'id': 2, 'content': 'Another comment'},]}json = PostResponder.respond(post, linked={'comments': post['comments']})```The `json` variable will now contain some freshly squeezed JSON ready for sending back to the client:```json{"posts": [{"id": 1,"title": "My title","links": {"comments": [1, 2]}}],"linked": {"comments": [{"id": 1,"content": "My comment"},{"id": 2,"content": "Another comment"}]},"links": {"posts.comments": {"type": "comments","href": "http://example.com/comments/{posts.comments}"}}}```If you'd like to get have dict returned instead of json, for example if you want to use flask's [jsonify](http://flask.pocoo.org/docs/api/#flask.json.jsonify), then you can use the `build` method instead like so:```pythonpost = {'id': 1,'title': 'My post','comments': [{'id': 1, 'content': 'A comment'},{'id': 2, 'content': 'Another comment'},]}response = PostResponder.build(post, linked={'comments': post['comments']})json = flask.jsonify(response)```
Package: hyp3lib
HyP3-lib: A Common library for HyP3 plugins[!WARNING]
HyP3-lib is currently undergoing a major redesign and many utilities that are no longer used by existing HyP3 plugins have been removed between version 2 and version 3. In addition, we plan to migrate some remaining functionality to other projects and to significantly refactor what remains. For this reason,if you are using HyP3-lib we strongly recommend pinning to major versions at this time. We further recommend not using this library in production until its version 4 release.PurposeThe goal of this package is to provide ASF's various HyP3 plugins with a set of utilities they can use to perform common tasks. This could include tasks such as downloading Sentinel-1 orbit data, or verifying that NASA EarthData credentials are available.If you're a MintPy user looking to crop HyP3 products, please see ourTime Series Analysis with HyP3 and Mintpy Tutorial.If you are looking for a way to request HyP3 products via Python, we suggest checkout ourHyP3 Python SDK.If you are looking for workflows that take advantage of our HyP3 on-demand products, we suggest checking out ourASF ToolsPython library.LicenseThe HyP3-lib package is licensed under the BSD 3-Clause license. See theLICENSEfile for more details.Code of conductWe strive to create a welcoming and inclusive community for all contributors to HyP3-lib. As such, all contributors to this project are expected to adhere to our code of conduct.Please seeCODE_OF_CONDUCT.mdfor the full code of conduct text.ContributingContributions to the HyP3-lib library are welcome! Whether you're finding bugs, adding new features, fixing anything broken, or improving documentation, get started by submitting an issue or pull request!Please seeCONTRIBUTING.mdfor more info.Contact UsWant to talk about HyP3-lib? We would love to hear from you!Found a bug? Want to request a feature?open an issueGeneral questions? Suggestions? Or just want to talk to the team?chat with us on gitter