Saravanan666/pypi-org huggingface dataset:
Package: whendone
WhenDonePython package to notify you when your function is done through Telegram and/or Slack!Installation$pipinstallwhendoneUsageTelegram ExampleFirst create a bot through@BotFatherStart a conversation with the bot, only once required,/start.
Obtain the token and add it, see code below.# Import libraryfromwhendoneimportWhenDone# Initializenotifier=WhenDone(telegram_token='XXXXXXXXXXX')# Add decorator to function@notifier.whendonedefTest():print('Hello World')# Function callTest()Slack ExampleBrowse tohttps://api.slack.com/appscreate a new app from scratch, give it a name and assign it to a group or person. On the app page, browse toOAuth & Permissions, go to Scope and the following scope,chat:write, reinstall the app and obtain thetoken. From slack open the chatbot, and obtain theidThe code is almost the same to the Telegram example, but with the addition of 1 line.# Import libraryfromwhendoneimportWhenDone# Initializenotifier=WhenDone(slack_token='XXXXXXXXXXX')notifier.addSlackChatID('XXXXX')# Add decorator to function@notifier.whendonedefTest():print('Hello World')# Function callTest()ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms. If you like it, don't forget to give it a ⭐!LicenseWhenDonewas created by Sabri Barac. It is licensed under the terms of the MIT license.
Package: whenIO
Here are some methods for formatting and parsing friendly timestamps.Installationeasy_install -U whenIOUsage>>> import whenIO
>>> import datetime
>>> w = whenIO.WhenIO(timezone='US/Eastern')

>>> w.format(datetime.datetime.now(), fromUTC=False)
'Today 2:30pm'
>>> w.format(datetime.datetime.utcnow())
'Today 2:30pm'
>>> w.format(datetime.datetime.utcnow(), forceDate=True)
'Today 3/10/2013 2:30pm'
>>> date1 = datetime.datetime(2000, 1, 1, 0, 0)
>>> date2 = datetime.datetime(2000, 1, 1, 1, 0)
>>> w.format([date1, date2], fromUTC=False)
'1/1/2000 12am 1am'

>>> w.parse('10am', toUTC=False)[0]
[datetime.datetime(2013, 3, 10, 10, 0)]
>>> w.parse('today 10am', toUTC=False)[0]
[datetime.datetime(2013, 3, 10, 10, 0)]
>>> w.parse('tom 8pm', toUTC=False)[0]
[datetime.datetime(2013, 3, 11, 20, 0)]
>>> w.parse('mon 10am 12pm', toUTC=False)[0]
[datetime.datetime(2013, 3, 11, 10, 0),
 datetime.datetime(2013, 3, 11, 12, 0)]

>>> rdelta = whenIO.parse_duration('111 weeks')
>>> whenIO.format_duration(rdelta)
'2 years 3 months 3 weeks'
>>> whenIO.format_duration(rdelta, precision=2, style='abbreviations')
'2 yrs 4 mos'1.5Added unit abbreviations and letters to parse_duration(), format_duration()Added control over rounding behavior to format_duration()Added microseconds to format_duration() thanks toJavier Ruere1.4Added forceDate to format(), format_date()Replaced withStartDate to omitStartDate1.3Changed constructor to use timezones from pytz and tzlocalAdded weeks to format_duration()Added withLeadingZero to format(), format_date(), format_time()Added withStartDate to format()Removed parse_offset(), format_offset()1.2Removed python-dateutil==1.5 requirementRestored test coverage to 100%1.1Added format_duration() for formatting relativedelta objectsAdded parse_duration() for parsing text into relativedelta objects1.0Expanded test coverage to 100%
Package: whenis
whenisis a command-line utility that converts timestamps between
UTC and local timezones.Installationpip install whenisUsage$ whenis -h
usage: whenis [-h] [-f TIMEZONE] [-t TIMEZONE] [timestamp [timestamp ...]]

Convert timestamps between UTC and local timezones.

positional arguments:
  timestamp             timestamp to be converted

optional arguments:
  -h, --help            show this help message and exit
  -f TIMEZONE, --from TIMEZONE
                        timezone to convert from (default: utc)
  -t TIMEZONE, --to TIMEZONE
                        timezone to convert to (default: local)

$ whenis -f utc -t local "12/7/16 1:28:36.156 AM"
Tue 6 Dec 2016, 5:28:36 PM -08:00

$ whenis 2016-12-07 01:28:36,156
Tue 6 Dec 2016, 5:28:36 PM -08:00

$ whenis -f local -t utc 6 Dec 2016, 5:28:36 PM
Wed 7 Dec 2016, 1:28:36 AM +00:00LicenseMIT
Package: whenpy
Production:Development:User-friendly functions to help perform common date and time actions.UsageTo get the system time zone’s name:when.timezone()To get the current date:when.today()To get tomorrow’s date:when.tomorrow()To get yesterday’s date:when.yesterday()To get a datetime one year from now:when.future(years=1)To convert to a different time zone:when.shift(value, from_tz='America/New_York', to_tz='UTC')To get the current time:when.now()Full documentation can be found onRead the Docs.InstallationInstalling When.py is easy:pip install whenpyor download the source and run:python setup.py install
Package: whensthebus
Given ATCO codes, shows the next bus times at given stops.This is particularly useful bound to a keybinding and passed to
libnotify’snotify-sendprogram, so you can quickly get an overview
of the next buses at stops you care about.You must setWTB_APP_IDandWTB_APP_KEYto an app ID and app key
valid atTransportAPI.UsagePass ATCO codes with-a. See below for how to find them.% WTB_APP_ID=xxx WTB_APP_KEY=xxx wtb -a 490004733D -a 4100008HAYRS
Canada Water Bus Station (Stop D) (490004733D):
- 199 to Canada Water: Due, 11 min, 25 min
- C10 to Canada Water: 3 min, 9 min, 19 min
- 1 to Canada Water: 8 min, 20 min
- P12 to Surrey Quays: 11 min, 20 min
- 225 to Canada Water: 13 min
- LO-M to Canada Water: 23 min

Haymarket Bus Station (R) (4100008HAYRS):
- 44 to Dinnington: 4 min, 34 min, 1 hr 4 min
- 43 to Cramlington Manor Walks Dudley Lane: 11 min, 41 min
- 45 to Dinnington: 19 min, 49 min, 1 hr 19 min
- 43 to Morpeth Bus Station: 26 minHow do I find ATCO codes?For London bus stops, it’s in the URI. For example, inthis URI,
“490004733D” is the ATCO code.For non-London, try the following:Navigate to the bus stop on OpenStreetMapOn the right, click “layers”Tick “map data”Click on the bus stop on the mapOn the left, you should see the ATCO code (possibly as something
likenaptan:AtcoCode)InstallationTo install the latest stable version from PyPi:$ pip install -U whensthebusTo install the latest development version directly from GitHub:$ pip install -U git+https://github.com/cdown/whensthebus.git@develop
Package: whentowork
whentowork.pyAn API wrapper for WhenToWork's Employee Scheduling software written in Python.InstallationTo install the library:.. code:: sh# Linux/macOS
python3 -m pip install -U whentowork.py

# Windows
py -3 -m pip install -U whentowork.pyExamples.. code:: pyimport whentowork

client = discord.Client(hostname=W2W_HOSTNAME, api_key=W2W_TOKEN)LinksWhenToWork API <https://when2work.com/help/mgr/api-access/>_
Package: whenwasi
WhenwasiFeaturesTODORequirementsTODOInstallationYou can installWhenwasiviapipfromPyPI:$pipinstallwhenwasiUsagePlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Whenwasiis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: when-will-it-end
This consists of a single classLoopProgressMonitorthat you
instantiate right before a loop and then call inside the loop. It
monitors how long each iteration is taking and issues a forecast of when
the loop will conclude based on the number of iterations remaining and
the average time per iteration so far. It prints a new predicted end
time only when the most recent forecast falls too far from its internal
estimate modulo some tolerance.RequirementsPython 3 with the following modules:math,timeSetupFrom pypi:pip install when_will_it_endAlternatively, clone
thesourceand -cd when_will_it_end-python setup.py installExampleimportnumpyasnpimporttimeimportwhen_will_it_endaswwienumber_of_iterations=10print('Starting time: '+wwie.format_time(time.time()))lpm=wwie.LoopProgressMonitor(n=number_of_iterations)forkinrange(number_of_iterations):lpm()_=np.random.uniform(0,1,size=100000000)print('Actual ending time: '+wwie.format_time(time.time()))Results:Starting time: 18:04:42
Starting first of 10 iterations ...
Est. total 18.0 seconds, finish 18:05:00 after 9 iters at 1.8 sec/iter
Est. total 20.0 seconds, finish 18:05:02 after 6 iters at 2.0 sec/iter
Actual ending time: 18:05:01
Package: where2Go
# where2Gowhere2Go is meant to be your weekend-travel assistant. It is an application, written in Python3.5.Let’s say you live in Sofia and want to go out of town for a day, somewhere in the nature. where2Go will store data about natural landmarks in Bulgaria, devided into the following groups: waterfalls, peaks, lakes and mountain trails. The user will choose a category and the program will take information from the internet about the weather in each one of the landmarks in the chosen group and will tell the user the best option for him - the closest one with the best weather on the day he wants go. After that will be given information about how to reach that place and with directions from his current position. This will be accomplished with the Google Maps API.
Package: whereabouts
WhereaboutsFast, scalable geocoding for Python using DuckDB. The geocoding algorithms are based on the following papers:https://arxiv.org/abs/1708.01402https://arxiv.org/abs/1712.09691DescriptionGeocode addresses and reverse geocode coordinates directly from Python in your own environment.No additional database setup required. Uses DuckDB to run all queriesNo need to send data to an external geocoding APIFast (Geocode 1000s / sec and reverse geocode 200,000s / sec)Robust to typographical errorsRequirementsPython 3.8+Poetry (for package management)InstallationOnce Poetry is installed and you are in the project directory:poetry shell
poetry installThe current process for using Australian data from the GNAF is as follows:Download the latest version of GNAF core fromhttps://geoscape.com.au/data/g-naf-core/Update thesetup.ymlfile to point to the location of the GNAF core fileFinally, setup the geocoder. This creates the required reference tablespython setup_geocoder.pyTo use address data from another country, the file should have the following columns:Column nameDescriptionADDRESS_DETAIL_PIDUnique identifier for addressADDRESS_LABELThe full addressADDRESS_SITE_NAMEName of the site. This is usually nullLOCALITY_NAMEName of the suburb or localityPOSTCODEPostcode of addressSTATEStateLATITUDELatitude of geocoded addressLONGITUDELongitude of geocoded addressNote that by default the file should be pipe-separated, i.e., use '|' as the delimitor.ExamplesGeocode a list of addressesfrom whereabouts.Matcher import Matcher

matcher = Matcher(db_name='gnaf_au')
matcher.geocode(addresslist, how='standard')For more accurate geocoding you can use trigram phrases rather than token phrases (note that the trigram option has to have been specified in the setup.yml file as part of the setup)matcher.geocode(addresslist, how='trigram')Once a Matcher object is created, the KD-tree for fast geocoding will also be created. A list of latitude, longitude values can then be reverse geocoded as followsmatcher.reverse_geocode(coordinates)
Package: whereampy
Aboutwhereampyis a terrible play on words (as in “Where am I?”) created
as an example utility to show off a simplesetuptools/setup.pydistribution package.mkpkgis a small utlity that demonstrates how to use pkg_resources to
load data files out of a package (instead of relying on __file__ or similar
mechanisms).UsagewhereampySimply runwhereampyfrom the command line and use the--helpoption
for more information.mkpkgAssuming you have asrcsubdirectory in your home directory:localhost:~$ mkpkg -s spam/spamwill create a directory spam containing a skeletonsetup.pyfile as well
as a subdirectoryspamwith an__init__.pyfile.Seemkpkg--helpfor more options.History0.4 - Fixed setup.py issues0.3 - Added the –setup option to mkpkg0.2 - Unreleased tag that first added the mkpkg utility0.1 - Initial release of whereampy
Package: whereby-api
Whereby API Client for PythonThis is a tiny wrapper aroundWhereby'sHTTP API.Installation$pipinstallwhereby_apiAPI referenceclass whereby_api.WherebyClient(api_key)Parametersapi_key– the API key you received from Whereby (string)Usagefromwhereby_apiimportWherebyClientwhereby=WherebyClient(api_key='<your api key>')Methodscreate_meeting(start_date, end_date, is_locked=False, room_name_prefix=None, room_mode='normal', fields=[])Create a new meetingParametersstart_date– When the meeting starts (required, either adatetimeobject or anISO 8601string)end_date– When the meeting ends (required, either adatetimeobject or anISO 8601string)is_locked– The initial lock state of the room (boolean)room_name_prefix– The prefix for the room name. (string)room_mode– The mode of the created room. (string –normalorgroup)fields– Additional fields that should be populated. (list of strings, currently the only option is'hostRoomUrl')Please refer to theofficial documentationfor details.Return typewhereby_api.MeetinginstanceUsagefromdatetimeimportdatetime,timedeltameeting=whereby.create_meeting(start_date=datetime.now(),end_date=datetime.now()+timedelta(days=2),fields=['hostRoomUrl'],)delete_meeting(meeting_id)Delete an existing meetingParametersmeeting_id– the ID of the meeting (required, string)Please refer to theofficial documentationfor details.Usagewhereby.delete_meeting(meeting_id='123456')get_meeting(meeting_id)Get details about an existing meetingParametersmeeting_id– the ID of the meeting (required, string)Please refer to theofficial documentationfor details.Return typewhereby_api.MeetinginstanceUsagemeeting=whereby.get_meeting(meeting_id='123456')class whereby_api.Meeting(meeting_id, room_url, start_date, end_date, host_room_url)Represents a meetingPropertiesmeeting_id– The ID of the meeting. (string)room_url– The URL to room where the meeting will be hosted. (string)start_date– When the meeting starts. (datetime)end_date– When the meeting ends. (datetime)host_room_url– The URL to room where the meeting will be hosted which will also make the user the host of the meeting. (string)Please refer to theofficial documentationfor details.
Package: where-is
where-isAn elegant way of getting configuration files (and folders)Getting startedPrerequisitesUnix/NT Based OSPython>=3.6PipInstallationInstallwhere-isusingpip.$pipinstallwhere-isBasic UsageGet config locations ofgrub$where-isfindgrubAdd an entry$where-isdatabase--addRemove an entry$where-isdatabase--removeMore informationFor more information and graphics,see the wiki.Built withRich: For rich text and beautiful formattingTyper: Used as the argument parserBlack: Used as the formatterPipenv: Used as the virtualenv managerAcknowledgementsjoereynolds/what-to-code: For inspiration to make this projectLogomakr: Used to make the logoLicenseThis project is licensed under the GNU GPLv3 License - see thisLICENSE.mdfile for details
Package: whereismysock
A convenient way to work with information streaming from websockets, built
on top of the Python iterator protocol.When subscribing to a stream of qualified data I am usually interested in either
thelatestvalue i.e. the one I want when I am ready to do something
with it orallthe values since I last checked.whereismysockalso has amostsubscriber which isallwith an upper bound
to the number of messages it keeps in memory (deleting the eldest first).>>> from whereismysock import latest
>>> usdjpy = latest("ws://toplevel/USDJPY")
>>> next(usdjpy)
...>>> from whereismysock import all
>>> nk225 = all("ws://trades/NK225")
>>> next(nk225)
...I like it because it makes “synchronising” different source of information
super easy.>>> hhi = latest("ws://toplevel/HHI")
>>> hsi = latest("ws://toplevel/HSI")
>>> next(zip(hhi, hsi))
...
Package: wheresyourtrash
[![Stories in Ready](https://badge.waffle.io/mainecivichackday/wheresyourtrash.png?label=ready&title=Ready)](https://waffle.io/mainecivichackday/wheresyourtrash)
Where’s Your Trash?
===================[![Join the chat athttps://gitter.im/Code4Maine/wheresyourtrash](https://badges.gitter.im/Code4Maine/wheresyourtrash.svg)](https://gitter.im/Code4Maine/wheresyourtrash?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Build
Status](https://travis-ci.org/Code4Maine/wheresyourtrash.svg?branch=master)](https://travis-ci.org/Code4Maine/wheresyourtrash)It seemed so simple. When is the city coming to pick up your trash? So why
do we keep forgetting? Well, it doesn’t help when recycling is every other
Tuesday. And Monday’s trash pickup falls on Patriot’s Day. Is that even a real
holiday? Does the city recognize it.Confusion no more! Enter your phone number or email address here, tell us where
you live in the city and we’ll send you a notification first thing in the
morning when it’s time to disgard your disgardables.Easy bootstrapping!Powered by the ubiquitous Makefile … this should be pretty easy:make deps (or make deps_mac if you are, you know, on a mac)make installmake runopen your browser to:http://127.0.0.1:45000
Package: whereto
Test Apache redirect rules.whereto is an app for testing redirect rules like what may appear in a
.htaccess file for Apache. It provides a way to test those rules in CI
jobs.Free software: Apache licenseDocumentation:http://whereto.readthedocs.io/en/latest/Source:http://git.openstack.org/cgit/openstack/wheretoBugs:http://bugs.launchpad.net/whereto
Package: where-to
where-to is aPythoncommand-line utility that
displays upcoming Outlook appointments on a Windows lock screen.The package isavailable on pypiand can
be installed from the command line by typingpip install where-toOnce installed, awhere-tocommand will be added to your Python scripts
directory. You can run it to show the next appointment, all appointments for the
rest of the day only appointments due to start at this time.Examples:where-toupcoming# shows all appointments for the rest of the daywhere-tonext
where-tonow# appointments starting between 10 minutes ago and 15  minutes henceGet more help viawhere-to --help.Note thatwhere-tois built to be console-less, so that when invoked from a Windows scheduled
task it will not pop up an annoying console window. The help message (and indeed all output)
should be presented in an instance of the notepad editor. If this isn't working, or if for some
reason you want to see a display in a terminal window, the alternative executablewhere-to-consoleis also available. This can be combined with the--display-mode listoption to print appointments
rather than splash them on the lock screen.Logo:CalendarbyPaisleyfromthe Noun Project.
Package: where-toy
Utility to locate python modules from the command linePython utility to locate packages or resources in the python path.
The module is a thin layer aroundimportlibto display
the location and contents of an installed module or package.
The script exits with an error code if the module is not found.
This is similar topython -minspect <module> -dbut adds the option
to display the package contents as a tree.UsageUsage: python -m where [OPTIONS] MODULELocate python module or resources in the python pathMODULE is the name of a module or package as a fully qualifiedpython nameOptions:-r, --recurse  Recurse into directory contents--help         Show this message and exit.Examples> python -mwhere sysconfig/Users/.../envs/py38/lib/sysconfig.py> python -mwhere pandas/Users/.../envs/py38/lib/site-packages/pandas/__init__.py> python -mwhere where -r/Users/../Projects/where-toy/src/where├── __init__.py├── __main__.py└── utils.pyInstallationWarningThis project installs a module calledwherewhich name is also used by other projects likewhere.You can install the latest version of this module with `pippip install git+ssh://git@github.com/furechan/where-toy.gitRelated Projects & ResourcespylocLocate python object definition in your file-systeminspectinspect module command line interface
Package: whereval
WherEvalTool for parsing SQL like where expressions and evaluating against live dataInstallationpython3 -m pip install wherevalInspirationThis tool will scratch an itch I've had for some cli tools where I want to pass complex filter expressions to control output / processing.
For instance with myhiststatfork, I would like to have better filtering of networking information to be output to sqlite. See:https://github.com/JavaScriptDude/histstatAnother usecase for this is a tool I've wanted to write where I can write atail -fwrapper in python where I can define a filter in cli parameters to limit output to the console. Have not written this yet but its on my todo now that I've got this API.API Example(Ex1) Basic Concept:fromdatetimeimportdatefromwherevalimportWhere,utilaswutilprint("\n(Ex1) Basic Idea")sw=wutil.StopWatch()# Where query (terse example)qry="(f0>=2+f1=1+f2='s')|(f3~'foo%')"# Field and type specspec={'f0':int,'f1':bool,'f2':str,'f3':str,'f4':dt_date}# Instantiate Where#  - Parses query and uses data to form rules for data types and fieldswher=Where(query=qry,spec=spec)print(f"Query:\n. raw:\t{qry}\n. compiled:{wher}\n\nTests:")def_print(wher,data,tup):(ok,result,issues)=tupifnotok:print(f"Eval failed for{wher}. Issues:{issues}")else:print(f"\t{result}\tw/ data:{data}")# Evaluate expression against real datadata={'f0':2,'f1':True,'f2':'s','f3':'foobar'}_print(wher,data,wher.evaluate(data))# For different datadata['f3']='bazbar'_print(wher,data,wher.evaluate(data))# For different datadata['f0']=1_print(wher,data,wher.evaluate(data))print(f"Completed. Elapsed:{sw.elapsed(3)}s")Output of print:(Ex1) Basic Idea
Query:
 . raw:	(f0>=2+f1=1+f2='s')|(f3~'foo%')
 . compiled: ( ( f0 >= 2 AND f1 = 1 AND f2 = 's' ) OR ( f3 like 'foo%' ) )

Tests:
	True	w/ data: {'f0': 2, 'f1': True, 'f2': 's', 'f3': 'foobar'}
	True	w/ data: {'f0': 2, 'f1': True, 'f2': 's', 'f3': 'bazbar'}
	False	w/ data: {'f0': 1, 'f1': True, 'f2': 's', 'f3': 'bazbar'}
Completed. Elapsed: 0.003sQuery Syntax:# General:
#  Query must begin with '(' and end with ')'
#  NOT, IN, BETWEEN must be followed by parenthesis '('
# Boolean Operators:
#   AND, OR, NOT
# Equality Operators:
#  =, !=, <, <=, >, >=, like
# Special:
#   !   -->  NOT
#   +   -->  AND
#   |   -->  OR
#   <>  -->  !=
#   ~   -->  like
Package: where-was-i
Parse Google’s Semantic location into human-readable formGetting Started:To use where-was-i, install it in one of several ways.$ git clonehttps://github.com/lhh/where_was_i$ cd where_was_i
$ pip install .
$ where-was-i <args> *or by using pip:$ pip install where_was_i
$ where-was-i <args>or by using the container build (does not support wildcards):$ git clonehttps://github.com/lhh/where_was_i$ cd where_was_i
$ make
$ ./where-was-i <args> < <filename>Examples:where-was-i ~/2017/*where-was-i -s -p ~/2017/2017_JANUARY.jsonwhere-was-i < ~/2017/2017_JANUARY.json
Package: whey
A simple Python wheel builder for simple projects.whey:supportsPEP 621metadata.can be used as aPEP 517build backend.createsPEP 427wheels.handles type hint files
(py.typedand*.pyistubs).is distributed under theMIT License.is the liquid remaining after milk has been curdled and strained.
It is a byproduct of the manufacture of cheese and has several commercial uses.Seethe documentationforconfigurationandusageinformation.DocsTestsPyPIAnacondaActivityQAOtherInstallationwheycan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallwheyTo install withconda:$condainstall-cconda-forgewheywheyalso has an optional README validation feature, which checks the README will render correctly on PyPI.
This requires that thereadmeextra is installed:$python-mpipinstallwhey[readme]and inpyproject.toml:[build-system]requires=["whey[readme]",]build-backend="whey"