Saravanan666/pypi-org huggingface dataset:
Package: hemlock-crt
Hemlock-CRT is ahemlockextension for adding a cognitive reflection test to hemlock projects.InstallationWith hemlock-CLI (recommended):$ hlk install hemlock-crtWith pip:$ pip install hemlock-crtQuickstartIn this example, we add a CRT with the bat and ball, lily pads, widgets,
and students problem. Then we display the results to the participant.Insurvey.py:fromflask_loginimportcurrent_userfromhemlockimportBranch,Page,Label,routefromhemlock_crtimportcrt@route('/survey')defstart():returnBranch(*crt('bat_ball','lily_pads','widgets','students',page=True),Page(Label(compile=display_score),terminal=True))defdisplay_score(label):label.label='''<p>You gave{}correct and{}intuitive answers out of{}CRT questions.</p>'''.format(current_user.g['CRT_Correct'],current_user.g['CRT_Intuitive'],current_user.g['CRT_Total'])app.pyis standard from the hemlock template.Run with:hlkserveorpythonapp.pyCitations@software{bowen2020hemlock-crt,
  author = {Dillon Bowen},
  title = {Hemlock-CRT},
  url = {https://dsbowen.github.io/hemlock-crt/},
  date = {2020-10-05},
}

@article{frederick2005cognitive,
  title={Cognitive reflection and decision making},
  author={Frederick, Shane},
  journal={Journal of Economic perspectives},
  volume={19},
  number={4},
  pages={25--42},
  year={2005}
}LicenseUsers must cite this package in any publications which use it.It is licensed with the MITLicense.
Package: hemlock-demographics
Hemlock demographicsHemlock-demographics is ahemlockextension for collecting demographic information.InstallationWith hemlock-CLI (recommended):$ hlk install hemlock-demographicsWith pip:$ pip install hemlock-demographicsQuickstartfromhemlockimportBranch,Page,Label,routefromhemlock_demographicsimportcomprehensive_demographics@route('/survey')defstart():returnBranch(comprehensive_demographics(page=True),Page(Label('<p>The end.</p>'),terminal=True))CitationHemlock-demographics is based largely on the demographics section of theWorld Values Survey.@software{bowen2020hemlock-demographics,
  author = {Dillon Bowen},
  title = {Hemlock-Demographics},
  url = {https://dsbowen.github.io/hemlock-demographics/},
  date = {2020-10-05},
}

@dataset{inglehart2014wvs,
    author = {Inglehart, R., and C. Haerpfer, and A. Moreno, and C. Welzel, and K. Kizilova, and J. Diez-Medrano, and M. Lagos, and P. Norris, and E. Ponarin and B. Puranen and et al.},
    title={World Values Survey: Round Six},
    url = {http://www.worldvaluessurvey.org/},
    date = {2014.}
}LicenseUsers must cite this package in any publications which use it.It is licensed with the MITLicense.
Package: hemlock-rest
Hemlock-REST[![PyPI version](https://badge.fury.io/py/hemlock-rest.png)](http://badge.fury.io/py/hemlock-rest) [![Build Status](https://travis-ci.org/Lab41/Hemlock-REST.png?branch=master)](https://travis-ci.org/Lab41/Hemlock-REST) [![downloads](https://pypip.in/d/hemlock-rest/badge.png)](http://crate.io/packages/hemlock-rest/) [![Coverage Status](https://coveralls.io/repos/Lab41/Hemlock-REST/badge.png?branch=master)](https://coveralls.io/r/Lab41/Hemlock-REST?branch=master)Hemlock REST Server.  Same functionality as the [Hemlock CLI](https://github.com/Lab41/Hemlock/blob/master/docs/CLI.md), but through a
[RESTful](https://github.com/Lab41/Hemlock-REST/blob/master/docs/REST.md) interface.![Hemlock L](https://raw.github.com/Lab41/Hemlock-REST/master/docs/images/logo.png“Hemlock”)Install instructions`bash sudo pip installhemlock-rest`Required dependencies[Hemlock](http://lab41.github.io/Hemlock/)Python modules:
- pexpect
- [web](http://webpy.org/)Running`bashhemlock-rest`Alternatively,hemlock_rest.pycan be modified to support more robust
webservers.Related repositories[Hemlock](http://lab41.github.io/Hemlock/)[Hemlock-Frontend](http://lab41.github.io/Hemlock-Frontend/)Documentation[Docs](http://lab41.github.io/Hemlock-REST/docs/_build/html/index.html)TestsThe tests for this project use [py.test](http://pytest.org/latest/)ContributingWhat to contribute?  Awesome!  Issue a pull request or see more details [here](https://github.com/Lab41/Hemlock-REST/blob/master/CONTRIBUTING.md).
Package: hemonaluto
HemonalutoA text adventure gameHemonaluto is a text based adventure game where you wake up in a curious magical world with a dark and powerful secret.The story isn't developed yet, so far there are only three rooms to discover.How it worksDevelopersWindows:Open terminal as administrator.Runwinget install GnuWin32.MakeRunsetx /M path "%path%;C:\Program Files (x86)\GnuWin32\bin"Windows and Linux:Navigate to the folder you want to clone the project to.Rungit clone https://github.com/hemonaluto/Hemonaluto.gitHappy coding!PlayersOpen terminal as administrator.Runpip install hemonalutoRunhemonalutoYou are welcomed and prompted to type in a command. This command should be written from the perspective of the player, similar to how you would play in the game Zork.ContributorsHow you can helpIf you want to improve this game, fix bugs, write tests or add documentation, please feel free to do so, any kind of contribution is welcome. Simply open an issue and submit a pull request so we can discuss and close it.To create your custom world or change the existing one you can editscripts/world_generation.pyand runmake generate_world.Commandsquit/q/exitThis command quits the game entirely.examine/look/lExamine any kind of in-game element. Type the thing you want to examine after the command, e.g. examine door, or don't and get a general description of your environment.north/northeast/n/up/u/...Move in desired direction.open/unlockUnlock a door or chest.get/take/pickTake an item.inventory/iList all the items in your inventory.save/loadSave or load your game state.restartRestart the game.scoreView your score.diagnostic/healthView your current health.throw atThrow any item at whatever target you choose.closeClose a door or chest.readRead an items engraved or written on text.dropDrop an item.putPut an item in or on another item.press/turnUse a button or valve.move/push/pullMove an object to reveal what is underneath it.attack with/kill withAttack an entity with your specified weapon.eat/drinkEat or drink something to replenish health.tie/attachTie or attach a rope to something.destroy/breakBreak a breakable item.listenListen to your surroundings.smellSmell your environment.hide in/underHide in or under somethingleave/appearLeave your hiding spot.
Package: hemuprogrammes
Multiple Beginner level Python ProjectsUsageMake sure you have Python installed in your system.Run Following command in the CMD.pip install -U hemuprogrammesExample# test.py
from hemuprogrammes import *

# First store the module in any variable or object
obj=Hemu()

## for legendary login
obj.magic_form()

## for simple gui calculator
obj.simple_cal_gui()

## for virtual atm
obj.virtualatm()

## for missing letters game
obj.missinglettersgame()

## for currency converter
obj.currency()

## for calender without calender module
obj.calender()

## for rock paper scissor game
obj.rockpapergame()

## for unrejectable proposal app
obj.propose()

## for real time music_player
obj.music_player()

## for tictactoe game
obj.tictactoe()Run the following Script.python test.pyNoteThis package contain beginner level projects which makes code easy.
Package: hen
You should use it during development.UsageCreate aHenfile(it is YAML):name:Shopium[dev]proc:web:"python-u./manage.pyrunserver-b0.0.0.0"cdn:"python-u./dev_cdn_server.py"solr:"./run_solr"workers:"python-u./manage.pyrunworkers"smtp_worker:"sh-c\"PYTHONPATH=libs:corepythonworkers/smtp_gateway.pyshopium.ini\""env:PYTHONUNBUFFERED:"1"Runhen:henRunning with some processes disabled:hen--nocdn--nosolrInstallationpipinstallhenCompatibilityTested with Python 2.7 and Python 3.2/3.3How to contributeIt is easy. Fork repo on GitHub, fix stuff and send me nice looking pull-request.
Package: hendrics
HENDRICS - High ENergy Data Reduction Interface from the Command ShellDescriptionThis set of command-line scripts based onStingrayis designed
to do correctly and fairly easily aquick-look (spectral-)timing
analysisof X-ray data, treating properly the gaps in the data due,
e.g., to occultation from the Earth or passages through the SAA.
Originally, its development as MaLTPyNT - Matteo’s Libraries and Tools
in Python for NuSTAR Timing - was driven by the need of performing
aperiodic timing analysis on NuSTAR data, whose long dead time made it
difficult to treat power density spectra with the usual tools. By
exploiting the presence of two independent detectors, one could use thecospectrumas a proxy for the power density spectrum (for an
explanation of why this is important, look at Bachetti et al.,ApJ,
800, 109 -arXiv:1409.3248).Today, this set of command line scripts is much more complete and it is
capable of working with the data of many more satellites. Among the
features already implemented are power density and cross spectra, time
lags, pulsar searches with the Epoch folding and the Z_n^2 statistics,
color-color and color-intensity diagrams. More is in preparation:
rms-energy, lag-energy, covariance-energy spectra, Lomb-Scargle
periodograms and in general all that is available inStingray. The
analysis done in HENDRICS will be compatible with the graphical user
interfaceDAVE, so that
users will have the choice to analyze single datasets with an easy
interactive interface, and continue the analysis in batch mode with
HENDRICS. The periodograms produced by HENDRICS (like a power density
spectrum or a cospectrum), can be saved in a format compatible withXspecorIsis, for
those who are familiar with those fitting packages. Despite its original
main focus on NuSTAR, the software can be used to make standard
aperiodic timing analysis on X-ray data from, in principle, any other
satellite (for sure XMM-Newton and RXTE).Thedocumentationcan be foundhere.Atutorialis also availablehere.Installation instructionsTo install stable or beta releases:$ pip install hendricsFor development versions:$ git clone git@github.com/StingraySoftware/HENDRICS
$ cd HENDRICS
$ python setup.py installLicense and notes for the usersThis software is released with a 3-clause BSD license. You can find
license information in theLICENSE.rstfile.If you use this software in a publication, please refer to its
Astrophysics Source Code Library identifier:Bachetti, M. 2018, HENDRICS: High ENergy Data Reduction Interface from the Command Shell, recordascl:1805.019.and please also citestingray <https://stingray.science/stingray/citing.html>In particular,if you use the cospectrum, please also refer to:Bachetti et al. 2015,ApJ,800, 109.If you have found a bug please report it by creating a
new issue on theHENDRICS GitHub issue tracker.Development guidelinesPlease follow the development workflow forthe Astropy project.
In the hendrics/tests
directory, there is a test suite calledtest_fullrun.py. These tests
use the actual command line scripts, and should always pass (albeit with
some adaptations). The other test suites, e.g.test_unit.py, tests
the API.
Package: hendrix
Mr. D. Reinhardt, with a pair of guitars and tatters of sheet music in the back seat, speeds his convertible westward over the mountains. The campfire carries on without the blessing of his gypsy jazz, but his morning return is as a fearsome, left-handed character – familiar but Twisted(.py)v5.0.0A Python web server that makes async and offbeat network traffic easy, fun, and fast.Overviewhendrixis a tool for handling bytes-on-the-wire to and from your python web application.  In this sense, it is similar tomod_wsgi,uWSGI, andgunicorn.However, hendrix differs from these other technologies in that it is natively asynchronous and designed with background tasks in mind.  In this sense, it may serve some projects as a replacement forgeventorcelery.hendriximplements the WSGI protocol, so it can serve applications made with django, pyramid, flask and other WSGI frameworks.  However, hendrix views your web as just another network resource - in fact, this is central to thehendrix philosophy.Twisted is one of the most battle-tested and actively developed Python projects.  Until hendrix, however, Twisted has not been part of a mainstream python web server.  And that's a shame.FeaturesMulti-processing- The WSGI app can be served from multiple
processes on a single machine.Multi-threading from within your Django / Flask / Pyramid app: Various APIs allow you to defer logic until later, place it in a different thread or process, and report back asynchronously.  For example, seecrosstown_traffic.Built-in Websockets FrameworkOptional Resource CachingBuilt-in SSL Support: Terminate SSL inside your app if you like.  Public keys can be part of your logic!Daemonizeby passing the-dor--daemonizeflags tohxQuickstartUsing pippip install hendrixRunning the Development Servercd to the directory where yourmanage.pyfile is located and...hx start --devThis is roughly the equivalent of running the django devserver.For more, see the fullhendrix documentation.
Package: heniautos
HeniautosNaive ancient Attic calendar generator and calendar equation explorer.Installationpip install heniautosUsageCommand LineGenerate a calendar for 416 BCE:heniautos 416In a ProgramGenerate a calendar for 416 BCEimport heniautos as ha
ha.athenian_festival_calendar(ha.bce_as_negative(416))The BasicsHeniautos (ἐνιαυτός, Greek for ”the span of a year”) generates
examples of possible Greek calendars, ancient or modern, and has
features for exploring the calendar and working with calendar
equations. It is hopefully useful for:Learning about and teaching the ancient Athenian and other Greek calendarsFollowing along with often complex discussions of dating events in ancient Greek historyJust having fun with questions like ”When would the City Dionysia be this year, if it was still being held.”Heniautos also comes with a command-line application,heniautos, for
generating calendars without any programming required.Read the full documentation onRead the
Docs
Package: henmedlib
henmedlibThis package projected started in the advent of my PhD. It's initial purpose was to serve as a python package
encapsulating all functions that I may want to recycle at some point during my PhD. The package is structured
with the subfoldersi_o(input-output, which contains different reading and writing functions) andfunctions(
containing all the other functions). Within the files the functions are sorted alphabetically.
The source code is available onhenmedlib.
Comments and improvements are highly appreciated.
Package: henon2midi
henon2midiThis application generates midi output and midi files from Henon map data.InstallationInstall from PyPI:pip3installhenon2midiUsageFor help:henon2midi--helpRun with default settings:henon2midiThis will generate a midi file in the current working directory.Sending midi output to a specific device:henon2midi --midi-out-device device_nameWheredevice_nameis the name of the midi device you want to send the output to. Use adevice nameof 'default' to use the first available device e.g.henon2midi--midi-out-device'device_name'Enabling midi loopback driver on macOS (e.g. for use with DAWS):Open 'Audio MIDI Setup.app'Click 'Window' -> 'Show MIDI Studio'Double click 'IAC Driver' deviceCheck 'Device is online' checkboxClick 'Apply'Make sure 'IAC Driver' enabled as a midi input device in your DAWInstallation from sourcePrerequisites:Python 3pipMake sure pip is up to date:python3-mpipinstall--upgradepipInstall package from source code:pipinstall.Now you can run the application from the command line e.g.henon2midi--versionDevelopmentPre-requisites:Python 3pipvirtualenvUse the Makefile for local development:Activate a virtual environment:makevirtualenvActivate the virtual environment (not strictly necessary, if using the Makefile only):sourcevenv/bin/activateInstall dependencies:makeinstallThen you can:Run the application:makerunExtra arguments can be passed by providing EXTRA_ARGS variable e.g.makerunEXTRA_ARGS="--help"Run tests:maketestRun linter:makelintmake fmtcan be used to automatically fix some linting errors.Other useful make targets are provided too, see the Makefile for details. Or runmake/make help
Package: henrietta
# henrietta
Tools for the Fall 2018 semester of ASTR3400: Research Methods (The Henrietta Project). The documentation for using these tools, along with some examples and exercises, are located over at [zkbt.github.io/henrietta/docs](http://zkbt.github.io/henrietta/docs).## Installation
If you’re working on thescorpiuscomputers at SBO, you should be able to access these tools simply by runningsource henriettafrom a UNIX prompt.If you’re working on your own computer, you should be able to install this by running` pip install henrietta `from a UNIX prompt. As we add more code to this package, you may need to upgrade the version that is installed on your computer. To upgrade, run` pip install henrietta--upgrade`instead. That will make sure it always grabs the latest version of the code.If you want to be able to modify the code yourself, please also feel free to fork/clone this repository onto your own computer and install directly from that editable package. For example, this might look like:` git clonehttps://github.com/zkbt/henrietta.gitcd henrietta/ pip install-e. `This will link the installed version of thehenriettapackage to your local repository. Changes you make to the code in the repository should be reflected in the version Python sees when it tries toimport henrietta.## ContributorsThis package was written by [Zach Berta-Thompson](https://github.com/zkbt), [Will Waalkes](https://github.com/waalkesw), and [Jessica Roberts](https://github.com/jessicaeroberts).
Package: henryobj
PIP Package henryobj Overview - 24th of JanuaryThis codebase is a Python package designed to facilitate web scraping, interactions with OpenAI's API, and provide a suite of utility functions. It is structured to be modular, allowing each component to function independently or in conjunction with others, promoting maintainability and scalability.Module Descriptionsweb.pyPurpose:Handles web content retrieval and processing.Key Functions:create_session(): Initializes arequests.Sessionwith retry strategies for consistent web scraping.clean_soup(): Processes a BeautifulSoup object to extract clean text, removing superfluous HTML elements.crawl_website(): Performs recursive website crawling from a specified URL, accumulating data in memory.fetch_content_url(): Retrieves webpage content, managing HTTP status codes and implementing retry mechanisms.Interactions:Utilizesrequestsfor HTTP interactions andBeautifulSoupfor HTML parsing. Integrates withbase.pyfor error logging andoai.pyfor performance metrics.oai.pyPurpose:Facilitates communication with OpenAI's services, including API interactions and response handling from GPT models.Key Functions:ask_question_gpt(): Queries an OpenAI GPT model and returns its response.request_chatgpt(): Initiates a request to ChatGPT with a given conversational context.embed_text(): Produces text embeddings using OpenAI's embedding model.Interactions:Leverages theopenailibrary for API requests and relies onbase.pyfor token management and error reporting.base.pyPurpose:Offers foundational utility functions for cross-module operations.Key Functions:log_issue(): Captures and logs detailed error information, including the affected function and module.remove_excess(): Refines text by eliminating redundant spaces and line breaks.check_co(): Verifies the presence of an internet connection.Interactions:Provides essential services like error handling and text cleanup used by various parts of the codebase.gpt.pyPurpose:Provides interfaces to GPT-4 for generating READMEs and other textual content.Key Functions:gpt_readme_generator(): Constructs README content by examining a specified repository path.gpt_generate_readme(): Generates and saves a README.md file within a target repository.Interactions:Collaborates withoai.pyfor GPT model interactions and utilizes internally defined roles to direct content creation.__init__.pyPurpose:Serves as the package initializer, importing all necessary modules for user accessibility.Interactions:Critical for package integrity, enabling module imports upon package usage without housing direct functionality.Additional NotesThis ReadME was generated automatically. See gpt.py to use it for your repos.
Package: hent
HentNeofetch alternative built in pythonUsage:$ hent
         ..             Distro: Arch Linux
         cc             Kernel: 5.10.16-zen1-1-zen
        :ooc            Uptime: 3 hours, 45 minutes
       ::lool         Packages: 1864 (pacman), 38 (flatpak)
     .looooool.          Shell: bash
    .loo;..;ooo.      Terminal: kitty
   'oooo    looc.          CPU: Intel i7-4790K @ 4.00GHz
  ;l;'..     .';l;         GPU: GeForce RTX 2060 Rev. A
 ..              .'     Memory: 6325MB / 24562MB$ hent --help
usage: hent [-h] [--distro distro] [--color true/false]

Neofetch inspired fetch tool built in python.

optional arguments:
  -h, --help          show this help message and exit
  --distro distro     which ascii art to use
  --color true/false  enable/disable colored outputInstallation:With pip:pip3 install hentWith git:git clone https://github.com/imsofi/hent.git
cd hent
pip3 install --upgrade build
python3 -m build
pip3 install dist/*.whlDevelopmentpython3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt