Saravanan666/pypi-org huggingface dataset:
Package: timeslicer
Time SlicerA Python package for creating timeslice images from time lapses.Contains a module for importing the time slice function into other Python projects and a main
script for creating a timeslice from the terminal.Usagepip install timeslicer==1.1.1Create Timeslice from terminal:python3 -m timeslicerYou will then be prompted by the terminal to enter information necessary to create tome slice.Sample Output ImagesStandard TimesliceRandomized Timeslice
Package: timeslime
⌚ timeslime⌚ This is timeslime! Have fun tracking your time ⌚Getting startedInstall python and pip and execute the followingpipinstalltimeslime🚀 Start your timetimeslimestart🛑 Stop your timetimeslimestop🔧 Configure your weekly working hours (e.g for 40 hours per week)timeslimeconfig--weekly-working-hours=40# Get more configuration options with the following.timeslimeconfig--help📊 Get reporttimeslimereport🤝 Synchronize your time and configurationtimeslimesync💡 Get helptimeslime--helpContributegitclonehttps://gitlab.com/lookslikematrix/timeslime.gitcdtimeslime
pipenvinstall--dev
pipenvshell
pytesttests
pipinstall-e.
timeslime--help
Package: timeslime-rpi
timeslime-rpiWithtimeslime-rpiyou have the possibility to control yourtimeslimeInstallInstalltimeslime-rpisudoaptinstall-ylibdbus-1-devlibglib2.0-dev
pip3install--upgradetimeslime-rpiWire everythingRuntimeslime-rpitimeslimeinit--weekly_hours40timeslime-rpiAdd it to your autostartcrontab-e# insert at the end@reboot/home/pi/.local/bin/timeslime-rpiUpdate1.1 to 1.2timeslime was updated to version 1.4 so you have to update the timeslime databasetimeslimeupdate
Package: timeslot
timeslotClass for working with time slots that have an arbitrary start and end.Completes the Python datetime module: datetime (a time), timedelta (a duration), timezone (an offset),timeslot(a range/interval).Supports operations such as: overlaps, intersects, contains, intersection, adjacent, gap, union.Initially developed as part ofaw-core, and inspired by asimilar library for .NET.You might also be interested inpandas.Interval.Usagefromdatetimeimportdatetime,timedeltafromtimeslotimportTimeslotnow=datetime.now()slot=Timeslot(now,now+timedelta(hours=24)assertslot.duration==timedelta(hours=24)slot_large=Timeslot(now,now+timedelta(hours=24)slot_small=Timeslot(now,now+timedelta(hours=1))# The events definitely intersectassertslot_large.intersects(slot_small)# The larger even contains the smaller!assertslot_large.contains(slot_small)assertslot_smallinslot_large# You can also check if a datetime is within the slotassertslot_large.contains(now)# The union of a slot and a contained slot is equal to the larger slotassertslot_large==slot_large.union(slot_small)# Intersection# TODO# Gap# TODO# Adjacent# TODOSynonymstimerange (the name was already taken on PyPI)timeperiod (already taken on PyPI)time interval
Package: timespan
timespanUtilities for working with popular timespan formats..Net TimespansFunctions are provided for converting between .NET 7.0 TimeSpan objects
(with format specifiers) and Python'sdatetime.timedeltaobjects.timespan.from_string(str) -> timedeltaConverts a TimeSpan string in the current locale to adatetime.timedeltaobject, e.g.>>> import timespan
>>> timespan.c(3, 17, 25, 30, 500)
'3.17:25:30.5000000'
>>> timespan.from_string('3.17:25:30.5000000')
datetime.timedelta(days=3, seconds=62730, microseconds=500000)Parameterstimespan_string: TimeSpan string of any format and locale.Return ValueA timedelta object.timespan.to_string(specifier: str, *args: tuple) -> strConverts date\time information (variable-length tuple) to a TimeSpan
string in the current locale.Parametersspecifier: format specifier. Options are 'c', 'g' and 'G'.args: variable-length tuple (size 1, 3, 4 or 5) specifying
components of date and time.Return ValueA TimeSpan stringNotesSee the switch case of_args_to_seconds()insrc/timespan/dotnet.pyfor full coverage of
all input types.Asterisk TimespansAsterisk style timespans allow you to check if a timestamp falls within
a specified list of boundaries. For example, you might want to program
your phone system to only accept calls Mon-Fri from 9 a.m. to 5 p.m.
except on holidays like Christmas.Timespans are specified in the form oftimes|daysofweek|days|months.
If your timespan starts with!, it'll only match if the timestamps
falls outside the given range.Basic example:import timespan
from datetime import datetime

business_hours = [
    '9:00-17:00|mon-fri|*|*',  # is between 9 a.m. to 5 p.m. on Mon to Fri
    '!*|*|1|jan',              # not new years
    '!*|*|25|dec',             # not christmas
    '!*|thu|22-28|nov',        # not thanksgiving
]

if timespan.match(business_hours, datetime.now()):
    print "we're open for business!"
else:
    print "sorry, we're closed :("For more examples, see the documentation or source code.
Package: timespeaker
TimeSpeakerAnnounce the time every hour similar to Mac OS X. Say the Time using Google TTS or espeak.Requirementspython3.6+playsoundgtts or pyttsx3For developmentpoetryflake8blackpytestTODOUse python:threading.TimerCreate testsAdd system tray (opcional) by cliUpdate/Fix to PyPi (pip install timespeaker)Move Makefile to ParentConfigure PULL_REQUESTS AND ISSUES templateConfigure lintConfigure github actions (or circleci)Test i3 configsAdd support to CronUse a global DEBUGWhen merge tomainbuild and publish to PyPi (github actions)InstallDefault (Working In Progress)pipinstalltimespeakerLocalOn Local User# pyenv shell +3.6.0# asdf shell python +3.6.0# optional (poetry create a virtualenv for you)python-mvenv.venv# install dependenciesmakeinstall# clean old buildsmakeclean# build packagemakebuild# install on local user package (python)pipinstall--userdist/{path_from_last_command}.whlTest local installtimespeakercheck--speakergttsConfigureAutoStart (Working In Progress)makeconfigure-autostarti3 (Working In Progress)makeconfigure-i3Cron (Working In Progress)Coming Soonsudomakeconfigure-cronSystemd (Working In Progress)sudomakeconfigure-systemdRemove configurations# Systemdsudomakeremove-systemd# Autostartmakeremove-autostart# i3# coming soon# Cron# coming soonUsageDefault usage using gtts to speak and saving in/tmp/timespeaker/# after make install (or poetry install)poetryruntimespeakerstart# OR if configured (local user or via pip install timespeaker)timespeakerstartCustom command:poetryruntimespeakerstart--speaker=pyttsx3--player=vlc--path-folder=/tmp/timespeaker/How to check soundsThis speakes sound each 2 second frommidnightto23 hours.poetryruntimespeakercheck-hours-soundgttsDevelopmentUsing virtualenv (python venv):# create virtualenv# virtualenv .venv [-p /path/to/python3.6+] # require virtualenvpython-mvenv.venv# Enter virtualenvsource.venv/bin/activate# to exit of virtual env rundeactivateDev install (poetry required)poetryinstallSee more commands withmakehelpTestsmaketestLicenseMIT LICENSEContributingI encourage you to contribute to this project! Join us!Trying to report a possible security vulnerability?Open a issue nowEveryone interacting in this project and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the code of conduct (building, but respect everyone).
Package: time-spread
Time-SpreadSimple Python CLI for printing time in multiple time zones.pop-os:$time-spread
-------------------
CDT06:22:16-05:00
-------------------
UTC11:22:16+00:00
EDT07:22:16-04:00
MDT05:22:16-06:00
PDT04:22:16-07:00
-------------------pop-os:$time-spread1337-------------------
CDT13:37:00-05:00
-------------------
UTC18:37:00+00:00
EDT14:37:00-04:00
MDT12:37:00-06:00
PDT11:37:00-07:00
-------------------Help:pop-os:$time-spread--help
Usage:time-spread[OPTIONS][TIME]SimplePythonCLIforprintingtimeinmultipletimezones.

Options:--helpShowthismessageandexit.
Package: timesquare
This module solve Quadratic equation using Quadratic Formula.To use the module in your python code first thing add ‘import timesquare’
Now when you want to solve a Quadratic equation just tpye ‘timesquare.solve(a, b, c)’
Write your a b c variables in the a b c.Change Log0.0.1 (17/2/2021)
- - - - - - - - - - - - - - - -
- First Release
Package: timestamp2vec
Timestamp2VecThe Timestamp2Vec model consists of 2 parts: a feature extractor and an encoder, which is originally part of a variational autoencoder (VAE). The input of Timestamp2Vec is a timestamp, or multiple timestamps, in the shape YYYY-MM-DD HH:MM:SS and is of type String. The String(s) should be placed inside a list. The output of the model is a numpy array of shape (1, 8). To make use of Timestamp2Vec, install the package first. Afterward, import the model using "from timestamp2vec.Timestamp2Vec import Timestamp2Vec". Next, instanciate an instance of the model, for example: "timestamp2vec = Timestamp2Vec()". Finally, feed the model a list of timestamp(s) to obtain the vector(s).Please see the GitHub page (Homepage) to see an example.
Package: time-stamped-model
Time Stamped ModelThis package creates adds acreatedandmodifiedfield to your django modals.To useAdd time-stamped-model to your installed appsfrom time-stamped-model.modals import TimeStampedModel

class Foo(TimeStampedModel):
    bar = models.BooleanField(default=False)Manual setSometimes you want to manual set the time. This may be required if you import data from another system.To do this you can use the functionsset_created_dateandset_modified_date
Package: timestamp-generator
# timestamp-generator
# Martin Barker 2018Generates track-list time-stamps for music files. Albums will be arranged in this format:01 Sunrise       00:00 - 05:44
02 Plateau       05:44 - 10:21
03 Savannah      10:21 - 14:55
04 Canyon        14:55 - 20:26
05 Orange Valley 20:26 - 25:28
06 Sand-Dunes    25:28 - 28:35
08 Swamps        28:35 - 34:33Requirements:
TinyTag library, install using the command: “pip install tinytag”This program works for all audio files that work with TinyTag (mp3, wav, flac, oog, wma, m4a … etc ) You choose your format, then specify the album location:It can be any folder, within your current directoy or elsewhere on the machine.
Package: timestamps
TimestampBuild StatusInstallIn order to install, you can either use pypi with eitherpip3installtimestampsorpython3-mpipinstalltimestampsUsageThe library has several types definedTimestampRepresents a timestamp with a 10^-7 precision (same as the time.time() of python 3)
You can instanciate it in various ways, each time, you can provide a non-keyword value
or a value with as keyword either _float, _hex or _datetime,
or with the methods from_float, from_hex and from_datetime
Timestamps objects can ONLY represent POSITIVE timestamps.# From the current timet=Timestamp.now()# With a floatt=Timestamp(1.0)t=Timestamp.from_float(1.0)t=Timestamp(_float=1.0)# WARNING: Discouraged, use Timestamp.from_float instead# With a datetimet=Timestamp(datetime.datetime.now())t=Timestamp.from_datetime(datetime.datetime.now())t=Timestamp(_datetime=datetime.datetime.now())# WARNING: Discouraged, use Timestamp.from_datetime instead# With an hext=Timestamp(_hex='f')# WARNING: Discouraged, use Timestamp.from_hex insteadt=Timestamp('0xf0')t=Timestamp.from_hex('#FF')# With another timestampt=Timestamp(Timestamp.now())You can compare them with anything that can fit in the Timestamp initializator,
namely floats, datetimes, and hex values.Timestamp.now()<Timestamp.now()time.time()<Timestamp.now()'0xff'<Timestamp(time.time())
Package: timestampy
TimestamPy: Automatic timestamp generation on the blockchainUsageTimestamPy is based on theOpenTimestampsproject and on theinotifyLinux kernel facility.Install the package as follows:$ pip3 install timestampyThen run:$ timestampyBy default, TimestamPy will watch the~/timestampyfolder; each time a file is created and/or moved into it, a timestamp will be created on the Bitcoin blockchain.History0.1.2 (2018-09-02)Change default timestamp folder (and add option).0.1.1 (2018-08-21)Minimal command line operations.0.1.0 (2018-08-21)First release on PyPI.
Package: time-str
A package to convert user input into datetime.timedelta objects.PyPI:https://pypi.org/project/time-str/Docs:https://time-str.readthedocs.io/en/latest/InstallationYou can install released versions of time_str from the Python Package Index via pip or a similar tool:Stable Release:pip install time_strWorking Version:pip installgit+https://github.com/BobDotCom/time_str.gitUsageimporttime_strconverter=Converter('11 months 9days 1m 3 sec')print(converter.timedelta_precise())print(converter.datetime_precise())
Package: timestream-query
Timestream QueryThis repository contains a Timestream Utility class to query data from Timestream to Object array easily.Example Usageregion = "us-west-2"
session = boto3.Session()
database = "YOUR_DATABASE"
table = "YOUR_TABLE"
query_client = session.client("timestream-query", config=Config(region_name=region))
query_util = QueryUtil(query_client, database, table)
query_string = f"SELECT Id FROM {database}.{table} WHERE time >= ago(24h)"

# Run Query
id_list = query_util.run_query(query_string, True)
Package: timestreams
Kaskada TimestreamsDeveloper InstructionsThe package uses Poetry to develop and build.Install PyenvPyenv DocumentationInstall Python 3.9.16:$ pyenv install 3.9.16Install PoetryPoetry DocumentationInstall dependences:$ poetry installBuild the PackageTo build the client:$ poetry buildPublishing the Package to PyPibuild the package (see above)set the POETRY_PYPI_TOKEN_PYPI env var in your environmentfrom the./clientsfolder:, run$ docker compose run push-timestreams
Package: timetable-cli
timetable-cliInstallationpip install timetable-cliHow to useUsage: timetable-cli [OPTIONS] [ACTIVITIES_SELECTOR]...

Options:
  --config TEXT                   Config module
  --db TEXT                       Database file.
  --debug                         Show debug info.
  --add-empty-lines
  --clear-screen
  --default-activities-selectors TEXT
  -d, --global-timedelta TEXT
  -D, --show-date                 Show current date and time.
  -S, --show-status               Show info about current and next activities.
  --max-status-length INTEGER
  -A, --show-activities           Show activities table filtered by
                                  activities_selectors.
  --list-categories               Show activities categories when rendering
                                  activities table.
  -c, --columns TEXT              Columns to display when rendering activities
                                  table.
  --table-kwargs TEXT             Activities table kwargs (json)
  --ignore-time-status
  --combine-title-and-variation   Append activity variation to title when
                                  rendering activities table.
  -R, --show-rules                Show random rule.
  -r, --rules-list                Show rules table instead of random rule.
  -Q, --show-quotes               Show random quote.
  -q, --quotes-list               Show quotes table instead of random quote.
  -W, --watch
  --watch-interval INTEGER
  --watch-notification
  --watch-notification-text TEXT
  --watch-notification-cmd TEXT
  --watch-voice
  --watch-voice-cmd TEXT
  --watch-notify-eta TEXT
  -C, --check-activities TEXT     Check activities.
  -I, --check-activities-interactively
                                  Check activities interactively.
  -c, --check-activities-already-checked
                                  Check already checked activities.
  -e, --edit-config               Edit config module.
  --editor TEXT                   Text editor.
  --edit-db                       Edit database.
  --help                          Show this message and exit.
Package: timetables-parser-edupage
Edupage.org timetable parser libraryThis library provides access to public timetables provided by Edupage.
The resulting dataset is compatible with and based ontimetables-lib.Usage examplesSimple loginasyncwithEdupageApi()asapi:# login with Edupage Portal (account for multiple schools)portal:Portal=awaitapi.login(login="email@example.com",password="PortalPassword")# OR# login with a single-school Edupage account (i.e. https://example.edupage.com)session:Session=awaitapi.login(login="user12345",password="EdupageUser123",edupage="example")# OR# login using a previously stored session (Portal login not possible here)session:Session=awaitapi.login(**old_session.dict())# list sessions joined to a Portal accountprint(portal.sessions)# get the first session (school)session=portal.sessions[0]Note:it is recommended to save sessions (portal.dict() or session.dict()) for future API calls.
The sessions expire after some (unknown to me) time, aSessionExpiredErroris raised in that case.Parse timetablesasyncwithEdupageParser(session)asparser:# enqueue parsing all data (this is required)# - try_v1_teachers - whether to use the old API to get some teachers' full names# - try_v1_full_teachers - whether to use the old API to get all teachers' full names#   ^ this option requires to download and extract a large, zipped JSON payload, so keep this in mindparser.enqueue_all(try_v1_teachers=False,try_v1_full_teachers=True)# print the current queue, out of curiosityprint("\n".join(str(s)forsinparser.ds.files))# run all enqueued tasks, get a Dataset# this typically performs up to two HTTP requestsds=awaitparser.run_all()# sort lessons, because why notlessons=sorted(ds.lessons,key=lambdax:(x.weekday,x.number))# print lessons for a specific classprint("\n".join(str(s)forsinlessonsifs.register_.name=="1A"))Check if Edupage existsasyncwithEdupageApi()asapi:exists=awaitapi.v1.check_edupage("edupagename")Join a portal account to another EdupageasyncwithEdupageApi()asapi:# join a new Edupage to a portal account# (effectively creating a guest account on that Edupage)account=awaitapi.v2.join_account(portal,"edupagename")print(repr(account))# get a session for the just-created accountsession=awaitapi.login(**account.dict())Create a Portal account interactivelyasyncwithEdupageApi()asapi:awaitapi.register_interactive()Command-line scriptsAvailable after installing the package (if scripts directory is in yourPATH, or you're using a virtualenv).$edupagecheckguests
Edupage'guests'exists.
$edupageregister
Entere-mailaddress:...
$edupageloginemail@example.comPortalPassword
Portal(user_id=12345,user_email='email@example.com',sessions=[])Sessionssavedtoedupage.json
$edupagejoinedupagename
Loggedinas'email@example.com'Newaccount:
Account(...)Re-logintousethesession
$edupageparseothername--register1A
Parsing'edupage://othername/get/...'Lesson(...)Lesson(...)...
Package: timetables-parser-optivum
VULCAN® Optivum® timetable parser libraryThis library provides access to public timetables generated using the "Plan lekcji Optivum" software.
The resulting dataset is compatible with and based ontimetables-lib.Usage examplesasyncwithOptivumParser()asparser:# specify an entire timetablefile=File(path="https://www.school.pl/plan/index.html")# specify a single timetable (class, teacher, classroom)file=File(path="https://www.school.pl/plan/plany/o3.html")# specify a local timetablefile=File(path="C:/html/index.html")# enqueue and parse all (you can specify more files)ds=awaitparser.run_all(file)# enqueue, then parseparser.enqueue(file)ds=awaitparser.run_all()# sort lessons, because why notlessons=sorted(ds.lessons,key=lambdax:(x.weekday,x.number))# print lessons for a specific classprint("\n".join(str(s)forsinlessonsifs.register_.name=="1A"))Command-line scriptsAvailable after installing the package (if scripts directory is in yourPATH, or you're using a virtualenv).$optivumhttps://www.school.pl/plan/index.html--register1A
Parsing'https://www.school.pl/plan/index.html'Lesson(...)Lesson(...)...
Package: timetable-tool
timetable_toolDisclaimer: It's not my fault if you are late for class. If for some reason this program scrapes your timetable incorrectly I accept no responsibility. Use at your own risk!My Problem:DescriptionI have a had a brief look at the timetable display for curtin in eStudent, it is super inconvenient to log in through oasisAND THENinto eStudentAND THENgo to My ClassesAND THENselect the appropriate dates to view what youACTUALLYhave on at uni that week.The solution I would like!I would like to create a script that will pull all of the my class information from eStudent and then be able to set this up in Google Calendar as a seperate calendar (So that it can be turned on and off, otherwise it will make my calendar super cluttered)My Solution:Pre-requisitesStudent at Curtin University, this only works for Curtins student portal, although lots of universities use eStudent. It would be relatively simple to adapt this to suit.Linux - At this stage I have only tested it on Linux and there are some minor OS operations so it will only work on Linux for nowThere are a few necessary python packages that can all be installed through pip, they are:requestsgetpassBeautifulSoupGoogle API modulessudopipinstall--upgradegoogle-api-python-clientHow to use it!Clone my repositorygitclonehttps://github.com/kevinglasson/timetable_toolNavigate to the application foldercd timetable_toolInstall the requirementssudo pip install -r requirements.txtNavigate to the scripts foldercd scriptsRun the main.py script and follow the promptspythonmain.pyTODO:Now that I have the basic command line functionality working I will endeavour to implement the following extensions and improvements.GUIIf I am to make this accessible and useable for everyone it is going to need a GUI, command line operation is too clunky and intimidating for some!OS IndependencyAnother thing needed is to account for the small amount of OS operations in the Google credential file creation part of the program, this needs to be able to assess what type of operating system it is running on and issue the correct sys commands.Turn it into and application!I am not sure how to tackle this yet but I would like it so that it could be 'installed' and 'ran' with a couple of mouse clicks, no command line navigation or running of python scripts.Add more featuresMaybe integrate with Google maps for the building / room numbers of my classesProvide the option to set alarms a specified amount of time before a class begins, or just a specific type of class. For example warn me via an alarm 1 hour before any lab session that I need to wear enclosed footwear! (This recently bit me)More testingSo far this has only been tested with my account, I have no idea of it's effectiveness on other students accounts or with other Google accounts. This is a pretty big flaw.Clean up the codePretty self explanatory, this one is never really finished.
Package: timetagger-cli
TimeTagger CLITrack your time from the command-line.TimeTaggeris an open source time tracker with a focus on a simple and interactive user experience.This is a CLI that allows users to track their time from the terminal.
This can be used when running a TimeTagger server locally, or by
connecting withhttps://timetagger.app.Just setup with the API token, and start tracking!More info on Github:https://github.com/almarklein/timetagger_cli
Package: timetest
TimeTestChecking execution time of python functions.pip install timetestNow you can check execution time of your functions using:averagetime_test(function_name, count_of_calls, *args, **kwagrs)to see average time of executionalltime_test(function_name, count_of_calls, *args, **kwagrs)to see list of function executions timesexecution time of quicksort: