Saravanan666/pypi-org huggingface dataset:
Package: heracless
heraclessConfig Manager using yaml.Descriptionheracless aims to make working with config files in python easy. It parses a config file into a dataclass
and creates types as a python file
with can be used for type hints. Generated types also make autocompletion a dreamy!Usagefirst create a config file in yaml format and put in your desired fields.
to access the config information do like in following sample code.from heracless.decorator import heracless
from config.types import Config

@heracless()
def main(cfg:Config) -> Any: 
"""
simply add a cfg parameter to any function at the first place
and access config attributes like you do any with any other object
"""
    some_sample_config_value = config.sample.some_valueits as simple as that!Decorator arguments:cfg_path:Path yaml config file path -> Default ./config/config.yamldump_dir:Path Path where types are going to be written to -> Default ./config/types.pydump_func:Callable control's the dumping behavior -> options: heracless.dump_in_file|heracless.dump_in_console| heracless.dump_dummy -> Default dump_in_filefrozen:bool whether dataclass config objects are mutable or not -> Default Truemake_dir:bool make given paths or not if not existing -> Default TrueinstallationpipinstallheraclessVersionheracless 0.1written in python 3.11Futureadd clitooladd config variantsadd ray wrapper for hyperparameter optimization configsAuthorFelix Schellinggithub: felixscodeWitten with <3 in Mexico
Package: hera-cli-utils
HERA CLI UtilsFeaturesTODORequirementsTODOInstallationYou can installHERA CLI UtilsviapipfromPyPI:$pipinstallhera-cli-utilsUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,HERA CLI Utilsis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: herakles
herakles jira toolTools for working with theJira API.UsageInitializefromheraklesimportJiraAuthBasic,JiraWrapperauth=JiraAuthBasic("username","password")jira=JiraWrapper.connect("https://server.jira.com",auth)# optional add map of custom fields.jira.add_custom_fields_from_file("custom_fields.yml")Use jql builder to programmatically build jql queriesSee how many tickets a user resolved in the past number days:query={"and":[{"assignee":{"=":team_member}},{"resolved":{">":f"-{days}d"}},{"project":{"not in":["'Unrelated Project'"]}},]}Contributors GuideTestingTesting is done via pytest.$ pip install -r requirements.txt
$ pytestTo get code coverage information, you can run pytest directly.$ pip install -r requirements.txt
$ pytest --cov=src --cov-report=htmlThis will generate an html coverage report inhtmlcov/directory.
Package: herakoi
herakoiherakoiis a motion-sensing sonification experiment.It uses a Machine Learning (ML)-based algorithm for hand recognition to track in real-time the position of your hands in the scene observed by a webcam connected to your computer. The model landmarks coordinates of your hands are then re-projected onto the pixel coordinates of your favorite image. The visual properties of the "touched" pixels (at the moment, color and saturation) are then converted into sound properties of your favorite instrument, which you can choose from your favorite virtual MIDI keyboard.In this way, you can hear the sound of any images, for educational, artistic, or just-fun purposes!Fully written in python,herakoirequires relatively little computational power and can be run on different on the most popular operating systems (macOS, Microsoft Windows, Linux).Usagerunherakoi path_to_your_favorite_imageopen your favorite MIDI player (e.g., if you runherakoion an Apple computer, GarageBang is a good option)have fun!You can customize yourherakoiby using the following flags:--notes XX YY, that will allow the pitch to span the range from the noteXXandYY(withXXequal to, e.g., C4 for middle C)--volume ZZ, that will set lower threshold for the note volume (withZZin percentage)--switch, inverting the color-brightness mappingFAQsA list of frequently asked questions.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change, or contact the authors.LicenseCopyright 2022 Michele Ginolfi, Luca Di Mascolo, and contributors.herakoi is a free software made available under the MIT License. For details see the LICENSE file.
Package: herald-notify
Programmatically send notifications!AboutHave you ever been in a situation where you’ve been simply twiddling
your thumbs, waiting for your program to finish compiling/running? Are
you into Deep Learning and need a way to notify yourself when your
program crashes or is done learning to do the impossible?ThenHeraldis for you!With a simple, extensible and pythonic interface, you can get setup with
a programmatic way of notifying yourself and/or your teammates about
different events in your code.The following platforms are currently supported:GMailTwilioNeed to use it with a custom platform? You can easily write your ownnotifierand plug it in to handle that, makingHeraldinfinitely
extensible.InstallationThe easypip installherald-notify.UsageThe primary way to useHeraldis like a context manager. E.g.importheraldfromheraldimportnotifiers# Send yourself a mail in Gmail to notify you# Assumes your Gmail tokens have been set up properlynotifier=notifiers.GmailNotifier()withHerald(notifier,message="Model Trained!"):# super long running processtrain_model()...You should get an email in your registered Gmail account at the end of
the program.You can also specify notifications at arbitrary points via thenotifiercall:importheraldfromheraldimportnotifiersnotifier=notifiers.TerminalNotifier("Whoop de doo!")notifier.notify("A new custom message")# Send the original message from the constructornotifier.notify()ContributingIf you find bugs, please feel free to submit an Issue, or even better, a
Pull Request!DevelopmentTo set up your dev environment, perform the following steps: - CloneHerald- Inside the root directory, runpipenv shellto open a
shell. - Finally runpipenv installto install all the dependencies.At this point, you should be good to go!TestingWIP
Package: hera-py
hera-pyA toolkit for theHaverford Educational RISC Architecture(HERA) assembly language, comprising an interpreter, a debugger, an assembler, and a disassembler.InstallationYou can install hera-py with pip:$ pip3 install hera-pyUsageAfter installation, use theheracommand to run a HERA program:$ hera main.heraEnter the interactive debugger with thedebugsubcommand:$ hera debug main.heraAssemble a HERA program into machine code:$ hera assemble main.heraDisassemble machine code back into the human-readable HERA syntax:$ hera disassemble main.hera.lcodeYou can also preprocess a HERA program without running it, to see how pseudo-instructions and labels are resolved to HERA code:$ hera preprocess main.heraComparison with HERA-C and HassemHERA-C is the current HERA interpreter used at Haverford. It is implemented as a shell-script wrapper around a set of C++ macros that expand HERA instructions into C++ code, which is then compiled by g++.hera-py improves on HERA-C in the following areas:Includes a purpose-built HERA debuggerConcise and accurate error messagesEase of useCross-platform and easy to installConfigurable with command-line optionsDoes not create temporary filesCommand name has six fewer letters thanHERA-C-Runhera-py also supports several features that HERA-C does not:Setting registers to the value of a labelDetecting stack overflowMulti-precision multiplicationRelative branching by a fixed integer value (e.g.,BRR(10))Branching by the value of a register (e.g.,SET(R1, 20); BR(R1))Detecting invalid relative branchesHERA-C has a few features that hera-py does not:C-style #define macros (and more generally the ability to embed arbitrary C++ code in HERA programs)Small to medium-sized programs generally run faster with hera-py than with HERA-C, while very large programs are typically faster with HERA-C.Hassem is the current HERA assembler used at Haverford. hera-py has better error messages than Hassem, allows the user greater control of output (e.g., with the--stdoutflag), and fixes some Hassem bugs.AcknowledgementsThank you toChristopher Villaltafor valuable feedback on early iterations of this project.
Package: hera-sim
Basic simulation package for HERA-like redundant interferometric arrays.FeaturesSystematic Models:Many models of instrumental systematics in various forms,
eg. thermal noise, RFI, bandpass gains, cross-talk, cable reflections and foregrounds.HERA-tuned:All models have defaults tuned to HERA, with various default “sets”
available (eg.H1C, H2C)Interoperability:Interoperability withpyuvdatadatasets andpyuvsimconfigurations.Ease-of-use:High-level interface for adding multiple systematics to existing
visibilities in a self-consistent way.Visibility Simulation:A high-level interface for visbility simulation that is
compatible with the configuration definition frompyuvsimbut is able to call
multiple simulator implementations.Convenience:Methods for adjusting simulated data to match the times/baselines of
a reference dataset.DocumentationAtReadTheDocs.
In particular, for a tutorial and overview of available features, check out thetour.InstallationConda usersIf you are using conda, the following command will install all
dependencies which it can handle natively:$ conda install-cconda-forgenumpy scipy pyuvdata attrs h5py healpy pyyamlIf you are creating a new development environment, consider using the
included environment file:$ conda env create-fci/tests.yamlThis will create a fresh environment with all required dependencies, as
well as those required for testing. Then follow the pip-only
instructions below to installhera_simitself.Pip-only installSimply usepip install-e.or runpip installgit+git://github.com/HERA-Team/hera_sim.Developer installFor a development install (tests and documentation), runpip install-e.[dev].Other optional extras can be installed as well. To use
baseline-dependent averaging functionality, install the extra[bda].
For the ability to simulate redundant gains, install[cal]. To
enable GPU functionality on some of the methods (especially visibility
simulators), install[gpu].As the repository is becoming quite large, you may also wish to perform
a shallow clone to retrieve only the recent commits and history. This makes
the clone faster and avoid bottleneck in CI pipelines.Provide an argument--depth1to thegit clonecommand to copy only
the latest revision of the repository.git clone-–depth[depth]git@github.com:HERA-Team/hera_sim.gitVersioningWe use semantic versioning (major.minor.patch) for thehera_simpackage (seeSemVer documentation).
To briefly summarize, newmajorversions include API-breaking changes, newminorversions
add new features in a backwards-compatible way, and newpatchversions implement backwards-compatible bug fixes.
Package: hera-tda
Hera-TDAPython bindings forHera, a library for fast calculation of bottleneck distance and Wasserstein distance on persistence diagrams.These bindings can be used with standard Python types (lists of lists).  These bindings are also compatible withBATS.Note that Hera is also used inDionysus 2for bottleneck distance computation.InstallationYou first need to install boost headers for Heradnf install boost-devel # fedorapip installpip install hera-tdaThis will compile binaries.Build from sourceThen, do a recursive clone for submodulesgit clone --recursive git@github.com:CompTop/pyhera.gitthen you can install to your Python environmentpython setup.py installBasic ExampleBottleneck DistanceAfter installation, the package is available under thehera_tdanamespace.importhera_tdaasheraimporthera_tda.bottleneckpX=[[1.0,2.0],[2.0,3.0]]# diagram 1pY=[[1.1,2.1],[2.1,3.1]]# diagram 2d,inds=hera.bottleneck.BottleneckDistance(pX,pY)# d = 0.1dis the computed bottleneck distanceindsis a tuple containing the indices ofpXandpYthat were the maximum-weight matching (-1is used to indicate a diagonal point).Wasserstein Distancefromhera_tda.wassersteinimportWassersteinDistancepX=[[1.0,2.0],[2.0,3.0]]pY=[[1.1,2.1],[2.1,3.1]]p=2.0# wasserstein-pd=WassersteinDistance(pX,pY,p)# d = 0.1414...WassersteinDistancejust returns the distance.  There is no matching.Additional ExamplesSeedemo.ipynbandwasserstein.ipynb
Package: heraut
HerautHeraut, the herald of pythonic message passing.A python 3.6+ package for message passing between threads and processes.Minimal example:Sending Informationfromsrcimportheraut# Initialize the sender, once per process per sendersender=heraut.Sender(name='process A')# Send the messagesender.send(message='hello world',label='',target='process B')# Tell the listner no more messages will be coming.sender.stop_listener(target='process B')Recieving Informationfromsrcimportherautlistener=heraut.Listener()flag=Truewhileflagandlistener.listening():# get the messageflag,message,label,metadata=listener.get_message()# do something with the messageprint(message)# Shut down the listner.listener.end()
Package: herbal
Herbal TEAPython package for the Tiny Encryption Algorithm (TEA).The Tiny Encryption Algorithm (TEA) is a simple and efficient block cipher algorithm.FeaturesSupports Python 3.9+.Simple typed Python API.No third-party dependencies.Usesscryptto derive encryption keys.Allow for input text of any length with PKCS#7 padding.Installation# Latest stable release.pipinstallherbal# Most recent (unstable) release.pipinstallgit+https://gitlab.com/lunardev/herbal.gitUsagefromherbal.teaimportencrypt,decryptpassword="secret"cipher=encrypt("example message!",password=password)plain=decrypt(cipher,password=password)print(plain)# example message!To-DoImplement the Tiny Encryption Algorithm.Add padding to plaintext input.[~] ISO 10126PKCS#7Implement extended algorithms.XTEAXXTEAAdd different block ciper modes.Electronic Code Book (ECB)Cipher Block Chaining (CBC)Cipher Feedback Mode (CFB)Output Feedback Mode (OFB)Counter Mode (CTR)Add error handling for bad data.Add unit tests.Local pytest casesGitLab CI pipelineCode coverageWrite documentation.Publish project to thePython Package Index.ReferencesWheeler, David J.; Needham, Roger M.TEA, a Tiny Encryption Algorithm. 16 Dec. 1994https://link.springer.com/content/pdf/10.1007/3-540-60590-8_29.pdf.Shepherd, Simon.The Tiny Encryption Algorithm (TEA).https://www.tayloredge.com/reference/Mathematics/TEA-XTEA.pdf.Andem, Vikram Reddy.A Cryptanalysis of the Tiny Encryption Algorithm, 2003,https://tayloredge.com/reference/Mathematics/VRAndem.pdf.Wikipedia.Tiny Encryption Algorithm, 6 Nov. 2023,https://wikipedia.org/wiki/Tiny_Encryption_Algorithm.Fandom.Tiny Encryption Algorithm, 24 Sept. 2010,https://antifandom.com/cryptography/wiki/Tiny_Encryption_Algorithm.LicenseThis project is licensed under theMIT License. Copyright (c) 2024.
Package: herbarium
HerbariumTODO: Add a short description of the projectInstallationpipinstallherbariumUsageTODO: Add minimal usage exampleSetting up a development environmentDevcontainerInstallOrbstackor Docker Desktop. Make sure to complete the full install process before continuing.If not installed, install VSCodePress thislinkComplete the setup processDone! Easy as that.💬 Where to ask questionsType🚨Bug ReportsGitHub Issue Tracker🎁Feature Requests & IdeasGitHub Issue Tracker👩‍💻Usage QuestionsGitHub Discussions🗯General DiscussionGitHub Discussions
Package: herbert-python
Herbert is a game I first saw in theImagine Cup 2008 Algorithm Invitational.The game requires you to solve a series of levels by writing small programs to
control a robot named Herbert. The simpler and more elegant your solution, the
more points you get.It challenges your ability to see patterns and create algorithms to produce
those patterns.Here’s my clone of Herbert.Enjoy!InstallationTo install, simply use pip (orpipenv):$pipinstallherbertUsageTo runherbertyou need alevelto solve and aprogram, that you
write, that attempts to solve the level.Suppose the level is stored inlevel.txtand that you wrote and saved
your solution insol.h. Then, you’d runherbertas follows:$herbertlevel.txtsol.hIt will open acursesbased text user interface that allows you to run your program against the level
to determine if it solves the level and how many points your solution is worth.N.B.Thedata/exampledirectory contains an example level along with 3 attempted solutions to the
level. You can use it to help you understand how the game works.An overview of the gameA level consists of empty spaces (.), walls (*), white
(w) and gray (g) buttons, and a robot (umeans the robot
is facing upwards,rmeans the robot is facing towards the right,dmeans the robot is facing downwards, orlmeans the robot is
facing towards the left).N.B.You can find an example levelhere.On each level there are some white buttons. To solve a level you must press all
the white buttons. Your goal then is to program Herbert, in a language called
“h”, to press all the white buttons while avoiding obstacles such as walls and
gray buttons (walls block Herbert’s path and gray buttons reset any previously
pressed white buttons to their unpressed state).You are only allotted a certain number of “bytes” (a unit of program size) per
level. Your program must use no more than this number of bytes.Points are awarded for each white button pressed, a bonus is awarded for solving
the level, and extra points are awarded for solutions that use less than the
allotted maximum number of bytes.The “h” languageIt is a simple language that contains statements, procedures with zero or more
parameters and recursion. Check out the tutorialhereto get a better understanding of the language.You can find examples of the language in usehere,hereandhere.ChallengeTry to solve the following levels (seedata/levels):Level 1Level 2Level 3Level 4Level 5DevelopmentRecommended tools:pyenvpipenvClone the repository and install the dependencies:$gitclonegit@github.com:dwayne/herbert-python.git$cdherbert-python$pipenvshell$pipenvinstall--devYou’re now all set to begin development.TestingTests are written using the built-in unit testing framework,unittest.Run all tests.$python-munittestRun a specific test module.$python-munittesttests.test_interpreterRun a specific test case.$python-munittesttests.test_interpreter.ExamplesTestCase.test_example10ResourcesHerbert Programming ChallengebyWild NoodleHerbert Online JudgeuHerbert
Package: herbie-aws-sns-sqs-adapter
AWS SNS/SQS AdapterThis Adapter is based on Django and provides a way to publish messages to AWS SNS/SQS.The default configuration creates a single SNS Topic on which a single SQS Queue subscribes for new messages.An exampleSQS consumeris also available.It is meant to be used withHerbie.InstallationThe package already provides a Django app that just needs to be registered in the main Django app using Herbie.Run the followingpip install herbie-aws-sns-sqs-adapteror add it to your app requirements.txt and update them running:pip install -r requirements.txtAdd the adapter App to Django Installed Apllications:INSTALLED_APPS = [
    ...
    'aws_sns_sqs_adapter.apps.HerbieAwsSnsSqsAdapterConfig',
    ...
]Configure theAWS environment variables:AWS_ACCESS_KEY_ID="access_key",
AWS_SECRET_ACCESS_KEY="secret_key",
AWS_SQS_SNS_ENDPOINT_URL="sns_sqs_endpoint",
AWS_SQS_SNS_REGION="sns_sqs_region",Run command to create the SNS/SQS Topics/Queues according to the schemas available.
This command will create 1 SNS Topic and 1 SQS Queue per schema available; the queue will subscribe to the respective created topic.python manage.py init_sns_sqsAn example Django application using this adapter can be found at theHerbie Sandboxrepository.Developing/TestingIf you would like to further improve this package you'll need to install the dev/test requirmeents.To to this run in yourvirtual environmentpip install -e .[tests]This will install the needed packages (e.g:pytest) to run/test locally the packageBlack FormatterThis package usesBlackas a code formatter. You should run it before
pushing the code as the CI pipeline checks against it.black --line-length 119 .
Package: herbie-google-pubsub-adapter
Google Pubsub AdapterThis Adapter is based on Django and provides a way to publish messages to Google Pubsub.It is meant to be used withHerbie.The package already provides a Django app that just needs to be registered in the main Django app using Herbie.InstallationRun the followingpip install herbie-google-pubsub-adapteror add it to your apprequirements.txtand update them running:pip install -r requirements.txtAdd the adapter App toDjango Installed Apllications:INSTALLED_APPS = [
        ...
        'google_pubsub_adapter.apps.HerbieGooglePubsubAdapterConfig',
        ...
    ]Add your Google Cloud Pubsub Credentials to thedjango settingsfile:GCLOUD_PUBSUB_PROJECT_ID='pubsub_project_id'Create the Topics according to the Business Schemaspython manage.py init_pubsubAn example Django application using this adapter can be found at theHerbie Sandboxrepository.Developing/TestingIf you would like to further improve this package you'll need to install the dev/test requirmeents.To to this run in yourvirtual environmentpip install -e .[tests]This will install the needed packages (e.g:pytest) to run/test locally the packageBlack FormatterThis package usesBlackas a code formatter. You should run it before
pushing the code as the CI pipeline checks against it.black --line-length 119 .
Package: herbiv
中文|EnglishHerbiV(Bidirectional and Visible Database of Herb)既是一个数据库，又是一个强大的数据分析平台，集成了50多万条方剂、中药、成分、靶点数据，以及经过检验的中药和中药组合对疾病靶点潜在作用的评价模型和中药及复方组合的优化模型，旨在推动中医药现代化进程。安装使用from_tcmfrom_proteinsfrom_tcm_protein更新日志安装可以使用pip安装herbiv。pip install herbiv此外还需要安装依赖库pandas。pip install pandas或conda install pandas使用herbiv.analysis中提供了3个进行网络药理学分析的pipeline函数。from_tcm经典的正向网络药理学分析的pipeline函数。使用它仅需使用命令fromherbivimportanalysisfrom_tcm(tcm,score,out_for_cytoscape,re,path)它需要一个必需形参tcm，任何可以使用in判断一个元素是否在其中的组合数据类型，存储拟分析的中药的中文名称，如['柴胡', '黄芩']。它的可选形参有score: int类型，仅combined_score大于等于score的记录会被筛选出，默认为900；out_for_cytoscape: boolean类型，是否输出用于Cytoscape绘图的文件，默认为True；re: boolean类型，是否返回原始分析结果，默认为True。若re为True，则函数将返回运行结果tcm、tcm_chem_links、chem、chem_protein_links和proteins， 它们均为pd.DataFrame类型，
分别存储了中药信息、中药-化合物（中药成分）连接信息、 化合物（中药成分）信息、化合物（中药成分）-蛋白质（靶点）连接信息和蛋白质（靶点）信息；path: str类型，存放结果的路径，默认为result/。若无此路径，将自动建立相应的目录。from_proteins逆向网络药理学分析的pipeline函数。使用它仅需使用命令fromherbivimportanalysisanalysis.from_proteins(proteins,score,out_for_cytoscape,re,path)它需要一个必需形参proteins，这是一个任何可以使用in判断一个元素是否在其中的组合数据类型，存储拟分析蛋白质（靶点）在STITCH中的Ensembl_ID，
如['ENSP00000381588', 'ENSP00000252519']。它的可选形参有score: int类型，仅combined_score大于等于score的记录会被筛选出，默认为0；out_for_cytoscape: boolean类型，是否输出用于Cytoscape绘图的文件，默认为True；re: boolean类型，是否返回原始分析结果，默认为True。若re为True，则函数将返回运行结果tcm、tcm_chem_links、chem、chem_protein_links和proteins， 它们均为pd.DataFrame类型，
分别存储了中药信息、中药-化合物（中药成分）连接信息、 化合物（中药成分）信息、化合物（中药成分）-蛋白质（靶点）连接信息和蛋白质（靶点）信息；path: str类型，存放结果的路径，默认为result/。若无此路径，将自动建立相应的目录。from_tcm_protein同时对中药和靶点进行检索的pipeline函数。使用它仅需使用命令fromherbivimportanalysisanalysis.from_proteins(tcm,proteins,score,out_for_cytoscape,re,path)它需要2个必需形参tcm和proteins，它们都是任何可以使用in判断一个元素是否在其中的组合数据类型，
分别存储拟分析的中药的中文名称（如['柴胡', '黄芩']）和
拟分析蛋白质（靶点）在STITCH中的Ensembl_ID （如['ENSP00000381588', 'ENSP00000252519']）。它的可选形参有score: int类型，仅combined_score大于等于score的记录会被筛选出，默认为0；out_for_cytoscape: boolean类型，是否输出用于Cytoscape绘图的文件，默认为True；re: boolean类型，是否返回原始分析结果，默认为True。若re为True，则函数将返回运行结果tcm、tcm_chem_links、chem、chem_protein_links和proteins， 它们均为pd.DataFrame类型，
分别存储了中药信息、中药-化合物（中药成分）连接信息、 化合物（中药成分）信息、化合物（中药成分）-蛋白质（靶点）连接信息和蛋白质（靶点）信息；path: str类型，存放结果的路径，默认为result/。若无此路径，将自动建立相应的目录。更新日志0.0.1a1横空出世0.1a1(2023.3.28)使用本项目自己的数据集进行分析，不再使用其他数据库的公共数据集，更新了整个分析架构，大大加快了分析速度；加入了基于朴素贝叶斯的中药重要性评价模型。0.1a2(2023.3.29)数据集随herbiv库下载，无需指定数据集存放路径。0.1a3(2023.4.9)重构了代码，增加了经典的正向网络药理学分析的功能。0.1a4(2023.4.14)增加了pipline函数from_tcm_protein，可同时检索中药和靶点;增加HerbiV_proteins数据集。0.1a5(2023.4.19)不会输出游离于网络的节点，提高了稳定性；统一了函数的调用方法。0.1a6(2023.5.27)output中增加了vis函数，可以输出基于ECharts的网络图；pipline函数也做了相应的修改。0.1a7(2023.6.29)增加过滤无效节点的函数，提高系统的稳定性。0.1a8(2023.6.30)vis函数绘制的网络图可为不同类节点赋予不同颜色。