Saravanan666/pypi-org huggingface dataset:
Package: hampel
HampelWarning:Starting from version 1.0.1, there arebreaking changesin this library. Please review theUsagesection for details and update your code accordingly.The Hampel filter is generally used to detect anomalies in data with a timeseries structure.
It basically consists of a sliding window of a parameterizable size.
For each window, each observation will be compared with the Median Absolute Deviation (MAD).
The observation will be considered an outlier in the case in which it exceeds the MAD by n times (the parameter n is also parameterizable).For more details, see theRelated Linkssection.Table of ContentsInstallationUsageParametersTestingLicenseContributingRelated LinksInstallationTo use the Hampel filter in your Python project, you can install it via pip:pip install hampelUsageHere's a simple example of how to use the Hampel filter:importpandasaspdfromhampelimporthampel# Sample data as a pandas.Seriesdata=pd.Series([1.0,2.0,3.0,100.0,4.0,5.0,6.0])# Apply the Hampel filterresult=hampel(data,window_size=3,n_sigma=3.0)print(result.filtered_data)When you apply the Hampel filter, it returns aResultobject with the following attributes:filtered_data: The data with outliers replaced.outlier_indices: Indices of the detected outliers.medians: Median values within the sliding window.median_absolute_deviations: Median Absolute Deviation (MAD) values within the sliding window.thresholds: Threshold values for outlier detection.You can access these attributes as follows:result=hampel(data,window_size=3,n_sigma=3.0)filtered_data=result.filtered_dataoutlier_indices=result.outlier_indicesmedians=result.mediansmad_values=result.median_absolute_deviationsthresholds=result.thresholdsIf you want to directly apply hampel filter to multiple columns in apandas.Dataframe,
follow this code:importpandasaspdfromhampelimporthampeldf=pd.DataFrame({'A':[1.0,2.0,3.0,100.0,4.0,5.0,6.0],'B':[7.0,8.0,9.0,10.0,11.0,12.0,13.0]})# We are just getting the filtered data in this casefiltered_df=df.apply(lambdax:hampel(x).filtered_data,axis=0)print(df)Parametersdata: The input 1-dimensional data to be filtered (pandas.Series or numpy.ndarray).window_size(optional): The size of the moving window for outlier detection (default is 5).n_sigma(optional): The number of standard deviations for outlier detection (default is 3.0).TestingIf you want to run the tests, simple run:make testLicenseSee theLICENSEfile for details.ContributingContributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements.Related Linkshttps://medium.com/wwblog/clean-up-your-time-series-data-with-a-hampel-filter-58b0bb3ebb04https://en.wikipedia.org/wiki/Median_absolute_deviation
Package: hamptt
Ham PTTBluetooth PTT switch for ham radio transmitters like Baofeng UV-5R.Board helps to control transmitter from PC.ProblematicTesting of UART interface showed unstable connection. During transmit via UART an usb-ttl
chip periodically crashes and stops working. Cause is some radio strong interference
on USB cable. So Bluetooth serial protocol stack chosen instead.SchematicHost -> (Bluetooth) -> Esp-32 Arduino -> Relay -> Transmitter PTT buttonHardwareHost PC with Bluetooth (tested Ubuntu 20.04)Esp32 DevKit v1 (or similar esp32)Relay shieldBaofeng UV-5RExamplesFind BT deviceshcitool scanPythonfromhampttimportopen_pttwithopen_ptt(bt_addr="A0:B1:C2:D3:E4:F5")asptt:ptt.begin()# I.e. play message to transmitter or something elseptt.end()InstallHost PC machinePython 3.8Bluetooth's libs (required for pybluez)sudoapt-getinstallbluezlibbluetooth-devPippython3-mpipinstall"hamptt[bt]"Esp32Upload sketch to your esp-32 via PlatformIONOTE! Check your board config inplatformio.ini(see:https://platformio.org/)pio run -t uploadConnect pins Esp-32 to relayVVC -> Relay +GND -> Relay -GPIO D25 -> Relay INConnect relay and audio, for Baofeng UV-5R it looks like:NOTE: You can rebuild your hands-free cable or buy another oneDevelopmentBuild and installpip3uninstallhamptt
rm-rfdist&&poetrybuild&&pip3install./dist/*.whlPublishPreparepoetryconfigrepositories.testpypihttps://test.pypi.org/legacy/
poetryconfigpypi-token.testpypi<TOKEN>

poetryconfigrepositories.pypihttps://upload.pypi.org/legacy/
poetryconfigpypi-token.pypi<TOKEN>Publishpoetrypublish--build-rtestpypi

poetrypublish--build-rpypi
Package: hamqth
Python HamQTHAHamQTHclient library for Python.HamQTH provides a simple interface for application developers.This library supports theXML callbook searchwhich provides search capability for:callsign datacallsign biorecent activity of any callsignUsage requiresregistrationwith the HamQTH service.Related ProjectsThese projects also target Python, butothers existas well as probably more of which I am not aware.sconklin/hamqthlibkrisp/fauxqrzReferencesHamQTH Developer Documentation:HamQTH | For application developersGitLab Repository:GitLab RepositoryGitHub Repository:GitHub Repository
Package: ha-mqtt-discoverable-cli
ha-mqtt-discoverable-cliTable of ContentsInstallingNative installDockerScripts Providedhmdhmd create binary sensorhmd create deviceContributingContributorsThis repository contains CLI scripts for CRUD operations on MQTT entities that will be autodetected by Home Assistant.It is a group of wrappers for theha-mqtt-discoverablepython module.InstallingNative installpip install ha-mqtt-discoverable-cliwill install the cli tools. If you prefer to keep your system python clear of extra modules, use theunixorn/ha-mqtt-discoverable-clidocker image.DockerIf you only need to use the command line tools, the simplest way is to use them withdockerornerdctl. It won't interfere with your system python and potentially cause you issues there.You can use theunixorn/ha-mqtt-discoverable-cliimage on dockerhub directly, but if you add$reporoot/binto your$PATH, thehmdscript there will automatically run the command line tools inside a docker container withdockerornerdctl, depending on what it finds in your$PATH.Scripts ProvidedTheha_mqtt_discoverable-climodule installs the following helper scripts you can use in your own shell scripts.hmdUses thegitlike-commandsmodule to find and executehmdsubcommands. Allows you to runhmd create binary sensorandhmdwill find and runhmd-create-binary-sensorand pass it all the command line options.hmd create binary sensorCreate/Update a binary sensor and set its state.Usage:hmd create binary sensor --device-name mfsmaster --device-id 8675309 --mqtt-user HASS_MQTT_USER --mqtt-password HASS_MQTT_PASSWORD --client-name inquisition --mqtt-server mqtt.unixorn.net --metric-name tamper --device-class motion --state offhmd create deviceCreate/Update a device and set the state of multiple metrics on it.Usage:hmd create device --device-name coyote --device-id 8675309 --mqtt-user HASS_MQTT_USER --mqtt-password HASS_MQTT_PASSWORD --mqtt-server mqtt.example.com --model 'Rocket Skates' --manufacturer 'Acme Products' --metric-data '{"name":"Left Rocket Skate","value":93}' --metric-data '{"name":"Right Rocket Skate","value":155}' --unique-id 'hmd-26536'ContributingPlease runblackon your code before submitting. There aregithooks already configured to runblackand other checks before every commit, please runpre-commit installto enable them.ContributorsMade withcontributors-img.
Package: hamqtt-fs-publisher
HomeAssistant MQTT filesystem publisherPublish file content as an MQTT topic compatible with HomeAssistant.It can be useful, e.g., to publish system metrics from/sys.Quick startInstall the Python package:pip install hamqtt-fs-publisher. If you want to
have support for YAML configuration format install withruamelorpyyamlextras depending on the YAML library of choice (recommendedruamel, e.g.,pip install hamqtt-fs-publisher[ruamel]).Create a configuration (example inexamples/config.example.yaml). It can be
in either YAML or JSON format. There is a pre-generated JSON schema inhamqtt_fs_publisher/configuration.schema.json, which can be used, e.g.,
with VS Code (the current repository is pre-configured forconfig.jsonandconfig.yaml). Remember to set proper authorization details for the MQTT
broker. If you are using the standard Mosquitto broker add-on in Home
Assistant, please refer to theofficial
documentation.Runhamqtt_fs_publisher --config <config_file_name>.Note:The configuration file path could be either a relative/absolute
path, or a file under/etc/hamqtt_fs_publisheror~/.config/hamqtt_fs_publisher.Systemd serviceIf you want to run this script as a systemd service you could copy the example
service file fromexamples/hamqtt_fs_publisher@.serviceto either/etc/systemd/system/or~/.config/systemd/user/(if you want to run it in
user mode). Then copy the configuration file to one of the standard
configuration directories (i.e.,/etc/hamqtt_fs_publisheror~/.config/hamqtt_fs_publisher.)To enable and start the unit in system mode run:$systemddaemon-reload
$systemdenable--nowhamqtt_fs_publisher@<config_file_name>Supported featuresAuto-discovery in HomeAssistant.Configuration with a simple YAML/JSON file.Possibility to create read-only sensor device entities with values taken
from a file and published to the MQTT broker periodically with set intervals.TODOAdd a logger to connect/disconnect events.Add an option to read a value on a button push in GUI (not only periodically).Add a switch endpoint (i.e., a file writer).Add a generic writer endpoint.
Package: hamradio
Author:Ralf Schlatterbeck <rsc@runtux.com>Note that the binaries currently installed with the package work only in
conjunction with my logging database based onRoundup.The software in the modules of this python package centers around
handling of QSO logging data, retrieval of electronic QSLs from various
electronic QSL services (currently Logbook of the WorldLOTWandeQSL)
and interfacing to my logging database written with the bugtracking
frameworkRoundup. The logging database is part of mytime-track-toolseveral packages that build onRoundup, among them a time tracking tool
and a QSO logger.The adif module is used to parse ADIF files.
Basic usage is at the end of the file, it can be called to do a
round-trip of an ADIF file (reading it in and writing it out).The bandplan module implements a definition of the ham radio bands and
corresponding frequencies for a country. Currently only Austria is
implemented, it should be easy to add other countries. I’m mainly using
it for looking up the corresponding band for a given frequency (e.g.
when receiving data fromWSJTXwhich includes only a frequency not the
band).The dbimport module is used for communicating with mytime-track-toollogging database via itsREST API. It makes use of the requester
module which factors out some of the commonREST APIcalls.The dxcc module is used to parse theofficial DXCC listfrom the ARRL
homepage and do basic callsign lookups via the prefix list given in that
document. Note that the prefix list often does not identify the DXCC
entity unambiguously or even gets the DXCC entity wrong in some cases.The cty module is used to extract information from the well knownCTY.DATcountry databaseby Jim Reisert, AD1C. This database is
much better at matching callsign prefixes to DXCC country, CQ-Zone and
ITU-Zone information than the information in the ARRL list used by the
dxcc module above. The module can be called with a set of callsigns to
look up, the code at the end of the module should give you an idea on
how to use it. Currently only DXCC lookup is implemented, CQ-Zone and
ITU-Zone info may follow at some point.The eqsl and lotw modules are used for retrieving QSO and QSL log
information from Logbook of the WorldLOTWandeQSL. Note that the
eqsl package also supports retrieving the QSL “cards”. You should have asilver membership with eQSLfor using that feature. You should get a
quick idea how to use these modules from looking into the dbimport
module. Note that both, eqsl and lotw use the requester module.The qth module implements conversion from GPS coordinates to Maidenhead
locator. It has a doctest in the Maidenhead_Locator class that should
give you an idea on how to use it. It does support extended locators
beyond length 6 used by some VHF groups.ChangesVersion 0.4: Fix setup.py install_requiresVersion 0.2-0.3: Updates to documentation and setupVersion 0.1: Initial releaseNote that this project is quite old – I’m using it for myself so far
and the first release just now should not scare you too much.
Package: hamsay
HamSay───────────────────────────────────────────────────────────────────────────────────────────────────────
─██████──██████─██████████████─██████──────────██████─██████████████─██████████████─████████──████████─
─██░░██──██░░██─██░░░░░░░░░░██─██░░██████████████░░██─██░░░░░░░░░░██─██░░░░░░░░░░██─██░░░░██──██░░░░██─
─██░░██──██░░██─██░░██████░░██─██░░░░░░░░░░░░░░░░░░██─██░░██████████─██░░██████░░██─████░░██──██░░████─
─██░░██──██░░██─██░░██──██░░██─██░░██████░░██████░░██─██░░██─────────██░░██──██░░██───██░░░░██░░░░██───
─██░░██████░░██─██░░██████░░██─██░░██──██░░██──██░░██─██░░██████████─██░░██████░░██───████░░░░░░████───
─██░░░░░░░░░░██─██░░░░░░░░░░██─██░░██──██░░██──██░░██─██░░░░░░░░░░██─██░░░░░░░░░░██─────████░░████─────
─██░░██████░░██─██░░██████░░██─██░░██──██████──██░░██─██████████░░██─██░░██████░░██───────██░░██───────
─██░░██──██░░██─██░░██──██░░██─██░░██──────────██░░██─────────██░░██─██░░██──██░░██───────██░░██───────
─██░░██──██░░██─██░░██──██░░██─██░░██──────────██░░██─██████████░░██─██░░██──██░░██───────██░░██───────
─██░░██──██░░██─██░░██──██░░██─██░░██──────────██░░██─██░░░░░░░░░░██─██░░██──██░░██───────██░░██───────
─██████──██████─██████──██████─██████──────────██████─██████████████─██████──██████───────██████───────
───────────────────────────────────────────────────────────────────────────────────────────────────────What is this?A stupid thing based in pycowsay (https://github.com/cs01/pycowsay) that just exists because I need to configure a couple of things in VS Code.
It is a fat hamster talking made in a saturday afternoon instead being happy.Installpip install hamsayRun>> hamsay this is stupid

 .--------------.
( this is stupid )
 '--------------'
     \
        _           _
      (`-`;-'```'-;`-`)
       \.'         './
       |             |
       ;   0     0   ;
       | =         = |
     ; \   '._Y_.'   / ;
    ;   `-._ \|/ _.-'   ;
   ;        `'''`        ;
   ;    `''-.   .-''`    ;
  ( ;  '--._ \ / _.--   ; )
  :  `.   `/|| ||\`   .'  :
   '.  '-._       _.-'   .'
   (((-'`  `'''''`   `'-)))Help>> hamsay --help
Package: hamsci-psws
hamsci_pswsPlotting data from Grape V1 receivers.In terminal, clone repository and install withpip install ..To begin, download the most recent dataset fromand unzip it into thescripts/data/directory. You can then run the Jupyter notebooks in thescriptsdirectory to produce plots.InstallationWith pipThe hamsci_psws package is distributed on the Python Package Index:https://pypi.org/project/hamsci_psws/pip install hamsci_pswsGetting StartedFolder Structurehamsci_psws-  the python packagescripts- example analysis scripts and Jupyter notebooksdeprecate,scripts/deprecate, etc. - files that will be removed in future versionsContributingContributions to HamSCI projects are welcome.Releasing the PackageTo upload a release, you will need an account athttps://pypi.org/, and an API token for that account.Make sure you have the latest version ofpip:pip install --upgrade pipMake sure you have the latest version ofbuildandtwine:pip install --upgrade build twineBuild the package (from the root directory of the project):python -m buildUpload toPyPI:python -m twine upload dist/*Enter__token__as the user name, and your token as the token, including thepypi-prefix.Test package installation, preferrably in a separate environment from where you are developing.pip install hamsci_pswsCiting this Project
Package: hamsclient
Library to get data from meteo swiss
NOT ready for production ! for the moment it’s just a draft to do some testsUsageInstallationRequirementsrequests>=2.22.0
pandas>=0.25.3
beautifulsoup4>=4.8.2May probably work with older versions but not testedCompatibilityLicenceAuthorsmeteoswisswas written bywebsylv.
Package: hamsclientfork
Library to get data from meteo swiss
NOT ready for production ! for the moment it’s just a draft to do some testsUsageInstallationRequirementsrequests>=2.22.0
pandas>=0.25.3
beautifulsoup4>=4.8.2May probably work with older versions but not testedCompatibilityLicenceAuthorsmeteoswisswas written bywebsylv.
Package: hamstercage
Hamstercage – Config Management for Pets, not CattleOverviewIf you work professionally with many machines and config, you like will have heard "cattle, not pets" as the philosophy for managing machines, VMs, etc., and you're likely using Ansible, Puppet, SaltStack, or another configuration management system that allows you to express configuration as code. This approach works well when you have many targets that share many traits, you have a lab where you can test configuration changes, and you have full time staff to take care of it all.However, if you're running a handful of boxes or VPSes for a small organisation, or just for yourself and your friends and family, your workflow might actually look quite different: you make changes to the live configuration of your web server, for example, and after you're satisfied that everything is working, you might want to save the key bits of config somewhere safe, so you can refer back to it later. Setting up any of the heavy tools can be cumbersome, especially for making quick provisional changes: in the worstcase scenario, you modify a file in the source repo, commit it, then run the tool to apply it to your machine.Hamstercage aims to make it easy to save and restore your config by using a Git repo, by editing the config files directly on the target machine, then saving the new config into the repository. In other words: pets, not cattle.Hamstercage is geared towards managing config files as complete files. To keep things simple, there are no facilities to update individual lines in files, update system configuration settings through some API, or other more complex logic. Hamstercage can be used to manage shell script files or binaries for custom tools, however.To allow one repository to be used for multiple targets, sets of files can be managed. Each set is called a tag. You can select the tags to use each time you run Hamstercage. The manifest also contains a list of hostnames and the tags to use for each. This makes it possible to run the same Hamstercage command on multiple hosts, and have files be applied to each according to their respective purpose.Installation and UsageSeeHamstercage Documentationand theHamstercage Homepage.Quick Startpipinstallhamstercage
mkdirhamsterscdhamsters
gitinit
hamstercageinit
hamstercage-talladd/etc/profile
gitadd.
gitcommitDeveloping HamstercageInstalling Development SnapshotsThe GitHub workflow automatically builds a snapshot version on each push to the main branch. To work with these snapshots, install them fromTest PyPI:sudopipinstall--upgrade--index-urlhttps://test.pypi.org/simple/hamstercagePoetry For Dependency Management and BuildingThe project usesPoetry, which you should install locally. After installing Poetry, you can install all necessary dependencies:poetryinstallSource Code Formatting With BlackThe GitHub workflow checks source code formatting withblack.To format all code automatically:poetryrunblack.When working on the code, you might want toconfigure your IDE to automatically reformat the code with black.
Package: hamster_cli
A basic CLI for the hamster time tracker.WARNINGThis is still pre-alpha software. Altough we are reaching apoint were most
things work as intended we make no promisse about your data as well as any
commitment. In particular there is no intension to migrate any databases from
this version to any future more mature release.News (2016-04-25)Version 0.12.0 is out! With this version we feel confident that you may be able
to actually play withhamster-cliin a somewhat productive way. Whilst we
are still far from being production ready and miss a significant amount of
legacy feature this release may give you quite the idea where we are heading.
For the first time we were able to give the frontend some love whilst further
beefin up our QA toolchain, introducing even more tests and new test
environments. The documentation has been vastly improved, digging into the code
never was easier.Happy hacking; Eric.FeaturesHigh test coverage.Well documented.Lightweight.Free software: GPL3Useshamsterlib, which supports a wide array of databases.Few dependenciesActive development.ResourcesDocumentationCreditsTools used in rendering this package:Cookiecuttercookiecutter-pypackageHistory0.12.0 (2016-04-25)stopnow shows detail on the fact saved.currentnow shows how much time was accumulated so far.Remove standalone script block. You are expected to utilize pip/setuptools to
setuphamster_cli.virtualenvsFTW!Testenvironment now uses linkchecks anddoc8for validating the
documentation.Removed ‘GTK window’ related pseudo methods. Until the functionality is
actually here.Addedmanifestvalidation to testenvironment.Addedpep257validation to testsuite.Vastly improved docstring, docstringcoverage and frontend helptexts.Usehamsterlib 0.10.0new improved config layout.Add GPL boilerplate and frontend information.releasemake target now usestwine.Provide newdetailscommand to list basic runtime environment details.0.11.0 (2016-04-16)New, solid config handling.Switch tosemantic versioning.Move CI from codeship to Travis-CI.First batch of very basic integration tests.Several fixes to packaging.0.1.0 (2016-04-09)First release on PyPI.Prove-of-concept release.Most of the basic functionality is there.Provides basic test coverage.
Package: hamster-rc
ContentsHamster RCInstallationUsageDevelopmentFutureChanges0.1.1 (2011-01-29)0.1.0 (2011-01-23)Hamster RCHamster RC (Remote Control) is a little web application that lets you control
the Hamster time tracker running on your desktop from a remote browser as the
one running on your mobile device.So far it shows the facts made the current day and lets you start and stop a
new activity. It communicates with Hamster via DBus.I wrote it because many times I have to go here and there in the office and
I don’t spend the whole day sitting at my desk. I need to track where I spent
my time and carrying my phone around is something I usually do anyway. I have
my desktop IP address saved as a bookmark in my mobile browser so it’s quite
easy to access Hamster now :-)InstallationJust type:easy_install hamster-rcRemember that you need python binding for dbus installed. Unfortunately this
is it not easy in an isolated environment such as virtualenv or buildout.
In my preferred distribution (Fedora) this is provided by the dbus-python
package. The rest of python dependencies (mako, webob and routes) are installed
automatically by easy_install.UsageOnce it is installed, run it like this:hamster-rc --host=192.168.0.2 --port=10000and it will listen on that IP address and TCP port. It runs on localhost:8888 by
default, which is not very useful since you want to access it from the outside.Now, point your browser tohttp://192.168.0.2:10000and just click on the buttons!DevelopmentYou can get the last bleeding edge version of hamster-rc by getting a clone of
the Mercurial repository:hg clone https://bitbucket.org/lgs/hamster-rcFutureSome features I may implement in the future are:Simple authenticationHTML5 local storage support for saving the facts when you lost connection to
the server. Later, when there is connection again, it could sync these facts
back to Hamster.Feel free to send me patches for these and other features you would like to
have. Other feedback is also welcomed.Changes0.1.1 (2011-01-29)Fix encoding problems (Issue #1)0.1.0 (2011-01-23)Initial version
Package: hamt-sharding
This code has been transpiled fromjs-hamt-shardingand has minimal changes.UsageHAMTBucket implementsMutableMapping.We suggest you import the HAMTBucket as follows:>>> from hamt_sharding import HAMTBucketSetting and getting>>> from hashlib import sha256
>>> def hash_fn(value: bytes):
...     return sha256(value).digest()
...
>>> bucket = HAMTBucket.create_hamt(hash_fn)
>>> bucket['key'] = 'value'
>>> bucket['key']
'value'