Saravanan666/pypi-org huggingface dataset:
Package: hytouch
HyTouchHyTouch is a local package managing frontend for pip.RequirementPython 3.7Current HyTouch is hardcoded for Python 3.7. Other Python versions patch is plannedHy (>= 0.15.0)https://github.com/hylang/hyUNIX like CLIUsagePlace package.hy on your project root. Example:(setvpackage{"dependencies"{"numpy"{}"hy==0.15.0"{}"jupyter"{}}"tasks"{"lab"["jupyter""lab"]"notebook"["jupyter""notebook"]"test"["ls""/home/takuma"]}})Variable "package" required as root element"dependencies" is a dictionary object, including package-name -> optional valueIn current version, optional value is ignored"tasks" is a dictionary object, including task-name -> command params arrayInstall packageshytouchinstall"dependencies" will be installed to PROJECT_ROOT/.hytouchRun taskhytouchruntestls command will be executed.
Package: hytraj
HyTrajThis python library implementsHySPLITbased trajectory modeling and analysis.InstallationInstall using pip:pipinstallhytrajorpipinstallgit+https://github.com/pankajkarman/HyTraj.gitDependenciesPlotting requiresBasemap.Hierarchical clustering requirestraj_dist.DocumentationLatest documentation is availablehere.UsageSeethis notebookfor example usecase.importhytrajashtGenerate TrajectoriesfromhytrajimportHyTrajmet_type="ncep"dates=pd.date_range("2010-02-01",freq="24H",end="2010-02-10")hy=HyTraj(stations,height,run_time,working,metdir,outdir,met_type)data=hy.run(dates,njobs=7)hy.plot(data["Neumayer"],vertical="alt",show=True)Cluster TrajectoriesKMeans Clustering using wavelet featuresfromhytrajimportHyClusterlabels=HyCluster(data).fit(kmax=10,method='KMeans')Hierarchical Agglomerative Clustering (HAC)fromhytrajimportHyHACtrj=HyHAC(data)labels=trj.fit(nclus=4,metric='sspd')trj.plot_dendrogram()Receptor ModelingfromhytrajimportHyReceptor,HyDatastation='South Pole'data=HyData(files,stations).read()[station]model=HyReceptor(ozone,data,station_name="South Pole")cwt=model.calculate_cwt(weighted=False)pscf=model.calculate_pscf(thresh=0.95)rtwc=model.calculate_rtwc(normalise=True)model.plot_map(rtwc,boundinglat=-25)FeaturesHyTraj:Higher level implementation ofParallel Generation, reading and plottingof Trajectories (Recommended).HyGen:Generation of Trajectories using various meteo datasets (NCEP and GDAS implemented).HyControl:Generation of control files for parallel trajectory generation afterwards.HyParallel:Parallel generation of trajectories using control files produced usingHyControl.HyData:Reading and binning trajectories data (NetCDF with xarray support).HyCluster:Clustering of trajectories with KMeans using wavelet features.HyHAC:Clustering of trajectories with Hierarchical Agglomerative Clustering (HAC) using various trajectory distance metric likeDTW, EDR, LCSS, SSPD, Frechet Distance, Hausdorf Distance.HyReceptor:Single site Receptor Modeling( bothweightedand unweighted):Concentration weighted Trajectory (CWT)Potential Source Contribution Function (PSCF)Residence Time Weighted Concentration (RTWC)To DoSupport for more meteorology likeERA5.Add documentation.GUI:Medium-term goalPS:Findpre-built HYSPLIT executableatthis linkand copyexecutebleto working directory.
Package: hyuga
Hyuga - Yet Another Hy Language ServerForked fromhy-language-server.** This software is still experimental stage! **Please be aware that specifications may change without prior notice.StatusVerified-working Hy version:0.24.0Hy versionHyuga Support0.24Yes0.25?0.26?0.27?0.28?We need your help to check the support status for each hy version.Please report the resultsin this issue!FeaturetextDocument/did{Open,Change}textDocument/completionDisplay a list of all modules installed in your system, including classes/functions in the currently opening source. (Plain Python symbols are also included.)textDocument/definitionJump to the definition. (Currently, this refers to hy-source only.)textDocument/hoverScreenshotsCompletionJump to definitionInstallplain installpip3installhyuganeovim(nvim)+vim-lsp+vim-lsp-settingsNote:Currentlyvim-lsp-settingsdoesn't have installer for Hyuga.
You can test withmy vim-lsp-settings branch.Sample for dein:calldein#add('sakuraiyuta/vim-lsp-settings',{'rev':'add-lang/hyuga'})And open*.hyfile withfiletype=hy, then run:LspInstallServerVisual Studio Code(VSCode)Installhyugato your python environment. (Refer to thePlain installsection for details.)In VSCode, openExtensionsview, search forhyuga, and installHyuga VSCode Client.or: visitHyuga VSCode Client - Visual Studio Marketplaceand install.DevelopmentSetupInstallpoetry.Clone this project:git clone https://github.com/sakuraiyuta/hyuga.gitIn project directory, executepoetry install.TestpoetryrunpytesttestsLicenseMIT
Package: hyuki-cvs-graph
Hyuki-CVS-GraphUsagehyuki-graph[option][base_dir]where,base_diris a the most top directory which is watched by this program.Note that defaultbase_diris..This is a tool like astaking-star-table with color(ja),
which considered by Mr. Hyuki.This tool makes table which is written project-name, day number from today and commit-status.Also, if there ishyuki_graph.jsonorhyuki_graph.yamlfile in directory, which this program watch, this program make
a table by using commits number which got by CVS and content of the file.Furtheremore, if cross point which project-name and day number is written D by red color,
this means that the project does not committed.If it is written M by yellow color, this means that the project is committed some times less than 10.If it is written L by green color, this means that the project is committed some times more than or equal to 10.Syntax of Input FileThis program receives following syntax files.As json syntax:{
  project name: {
    date: commit number,
    date: commit number,
    e.t.c.
  },
  project name: {
    date: commit number,
    date: commit number,
    e.t.c.
  }
  e.t.c.
}where, date is a string which has form like “2000/01/01” or “2000-01-01”.As yaml syntax, like json syntax:project name:
  date: commit number
  date: commit number
  e.t.c.
project name:
  date: commit number
  date: commit number
  e.t.c.If you want to use yaml syntax, import PyYaml package in manually:pip install PyYamlOptions-n,--day-num: indicate number of day, whcih is watched by this program.-a,--author: indicate name of committer.-m,--medium-sep: If more than or equal to number of commit is committed, printted L.
Default value is 10.--DA,--dead_or_alive: Showing D and A instead of showing D, M and L.  If there is no commit, D is printted. And there is it, A is printted.-f,--file: indicate input files by separating by space.  Default of this value is “hyuki_graph.json hyuki_graph.yaml.--FO,--file-only: watch only input file not watching CVS--t,--file-type: indicate format of input files. Please indicate json or yaml.-r,--only-running: show only activate projectHowever this is not a option, we don’t not watched input file by--file="".How to install%pipinstallhyuki-cvs-graphor%pythonsetup.pyinstallRequirementspythonIf you deal with git-repository,gitcommandIf you deal with hg-repository,hgcommandLICENSEMIT
Package: hyx
🧘‍♂️️Lightweight fault tolerance primitives for your resilient and modern Python microservicesHyx(/ˈhʌɪx/) is a set of well-known stability patterns that are commonly needed
when you buildmicroservice-basedapplications.
Hyx is meant to beHystrix (Java),resilience4j (Java)orPolly (C#)but for the Python world.Key FeaturesImplements five commonly used resiliency patterns with various configurations based on advice and experience of industry leaders (e.g. AWS, Google, Netflix)Idiomatic Pythonic implementation based ondecoratorsandcontext managersAsyncIONative ImplementationLightweight. Readable Codebase. High Test CoverageRequirementsPython 3.9+AsyncIO-powered applications (no sync support?)InstallationHyx can be installed fromPyPi:pipinstallhyx# or via poetrypoetryaddhyxComponent MapComponentProblemSolutionImplemented?🔁 RetryThe failures happen sometimes, but they self-recover after a short timeAutomatically retry operation on temporary failures✅💾 Cache⚡️ Circuit BreakerWhen downstream microservices have got overloaded, sending even more load can make the situation only worse.Stop doing requests to your failing microservice temporarily if amount of errors exceeded expected thresholds. Then see if the given time helped the microservice to recover✅⏱ TimeoutSometimes operations may take too much time. We cannot wait that long or after that time the success is unlikelyBound waiting to a reasonable amount of time✅🚰 BulkheadIf executed without control, some code can take too much resources and put down the whole application (and upstream services) or cause slowness of other places of the applicationFix the amount of calls to the code, queue other calls and fail calls that goes beyond your capacity✅🏃‍♂️ Rate LimiterThe microservice can be requested with any rate even one that can put it down if happens by accidentLimit the rate your system can be accessed by✅🤝 FallbackNothing can guarantee you that your dependencies will work. What would you do when it's failing?Degrade gracefully by defining some default values or placeholders if your dependencies are down✅Inspired byPolly's Resiliency PoliciesAcknowledgementsresilience4j/resilience4jNetflix/Hystrixslok/goresilienceApp-vNext/PollyDiplomatiq/resily
Package: hzdatasdk
hzdatasdk PackageThis is a simple example package. You can useGithub-flavored Markdownto write your content.列举了hzdata相关的一些内容项目背景:hzdata提供了一套python的sdk
使用者在集成了sdk之后，可以通过接口直接拉取数据,返回
的数据大都为pandas.dataframe、numpy.array等格式。
Package: hzexcel
1概述1.1可根据配置、参数提供校验和导入导出excel功能1.2贡献者：深圳市汉卓软件2.功能详细说明(API列表)：(1)export_excel(data, data_type{可选},file_name{可选} , rules{可选}, freeze{可选})导出excel。	   返回参数：成功时：返回excel 文件；失败时状态码为非200，返回错误信息。(2)import_excel(file, check_dict{可选},type_dict{可选})导入excel并根据规则校验。返回参数：成功时：返回{"status":200,"msg":"校验成功！","data":[{"Name":"Alice","Age":25,"City":"New York"},{"Name":"Bob","Age":32,"City":"Los Angeles"},{"Name":"Charlie","Age":22,"City":"London"}]}；失败时，返回的状态码为非200，错误信息例子如下："缺少列名： 'City';"2.应用说明：(1)export_excel参数说明data:必选数据，有两种不同的数据结构可选，一种是每一行是一条数据，如：{'测试':['Alice','Bob','Charlie'],'Name':['Alice','Bob','Charlie'],'Age':[25,32,22],'City':['New York','Los Angeles','London']}
另一种是类似 DataFrame 的数据格式，比如：data:{"data":[['Alice',25,'New York'],['Bob',32,'Los Angeles'],['Charlie',22,'London']],"columns":['Name','Age','City']}data_type: 可选参数，默认为1。可选值为 1 或 2。当值为 1 时，表示每一行是一条数据；当值为 2 时，表示使用 DataFrame 类型的数据格式。
file_name: 可选参数，文件名称，比如 '默认名称.xlsx'。rules: 可选参数，导出规则，包括表头设置和数据验证下拉列表等。freeze：可选参数，表示从第几行第几列开始冻结，比如值为”A2 ”其中2表示第从第2行（行索引从1开始）， A 表示第一列。(2)import_excel参数说明file :必选参数，二进制excel文件，一般从前端传来的 self.request.FILES['file'] 中获取
check_dict:可选参数，校验的对象 ，其中header表示必须必须有那些列，content表示那些列 必填、而且指定类型，type_dict:可选参数，
判断非表头的数据类型，可传入配置设置可校验类型，不传时默认值如下{
"str": str,
"int": int,
"float": float,
"bool": bool,
"datetime": pd.to_datetime,
}3.应用实例（1）export_excel例子：from hzexcel import export_excel
rules = {
"head": {"Font": {"bold": True, "color": "FF0000", "size": 14}},
"validation": [
{
"column_name": "Name",
"type": "list",
"formula1": '"$ 价格,A 可获得性,P 包装,P 性能,E 易用性,A 保证,L 生命周期成本,S 社会影响力"',
"showDropDown": False,
}
],
}
data = {
'测试': ['Alice', 'Bob', 'Charlie'],
'Name': ['Alice', 'Bob', 'Charlie'],
'Age': [25, 32, 22],
'City': ['New York', 'Los Angeles', 'London']
}
return export_excel(data, 2, '默认名称.xlsx', rules, "A2")（2）export_excel例子：from hzexcel import import_excel
self.request = request
file = self.request.FILES['file']
check_dict = {
"header": ['Name', 'Age', 'City'],
"content": {'Name': 'str', 'City': 'str'}
}rs0 = import_excel(file, check_dict)
rs = json.loads(rs0)
if rs['status']:
#  通过验证
# 将文件中的数据转为数据 ，批量插入到数据库
if rs['status'] == 200:
return Response(rs, status=status.HTTP_200_OK)
else:
return Response(f"{rs['msg']}", status=status.HTTP_400_BAD_REQUEST)
else:
return Response(f"校验数据时出错", status=status.HTTP_400_BAD_REQUEST)
Package: hzfile
hzfile这是一个练习二进制读写时写的模块，比较简易。功能把一个目录下诸多文件打包合并成一个<.hz>文件，无加密，无压缩。把<.hz>文件内打包合并的文件原样提取出来，但不包含目录结构，可以全部提取，也可以按文件名提取。思路先设计一个<.hz>文件的格式规范，尽可能地把打包提取时会遇到的问题考虑进去。编写代码，按设计的规范使用二进制方式读写<.hz>文件，借助模块对整数和二进制字节码进行转换操作。格式规范储存的数据储存的数据储存单元的类型储存单元的数量总占用字节数文件头部信息文件格式标识unsigned char1616类型空间占用表四个类型的空间占用大小(B, H, I, Q)unsigned char44格式版本信息unsigned short4H * 4预留空白字节NANA255被合并的文件总数unsigned int1I * 1被合并的单个文件文件大小unsigned int1I * 1文件名长度unsigned int1I * 1文件名字节串(包含'\0')unsigned char *1<文件名长度>的值…被合并的文件数据被合并的文件字节码…代码思路模块中包含一个类，类实例化时需要一个文件路径参数，当文件存在时，读取文件头部信息保存到类属性中。当文件不存在时，用默认的文件头部信息创建一个<.hz>文件。当读取一个已存在的<.hz>文件时，不可对文件进行写操作(比如用方法打包新的文件)，只能对其进行读操作(比如用方法提取所有文件)。当创建一个不存在的<.hz>文件时，可以进行写操作(比如用方法打包新的文件)，写操作后，只可进行读操作，不再允许写操作。限制写操作是因为设计格式规范时没考虑好(踩到的第一个坑)，导致每次新的写操作都要对<.hz>文件全部读写一遍，浪费性能。模块使用安装模块，win平台：py -m pip install -U hzfile编写使用代码# coding: utf-8fromhzfileimportHzFilehzf=HzFile(r"./myfile.hz")# r"./myfile.hz" 指向一个不存在的文件# 后缀名是什么无关紧要，读取时是以文件头的文件格式标识判断格式是否正确的hzf.merge(r"./pictures",recursion=False,bigok=False)# 参数1是一个目录路径，表示将该路径下的所有文件打包进myfile.hz文件# 参数recursion表示是否递归搜索参数1目录下的子目录# 参数bigok表示在当参数1下的文件大于4G时是否直接跳过，True表示直接跳过，False表示抛出Exception异常。# 因为格式规范设计之初考虑性能问题，仅用一个unsigned int保存文件的大小信息(字节)，也就是能表示大约4G大小。print(hzf.fbom())# 打印<myfile.hz>文件内所包含的文件的信息。# 返回值格式为[(文件大小, 文件名字节串含'\0'长度， 文件名字符串), ...]print(hzf.fcnt())# 打印<myfile.hz>文件内包含的文件数量print(hzf.fver())# 打印<myfile.hz>创建时使用的格式规范版本，是[a,b,c,d]形式，abcd均>=0, <=255。print(hzf.ftypesize())# 接受5个值：B, H, I, Q, None# 返回<myfile.hz>创建时使用的各类型数据的占用空间大小hzf.extract(["a.txt","b.jpg","c.mp4"],dirpath=r"./files1",overwrite=False)# 按文件名提取文件# 第一个参数是要提取的文件名列表# 第二个参数dirpath是一个目录路径，可以是已存在或不存在的路径，提取出的文件将被保存到这个目录# 第三个参数overwrite是是否覆盖同名文件，这个参数仅针对提取文件前dirpath中已存在的文件# 对于<myfile.hz>中的同名文件，提取时会以<xxx_1.x>的形式重命名文件，不会被覆盖# 打包时的文件目录结构不会被打包，也就是说，无论打包多少层的目录内的文件，提取时都只会以一层目录(dirpath)保存hzf.extractall(dirpath=r"./files2",overwrite=False)# 提取所有文件，参数同<extract>方法的最后两个参数
Package: hzn-django-polls
Polls is a Django app to conduct web-based polls. For each question,
visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “polls” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'polls',
]Include the polls URLconf in your project urls.py like this:path('polls/', include('polls.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/polls/to participate in the poll.
Package: hz-scanvirus
By tjshWeb:https://bbs.flexible-world.com/How do I install it?:pip install hz_scanvirusModule List:[ScanFile.py] - Scan a File.
[GetMD5.py] - Get a File MD5.
[ListDirectory.py] - Lists all files in the directory.How do I use it?Here is an example of scanning a file.import hz_scanvirus
r = hz_scanvirus.ScanFile('path')
print(r)The following results are returned.if False/None : Not detectedif not False/None : This is the virus nameif Error : try again.Feedback the Error? Tohttps://bbs.flexible-world.com!If you want to get the file hash code, or use other features, read the module help.Currently completed features:Scan ModuleScan FileGet HashGet File ListNetWorkVirusTotal APIUpdate DataBaseUpdate URL:Update File DownloadUpdate Date:Update DateGit:Software GiteePack Git:Pack GiteeMy Gitee:My Gitee