Saravanan666/pypi-org huggingface dataset:
Package: timethat
Time ThatA human friendly time calculator for functions and code blocksInstallpipinstalltimethatUsage1) You can use it directly for functionsfromtimethatimportTimedFunctionfromtimeimportsleep@TimedFunction()defsuspicious_function():time.sleep(1)if__name__=='__main__':suspicious_function()results:TimeThat ->    1.00 sec. -> suspicious_functionTimedFunction optional parameters:tag: use tag instead of function nametalk: directly echo or echo in resultsFor example: @TimedFunction(tag="CustomTag", talk:False)2) Or you can use it in wherever you wantfromtimethatimportTimeThatfromtimeimportsleepdefsuspicious_function():TimeThat.start("X1")forxinrange(100):sleep(1)killer_loop=TrueTimeThat.stop("X1")if__name__=='__main__':suspicious_function()results:TimeThat ->    3.00 sec. -> X1Stop optional parameters:talk:  echo directly if true else echo later3) Or you can use it to measure total calculationsfromtimethatimportTimeThatfromtimeimportsleepdefsuspicious_function():forxinrange(3):TimeThat.start("X1")sleep(0.3)killer_loop=TrueTimeThat.stop("X1",talk=False)forxinrange(3):TimeThat.start("X2")sleep(1)killer_loop=TrueTimeThat.stop("X2",talk=False)TimeThat.summary()if__name__=='__main__':suspicious_function()results:TimeThat -> Total:    0.90 sec, Average:    0.30 sec, Count:   3  -> X1TimeThat -> Total:    3.00 sec, Average:    1.00 sec, Count:   3  -> X2Summary optional parameters:tags:echos all timers if None else only echo given timersreset:resets all timers4) And you can use logging instead of printoutimporttimethattimethat.TALK_TO_LOG=True# Now it will print out to logging instead of console
Package: timethis
This module provides a context manager for measuring execution times:>>>fromtimethisimporttimethis>>>withtimethis('computing large sum'):...x=sum(range(10**7))...computinglargesum:0.203secondsUsage oftimethiscan be nested:>>>withtimethis('figuring things out'):...withtimethis('computing large sum'):...x=sum(range(10**7))...withtimethis('finding some primes'):...y=[2]+[iforiinrange(3,10**4)ifall(i%j!=0forjinrange(2,i//2+1))]...│computinglargesum:0.205seconds│findingsomeprimes:0.305secondsfiguringthingsout:0.510secondsIt's easy to use (for example)logginginstead ofprint:>>>importlogging>>>withtimethis('computing large sum',logging.warning):...x=sum(range(10**7))...WARNING:root:computinglargesum:0.218seconds
Package: timeti
timetiSerialize elapsed time of functions, loops and code blocks.ExperienceInstallpip install timetiUsageProfile function with decorator>>>@timeti.profiler...defultimative_question(*args,**kwargs):...sum(range(100_000))...>>>ultimative_question()Elapsedtimeof'ultimative_question'function:4msProfile loop with wrap>>>foriintimeti.profiler(range(2)):..._=sum(range(100_000))...Elapsedtimeofloopiteration0:4msElapsedtimeofloopiteration1:3msElapsedtimeofloop:8msProfile code blocks with context manager>>>withtimeti.profiler():..._=sum(range(100_000))...Elapsedtimeofblock:5msDevelopmentInstallpip install -e ".[dev]"Run lintersFormat Python code withblackpython -m black .Check types withmypypython -m mypy .Sort imports alphabetically withisortpython -m isort .Analyze Python docstring withpydocstylepython -m pydocstyle .Run testsRun testspython -m unittest discover -s testsRun doctests for clock facepython -m doctest -v timeti/clockface.py
Package: timetils
A easy to use time util library.See homepage for more info on how to use and available methods.Change Log0.0.1 (03/06/2020)Release1.0.0 (12/7/2020)Bug fix1.0.1 (12/7/2020)Import fix1.0.2 (12/7/2020)Import fix1.0.3 (12/7/2020)Test fix1.1.0 (12/7/2020)Playing around1.1.1 (12/7/2020)Month issue fix2.0.0 (5/8/2020)Formatter changedNew classes to represent delta, date, time and datetime objectsas_dict changed to as_string2.0.1 (5/8/2020)BetterDatetime class bug fix2.0.3 (5/8/2020)BetterDatetime class improvement2.0.4 (5/8/2020)Minor changes2.0.5 (5/8/2020)Docs fix
Package: timetime
TimeTimeRésuméTimeTime est une classe qui permet d’afficher le temps d’exécution de fonctions, également de les comparer entre eux. TimTime retourne le temps d’exécution total pour <loops> boucles (par défaut 10000) et le temps moyen par boucle.TimeTime est simple à utiliser. Il est basé sur les modules built-in time et re.UsageLes fonctions à comparer doivent être sans arguments.Il est fortement recommandé, pour la lisibilité des résultats de l'analyse, qu'elle ne comporte pas d'impressions écran de résultats de la fonction elle-même(si ça doit être le cas, voyez une alternative pour éviter un "print" dans l'exemple).fromtimetimeimportTimeTimedeffonction1():...deffonction2():...f1=TimeTime(fonction1)f2=TimeTime(fonction2)print(f1)print(f2)print(f1==f2)etc.TimeTime.loops=1000TimeTime.version()TimeTime.demo()etc.Exemplecet exemple vous montre également comment contourner le cas où vos fonctions de test doivent envoyer des impressions. On les renvoie dans un fichier /dev/null (nul - je crois, sous windows)importosfromtimetimeimportTimeTimeasttdeffonc1():withopen(os.devnull,'w')asf:f.write('b'+'c')a='b'+'c'deffonc2():withopen(os.devnull,'w')asf:f.write(a)f1=tt(fonc1)f2=tt(fonc2)# quelle est la fonction la plus rapide ?foriinrange(3):print("--- phase",i,"---")print(f1==f2)Commentaires à propos de l'exempleLes résultats:---phase0---fonc1()==fonc2()------------------------------------------fonc1(),10000loops.Totalruntime=0.2219841480255127Meanloop=2.219841480255127e-05------------------------------------------------------------------------------------fonc2(),10000loops.Totalruntime=0.21685266494750977Meanloop=2.1685266494750976e-05---------------------------------------------phase1---fonc1()==fonc2()------------------------------------------fonc1(),10000loops.Totalruntime=0.21837949752807617Meanloop=2.1837949752807617e-05------------------------------------------------------------------------------------fonc2(),10000loops.Totalruntime=0.216231107711792Meanloop=2.16231107711792e-05---------------------------------------------phase2---fonc1()==fonc2()------------------------------------------fonc1(),10000loops.Totalruntime=0.21810102462768555Meanloop=2.1810102462768555e-05------------------------------------------------------------------------------------fonc2(),10000loops.Totalruntime=0.21857643127441406Meanloop=2.1857643127441406e-05------------------------------------------que constate-ton ?Que l'avantage de concatener préalablement une seule fois n'est pas du tout évident sur le fait de concaténer l'équivalent de la chaineaà chaque tour de boucle.Ces comparaisons entre diverses implémentations ou diverses fonctions ne sont pas toujours aussi proches; voyeztimetime_demo.py
Package: timetool
timetool (t)timetool, ort, is a little command line utility for you to convert between different timezones and datetime
formats.It accepts a time as input, in any format, and then outputs it in many different formats and timezones at once.timetool is not meant to used in scripts, it was just created to be a better & faster alternative to commonly used web
tools likehttps://www.epochconverter.com/andhttps://www.timeanddate.com/worldclock/converter.html.Installpipinstalltimetool# Alias timetool as t. This is optional, but recommended for fast access.aliast=timetoolecho'alias t=timetool'>>~/.bashrcecho'alias t=timetool'>>~/.zshrcExamplesConvert from a unix timestamp to many other formats:$ t 2303078400
2303078400
2042-12-25T00:00:00.000+00:00     Dec 25, 2042 0:00:00 UTC
2042-12-24T16:00:00.000-08:00     Dec 24, 2042 4:00:00 PM PST
Dec 25, 2042 0:00 UTC (Dec 24 4:00p PST)(Note: all the examples on this page were ran from a computer in California, hence the automatic inclusion of Pacfic
Time ("PST" and "PDT") in all results)Get the current time in many different timezones at once:$ t now in ist,cst,cet
1640487650
2021-12-25T19:00:49.759-08:00     Dec 25, 2021 7:00:49 PM PST
2021-12-26T08:30:49.759+05:30     Dec 26, 2021 8:30:49 AM IST
2021-12-25T21:00:49.759-06:00     Dec 25, 2021 9:00:49 PM CST
2021-12-26T04:00:49.759+01:00     Dec 26, 2021 4:00:49 CET
2021-12-26T03:00:49.759+00:00     Dec 26, 2021 3:00:49 UTC
Dec 25, 2021 7:00:49 PM PST (Dec 26 8:30:49a IST / Dec 25 9:00:49p CST / Dec 26 4:00:49 CET / Dec 26 3:00:49 UTC)Parse in a time string from an arbitrary timezone:$ t October 10th 2023 1:30 am Australia/Sydney
1696861800
2023-10-10T01:30:00.000+11:00     Oct 10, 2023 1:30:00 AM AEDT
2023-10-09T07:30:00.000-07:00     Oct 09, 2023 7:30:00 AM PDT
2023-10-09T14:30:00.000+00:00     Oct 09, 2023 14:30:00 UTC
Oct 10, 2023 1:30 AM AEDT (Oct 09 7:30a PDT / Oct 09 14:30 UTC)Display what time it was 7 hours ago:$ t -7h
1640463095
2021-12-25T12:11:34.903-08:00     Dec 25, 2021 12:11:34 PM PST
2021-12-25T20:11:34.903+00:00     Dec 25, 2021 20:11:34 UTC
Dec 25, 2021 12:11:34 PM PST (20:11:34 UTC)UsageUsage: timetool [-h] [TIME] [in CONVERSION_TIMEZONE] [-o][-e]

Examples:
  timetool
  timetool 1621108906
  timetool 1621108906000
  timetool 1621108906.000
  timetool May 15, 2021 01:01:46 PM PDT
  timetool 2021 May 15th 1:01 PM GMT-0700
  timetool 2021-05-15T20:01:46.000+00:00
  timetool 5pm PDT in CEST
  timetool now in Asia/Hong_Kong
  timetool now in IST,EDT,CEST,Asia/Tokyo
  timetool - 7d
  timetool + 1.5h
  timetool + 1mo
  timetool + 01:30:00

Help & support:
  https://github.com/personalcomputer/timetool/issuesCreditAll the smarts in timetool are thanks todateutil,pytz,babel, theCLDRand thetz database.
Package: timetools
[![Stories in Ready](https://badge.waffle.io/blueskyjunkie/timeTools.png?label=ready&title=Ready)](https://waffle.io/blueskyjunkie/timeTools)
[![Build Status](https://travis-ci.org/blueskyjunkie/timeTools.svg?branch=master)](https://travis-ci.org/blueskyjunkie/timeTools)
[![Coverage Status](https://coveralls.io/repos/blueskyjunkie/timeTools/badge.svg?branch=master&service=github)](https://coveralls.io/github/blueskyjunkie/timeTools?branch=master)# timeTools
[![DOI](https://zenodo.org/badge/10532/blueskyjunkie/timeTools.svg)](http://dx.doi.org/10.5281/zenodo.15797)Python utilities relating to synchronization analysis and visualization such as time error, MTIE, TDEV and others.PDV generation using methods such as ITU-T G.8263 are also included.## License
GPL v3. See [LICENSE](LICENSE) for the details.## DependenciesPython 3.4 (Python 2.7 may work but has not been tested)numpy/scipymatplotlibIt is highly recommended to use the [Anaconda distribution of Python](http://continuum.io/downloads“Anaconda distribution of Python”) because to date all the necessary dependencies are included in the distribution. No additional installation necessary.Development to date was done using Windows, but there is no particular reason why the code should not work on another OS such as Linux or OSX provided the appropriate Python distribution and libraries are installed.
Package: time-to-pray
Time to PrayTime to Prayis a desktop utility designed to keep you informed about Islamic prayer times. Directly from your system tray, view a real-time countdown to the next prayer. The application proactively retrieves the monthly prayer schedule for your chosen location and caches the data for instantaneous reference. Stay on track with your prayer commitments, knowing the exact time remaining until the next call.FeaturesReal-time countdown to the next prayer, accessible from the system tray.Proactively fetches the monthly prayer schedule based on your configured location.Easy-to-access "Settings" dialog for configuring your preferred city and selecting your desired prayer times calculation method.Utilizes PyQt6 for a seamless user interface experience.Setup & InstallationUsing pip (Recommended)pipinstalltime-to-prayAfter installation, you can run the application with:time-to-prayManual Installation1.Clone the Repositorygitclonehttps://github.com/omerbustun/time-to-pray.gitcdtime-to-pray2.Install DependenciesMake sure you have Python installed. Then, install the required packages:pipinstall-rrequirements.txt3.RunTo run the application:pythonsrc/main.pyUsageOnce launched, an icon will appear in your system tray. Right-click the icon to access the settings or hover to view the detailed countdown.ConfigurationThe application uses thesettings.jsonfile for configuration. You can use the "Settings" dialog in the application or manually edit this file (not recommended). The configuration parameters are:city: The city you are located in.country: The country name or code (e.g., "tr" for Turkey).latitude&longitude: The geographical coordinates of your location. The application automatically fetches these from the API based on the specified city and country.method: The method used to calculate prayer times.AcknowledgementsThis project utilizes theAladhan APIto fetch prayer times. We are grateful toAladhan.comfor providing this valuable service to the community.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseThis project is licensed under the GNU General Public License, version 3 (GPLv3). See theLICENSEfile for the full license text.
Package: timetra
Timetrais a time tracker application withCLI,cursesandwebfrontends.At the moment it’s technically a set ofHamsterfrontends.InstallationNoteTODODocumentationNoteTODOAuthorOriginally written by Andrey Mikhaylenko since 2010.Please feel free to submit patches, report bugs or request features:http://bitbucket.org/neithere/timetra/issues/LicensingTimetra is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.Timetra is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with Timetra.  If not, see <http://gnu.org/licenses/>.
Package: timetracker
A basic Python command line time tracker, inspired by a post on Hacker News by James Britt (https://news.ycombinator.com/item?id=6897425).#BasicsTo install:`pip install timetracker`To run:`timetracker`It's recommended that you alias it to `@`, for easier use:`alias @=timetracker`#Using timetrackerJust invoke timetracker followed with a string of whatever you're working on:`@ repaired the flux capacitor`If invoked without arguments, it will prompt you to type a note.timetracker will save your note, timestamped, into a .log file stored as follows:`$ROOT/YYYY/MM/dd.log`By default, $ROOT will be a `timetracker` directory in your home folder.You can change that by editing the config file `~/.config/timetracker/timetracker.conf`; it look as follows:````root = '~/location/to/other/folder'time_format = '%H:%M'``````root` is where the logs will be stored; `time_format` indicates how dates will be structured in the log files.#TipsYou can integrate it in your workflow in a nice way; for example, by writing a script that will invoke it every hour, or every time you do a `git commit`, etc.A good way to not forget about it is to have your terminal greeting remind you to use it!The program is fairly smart with appending to existing files etc., so you can configure it to write to your Dropbox folder (or whatever other data backup system you use) - in that way, you can keep track of your notes across computers :)
Package: time-tracker
time-trackerTime tracker cliUsage:$time-tracker[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:logtrack: Run depending on modett logUsage:$time-trackerlog[OPTIONS]Options:-l, --last: Open last log file  [default: False]-o, --output: Return log file content to terminal  [default: False]--help: Show this message and exit.tt trackRun depending on modeUsage:$tttrack[OPTIONS]Options:-w, --workDuration INTEGER: Set work time (minutes)  [default: 25]-b, --breakDuration INTEGER: Set break time (minutes)  [default: 5]-B, --bigBreakDuration INTEGER: Set break time (minutes)  [default: 30]-m, --mode [manual|pomodoro]: Set pomodoro mode. This will change the flow of work to 4 work sessions with small breaks and finish with a big Break  [default: pomodoro]-p, --prompt: Set if it should prompt to go for next session  [default: True]--help: Show this message and exit.
Package: time-tracker-cli
It's a Python script that allows you to track the time spent working in your projects or tasks.
At the moment, this script doesn't have external dependencies so it's ready to run.Installation:$ pip install time-tracker-cliHow to use:Help menu:$ time-tracker-cli -husage: time-tracker-cli [-h] [-p PATH] [-r] project

positional arguments:
  project               project name

optional arguments:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  Path to the JSON data file
  -r, --report          Calculate and display a report of the time spent in the projectStart/end working session:$ time-tracker-cli -p "~/Documents/my_project_time_tracker_data.json" "my_project"The file or project within the file will be created automatically if it doesn't exist.BehaviorThe script saves "timestamps" for the working sessions in a JSON file with the following structure:{
   "projects": [
       {
           "project_name": "a_project_name",
           "sessions": [
              {
                  "start": "dd/mm/yy - H:M:S" ,
                  "end": "dd/mm/yy - H:M:S"
              }
           ]
       }
   ]
}Unfinished sessions will have anullvalue in theendfield.ReportTo calculate the time spent working in a project, run:$ time-tracker-cli -r -p "~/Documents/my_project_time_tracker_data.json" "my_project" 

Time spent working on project: 'my_project'
1 day, 7:52:19
Ongoing sessions: True
Time spent in ongoing session: 0:04:10.492647TODO:Add more functions to estimate the time spent working in a project (total, mean per day).Add an argument to request a "report" of the time spent working in a project.Add more documentation.Add a simple GUI (optional).Define behavior for unfinished sessions.GUI versionCheck outTime Tracker
Package: time-tracker-plus
Time Tracker Plusttp, a time tracker inspired byutt.ttp is a python time tracker where you tell the time
tracker what you've doneafteryou've already done it. Like writing a git
commit message.start tracking time withttp start, then when you've finished a task add it
withttp add updated my resume. You can edit your log withttp edit.ttp project someprojectchanges what project you're logging to.ttp reportshows a report of your current tasks. Help is wanted for this, as
we need more template options. Uses jinja2 for templating.Instalationpip install pipx --user
pipx install time-tracker-plusOptionally enable bash's tab-completion by adding this to your~/.bashrcfile.eval "$(_TTP_COMPLETE=source ttp)"Example reportYou can write new reports using jinja2. Personally I use this to generate
invoices for clients, directly from my hours.# default## Monday, January 20th, 2020 to Sunday, January 26th, 2020*1.00h worked on time tracker*4.00h worked on time tracker2*22.00h worked on time tracker3*1.88h worked on time tracker overnight

28.88 hours worked total
Package: timetrack-odoo
TIMETRACK ODOO (and JIRA Worklogs and more)Timetrack is a synchronisation tool for work hours. It can read, write and
update different data bases.Odoo Timesheetvia REST APIJira Issue Worklogsvia REST APIzeit.txt timetrack notes as a local fileIt was originally used to push local timetrack notes to Odoo timesheet tracking.
If all work notes (in the description field) have a symbolic prefix then the
data can also be updated later - for every day the tool assumes that the
symbolic prefix is used only once. Here's a mapping definition in two lines
followed by two lines for the work notes.>> app1 [PRJ Contract 2023]
>> app1 "App1 Development"
so **** WEEK 08.01.-15.01.
mo 5:00 app1 extended frontendThis can be pushed to Odoo with./zeit2odoo.py -f zeit.txt update. It defaults
to dryrun and the real write operations are done when adding-y. For Jira you
need to to configure a ticket number>> app1 BUG-1234so that the tool knows
where to add worklog entries when using./zeit2jira.py -f zeit.txt update.Surley, it only works when the basic setup was done where you have configured
the urls and login credentials. However for the biggest part you need to setup
the mapping of different work topics to their Odoo and Jira accounts. If you
do already have data in Odoo then you can get azeitsummary from it for a
quick start with./odoo2data.py lastmonth zeit. Save it with-O zeit.txt.
Package: timetra.diary
Timetrais a CLI time tracker application with a YAML backend.It also has a simplecursesfrontend and used to have awebone (which
proved useless compared to CLI).InitiallyTimetratechnically was a set ofHamsterfrontends.
Now the backends are pluggable (the Hamster one was dropped completely).InstallationNoteTODODocumentationNoteTODOAuthorOriginally written by Andrey Mikhaylenko since 2010.Please feel free to submit patches, report bugs or request features:https://github.com/neithere/timetra/issues/LicensingTimetra is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.Timetra is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with Timetra.  If not, see <http://gnu.org/licenses/>.
Package: timetra.pim
~~~~~~~~~~~Timetra PIM~~~~~~~~~~~A Personal Information Tracker with YAML backend + CLI frontend.Shares ideology with `Timetra Diary`_."Timetra" is an umbrella project for a set of PIM-related tools... _Timetra Diary:: http://github.com/neithere/timetra.diaryInstallation------------.. note:: TODODocumentation-------------.. note:: TODOAuthor------Originally written by Andrey Mikhaylenko since 2012.Please feel free to submit patches, report bugs or request features:https://github.com/neithere/timetra/issues/Licensing---------Timetra is free software: you can redistribute it and/or modifyit under the terms of the GNU Lesser General Public License as publishedby the Free Software Foundation, either version 3 of the License, or(at your option) any later version.Timetra is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public Licensealong with Timetra.  If not, see <http://gnu.org/licenses/>.
Package: timetravel
[![BuildStatus](https://travis-ci.org/bmweiner/timetravel.svg?branch=master)](https://travis-ci.org/bmweiner/timetravel)# timetravelA simple utility for bulk shifting all event dates in your calendar.Shift to a specific date in reference to the first or last event in the calendar
or by a certain number of days either forward or backward .from timetravel import machine
machine(‘cal.ics’, shift=’20161108’, event=’first’)machinewill output a new calendar next to the source file appended with
today’s date.For a summary, just enablereport.machine(‘cal.ics’, report=True)(‘Events Modified’, ‘:’, 3)
(‘Days Traveled’, ‘:’, 7)
(‘Origination’, ‘:’, ‘20161101’)
(‘Destination’, ‘:’, ‘20161108’)See the example
[jupyter notebook](https://github.com/bmweiner/timetravel/blob/master/example/example.ipynb)
or parse
[docstring](https://github.com/bmweiner/timetravel/blob/master/timetravel/parse.py#L10)
for more info.