Saravanan666/pypi-org huggingface dataset:
Package: hcipy
HCIPy: High Contrast Imaging for PythonHCIPy is an open-source object-oriented framework written in Python for performing end-to-end simulations of high-contrast imaging instruments for astronomy.The library defines wavefronts and optical elements for defining an optical system, and provides both Fraunhofer and Fresnel diffraction propgators. Polarization is supported using Jones calculus, with polarizers and waveplates included out of the box. It implements atmospheric turbulence using thin infinitely-long phase screens, and can model scintillation using Fresnel propagation between individual layers. Many wavefront sensors are implemented including a Shack-Hartmann and Pyramid wavefront sensor. Implemented coronagraphs include the vortex, Lyot and APP coronagraph.By including simulation of both adaptive optics and coronagraphy into a single framework, HCIPy allows simulations including feedback from post-coronagraphic focal-plane wavefront sensors to the AO system.The main website is hosted athttps://hcipy.org. For documentation, seehttps://docs.hcipy.org.TeamHCIPy was originally developed by a small team of astronomers at Leiden Observatory, but has since received external constributions from scientists and software developers around the world. For a current list, please visit ourwebsite.CitingIf you use HCIPy for your own research, we ask you to cite the HCIPy proceeding (Por et al. 2018). If there is no appropriate place in the body text to cite the proceeding, please include something along the lines of the following in your acknowledgements:This research made use of HCIPy, an open-source object-oriented framework written in Python for performing end-to-end simulations of high-contrast imaging instruments (Por et al. 2018).ContributionsIf you have something to add, or want something added to HCIPy, please let us know using a Github issue. We actively support external contributions to HCIPy, small and large. Please look at thecontributing guidefor more information.
Package: hcisle
hcisleis a tool that is able to carve out
relevant log records written by theSOLrinstances forming the index in HCI
whenever a user submits a search request to HCI.SupportIf you’ve found any bugs or if you have comments or suggestions,
please send an email tomailto:sw@snomis.euLicenseThe MIT License (MIT)Copyright (c) 2021-2022 Thorsten Simons (sw@snomis.eu)Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: hcl2-ast
hcl2-astAHCL2parser and evaluator based onpython-hcl2that produces an Abstract Syntax Tree.Note: This project is in an early stage. It does not currently cover all HCL2 syntax features
and does not have good test coverage.Usagefromhcl2_astimportparse_stringmodule=parse_string("""hello {name = "World"}""")print(module.pformat())Outputs:Module(body=[Block(name='hello',args=[],body=[Attribute(key='name',value=Literal(value='World')),]),])Also check out thehcl2-evalpackage to evaluate HCL2 configuration ASTs.Compatibilityhcl2-ast requires Python 3.6 or higher.Known issuesNo understanding of operator precedence in expressions (grouping with parentheses works as expected)
Package: hcl2-eval
hcl2-evalEvaluate HCL2 configurations like a programming language. Based onhcl2-ast.UsageThe evaluation of the HCL2 AST uses three components: Acontext, anevaluatoraninterpreter. The context is responsible for performing attribute reads and writes, looking
up functions as well as opening and closingstanzas. The evaluator's responsibility is to
evaluate expressions in the AST to Python values, while the interpreter executes statement nodes.fromhcl2_astimportparse_filefromhcl2_evalimportContext,Evaluator,Interpreter,StanzaclassHelloStanza(Stanza):...module=parse_file(open("hello.hcl"),close=True)context=Context.of(hello=HelloStanza)Interpreter(Evaluator()).execute(module,context)Check out the full example atexamples/hello.py.Compatibilityhcl2-eval requires Python 3.6 or higher.
Package: hcli-hc
HCLI hcHCLI hc is a python package wrapper that contains an HCLI sample application (hc); hc can can act both as a gcode streamer (e.g. for OpenBuilds Blackbox controller v1.1g) and CNC interface. In other words, this HCLI acts in the same capacity as the OpenBuilds CONTROL software or OpenBuilds Interface CNC Touch hardware to help control a GRBL v1.1g controlled CNC.HCLI hc wraps hc (an HCLI) and is intended to be used with an HCLI Client [1] as presented via an HCLI Connector [2].You can find out more about HCLI on hcli.io [3][1]https://github.com/cometaj2/huckle[2]https://github.com/cometaj2/hcli_core[3]http://hcli.ioInstallationHCLI hc requires a supported version of Python and pip.You’ll need an HCLI Connector to run hc. For example, you can use HCLI Core (https://github.com/cometaj2/hcli_core), a WSGI server such as Green Unicorn (https://gunicorn.org/), and an HCLI Client like Huckle (https://github.com/cometaj2/huckle).pip install hcli-hc
pip install hcli-core
pip install huckle
pip install gunicorn
gunicorn --workers=1 --threads=1 -b 127.0.0.1:8000 --chdir `hcli_core path` "hcli_core:connector(\"`hcli_hc path`\")"UsageOpen a different shell window.Setup the huckle env eval in your .bash_profile (or other bash configuration) to avoid having to execute eval everytime you want to invoke HCLIs by name (e.g. hc).Note that no CLI is actually installed by Huckle. Huckle reads the HCLI semantics exposed by the API via HCLI Connector and ends up behavinglikethe CLI it targets.huckle cli install http://127.0.0.1:8000
eval $(huckle env)
hc helpVersioningThis project makes use of semantic versioning (http://semver.org) and may make use of the “devx”,
“prealphax”, “alphax” “betax”, and “rcx” extensions where x is a number (e.g. 0.3.0-prealpha1)
on github.SupportsGcode streamingImmediate/realtime GRBL command execution (including during gcode streaming)Gcode job sequencesCNC jogging (continuous, incremental, imperial, and metric)Automated serial port scanning and connectivity (hc connect)To DoUpdate GRBL controller to include support for additional commands and/or echo of hexadecimal values.Update hc to include job removal, insertion and resequencing.Update hc to function in a multi-process environment (e.g. multiple workers in gunicorn).Implement GRBL emulation tests for hc.Bugs
Package: hcli-hg
HCLI hgHCLI hg is a python package wrapper that contains an HCLI sample application (hg); hg is an HCLI for interacting with GPT-3.5-Turbo via terminal input and output streams.HCLI hg wraps hg (an HCLI) and is intended to be used with an HCLI Client [1] as presented via an HCLI Connector [2].You can find out more about HCLI on hcli.io [3][1]https://github.com/cometaj2/huckle[2]https://github.com/cometaj2/hcli_core[3]http://hcli.ioInstallationHCLI hc requires a supported version of Python and pip.You’ll need an HCLI Connector to run hc. For example, you can use HCLI Core (https://github.com/cometaj2/hcli_core), a WSGI server such as Green Unicorn (https://gunicorn.org/), and an HCLI Client like Huckle (https://github.com/cometaj2/huckle).pip install hcli-hg
pip install hcli-core
pip install huckle
pip install gunicorn
gunicorn --workers=1 --threads=1 -b 127.0.0.1:8000 --chdir `hcli_core path` "hcli_core:connector(\"`hcli_hg path`\")"UsageOpen a different shell window.Setup the huckle env eval in your .bash_profile (or other bash configuration) to avoid having to execute eval everytime you want to invoke HCLIs by name (e.g. hc).Note that no CLI is actually installed by Huckle. Huckle reads the HCLI semantics exposed by the API via HCLI Connector and ends up behavinglikethe CLI it targets.huckle cli install http://127.0.0.1:8000
eval $(huckle env)
hg helpVersioningThis project makes use of semantic versioning (http://semver.org) and may make use of the “devx”,
“prealphax”, “alphax” “betax”, and “rcx” extensions where x is a number (e.g. 0.3.0-prealpha1)
on github.SupportsChatting by sending command line input streams (e.g. via pipes).Getting and setting a context to setup a new conversation or to save a conversation.Behavior setting to allow for persistent chatbot’s behvior (e.g. the Do Anything Now (DAN) prompt).To DoA memory layer for the GPT-3.5-Turbo HCLI (hg).Automatic context switching per NLP on received input stream.Context blending to mary different contexts.Automatic context compression to yield a more substantial memory footprint per context window.Additional commands to better save and restore conversations/contexts.A shell mode for the GPT-3.5-Turbo HCLI (hg) to enable shell CLI execution per sought goal.BugsN/A
Package: hcli-hleg
HCLI hcHCLI hleg is a pypi wrapper that contains an HCLI sample application (hleg); hleg is a legislature bill aggregation service that helps facilitate rapid action by providing a useful list of bill hearings on a timeline to facilitate testifying (e.g. online testimony).HCLI hleg wraps hleg (an HCLI) and is intended to be used with an HCLI Client [1] as presented via an HCLI Connector [2].You can find out more about HCLI on hcli.io [3][1]https://github.com/cometaj2/huckle[2]https://github.com/cometaj2/hcli_core[3]http://hcli.ioInstallationHCLI hleg requires a supported version of Python and pip.You’ll need an HCLI Connector to run hc. For example, you can use HCLI Core (https://github.com/cometaj2/hcli_core), a WSGI server such as Green Unicorn (https://gunicorn.org/), and an HCLI Client like Huckle (https://github.com/cometaj2/huckle).pip install hcli-hleg
pip install hcli-core
pip install huckle
pip install gunicorn
gunicorn --workers=1 --threads=1 -b 127.0.0.1:8000 --chdir `hcli_core path` "hcli_core:connector(\"`hcli_hleg path`\")"UsageOpen a different shell window.Setup the huckle env eval in your .bash_profile (or other bash configuration) to avoid having to execute eval everytime you want to invoke HCLIs by name (e.g. hleg).Note that no CLI is actually installed by Huckle. Huckle reads the HCLI semantics exposed by the API via HCLI Connector and ends up behavinglikethe CLI it targets.huckle cli install http://127.0.0.1:8000
eval $(huckle env)
hleg helpVersioningThis project makes use of semantic versioning (http://semver.org) and may make use of the “devx”,
“prealphax”, “alphax” “betax”, and “rcx” extensions where x is a number (e.g. 0.3.0-prealpha1)
on github.SupportsWashington State Legislature bills aggregationTo DoLegislature bills aggregation for other U.S. StatesBugs
Package: hcl-model
HCL ModelSimple time series forecasting based on multiple linear regression.DocumentationFull documentations hosted on GitHub pages:khrapovs.github.io/hcl-model.Installationpipinstallhcl-modelContributeCreate a virtual environment and activate itpython-mvenvvenvsourcevenv/bin/activateInstall the development packagespipinstall-e.[dev]and use pre-commit to make sure that your code is blackified automatically (used theblackpackage):pre-commitinstallRun tests:pipinstall-e.[test]pytestBuild documentation:pipinstall-e.[doc]mkdocsbuildor usemkdocsserveif you prefer a live, self-refreshing, documentation.
Package: hclogger
Hierarchical Colored Logger Module for PythonHCLogger is a logging module usingTermcolorand a hierarchical format to improve readability.Note: this module was designed to deal with concurrency. However, it is encouraged to store thread logs into different log files.Installationpip install hcloggerUsageAs simple as it could be:fromHCLoggerimportLoggerlogger=Logger(filename='fname.log',verbose=False)logger.debug('This is a debug message.')Output:The hierarchy is added to functions. In order to add hierarchy on of the following alternatives must be used:# The manual calllogger.manual_log_func(func,args*)# The decorated call@logger.log_funcdeffunc(args):...func()Output:Putting it all together:Future workAdd to PyPiCreate web view
Package: hc-log-tools
使用说明https://hcrobots.feishu.cn/docx/doxcnCw5mIUCbo1CGDgt8j026Jegenerate or update requirements.txtpip install pipreqs
pipreqs . --force示例脚本sort 电压电流图python3 main.py chart --prd_type=sort --time_range=5 --robot_id=G27A25S --log_root_dir=/Users/shixukai/Repositories/log-analysis/test/test_data/sort --timestamp="2022-08-24 15:56:00"pick 电压电流图python3 main.py chart --prd_type=pick --time_range=1 --robot_id=474E50 --log_root_dir=/Users/shixukai/Repositories/log-analysis/test/test_data/pick --timestamp="2022-09-03 14:23:59" --plot_showpython3 main.py chart --prd_type=pick --time_range=1 --robot_id=474E50 --log_root_dir=/Users/shixukai/Repositories/log-analysis/test/test_data/pick --timestamp="2022-09-03 14:23:59" --plot_show日志打包python3 main.py pack --time_range=1 --log_root_dir=/Users/shixukai/Repositories/log-analysis/test/test_data/pick --timestamp="2022-09-03 14:23:59"pyinstaller 打包命令pyinstaller -F -n hc-log-tool --path . main.pybuild for and upload pypipython3 -m pip install --upgrade build
python3 -m pip install --upgrade twine

python3 -m build
python3 -m twine upload dist/hc_log_tools-1.* --skip-existing
Package: hcloud
Hetzner Cloud PythonOfficial Hetzner Cloud python library.The library's documentation is available athcloud-python.readthedocs.io, the public API documentation is available atdocs.hetzner.cloud.UsageInstall thehcloudlibrary:pipinstallhcloudFor more installation details, please see theinstallation docs.Here is an example that creates a server and list them:fromhcloudimportClientfromhcloud.imagesimportImagefromhcloud.server_typesimportServerTypeclient=Client(token="{YOUR_API_TOKEN}")# Please paste your API token here# Create a server named my-serverresponse=client.servers.create(name="my-server",server_type=ServerType(name="cx11"),image=Image(name="ubuntu-22.04"),)server=response.serverprint(f"{server.id=}{server.name=}{server.status=}")print(f"root password:{response.root_password}")# List your serversservers=client.servers.get_all()forserverinservers:print(f"{server.id=}{server.name=}{server.status=}")For more details, please see theAPI reference.You can find some more examples under theexamples/directory.Supported Python versionsWe support python versions untilend-of-life.DevelopmentFirst, create a virtual environment and activate it:makevenvsourcevenv/bin/activateYou may setuppre-committo run before you commit changes, this removes the need to run it manually afterwards:pre-commitinstallYou can then run different tasks defined in theMakefile, below are the most important ones:Build the documentation and open it in your browser:makedocsLint the code:makelintRun tests using the currentpython3version:maketestYou may also run the tests for multiplepython3versions usingtox:tox.LicenseThe MIT License (MIT). Please seeLicense Filefor more information.
Package: hcloud-selfdestruct
💣 hcloud-selfdestructA cli tool to self destruct a hetzner cloud serverWhyAre you using a hetzner cloud server for heavy and long-running computing power? But you don't want to have additional costs when the calculation is done?With hcloud-selfdestruct, the server instance now self-destructs after the computation and generates no further costs.[!WARNING]
This project is in early development and may not work as expected.Installationpipinstallhcloud-selfdestructUsagelongrunningcommand && hcloud-selfdestruct --api-token abcdefg &
#-- or --
sleep 1h && hcloud-selfdestruct --api-token abcdefg --server-id 12345678 --apprise-id gotify://example.com/token &Note: Only the server is deleted. Attachments such as mounted volumes, floating IPs and more will not be removed.Help> hcloud-selfdestruct --help
usage: hcloud-selfdestruct [-h] --api-token API_TOKEN [--server-id SERVER_ID] [--apprise-id APPRISE_ID] [--shutdown] [--version]

cli tool to self destruct a hetzner cloud server

options:
  -h, --help            show this help message and exit

  --api-token API_TOKEN, --api API_TOKEN, --token API_TOKEN
                        hetzner cloud api token

  --server-id SERVER_ID, --server SERVER_ID, --id SERVER_ID
                        server id

  --apprise-id APPRISE_ID, --apprise APPRISE_ID, --notify APPRISE_ID
                        apprise notification string

  --shutdown            just shutdown the server and not destroy it

  --version, -v         show program's version number and exitFind the apprise syntax here:apprise wikiFind the server id here (enter without "#")Not yet testedcomplete self detection©worldworm2022-2024Licensed underMIT
Package: hcluster
This library provides Python functions for hierarchical clustering. Its features
includegenerating hierarchical clusters from distance matricescomputing distance matrices from observation vectorscomputing statistics on clusterscutting linkages to generate flat clustersand visualizing clusters with dendrograms.The interface is very similar to MATLAB’s Statistics Toolbox API to make code
easier to port from MATLAB to Python/Numpy. The core implementation of this
library is in C for efficiency.
Package: hcm2py
DocumentationLinksGithub Gisthttps://gist.github.com/Hawkking-cloud/f7d694541421b6d6cf88ce4e1d3d8844Block Part NumbersCan also used as the capitalized or uncapitalized version  (e.g.,createBlock(0,0,0,'nor'))0: NOR1: AND2: OR3: XOR4: Input5: FLIPFLOP6: LED7: Sound8: Conductor10: NAND11: XNOR12: Random13: Letter14: TileFunctionsfinish()Call after making all your blocks, finalizes and formats it into a string and pastes it.text_to_hexadecimal(text)Converts ASCII text to hexadecimal for the sign.xyztoindex(x, y, z)Takes an XYZ coordinate. If there's a block there, it gets the index of it. Mainly used in wires.createBlock(x, y, z, part, specialparams)Part: Block part ID.Special Params (optional): Used in special blocks like LED, sound blocks, etc. RGB values are defined by arrays, e.g., r:255, g:0, b:0 → [255, 0, 0].Letter blocks can be entered as single letter characters (e.g.,createBlock(0,0,0,13,'A'))fetch_from_dpaste(string)Gets the raw data from a dpaste link and returns itcreateWire(start_x, start_y, start_z, end_x, end_y, end_z)Adds wires using two XYZ inputs.createWireIndex(index1, index2)Adds wires using two index inputs.number_to_binary(num, numofbits)Turns a number into binary.import_build(input_string, offset_x, offset_y, offset_z)Puts a registry string into the build. Offsets are not mandatory.createBlockCustom(string)Allows you to input a string like7,0,0,0,0,1234.00directly into the parts.cube(x1, y1, z1, x2, y2, z2, part, specialparams)Creates an array of blocks based on two 3D points. Special params are not mandatory.createCustomBuilding(Type, x, y, z, rotX, rotY, rotZ, value)Creates a custom building. Valid types: Sign, Door, Graph, MassiveMemory, MassMemory, KeyInput, QwertyKeyInput.ascii_to_number(char)Converts a single character to ascii number, for letter blockrender()opens a pygame project with webgl and renders the previously declared blocks with controls WASD and < >getString()Returns the formatted string of blocks. (Won't work unless used afterfinish())getBlocks()Returns the unformatted list of blocks.getConnections()Returns the unformatted index list of connections.getBuilds()Returns the unformatted list of builds.getBuildvalues()Returns the unformatted list of builds values.getIndex()Returns the current block index, (e.g.,print(getIndex()) createBlock(0,0,0,5) print(getIndex()))
Package: hcmioptim
HCMI OptimThis package contains a flexible implementation of simulated annealing and genetic algorithms. It's possible that particle swarm optimization may also be added in the future.Simulated AnnealingBackgroundSimulated annealing is a random algorithm that attempts tominimizean objective function. It does this by tweaking the current best solution slightly and determining if it is better or not. If it is better, the tweaked version becomes the the current best solution. If it isn't, it still may become the current best solution. This has to do with how "hot" the algorithm is. The hotter it is, the more likely poor solutions are to get accepted. The hope is that accepting less optimal solutions occassionally will get solution out of local minima.UsageAs the end user, you must provide:The function to minimize. This will typically transform the solution into some more usasble form.A neighbor function that returns a slightly perturbed version solution passed to it.A function that returns a temperature when called. It's best practice to have each temperature be cooler than the last. There are built in temperature schedules avaible to use.A starting solution. Simulated annealing could in theory work with any sort of solution space, but to simplify the framework, we only support 1 dimensional numpy arrays.All of of these are passed into the constructor ofho.sa.SAOptimizer. Typically, you will call the step method of anSAOptimizerin a loop and use the last returned solution as your answer. This is up to you though as the design is flexible enough to allow for a range of uses.SAOptimizeralso suports replacing the current best solution with a new one. This could be useful if you want to run multiple instances at once and have them interact.
Package: hc-nlp
heritage-connector-nlpText processing for theHeritage Connector: a set of NLP utilities for the Heritage sector.For more information seehttps://doi.org/10.1002/ail2.23.--- IN DEVELOPMENT ---Includes:low-data extensions for information extraction (NER, NEL, relation classification)labelling (Label Studio)test suite for modelsUsageLabel StudioSetting up (first time):Runlabel-studio start labelling --init, which will start up Label Studio and take you to a configuration wizard.SelectNamed Entity Recognitionfrom the top menu, and fill in the entity types you want to annotateRunning:Runlabel-studio start labellingfrom the root directory.Useful parameters:--sampling=uniform: have Label Studio show documents in a random order--label-config label_studio_config_sample.xml: load config from a file
Package: hcoop-meetbot
HCoop Meetbot Pluginhcoop-meetbotis a plugin forLimnoria, a bot framework for IRC.  It is designed to help run meetings on IRC.  It was originally written for quarterly board meetings atHCoop, when Ken was on the board there.The code is based in part on theMeetBotplugin for Supybot written by Richard Darst. Supybot is the predecessor to Limnoria.  Richard's MeetBot was "inspired by the original MeetBot, by Holger Levsen, which was itself a deri vative of Mootbot by the Ubuntu Scribes team".  So, this code has a relatively long history.  For this version, much of the plugin was rewritten using Python 3, but it generally follows the pattern set by Richard's original code.See theuser documentationfor more information about how to use the plugin, including installation instructions.