Saravanan666/pypi-org huggingface dataset:
Package: timeflow
simple CLI time logger, inspired bygtimelogDescriptiontimeflowis a simple CLI time logger, used for logging your activities and
featuring simple statistics and reporting capabilitiestimeflowcan be called using eithertfortimeflowcommandsInstallpip3 install timeflowWritten inpython3. Best user experience withpython3.Tutorialto start working (message content is not important)
>>> tf log "Arrived."

to save a timestamp and your log message,
when finished doing a task write
>>> tf log "Timeflow: create README.rst"

here 'Timeflow' is a 'project' you were working on and 'create README.rst'
is a log of what you were exactly doing this time. Both project and log
must be separated by a colon and space (``: ``).

some tasks are not (payable) work, mark them with two asterisks (**)
>>> tf log "Slack: chatting in the office ** "

you can have 'projects' without any explanations
>>> tf log "Lunch ** "
>>> tf log "Daily Scrum"

if you made a mistake, or missed to log of your activities
you can edit like this
>>> tf edit

this way timeflow will try to run your editor set in $EDITOR
or you can try
>>> tf edit -e vim

to open log file in vim

to check how much you've worked today
>>> tf stats

or to make a report
>>> tf stats --report

you can pass date ranges for stats command, e.g.
>>> tf stats --from 2015-01-01 --to 2015-01-31
>>> tf stats --from 2015-01-01 --to 2015-01-31 --reportCommands & optionsloglog LOG_TEXT- create new log entry to timeflow’s log file.editopens timeflow’s log file, by default trying to open an editor used in$EDITORenvironment variable.-eEDITOR- passes editor to be used in opening log file.statsshows today’s work and slack time.-y,--yesterday- shows yesterday’s work and slack time.-dDATE,--dayDATE- shows arbitrary day’s work and slack time.--weekWEEK_NUMBER- shows arbitrary week’s work and slack time.--this-week- shows this week’s work and slack time.--last-week- shows last week’s work and slack time.--monthMONTH_NUMBER- shows arbitrary month’s work and slack time.--this-month- shows this month’s work and slack time.--last-month- shows last month’s work and slack time.-fDATE,--fromDATE- shows work and slack time, from DATE until today, if--tooption is not used.-tDATE,--toDATE- shows work and slack time, up to DATE. Must be used with--fromoption.--report- shows report for today, or some other time range if specified using available options.--report-as-gtimelog- same as--report, but the output is like ingtimelog
Package: timeflux
TimefluxTimeflux is a free and open-source framework for acquiring and processing biosignals in real-time.Use it to bootstrap your research, build brain-computer interfaces,
closed-loop biofeedback applications, interactive installations, and
more. Written in Python, it works on Linux, MacOS and Windows. Made for
researchers and hackers alike.InstallationYou can easily install the latest stable release from PyPI. We higlhy recommend that you use an environment management system such asCondato keep everything tidy.$ conda create --name timeflux python=3.10 pytables
$ conda activate timeflux
$ pip install timefluxGetting startedRead the documentation.
Package: timeflux-dsp
This plugin provides timeflux nodes and meta-nodes for real time digital signal processing of time series.InstallationFirst, make sure thatTimefluxis installed.You can then install this plugin in thetimefluxenvironment:$ conda activate timeflux
$ pip install timeflux_dspModulesfilters: contains digital filters nodes (FIR, IIR, etc.) and resampling nodes.spectral: contains nodes for spectral analysis.peaks: contains nodes to detect peaks on 1D data, and estimates their characteristics.
Package: timeflux-openbci
This plugin provides a unified interface for allOpenBCIboards.InstallationFirst, make sure thatTimefluxis installed.You can then install this plugin in thetimefluxenvironment:$ conda activate timeflux
$ pip install timeflux_openbciTroubleshootingIf the data looks choppy, it is very likely because of a latency issue with the FTDI driver. Hopefully, there is a fix both forWindowsandMacOS.
Package: timeflux-plux
This plugin provides a driver to connect toPluxdevices.When connecting to the device for the first time, use the following pairing code:123.InstallationFirst, make sure thatTimefluxis installed.You can then install this plugin in thetimefluxenvironment:$ conda activate timeflux
$ pip install timeflux_pluxDocumentationThe API documentation and examples can be foundhere.
Package: timeflux-rasr
This plugin performs real-time artifact correction on EEG data.InstallationFirst, make sure thatTimefluxis installed.You can then install this plugin in thetimefluxenvironment:$ conda activate timeflux
$ pip install timeflux_rasrIf you encounter issues withpyRiemann, try installing the latest version directly from the repository:$ pip install git+https://github.com/pyRiemann/pyRiemannWitness the magic!$ timeflux -d examples/replay.yamlScreenshotReferencesBlum-JacobsenpaperASR EEGLAB implementation (code,documentation)rASRMatlab implementation
Package: timeflux-ui
This plugin provides a framework to develop web applications that can interface with Timeflux. A monitoring web interface is bundled. It is not feature-complete yet, but it already allows you to visualize your data streams in real-time, in your browser, and to send events. Other examples include a SSVEP scheduler and a P300 speller. Both can be found in theappsdirectory.InstallationFirst, make sure thatTimefluxis installed.You can then install this plugin in thetimefluxenvironment:$ conda activate timeflux
$ pip install timeflux_uiScreenshot
Package: timeflux-upsidedownlabs
This plugin allows you to stream data fromUpside Down LabsBioAmp. Two modes are proposed: through the audio interface and through the USB interface.InstallationFirst, make sure thatTimefluxis installed. You can then install this plugin in thetimefluxenvironment:$ conda activate timeflux
$ pip install timeflux_upsidedownlabsAudio interfaceLook at thisexample graph.
You can run it like this:$ conda activate timeflux
$ timeflux -d examples/audio.yamlThe signal can be visualizedhere.USB interfaceFirst, you must install the firmware on the board.Download theArduino IDEon your computer, and then:Start the Arduino IDESelect the serial port under “Tools”Select your Arduino board under “Tools”Upload the standard firmata sketch to your Arduino with:File -> Examples -> Firmata -> Standard FirmataYou’re all set!Withthis example graph, you can autodetect all the available analog ports and start streaming data.You can run this graph like this:$ conda activate timeflux
$ timeflux -d examples/uart.yamlFor an example of filtering and renaming the channels, seethis graph.
Package: timefmt
Time Formatting ToolsProvides methods to manipulate and format various time-based objects into human-readable strings.Why?Thedatetimestandard package in Python is very useful for working with times programmatically, but it only provides basic text formatting.
Additionally, other packages which add time formatting methods likependulumuse non-standard datetime-like objects, and they have a lot of extra features I didn't need.While it's not too hard to define some helper functions to format time into human-readable text, it becomes annoying when you have to copy the functions into every project you make with time formatting.timefmtsolves this by providing lightweight helper functions written entirely in Python that handle formatting and manipulating time-based objects.
The code is pre-tested and easy to install withpip, meaning you can get up and going with nicely formatted time strings without any hassle.Usageimportdatetimeimporttimefmt# Gives access to the auto() function (recommended)importtimefmt.dt# Gives access to datetime-specific functionsimporttimefmt.td# Gives access to timedelta-specific functionsnow=datetime.datetime.now()print("Now (short):",timefmt.dt.short(now))print("Now (long):",timefmt.dt.long(now))since_epoch=datetime.timedelta(seconds=now.timestamp())print("Time since Jan. 1st, 1970 (short):",timefmt.td.short(since_epoch))print("Time since Jan. 1st, 1970 (long):",timefmt.td.long(since_epoch))# You can also automatically detect which type it is, like soimportrandomrandom_choice=random.choice([now,since_epoch])print("Unknown time format value (short):",timefmt.auto(random_choice))print("Unknown time format value (long):",timefmt.auto(random_choice,long=True))This prints the following:Now (short): 11:12:12 AM
Now (long): 11:12:12 AM MST
Time since Jan. 1st, 1970 (short): 2817W 2D 18:12:12
Time since Jan. 1st, 1970 (long): 2817 weeks, 2 days, 18 hours, 12 minutes, and 12 seconds
Unknown time format value (short): 11:12:12 AM
Unknown time format value (long): 11:12:12 AM MSTFull Documentation
Package: timegrep
timegrep.py by Dennis Williamson 20100113in response to http://serverfault.com/questions/101744/fast-extraction-of-a-time-range-from-syslog-logfileImprovements by Fabrice FACORAT 20110914Perform a binary search through a log file to find a range of timesand print the corresponding linesSupported Log Formats:- W3C Extended: %Y-%m-%d %H:%M:%S- Syslog: %b %d %H:%M:%S- NSCA Common/Apache: host rfc931 username [%d/%b/%Y:%H:%M:%S +TZ]- Bind8: %d-%b-%Y %H:%M:%S.- Nginx Error logs: %Y/%m/%d %H:%M:%S.Tested with Python 2.6TODO: Make sure that it works if the seek falls in the middle ofthe first or last lineTODO: Make sure it's not blind to a line where the sync read fallsexactly at the beginning of the line being searched for andthen gets skipped by the second readDONE: Support more log time formatTODO: Support case when log files may not be properly sorted ( remove superfluous lines )DONE: Support on the fly log format definition with --log-regexp
Package: timeguardian
TimeGuardianTimeGuardian is a Python package designed for measuring and logging the execution time and memory usage of functions. This package is particularly useful for performance monitoring and optimization in Python applications.FeaturesDecorators for timing functions and logging memory usage.Customizable logging for execution time and memory usage with rich formatting.Conditional logging based on execution time and memory usage thresholds.InstallationInstall TimeGuardian directly from pip:pipinstalltimeguardianOr, install from the source code:cdpath/to/TimeGuardian
pipinstall.UsageImportTimeGuardianfrom thetimeguardianpackage and use it as a decorator on your functions to measure their execution time and memory usage.Basic UsagefromtimeguardianimportTimeGuardian# To measure execution time and/or memory usage@TimeGuardian.measuredefmy_function():# function implementation# Custom name logging@TimeGuardian.measure(name="CustomName")defanother_function():# function implementation# Custom logging with name, time and memory@TimeGuardian.measure(name="CustomName",elapsed=True,memory=True)#(elapsed in ms, memory in bytes)defanother_function():# function implementationAdvanced UsageMonitor performance with conditional logging:fromtimeguardianimportTimeGuardian# Monitor and log only if execution time or memory usage exceeds the specified limits (time in ms, memory in bytes)@TimeGuardian.monitor(elapsed=200,memory=1024)defmonitored_function():# function implementationSetting Global Units for Time and Memory MeasurementThe TimeGuardian package allows you to set global units for time and memory measurements. This feature enables you to customize how the execution time and memory usage are reported.UsageSet the Units: UseTimeGuardian.set_time_unit(unit)andTimeGuardian.set_memory_unit(unit)to set the global units for time and memory measurement. Theunitparameter should be a string indicating the desired unit (e.g., 'ms' for milliseconds, 's' for seconds, 'bytes' for bytes, 'KB' for kilobytes, 'MB' for megabytes).Decorate Functions: Apply the@TimeGuardian.measuredecorator to your functions. This decorator will use the globally set units to measure and log the execution time and memory usage.ExamplefromdecoratorsimportTimeGuardian# Set the units for time and memory measurementsTimeGuardian.set_time_unit('ms')# Set time unit to millisecondsTimeGuardian.set_memory_unit('MB')# Set memory unit to megabytes@TimeGuardian.measure(elapsed=True,memory=True,name="Sample Function")defsample_function():# Function implementation...# Call the decorated functionsample_function()In this example,sample_functionis measured and logged in milliseconds for time and megabytes for memory usage.ContributingContributions to TimeGuardian are welcome!LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: timeguard-supplymaster
timeguard-supplymaster-pythonThis Python module will provides an open-source implementation of the client API used by the Timeguard's Supplymaster application. This is typically used to controlTimeguard's FSTWIFI Wi-Fi Controlled Fused SpurThis implementation is based on myinvestigation of the APIIt is currently in the early stages of development, contributions are always welcome but it will be a fast moving targetLegal DisclaimerThis software is un-official and is not endorsed or associated with Timeguard Limited in any way shape or form.This information used has been gathered legally using the Supplymaster Android application andCharles Proxy.This software is being developed to aid my own personal efforts to automate scheduling of my FSTWIFI device forOctopus AgileThe software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the softwares or the use or mis-used or other dealings in the software.SetupClone the repopipinstalltimeguard-supplymasterCreate ~/.timeguard.yaml---
username:your-username
password:your-password
use_cache:False
...UsageList all devices, programs and time slots.fromtimeguard_supplymasterimportClientclient=Client()client.refresh_devices()For more examples see the examples folder.ContributePlease do feel free to fork this module it enhance it for the benefit of everyone
Package: timehash
Abouttimehash is an algorithm (with multiple reference implementations) for
calculating variable precision sliding windows of time. When performing
aggregations and correlations on large-scale data sets, the ability to
convert precise time values into ‘malleable intervals’ allows for many
novel analytics.Usingsliding windows of
timeis a common practice in data analysis but prior to the timehash
algorithm it was more of an art than a science.Featuresconvert epoch miliseconds into an interval of time, depicted by an
ASCII character ‘hash’ (a ‘timehash’)timehash values are well suited to referencing time intervals in
key-value stores (e.g. Hbase, Acculumo, Redis)The creation of a compound key of space and time (e.g.
geohash_timehash) is a powerful primitive for understanding
geotemporal patternsImplementationspython
timehash- a reference implementation in pure pythonperl
timehash- a reference implementation in perljava
timehash- a reference implementation in javajavascript
time-hash- port of reference implementsgolang
timehash- a reference implementation in GoUsageExample of calculating a timehash value in python:importtimehashimporttimerightnow=time.time()rightnow60=rightnow+60.0rightnow_hash=timehash.encode(rightnow,precision=10)rightnow60_hash=timehash.encode(rightnow60,precision=10)print'timehash of right now:%s'%rightnow_hashprint'timehash of now +60s:%s'%rightnow60_hash%timehashofrightnow:ae0f0ba1fc%timehashofnow+60s:ae0f0baa1cLicenseModified BSD
LicenseContactTimeHash Guru:AbeUsherPython Packager:Kevin Dwyer / @phearedGolang implementation:Justin Shelton / @kwonstantJavascript implementation:Eric XandersonRust implementation:Kevin Dwyer / @phearedC impelmentationSam MasonC# impelmentationSam Mason
Package: time-helper
Time HelperSimple helper library to handle different time related tasks in python. This ties into pandas and numpy as well as pytz.The general idea is to have a bunch of one-stop functions that allow you to easily handle datetime related tasks.Getting Startedpipinstalltime-helperThen in python code:fromtime_helperimportmake_awaremake_aware("2022-03-10")# > datetime.datetime(2022, 3, 10, 0, 0, tzinfo=backports.zoneinfo.ZoneInfo(key='CET'))Library LogicThe library is build to extend around various datetime objects (such as python internal datetime, date, as well as np.datetime).
It provides a bunch of helper functions that are grouped into various categories:ConvertThis gets datetimes in and out of the library. This includes a range of functions for converting strings and different datetime types into canonical py-datetime types:importtime_helperasth# convert a unix datetimedt=th.unix_to_datetime(1649491287)dt=th.any_to_datetime(1649491287)# convert string to datetimedt=th.any_to_datetime("2022-03-19")dt=th.any_to_datetime("2022-03-19 20:15")# convert a date to datetimefromdatetimeimportdatedt=th.any_to_datetime(date(2022,3,10))It also allows to easily switch between aware and unaware datetime:dt=th.any_to_datetime("2022-03-10")aware_dt=th.make_aware(dt)aware_dt=th.make_aware(dt,"UTC")unaware_dt=th.make_unaware(dt)unaware_dt=th.make_unaware(dt,"UTC")Note that formake_unawareyou can still provide a datetime. In that case the datetime is first converted into the regarding timezone before the
timezone information is removed from the object. You can also explicitly convert the timezone withlocalize_datetime.Operations & RangesThe library also defines a range of operations to make working with timezones easier.
These include handling modifications of a single datetime:day=th.round_time(dt,"D")# results in: datetime.datetime(2022, 3, 10, 0, 0)day=th.round_time(dt,"D",max_out=True)# results in: datetime.datetime(2022, 3, 10, 23, 59, 59, 999999)has_tz=th.has_timezone(aware_dt)has_tz=th.has_timezone(unaware_dt)# compute a diff (between aware and unaware datetimes)diff=th.time_diff(th.round_time(aware_dt,"M",max_out=True),unaware_dt)# results in: datetime.timedelta(seconds=3659, microseconds=999999)It also supports a bunch of range operations:# converts the time into a interval (float) value for the defined range# default idt=datetime(2022,3,12,12,0)pos=th.time_to_interval(dt,offset=0)# results in: 0.0 (as it is noon)pos=th.time_to_interval(dt,offset=0,zero_center=False)# results in: 0.5 (as half day is gone and center is no longer zeroed)# create interval tuplesivs=th.create_intervals(dt,dt+timedelta(days=2),interval=1)ivs=th.create_intervals(dt,dt+timedelta(days=2),interval=timedelta(minutes=30))WrapperThis library also provides a wrapper class to make all functions more accessible and first class citizens of the system.Note:This part of the library is still under construction.NotesThere is still a lot to improve on this library, please feel free to create PRs or contact me if you wish to contribute!
Package: timeify
TimeifyConvert Millisecond to human readable formatScreenshotInstall$ pip install timeifyUsageimporttimeifyastimeprint(time.humanize(180000))#=> (2, 2, 0, 0) # (days, hours, minutes, seconds)print(time.humanize(158692)[2])#=> 4 # (minutes)Get HelpThere are few ways to get help:Pleasepost questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.For bug reports and feature requests, open issues.For direct and quick help, you canemail me.How to contributeHave an idea? Found a bug? Seehow to contribute.Thanks!LicenseMIT
Package: timeing
TimeIng库-定时运行程序库import timeing1.指定年月日时分秒时间运行指定函数timeing.timeing.timed(function=函数,年,月,日,时,分,秒,data=函数需要参数(可选))2.指定hour时-运行程序timeing.timeing.timed(function=函数,时,data=函数需要参数(可选))3.指定minute分钟-运行程序timeing.timeing.timed(function=函数,分,data=函数需要参数(可选))
Package: time-int
time-intInteger subclass for number of seconds since the epoch in UTCThe IdeaUNIX has a venerable tradition of representing time as seconds since the
start of 1970. This has its limitations, but it is sometimes desirably
simple. This package sub-classes int to give a little handy functionality
to this simple approach.More robust resourcesFor uses beyond this rather specific functionality, the standard python
distribution includes powerful time related packages such asdatetime,timeandcalendar. Also other packages installable time related
packages such aspytzandtimeutil.Important Limitations of TimeInt objects.Values are always treated as relative to UTC.Values are rounded down to the second.Supported range starts at Jan 1, 1970 (UTC): 0Supported range ends at Jan 1, 3000 (UTC): 32,503,680,000The supported range might need to be different on other systems, have only tested on windows.This package is not far enough along in development to be safe from errors or major feature changes.Quick Examplefromtime_intimportTimeIntstart_time=TimeInt.utcnow()some_slow_operation()end_time=TimeInt.utcnow()print(f"Operation started at{start_time.get_pretty()}")print(f"Operation ended  at{end_time.get_pretty()}")print(f"Operation took{end_time-start_time}seconds")The trunc_<unit> MethodsSome trunc_<unit> methods are available for rounding down times to the
year, month, week, day, hour, or minute. One can also round down to units based
on some number of these units. For example to round a time int to the fifteen
minute period it falls in:fromtime_intimportTimeIntfromdatetimeimportdatetimedt=datetime(year=2001,month=5,day=16,hour=10,minute=53)time=TimeInt.from_datetime(dt)quarter_hour_time=time.trunc_minute(num=15)Thequater_hour_timewill round down 10:53am to 10:45am.
Note that the 15 minute periods rounded to are based on when the hour started, as
one might intuitively suspect. For numbers of hours thetrunc_daymethod is based
on start of the day. Such that if you round down to units of 6 hours, you will round
down to ether midnight, 6am, noon, or 6pm. Weeks do not have this grouping feature because
there is no obvious place I can see to start counting groups of weeks from. For
days they are based on start of month. For months on start of year, and for years
on a fictional year 0 (which technically does not exist). Sometimes there will be
oddly sized groups with less than the number of units, for example if you choose to
round to units of 7 hours, you will get either midnight, 7am, 2pm, or 9pm. With 9pm
to midnight only being the left over 3 hours. When the time unit is groups of 2 or
more days, this is bound to happen due to the way months vary from 28 to 31 days.trunc methodThere is a generictruncmethod that wraps all thetrunc_<unit>methods so
one can specify the basic time unit as an argument. For example to find the start
of the start of the current quarter year in UTC:fromtime_intimportTimeInt,TimeTruncUnitcurrent_time=TimeInt.utcnow()start_of_quarter=current_time.trunc(TimeTruncUnit.MONTH,num=3)Of course in this example one would probably just usetrunc_month(num=3)which
does the same thing.