Saravanan666/pypi-org huggingface dataset:
Package: haqc
HAQC -- Heuristic Algorithms for Quantum Computing Research GroupResearch group to run optimisation algorithms on Quantum Computers at the University of MelbourneGetting StartedBefore getting started, ensure you have Python 3.7+. We usepoetryto manage the python environment (the .gitignore file should already ignore it).$ poetry installTo add a package to your new project:$ poetry install <package>This will automatically edit yourpyproject.tomlfile with the new package you provided.Next, activate thepoetryshell:$ poetry shell
$ python --versionThis will spawn a new shell subprocess, which can be deactivated by using exit.ContributingTestingFor testing, we usepytest. To run the tests, just type the commandpytest, or you can specify a file e.g.pytest tests/test_graph_generator.py.We will useblackas our code formatter. Simply runblack -S .to run black over all the files before committing. The-Sis to skip string normalisation, because we prefer single quotes/don't really care (flame war, I know).Before making a PRIn summary, before merging a PR, you should:# Make sure all tests passcdsrc
pipenvrunpython-mpytesttests/*# Format with blackpipenvrunpython-mblack-S.MLFlow TrackingTo get the MLFlow tracking functionality to work you will need to setupawsclicredentials, so MLFlow can properly log artifacts.If you're keen to do this then please follow the instructionshereYou can request the credentials for this experiment from Vivek atvkatial@student.unimelb.edu.auRunning a test instanceTo run a test instance try out the steps below:pythonqaoa_vrp/main.py-ftest-TFalse# -T tracking for MLFlowJupyter NotebooksFirst ensure that your Python isnotaliased in your.bashrcor.zshrcfile.After this launch yourpoetrybypoetry shellThen do:python -m ipykernel install --user --name=ENV_NAMEThen launch the notebookjupyter notebookIn your notebook, Kernel -> Change Kernel. Your kernel should now be an option.SingularityThis project leveragesSingularityto ensure the code is reproducible and manage dependencies.You can find the recipe for our container inSingularityFile.def. There are various apps for each different type of experiment we run,CI/CDWe use Github Actions for CI/CD. Everytime a PR is created, a test build of the singularity container runs. When merging intomainwe do a release of the container.AuthorsVivek Katial
Package: har2csp
har2csphar2cspis a command-line tool that generates Content Security Policy (CSP) headers from HTTP Archive (HAR) files. It analyzes the network requests in the HAR file and generates CSP directives that allow those requests, helping you to create a CSP for your website that doesn't break anything.Installationpipinstallhar2cspUsagehar2csp[-h][-sSELF_URL]har_file_pathPositional Argumentshar_file_path: The path to the HAR file to generate CSP directives from.Optional Arguments-h, --help: Show a help message and exit.-s SELF_URL, --self-url SELF_URL: The URL of the website that the HAR file was recorded from. Any requests to this URL will be ignored when generating the CSP directives.Examplehar2csp-shttps://www.example.comexample.harThis command will generate CSP directives fromexample.har, ignoring any requests tohttps://www.example.com. The directives will be printed to the console.LicenseThis project is licensed under the terms of theApache 2.0 Licence.
Package: har2pm
Har2Postman将har文件转换为postman可导入文件安装pipinstallHar2Postman使用1.将har文件转换为postman可导入文件har2postmanpostman_echo.har# INFO:root:read postman_echo.har# INFO:root:Generate postman collection successfully: postman_echo.json2.在postman中导入postman_echo.json文件
Package: har2postman
Har2Postman将har文件转换为postman可导入文件安装pipisntallHar2Postman使用1.将har文件转换为postman可导入文件hartopostman_echo.har# INFO:root:read postman_echo.har# INFO:root:Generate postman collection successfully: postman_echo.json2.在postman中导入postman_echo.json文件
Package: har2requests
har2requestsStep 1: Interact with a website from your usual browserStep 2: automatically generate the Python code to replay your
requestsMotivationTo write bots in Python, the two main options are:requeststo produce HTTP
requests directlyseleniumto control a web
browserOf course, requests bots are more stable but they require more daunting
work to reverse engineer the javascript code and reproduce every request
made by the client.Discover har2requests!FeaturesAutomatic requests code generation from aHAR
fileDetection of the headers common to all requests and code
factorizationClever inference on the origin of authorization headersCode formatting usingblackInstallationpip install har2requestsUsageFrom Chrome or Firefox, go to the Network tab of the Developer Tools,
put the filters you want and export to HAR.To read from a file:har2requests input.har > output.pyTo read from the clipboard:pbpaste | har2requests - > output.pyBy default, OPTIONS requests are ignored. To include them, use--include-options.When encountering errors, you can use the--unsafefeature that will display warnings
instead of errors if the HAR file does not fit the specification.har2requestsuses string matching algorithms to find the origin of authorization headers. If your file is too big, it might be slow. You can disable it with--no-infer.Workflow tips--exclude-cookie-headersavoids the need to manually edit the output if all cookies are assigned by the website each session (the common scenario).--generate-assertionshelps pinpoint unexpected variations quickly.--debug-requestshelps if you need to debug the requests/responses themselves.
Package: har2tavern
HAR2taverntavern是一个pytest插件，用来进行接口自动化测试，通过YAML来描述和管理测试用例。
尽管YAML已经十分简洁，但是的接口数量很多时，创建YAML文件依然耗时。本工具将通过抓包获取到的HAR文件，快速生成tavern所支持的YAML文件，实现快速进行接口自动化的目的。当然，你也可以对生成的YAML进行修改，以实现复杂业务的测试。安装pipinstallhar2tavern使用基本用法>har2tavernfile.harhar2

Outputfile:./test_api_1.tavern.yaml
Outputfile:./test_api_2.tavern.yaml
Outputfile:./test_api_3.tavern.yaml
Outputfile:./test_api_4.tavern.yaml
Outputfile:./test_api_5.tavern.yaml
Outputfile:./test_api_6.tavern.yaml
Outputfile:./test_api_7.tavern.yaml
Successfullygenerated7files本命令将生成多个yaml格式的测试用例更多参数>har2pytest--help
Usage:har2pytest[OPTIONS]HARFILE
根据har文件，生成yaml格式的接口自动化测试用例

Options:-H,--hostTEXT只为指定的host生成用例-S,--single-fileBOOLEAN将用例合并到单个文件--helpShowthismessageandexit.生成requests代码>har2requestsfile.harhar2importrequestss=requests.Session()resp_1=s.request(**{"method":"POST","url":"http://127.0.0.1:8000/todo","headers":{"Host":"127.0.0.1:8000","Connection":"keep-alive","Accept":"application/json, text/plain, */*","Authorization":"Bearer 0OWgIous2pQjm2Z4aiT2X0HCt3BnuJnp6fVMVv0TpMpEfW8xL53UkzCFJcAlMEaB","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36","Content-Type":"application/json;charset=UTF-8","Origin":"http://127.0.0.1:8000","Sec-Fetch-Site":"same-origin","Sec-Fetch-Mode":"cors","Sec-Fetch-Dest":"empty","Referer":"http://127.0.0.1:8000/static/index.html","Accept-Encoding":"gzip, deflate, br",},"json":{"title":"2222","is_done":False},})开发获取源代码gitclonehttps://github.com/dongfangtianyu/har2tavern.gitcdhar2tavern创建venv，并安装依赖python-mvenvvenvsource~/venv/bin/activate
pipinstall-rrequirements.txt
pre-commitinstall执行测试、 执行检查pytest&&pre-commitrun--all-files在写代码之前，要确定你获取的代码是没有问题的,所有先执行一次测试开发代码coding....现在，你可以尽情的编码了。执行测试 、 执行检查特别提醒你在提交代码之前，再次进行测试和检查pytest&&pre-commitrun--all-files打包python setup.py sdist执行该命令将在./dist目录下中生成安装包，可以分发、安装贡献如果你对本工具有更好的想法，欢迎发起PRhttps://github.com/dongfangtianyu/har2tavern我们希望PR中有修改的描述、测试用例，并且所有用例全部测试通过。
Package: har2warc
Convert HTTP Archive (HAR) -> Web Archive (WARC) formatpip install har2warcCommand-Line Usagehar2warc <input.har> <output.warc.gz>Libary Usagehar2warc can be used as a python library.Simple usage similar to CLI interface:fromhar2warc.har2warcimporthar2warchar2warc('input.har','output.warc.gz')Also supports reading and writing from buffers:fromhar2warc.har2warcimporthar2warchar=json.loads(...)withopen('output.warc.gz','w+b')aswarc:har2warc(har,warc)# READ WARCwarc.seek(0)warc.read()
Package: haracat
hAraCat 🐈hAraCat is a Python library for adding diacritics automatically to Medieval Arabic text.Install 😻pip install haracatUse 🐱Diacritics can be added as followsfrom haracat import diacritics_sentence
diacritics_sentence("الإجاج، مثلثة الأول: الستر.".split(" "))
>> الْإِجاجُ، مُثَلَّثَةَ الْأَوَّلِ: السِّتْرُ.First the sentence is tokenized before the diacritics are predicted.CreditsKhalid Alnajjar, Mika Hämäläinen, Niko Partanen and Jack Rueter
Package: haralyzer
A Python Framework For Using HAR Files To Analyze Web Pages.DocumentationThe documentation exists onreadthedocs.OverviewThe haralyzer module contains three classes for analyzing web pages based
on a HAR file.HarParser()represents a full file (which might have
multiple pages).HarPage()represents a single page from said file.HarEntry()represents an entry in aHarPage(), and there are are multiple entries per page.
EachHarEntryhas a request and response that contains items such as the headers, status code, timings, etcContributingWe are always looking for new people to get involved. If you are looking to get involved, then fork this repo and start making changes that you would like to see.
If you are making any coding changes, then please create tests (we use pytest) for your code. Documentation should also be created for your additions. You can then submit a PR and we will review it.Python 2 Support1.9.0. is the last version that supports Python 2.7.
Package: haralyzer-api
A REST API For Har Data AnalysisOverviewThe haralyzer API module provides a deployable REST API for storing raw HAR
data and extracting performance data for the pages inside the HAR data.StatusThis is currently SUPER beta, with limited features, and no guarantees as to appropriate
functionality.Development ProcessStart by forking the repository, and cloning down your fork. Make a fresh virtualenv,
and then install the developer requirements.pip install -r developer_requirementspython setup.py developRun the tests:py.test tests/IMPORTANT: This application REQUIRES Redis. I have been too lazy to use any kind of mocking or
db fixtures, so you need to have Redis running locally for the tests to complete. SORRY!The repo has Travis CI and Coveralls integration, so please do the needful with repo
access on your account.PLEASE write tests for your new code! Travis and Coveralls makes it easy to see if you
are missing coverage on any of your new stuff.When you are finished, just open a pull request!Schema ChangesThis project uses flask-migrate to manage schema changes. Consult thedocsif you have
questions about how to use it.Project Documentation
Package: harambot
HarambotAn interactive Yahoo Fantasy sports bot for Discord.Commands/ping                           - Gives the latency of harambot
/RIP                            - Pay respects
/standings                      - Returns the current standings of the current league
/roster "Team name"             - Returns the roster of the given team
/stats "Player Name"            - Returns the details of the given player
/trade                          - Create poll for latest trade for league approval
/matchups                       - Returns the current weeks matchups
/waiver                         - Returns the waiver wire tranasactions from the previous 24 hours
/configure                      - Configure the bot for your guildYou can find example output of these commandshereRoll your own instancePrerequisitesIn order to properly configure your bot you will need the following:Discord API TokenYahoo API Client Id & SecretYahoo League IDVisit ourwikifor a step by step guide on how to obtain these values.Run the bot in the cloudRun the bot locally using pip packageInstall the harambot package using pippip install harambotExport the following environment variablesexport DISCORD_TOKEN='[YOUR DISCORD TOKEN]'
export YAHOO_KEY='[YOUR YAHOO API CLIENT ID]'
export YAHOO_SECRET='[YOUR YAHOO API CLIENT SECRET]'
export DATABASE_URL='[YOUR DATABASE URL]'Run the botharambotRun the bot locally using dockerPull the latest image from docker hubdocker pull dmcp89/harambotExport the following environment variablesexport DISCORD_TOKEN='[YOUR DISCORD TOKEN]'
export YAHOO_KEY='[YOUR YAHOO API CLIENT ID]'
export YAHOO_SECRET='[YOUR YAHOO API CLIENT SECRET]'
export DATABASE_URL='[YOUR DATABASE URL]'Run the botdocker run --name harambot \
 -e DISCORD_TOKEN=$DISCORD_TOKEN \
 -e YAHOO_KEY=$YAHOO_KEY \
 -e YAHOO_SECRET=$YAHOO_SECRET \
 -e DATABASE_URL=$DATABASE_URL \
 --rm dmcp89/harambotSetupAdd the bot to your guildGenerate a OAuth url from the discord developer portal using the bot scope and the following permissions:Send MessagesSend Messages in ThreadsEmbed LinksAttach FilesRead Message HistoryAdd ReactionsUse Slash CommandsThe permission value should be 277025507392Set the gateway intentsIn order for the bot to work properly it requires the following intents:Sever Members IntentMessage Content IntentNavigate to the generated url in a web browser and authorize the bot for your guildConfigure your guildOnce your bot is added to your guild you can configure it by using the /configure command:Use the Login with Yahoo button to authenticate with Yahoo and get your Yahoo tokenUse the Configure Guild button to configure your guild for the botYou can reconfigure your guild by running the configure command and clicking the Configure Guild button.
Package: haran-utils
UtilsA collection of utility functions and scripts I use.Image scriptsThese are a set of cli scripts related to image housekeeping. The syntax is -utils image <command> <args>You can use the-harg to get help on the specific commandList of available commandscrop- Crops images given in one folder and outputs to the target folderfilter-
Checks the resolution of all the files in the specified directory and moves them to the target directory if they are of a larger resolutionsummarise- Checks the resolutions of images in all the sub-directories of the given directory and tells how many of images of a given resolution are there in a sub-directory
Package: harbis
[![pipeline status](https://gitlab.com/martincollado.com/i2p-python/badges/master/pipeline.svg)](https://gitlab.com/martincollado.com/i2p-python/commits/master)
[![coverage report](https://gitlab.com/martincollado.com/i2p-python/badges/master/coverage.svg)](https://gitlab.com/martincollado.com/i2p-python/commits/master)
[![Documentation Status](https://readthedocs.org/projects/i2p-python/badge/?version=latest)](http://i2p-python.readthedocs.io/es/latest/?badge=latest)HRL From Idea to Production TutorialEste reposotorio existe coo prueba de concepto y demostración del trabajo en proyectos de
desarrollo de software, basado en metodologias de trabajo tipo TDD (Test Driven Development).TareasTerminar de programar todos los metodos de las operaciones solicitadas.Crear y comprobar todos los testsLicenciaSe trata de software libre y sin restricciones lanzado al dominio público.Cualquier persona es libre de copiar, modificar, publicar, usar, compilar, vender o
distribuir este software, ya sea en forma de código fuente o como un
binario, para cualquier fin, comercial o no comercial, y por cualquier
medio.
Package: harbor-cli
harbor-cliTable of ContentsFeaturesInstallationMacOSLinuxWindowsDocumentationUsageQuick StartExamplesLicenseFeatures150+ commandsBeautiful command-line interface powered byTyperandRich.REPL mode (harbor repl)TUI mode (harbor tui)Tab completion for commands and options.Automatic retrying of failed requestsMultiple output formats:TableJSONLarge number of configuration optionsAuthentication methodsTable stylingOutput formats... and moreInstallationIt is highly recommended to installharbor-cliwithpipx. pipx installs the application in an isolated environment to avoid dependency conflicts, and makes it easy to upgrade or uninstall it afterwards.MacOSInstall as a pipx app:pipx install harbor-clior through Homebrew:brew tap add unioslo/harbor-cli
brew install harbor-cliKeyring functionality should work out of the box on MacOS >=11 with Python >=3.8.7.Linuxpipx install harbor-cliDepending on your Linux flavor and choice of keyring backend, you may need to install additional packages to enable keyring functionality. See thekeyring documentationfor more information.If you need to inject a package into the application's pipx environment, use thepipx injectcommand:pipx inject harbor-cli <package to inject>Windowspipx install harbor-cliKeyring functionality is untested on Windows, but should work out of the box. If you run into any issues, consult thekeyring documentationfor more information. Otherwise, please open an issue.DocumentationDocumentation can be foundhere.The documentation includes extensive setup and usage guides, as well as a list of all commands and their options.UsageInstalling the application putsharborin yourPATH, and can be invoked by typingharborin your terminal:$harbor--help0.2.1- 2024-02-02AddedHelp for MacOS users if Keychain is returning a-25244errSecInvalidOwnerEditerror.self keyringcommand to manage the keyring.self keyring statusto see information about the keyring used.self configcommand to manage the configuration file.Has the same commands ascli-config, which is now deprecated.ChangedPrompts are now printed to stderr instead of stdout for POSIX compliance.Newlines are now logged as spaces in the log file.FixedCoroutines not being properly cancelled when the application exits abnormally.Password not being stored in keyring after user is prompted for missing authentication info.Repeated keyring warnings if keyring is not available.Deprecatedcli-configcommand. Useself config0.2.0- 2023-12-21ChangedAutomatic datetime log file naming now uses the tag{dt}(was{time}).Log file is now namedharbor-cli.logby default (no longer includes datetime).Automatic datetime naming is now opt-in instead of being the default.Deprecated{time}tag for automatic datetime log file naming. Use{dt}instead.[cache]section in configuration file. Caching of API responses has been removed.RemovedCaching of API responses. This was a premature optimization that caused more problems than it solved. It will be re-introduced in a future release.FixedDouble printing of messages in terminal if logging wasn't properly configured.0.1.0- 2023-12-06AddedInitial release.
Package: harbormaster
Harbor MasterHarbor Master is a simple script to help manage Docker remote socket forwarding.Specifically, this script uses SSH forwarding to forward the Docker socket of a remote machine to your local environment. This is quite useful when running heavy Dockerized applications, which can be run on some remote/cloud server, while being treated as a local container.The benefit Harbor Master provides is that not only does it maintain the SSH tunnel for the remote socket, but italso port forwards exposed container ports. This is a severe
oversight in the current Docker implementation, and Harbor Master just makes your life that much easier :^).Pre-InstallationHarbor Master requires Python3Before you can use Harbor Master, you must have a trusted host that is already running docker. In addition youmustbe using passwordless SSH to connect to this host and have
already done the key transfer. Harbor Master does not, and (probably) will not, manage/accept passwords for SSH connections. These are insecure and add unnecessary complexity. In
addition, please read the SSH Configuration notes below to ensure your remote host has the proper configuration.InstallationHarbor Master is available on PiPY and can be installed via apip install harbormaster, orpip3 install harbormasterif you have multiple python versions.Alternatively, you may clone this repository, install the docker python package as specified in therequirements.txt, and then copyharbormaster.pyinto your path.Usageusage: harbormaster.py [-h] [-p P] [-l P] [-v] user host

Automatically port forward the docker socket and container

positional arguments:
  user        User to SSH as
  host        Host to SSH to

optional arguments:
  -h, --help  show this help message and exit
  -p P        Local port for forwarded socket, default 2377
  -l P        Legacy TCP port to use instead of socket for Docker API
  -v          Verbose outputFor example:harbormaster.py dubey 192.168.1.111This would connect to a machine on the IP192.168.1.111as userdubey, establishing a Docker socket tunnel on port 2377. Once this command is run, you can let the Harbor Master manage all the SSH tunnels necessary as containers go up and down.Important NotesSSH ConfigurationMost *Nix distros come with sane defaults for the number of SSH connections allowed to a host, usually 10 concurrent connections. If you plan to have more than 10 ports forwarded,
then you must change thesshdconfig located at/etc/ssh/sshd_configand change the parameters:MaxSessions 100
MaxStartups 100In the above example, the host will accept 100 concurrent connections, allowing you to port forward 100 ports.In addition it is highly recommended to disallow password SSH login, and only use SSH key files.Version NotesAs ofv0.1, Harbor Master assumes that you are usingzshand will modify your~/.zshrcfile by appending aexportstatement that lets any new shell sessions use the forwarded Docker socket. Harbor Master does cleanup on shutdown: all SSH tunnels that are open, and any changes to the.zshrcfile.
Package: harbor-py-light
Harborclient light.IntroductionHarboris the enterprise-class registry server for docker distribution.harbor-py-lightis lightweight Harbor client. The supported APIs are list below.Projects APIsGet projectsCreate projectCheck project existGet project id from nameSet project publicityGet project access logsGet project memberGet project and user memberRepositories APIsGet repositoriesDelete repositoryGet repository tagsGet repository manifestsRetag imageOthers APIsSearchGet statisticsGet top accessed repositoriesGet logsGet systeminfoGet systeminfo volumesGet configurationsInstallationpip install harbor-py-lightUsagefrom harborclient import harborclient

host = "127.0.0.1"
user = "admin"
password = "Harbor12345"

client = harborclient.HarborClient(host, user, password)

client.get_projects()
client.get_users()
client.get_statistics()
client.get_top_accessed_repositories()
client.search("library")For more usage, please refer to theexamples.
Package: harchetan
TOPSIS-Harchetan-101803246TOPSIS is an acronym that stands for "Technique of Order Preference Similarity to the Ideal Solution" and is a pretty straightforward MCDA method. As the name implies, the method is based on finding an ideal and an anti-ideal solution and comparing the distance of each one of the alternatives to those.Installation'''pip install TOPSIS-Harchetan-101803246==1.0.0'''LicenseÂ©  2020 Harchetan
This repository is licensed under the MIT license.
See LICENSE for details