Saravanan666/pypi-org huggingface dataset:
Package: helen-electricity-usage
This small script fetches per-hour electricity usage from Helsingin
Energia (Helen) website. This is unofficial implementation which may
break at any time, if Helen changes their website or implements any
additional validations.Installation:pip install helen_electricity_usageUsage:import helen_electricity_usage
helen = helen_electricity_usage.Helen(username, password, metering_point_number, customer_number)
helen.login()
print helen.get_date("20141225")To obtain username and password, register usingweb interface(Flash and paper invoice is
required). After registering and signing in, metering point number is
available on the top-right corner.Sample output (python dictionary):[{'month': 10,
 'hour': 0,
 'year': 2020,
 'waterFlowPrice': 0.0,
 'temperature': 11.8,
 'milestones': [],
 'value': 0.92999,
 'day': 1,
 'teleEuro': 0.0,
 'status': 30,
 'telePrediction': 0.0},
{'month': 10,
 'hour': 1,
 'year': 2020,
 'waterFlowPrice': 0.0,
 'temperature': 11.2,
 'milestones': [],
 'value': 0.66,
 'day': 1,
 'teleEuro': 0.0,
 'status': 30,
 'telePrediction': 0.0},
 ...
]There is no way to check whether data for specific date is available. If
data is not available, all fields are provided, but values are 0.0.
There is no way to distinct between missing data and hours with no
electricity consumption. Usually the data is available next day, but
that is not guaranteed.
Package: helenium
heleniumWhat is it?It is very tedious to download chromedriver whenever your chrome browser get updated, or if you want to setup new environment. This package handles downloading chormedriver automatically. In addition, it also gives you some handy selenium wrapper class.InstallationUse pip to install this package. It is not yet released in Pypi, but it is planned to do so when the version reached 1.0.0!pipinstallheleniumHow to use it?You can importSeleniumLoaderclass if you just want to use chromedriver feature. And instantiating this will trigger setup chromdriver.fromheleniumimportSeleniumLoaderSeleniumLoader()If you want to use wrapper class,importtimefromhelenium.baseimportSeleniumBaseselenium_base=SeleniumBase()selenium_base.setup_driver()# Same as SeleniumLoader())selenium_base.driver.get('https://google.com')selenium_base.click_and_send_key('/html/body/div[1]/div[3]/form/div[1]/div[1]/div[1]/div/div[2]/input','Python\n',)time.sleep(1)assertselenium_base.driver.current_url.startswith('https://www.google.com/search?q=Python')
Package: helga
AboutHelga is a full-featured chat bot for Python 2.7 usingTwisted. Helga originally started
as a python fork of a perl-based IRC botolga, but has grown considerably since then. Early
versions limited to support to IRC, but now include other services like XMPP and HipChat.
Full documentation can be found athttp://helga.readthedocs.org.Supported BackendsAs of version 1.7.0, helga supports IRC, XMPP, and HipChat out of the box. Note, however, that
helga originally started as an IRC bot, so much of the terminology will reflect that. The current
status of XMPP and HipChat support is very limited and somewhat beta. In the future, helga may
have a much more robust and pluggable backend system to allow connections to any number of chat
services.ContributingContributions arealwayswelcomed, whether they be in the form of bug fixes, enhancements,
or just bug reports. To report any issues, please create a ticket ongithub. For code
changes, please note that any pull request will be denied a merge if the test suite fails.If you are looking to get help with helga, join the #helgabot IRC channel on freenode.LicenseCopyright (c) 2014 Shaun DuncanHelga is open source software, dual licensed under theMITandGPLlicenses. Dual licensing
was chosen for this project so that plugin authors can create plugins under their choice
of license that is compatible with this project.
Package: helga-alias
This plugin will track nick aliases, and provide known aliases for other pluginsUsage:<bigjust> !alias
<helga> Known Aliases:
<helga> jcaratzas bigjust jcaratza1
<helga> zero_cool

<bigjust> !alias add zero_cool crash_override
<helga> added.

<bigjust> !alias zero_cool
<helga> zero_cool crash_overrideLicenseCopyright (c) 2017 #nGPLv3 Licensed
Package: helga-alkafact
helga-alkafact===========to help us remember alkapwn's incredible achievements, we needed a bot plugin::<bigjust> ,rem add alkapwn threw a football over that mountain<bigjust> ,rem alkapwn<helga> alkapwn threw a football over that mountainthe only subcommand would be `add`, which would be followed by thestatement to add.If we're not `add`ing, then any term provided will be used to searchthe db and return a random fact.License-------Copyright (c) 2017 Justin CaratzasGPLv3 Licensed
Package: helga-api-monitor
Allow helga a way to monitor APIsInstallationAfter installing and configuring helga, use:pip install helga-api-monitorAdd to your settings if necessary and restart helga:'api_monitor',Add the following settings:API_MONITOR_URL = 'http://www.example.com/'
API_MONITOR_ENDPOINT = 'http://www.example.com/api/'
API_MONITOR_CHANNEL = '#bots'
API_MONITOR_INTERVAL = 2 # minutesUsageTo initialize the monitor after starting helga, you must first trigger the watching with:!api_monitorThis will start a regular job to poll endpoints for errorsLicenseCopyright (c) 2016 Jon RobisonSee included LICENSE for licensing information
Package: helga-cowsay
helga-cowsay============____________< I Love nix >------------\   ^__^\  (oo)\_______(__)\       )\/\||----w |||     ||Inspired by:http://en.wikipedia.org/wiki/CowsayFunctionality liberally taken from:https://github.com/jcn/cowsay-pyLicense-------Copyright (c) 2014 Michael OrrGPLv3 Licensed
Package: helga-elo
Provide a system through which you may compare players of arbitrary gamesInstallationAfter installing and configuring helga, use:pip install helga-eloAddeloto your settings and restart helga.UsageNote: Please use punctuation in your text. This is a tough sticking point in
practice, but it is important to be able to differentiate sentences.Command syntax:elo add <game_type> <winning_player_name> <losing_player_name>
elo list <game_type> <player_name>
elo drop <game_type>Argumentsgame_type: An identifier for the type of game played. This allows for
different types of games or tournament results to be saved separately.player_name: Name of participant to list detailswinning_player_name: Name of participant who won gamelosing_player_name: Name of participant who lost gameExamplesThe following are different ways you may usage helga-eloAdding results of a game!elo add pingpong jrobison helga
helga> jrobison now has 805 elo, helga has 795 eloSee player rating!elo pingpong jrobison
helga> jrobison has 805 elo for pingpongRemove ALL elo for a game_type!elo drop pingpong
helga> consider it doneLicenseCopyright (c) 2016 Jon RobisonSee included LICENSE for licensing information
Package: helga-facts
A helga plugin that can be used to store responses that can be returned from a question. For example:<sduncan> foo is bar
<sduncan> foo?
<helga> foo is bar (sduncan on 12/01/2014 08:15)
<sduncan> bar baz are qux
<sduncan> bar baz?
<helga> bar baz is qux (sduncan on 12/01/2014 08:15)Facts are queried using the formfact?and are stored automatically using the formfact (is|are) term. In this simple fact storing form, facts are saved with the nick of the user
that saying it and the timestamp at which it was said. Facts can also be stored as a reply only
without a nick or timestamp by using the token ‘<reply>’:<sduncan> foo is <reply> bar
<sduncan> foo?
<helga> barOptionally, if the settingFACTS_REQUIRE_NICKNAMEis set to True, the bot’s nick will be required
to show a stored fact:<sduncan> foo is <reply> bar
<sduncan> foo?
<sduncan> helga foo?
<helga> barImportantThis plugin requires database accessFact storage tends to be a bit greedy at times, since the form of a fact isfact (is|are) term. This
can lead to situations where you may see one-word pronoun facts that can be annoying. For example:<sduncan> who is going to the party?
<sduncan> who?
<helga> who is going to the party? (sduncan on 12/01/2014 08:15)For this reason, you can customize the settingFACTS_WORD_BLACKLIST, which should be a list of words
that will result in a fact being stored. Generally this will be pronouns. The default value for this is:FACTS_WORD_BLACKLIST = ['who', 'what', 'where', 'when', 'why', 'how', 'and', 'hmm', 'huh', 'no', 'oh', 'ok', 'right', 'well', 'yes']Note that this only occurs for facts that do not include<reply>. This will still work:<sduncan> when is <reply> now
<sduncan> when?
<helga> nowLicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-hipchat-nicks
A helga preprocessor plugin for HipChat to make sure that user nicks are set as @ mentions in replies.SettingsHIPCHAT_API_TOKENThe API token for HipChat api accessHIPCHAT_API_ENDPOINTThe API endpoint to use (defaulthttps://api.hipchat.com)LicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-icanhazascii
A helga match plugin that will show ASCII art for certain keywords. This plugin is rate-limited at a
maximum of one response per channel every 30 seconds. ASCII art includes:poniez:.,,.
     ,;;*;;;;,
    .-'``;-');;.
   /'  .-.  /*;;
 .'    \d    \;;               .;;;,
| o      `    \;             ,;*;;;*;,
\__, _.__,'   \_.-') __)--.;;;;;*;;;;,
 `""`;;;\       /-')_) __)  `\' ';;;;;;
    ;*;;;        -') `)_)  |\ |  ;;;;*;
    ;;;;|        `---`    O | | ;;*;;;
    *;*;\|                 O  / ;;;;;*
   ;;;;;/|    .-------\      / ;*;;;;;
  ;;;*;/ \    |        '.   (`. ;;;*;;;
  ;;;;;'. ;   |          )   \ | ;;;;;;
  ,;*;;;;\/   |.        /   /` | ';;;*;
   ;;;;;;/    |/       /   /__/   ';;;
   '*;;*/     |       /    |      ;*;
        `""""`        `""""`     ;'puppiez:_
                       ,:'/   _..._
                      // ( `""-.._.'
                      \| /    0\___
                      |            4
                      |            /
                      \_       .--'
                      (_'---'`)
                      / `'---`()
                    ,'        |
    ,            .'`          |
    )\       _.-'             ;
   / |    .'`   _            /
 /` /   .'       '.        , |
/  /   /           \   ;   | |
|  \  |            |  .|   | |
 \  `"|           /.-' |   | |
  '-..-\       _.;.._  |   |.;-.
        \    <`.._  )) |  .;-. ))
        (__.  `  ))-'  \_    ))'
            `'--"`       `"""`dolphinz:__     HAI!
                               _.-~  )
                    _..--~~~~,'   ,-/     _
                 .-'. . . .'   ,-','    ,' )
               ,'. . . _   ,--~,-'__..-'  ,'
             ,'. . .  (@)' ---~~~~      ,'
            /. . . . '~~             ,-'
           /. . . . .             ,-'
          ; . . . .  - .        ,'
         : . . . .       _     /
        . . . . .          `-.:
       . . . ./  - .          )
      .  . . |  _____..---.._/
~---~~~~----~~~~             ~~~~~~~~~~~~~~~kittiez:_             _
  | '-.       .-' |
   \'-.'-"""-'.-'/    _
    |= _:'.':_ =|    /:`)
    \ <6>   <6> /   /  /
    |=   |_|   =|   |:'\
    >\:.  "  .:/<    ) .|
     /'-._^_.-'\    /.:/
    /::.     .::\  /' /
  .| '::.  .::'  |;.:/
 /`\:.         .:/`\(
|:. | ':.   .:' | .:|
| ` |:.;     ;.:| ` |
 \:.|  |:. .:|  |.:/
  \ |:.|     |.:| /
  /'|  |\   /|  |`\
 (,,/:.|.-'-.|.:\,,)
   (,,,/     \,,,)""",batsignal:_==/          i     i          \==_
     /XX/            |\___/|            \XX\
   /XXXX\            |XXXXX|            /XXXX\
  |XXXXXX\_         _XXXXXXX_         _/XXXXXX|
 XXXXXXXXXXXxxxxxxxXXXXXXXXXXXxxxxxxxXXXXXXXXXXX
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
 XXXXXX/^^^^"\XXXXXXXXXXXXXXXXXXXXX/^^^^^\XXXXXX
  |XXX|       \XXX/^^\XXXXX/^^\XXX/       |XXX|
    \XX\       \X/    \XXX/    \X/       /XX/
       "\       "      \X/      "      /"LicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-koji
AboutHelga is a Python chat bot. Full documentation can be found athttp://helga.readthedocs.org.This Koji plugin allows Helga to respond to koji-related commands in IRC
and print information about builds and tasks.Estimate when the current (ongoing) build will complete:03:14 < ktdreyer> helgabot: current ceph build
03:14 < helgabot> ktdreyer, ceph-12.2.1-1.el7cp should finish building in
                  3 min 45 sec
                  https://cbs.centos.org/koji/buildinfo?buildID=20348Find out how long the most recent completed build took to finish:03:14 < ktdreyer> helgabot: last ceph build
03:14 < helgabot> ktdreyer, ceph-12.2.2-0.el7 build duration was 2 hr 49 min
                  https://cbs.centos.org/koji/buildinfo?buildID=21149Query for packages:03:14 < ktdreyer> helgabot: ceph package
03:14 < helgabot> ktdreyer, ceph is
                  https://cbs.centos.org/koji/packageinfo?packageID=534Find a user’s tasks:03:14 < ktdreyer> helgabot: soandso's tasks
03:14 < helgabot> ktdreyer, soandso's kernel scratch build should be done in
                  1 hr 26 min
                  (https://koji.example.com/koji/taskinfo?taskID=15741633)Estimating tasks by URL:< ktdreyer> helgabot: https://koji.example.com/koji/taskinfo?taskID=12456
< helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26
            min.InstallationThis Koji plugin isavailable from PyPI, so you can simply install
it withpip:pip install helga-kojiIf you want to hack on the helga-koji source code, in your virtualenv
where you are running Helga, clone a copy of this repository from GitHub and
runpython setup.py develop.Configurationhelga-koji uses thetxkojilibrary,
which looks for configuration files at~/.koji/config.d/*.confand/etc/koji.conf.d/*.conf. To configure helga-koji for your Koji instance,
you must have configuration file(s) in this location on disk. This is how the
normalkoji clientworks.TODOWatching tasks:< ktdreyer> helgabot: watch
            https://koji.example.com/koji/taskinfo?taskID=12456
< helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26
            min. I'll tell you when it's done.Or watch on behalf of someone else:< ktdreyer> helgabot: watch
            https://koji.example.com/koji/taskinfo?taskID=12456 for adeza
< helgabot> ktdreyer, that kernel scratch build should be done in 1 hr 26
            min. I'll tell that person when it's done.
Package: helga-lingo
Define words from urbandictionary.comUsage!lingo <term>Queries urbandictionary for the given termExample:!lingo digReturns:A word to use when you're insulting someone. Like a "burn" or a "blast". An
insult. A dig isn't usually meant seriously. It's normally used in a joking
manner with a hint of truth. :)!lingo <term> <index>When a term has multiple definitions, one may retrieve a consecutive definition
by incrementing index. It implicitly starts at 0, so not including it is like
getting the 0th definition.Example:!lingo dig 2Returns (the third definition content):v.
1. To perceive and comprehend the nature and significane of; grasp; gather.
"Ya dig? Yeah I can dig it"
etc.!lingo-d<term>Execute regular lingo query, but return debug results as wellMethodologyUses the official urbandictionary api, parsing the json response, and returning
the definition according to the index the user provides. By default, this is the
first, or 0th, index.An example API call for the term ‘api’ would be:api.urbandictionary.com/v0/define?term=apiLicenseCopyright (c) 2014-2016 Jon RobisonSee included LICENSE for licensing information
Package: helga-mail
Cause sometimes bouncers aren’t enough, or reliable. For those times
when we want to send a message to another user before we forget,
here’s helga-mail.:<bigjust> ,mail justin Hey Buddy, welcome back from your trip!
<helga> message saved for justin.

Later...

*justin joins*
<helga> justin, message from bigjust: Hey Buddy, welcome back from
your trip!
<justin> dawwwwLicenseCopyright (c) 2017 Justin CaratzasGPLv3 Licensed
Package: helga-meant-to-say
A helga plugin for users to indicate that they meant to say something differnent from what they did.
This plugin will match replacement syntax like ‘s/foo/bar/’, much like using sed. For example:<sduncan> foo is bar
<sduncan> s/foo/bar/
<helga> sduncan meant to say: bar is barLicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-meet
System for asynchronous meetings e.g. standupInstallationInstall via pip:pip install helga-meetAnd add to settings!UsageNote: Every time you restart helga with preexisting meetings, you must use the meet
command to initialize the scheduler! It can be a dummy command like!meet foobarthat isn’t recognized, as long as it hits the meet plugin.Schedule a daily standup at 3pm Mon-Fri, saying in room #general: “PSA @all”:!meet schedule standup "#general" "PSA @all" "hour 15 day_of_week 0-4"The above final argument is a cron formatted group of kwargs.Adds a status entry for the day for the user. Nick and time saved along with status:!meet status standup made widget1, started on widget2. will finish widget2, and no blockersThen, we can query for digests of certain date ranges. The start and end date ranges
should be quoted, and are kwargs of datetime:!meet digest standup "year 2016 month 12 day 1" "year 2016 month 12 day 30"To get a list of all current meetups:!meet dumpTo remove a particular meetup (assuming you are an OPERATOR):!meet remove test1And if you want to remove all associated status update along with the meetup:!meet remove test1 entriesDevelopmentInstall all the testing requirements:pip install -r requirements_test.txtRun tox to ensure everything works:make testYou may also invoketoxdirectly if you wish.ReleaseTo publish your plugin to pypi, sdist and wheels are (registered,) created and uploaded with:make releaseLicenseCopyright (c) 2016 Jon RobisonSee LICENSE for details
Package: helga-mimic
Builds markov chains of users and channels. Will produce an example
line on demand. commands will allow for rebuilding the markov chain
for a channel or user.Requires the .. _helga-oral-history:https://github.com/bigjust/helga-oral-historyWe’ve also integrated cobe (https://github.com/pteichman/cobe) which
is the latest iteration of MegaHAL, a conversational brain that uses
markov chains for learning and can respond to statements, using the
message as a seed.UsageWe can mimic the current channel:<bigjust> !mimic
<helga> altho i would feel better after too much creditor a specific user:<bigjust> !mimic bigjust
<helga> i gotta get rally dirt working on simply interfacing with UCIor a list of users:<bigjust> !mimic bigjust justin
<helga> oh, that reminds me, i need to review these one dayreplace brain by relearning whats in the db (aka how we update
currently):<bigjust> !mimic build
<helga> I learned some stuff!teach helga a new personality:<bigjust> !mimic load <key> <url>
<helga> <key> loaded.
<bigjust> !mimic <key>
<helga> wuba dub dub!LicenseCopyright (c) 2016 Justin CaratzasGPLv3 Licensed
Package: helga-no-more-olga
A match plugin that aided in the early days of helga when the botolgawas still in use. Since helga
started as a python fork of olga, many users were used to asking olga for certain actions. This would
respond with a reminder that they should use helga instead.LicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-oneliner
A helga plugin with a large amount of canned responses for a variety of regular expressions. For the
full list, see thesource code <https://github.com/shaunduncan/helga-oneliner/blob/master/helga_oneliner.py>for this plugin.LicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-poems
A helga command to generate either haiku or tanka poems. All five or seven syllable lines are user
generated and stored using this plugin. Usage:helga (haiku|tanka) [blame|tweet|about <term>|by <nick>|(add|add_use|use|remove|claim) (fives|sevens) (INPUT ...)].Without any argumentshelga haikuorhelga tankawill produce a randomly generated haiku or
tanka from stored five or seven syllable lines respectively. Each subcommand acts as follows:blameGet a list of the nicks of the users that authored the lines of a generated haikuabout <term>Generate a haiku or tanka using a given term. This term supports any valid regular expression.
For example,!haiku about foowill search for lines containing ‘foo’, but!haiku about foo$will only return lines that end with fooby <nick>Generate a haiku or tanka with lines by the given nick. If not enough lines exist for this nick,
then lines are selected at randomadd (fives|sevens) (INPUT...)Add a five or seven syllable line to the database but do not generate a poemadd_use (fives|sevens) (INPUT...)Add a five or seven syllable line to the database and then generate and return a poem containing
that lineuse (fives|sevens) (INPUT...)Generate a poem containing the given five or seven syllable line, but do not store it for future poemsclaim (fives|sevens) (INPUT...)Allows the requesting user to claim authorship of a given five or seven syllable lineA bit of an undocumented feature, but poems can be tweeted to some Twitter account. For example, generating
a poem with!haikufollowed by!haiku tweet. This requires some additional settings:TWITTER_CONSUMER_KEYTWITTER_CONSUMER_SECRETTWITTER_OAUTH_TOKENTWITTER_OAUTH_TOKEN_SECRETTWITTER_USERNAMEImportantThis plugin requires database accessLicenseCopyright (c) 2015 Shaun DuncanLicensed under anMITlicense.
Package: helga-productpages
AboutHelga is a Python chat bot. Full documentation can be found athttp://helga.readthedocs.org.This Product Pages plugin allows Helga to respond to product commands in IRC
and print information about releases. For example:03:14 < ktdreyer> helgabot: rhcs 3.0 date
03:14 < helgabot> ktdreyer, Red Hat Ceph Storage 3.0 ga is on Tue Dec 5,
                  2017 (14 business days from today)Or specific milestones, like “z2” or “beta”:03:14 < ktdreyer> helgabot: osp 12 beta date
03:14 < helgabot> ktdreyer, Red Hat OpenStack Platform 12 beta is on Wed Nov
                  8, 2017 (50 business from today)The bot can also provide the link to the full schedule for a release:03:14 < ktdreyer> helgabot: osp 12 schedule
03:14 < helgabot> Red Hat OpenStack Platform 12 schedule:
                  https://pp.engineering.redhat.com/pp/product/rhosp/release/rhosp-12.0/schedule/tasks(Obviously this bot plugin requires network access tohttps://pp.engineering.redhat.com.)InstallationThis Product Pages plugin isavailable from PyPI, so you can simply install
it withpip:pip install helga-productpagesIf you want to hack on the helga-productpages source code, in your virtualenv
where you are running Helga, clone a copy of this repository from GitHub and
runpython setup.py develop.Optional: Default product configurationIn yoursettings.pyfile (or whatever you pass tohelga--settings),
you can specify aDEFAULT_PRODUCT. For example:DEFAULT_PRODUCT = 'ceph'If you omit the product when asking Helga for release dates, Helga will use
this product value.SecurityNote: This plugin can expose private information (milestone dates) about
Red Hat products. If you use this plugin, be sure that the networks to which
Helga connects are restricted. Everyone in Helga’s channels will see the
private information, so the assumption is that they already have rights to
read the data on Product Pages.
Package: helga-pull-requests
A helga plugin to quickly link to github pull requests. This will match either the pattern
<repo_name>-pr<number> (when PULL_REQUESTS_DEFAULT_ACCOUNT is set) or <account>/<repo_name>-pr<number> or <account>/<repo_name>/pull/<number>.SettingsPULL_REQUESTS_DEFAULT_ACCOUNTA default account to use for empty matches of <repo_name>-pr<number>PULL_REQUESTS_GITHUB_HOSTA url to use for github. Defaults tohttps://github.com.LicenseCopyright (c) 2014 Shaun DuncanLicensed under anMITlicense.