Saravanan666/pypi-org huggingface dataset:
Package: timexseries
TIMEXTIMEX (referred in code astimexseries) is a framework for time-series-forecasting-as-a-service.Its main goal is to provide a simple and generic tool to build websites and, more in general,
platforms, able to provide the forecasting of time-series in the "as-a-service" manner.This means that users should interact with the service as less as possible.An example of the capabilities of TIMEX can be found atcovid-timex.itThat website is built using theDash, on which the visualization
part of TIMEX is built. A deep explanation is available in thededicated repository.InstallationThe main two dependencies of TIMEX areFacebook ProphetandPyTorch.
If you prefer, you can install them beforehand, maybe because you want to choose the CUDA/CPU
version of Torch.However, installation is as simple as running:pip install timexseriesGet startedPlease, refer to the Examples folder. You will find some Jupyter Notebook which illustrate
the main characteristics of TIMEX. A Notebook explaining the covid-timex.it website is present,
along with the source code of the site,here.DocumentationThe full documentation is available athere.ContactsIf you have questions, suggestions or problems, feel free to open an Issue.
You can contact us at:alessandro.falcetta@polimi.itmanuel.roveri@polimi.it
Package: timexseries-clustering
TIMEX_CLUSTERINGLibrary for time-series-clustering-as-a-service.TIMEX-CLUSTERING (referred in code astimexseries_clustering) is a framework for time-series-clustering-as-a-service.Its main goal is to provide a simple and generic tool to build websites and, more in general,
platforms, able to provide the clustering of time-series in an "as-a-service" manner.This means that users should interact with the service as less as possible.InstallationInstallation is as simple as running:pip install timexseries_clusteringGet startedPlease, refer to the Examples folder. You will find some Jupyter Notebook which illustrate
the main characteristics of TIMEX-CLUSTERING. A Notebook explaining the clustering of the new positive cases for the COVID-19 spread around the world, along with the source code of the site,here.DocumentationThe full documentation is available athere.ContactsIf you have questions, suggestions or problems, feel free to open an Issue.
You can contact us at:uriel.guadarrama@polimi.italessandro.falcetta@polimi.itmanuel.roveri@polimi.it
Package: timexwiz
timexwiztimexwiz - это небольшая библиотека для проведения интеллектуальных замеров процессорного времени, позволяющая проводить замеры времени
выполнения однотипных (с одинаковым интерфейсом) функций на одинаковом наборе данных, затрачивая на это заданное в секундах время.УстановкаВы можете установить timexwiz с помощью pip:pipinstalltimexwizЛицензияЭтот проект лицензирован под лицензией MIT.
Подробнее смотрите файлLICENSE.
Package: timexy
Timexy 🕙 📅AspaCycustom componentthat extracts and normalizes dates and other temporal expressions.Features:boom: Extract dates and durations for various languages. Seeherea list of currently supported languages:boom: Normalize dates to timestamps or normalize dates and durations to theTimeML TIMEX3 standardSupported Languages🇩🇪 German:uk: English🇫🇷 FrenchInstallationpip install timexyUsageAfter installation, simply integrate the timexy component in any of your spaCy pipelines to extract and normalize dates and other temporal expressions:importspacyfromtimexyimportTimexynlp=spacy.load("en_core_web_sm")# Optionally add config if varying from default valuesconfig={"kb_id_type":"timex3",# possible values: 'timex3'(default), 'timestamp'"label":"timexy",# default: 'time'"overwrite":False# default: False}nlp.add_pipe("timexy",config=config)doc=nlp("Today is the 10.10.2010. I was in Paris for six years.")foreindoc.ents:print(f"{e.text}\t{e.label_}\t{e.kb_id_}")>>>10.10.2010timexyTIMEX3type="DATE"value="2010-10-10T00:00:00">>>sixyearstimexyTIMEX3type="DURATION"value="P6Y"ContributingPlease refer to the contributing guidelineshere.
Package: timey
TimeyTimey is a simple cli timer that helps you keeep track of your life. It's written in python.RequirementsPython>= 3.6InstallationThe package is uploaded on PyPi. Therefore, it can be installed with the following commandpipinstalltimeyUsagetimey [command] [tag]commandcan be any of the following:start- Starts a new timer fortag.tick- Outputs the how long the current session has been running for.stop- Stops the timer.resume- Starts a new session fortag.summarise- Summarises all the sessions fortag. If tag is not specified, it summarises for all tags present in the current day's log.tagcan be any string.The logs are stored on a day-by-day-basis.
The following is a sample usage of the app$ timey start algo-hw
Started timekeeping for algo-hw
Curent time is 21:21Two hours later$ timey tick algo-hw
2h 0m 00s

$ timey stop algo-hw
algo-hw stopped. Last run ran for 2h 0m 00s

$ timey start gaming
Started timekeeping for gaming
Curent time is 21:21

$ timey summarise
Summary for algo-hw
1. 21:21 2h 0m 00s
Total time spent - 2h 0m 00s

Summary for gaming
1. 23:00 0h 0m 10s - running
Total time spent - 0h 0m 10s
Package: timey-terminal
TimeyPrints characters after a set timed intervalHow to Usepip install timey_terminal>>>fromtimeyimportTimey>>>p=Timey()>>>p.show("Sample Text")# prints the provided text to the terminal>>>p.get_seconds()# get the current interval at which each character is printed.  Default = 0.05s>>>p.set_seconds(x)# sets the secs to what was provided.ORfromtimeyimportTimeyOldaspp>>>pp("Testing",0.5)# print each character every 0.5 secs>>>pp("Sample text",2)# print each character every 2 secs
Package: timey-wimey
Timey-wimeyA simple CLI tool to generate dates from plain English.UsageYou can pass in a string using natural language and it'll parse it.❯timey-wimey"two hours ago utc"2023-05-19T00:13:27.866775+00:00If you want a range of dates you can use the--toflag to get it. You use the--intervalflag to set the
interval it increments by. The interval should be in the format:integer unitso like:3 daysor1 hour.❯timey-wimey"two hours ago utc"--to"three hours utc"--interval"30 minutes"2023-05-19T00:15:30.469480+00:002023-05-19T00:15:30.469480+00:002023-05-18T23:45:30.469480+00:00Instalpipxinstalltimey-wimey
Package: time-zap
Time-ZapSimple Python CLI for printing time in multiple time zones.pop-os:$time-zap
-------------------
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-zap1337-------------------
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-zap--help
Usage:time-zap[OPTIONS][TIME]SimplePythonCLIforprintingtimeinmultipletimezones.

Options:--helpShowthismessageandexit.
Package: timezone-converter
Timezone ConverterCompare a full day of your local timezone with foreign ones$ timezone-converter tijuana --zone$ timezone-converter tijuana new_yorkMotivationWhen working with people that are not in your local timezone, the available
resources are the usual webpages that only showonehour at a time, which
is pretty inconvenient.With this package you can quickly compare a full day of your timezone against
foreign ones.Installationpipinstall-Utimezone-converterUsagetimezone-converter<timezone>[<timezone>...]Dockerdockerrun--rm-tbledy/timezone-converter<timezone>[<timezone>...]FeaturesComparison between multiple timezonesMultiple timezones can be provided to get a side-by-side comparison.Current hour highlightingThe row containing the current hour will be highlighted.Output a single hourUsing the--singleargument, you can output a single hour. If you don't
provide a value, the current hour will be displayed.List of available timezonesUsing the--listargument, you can see a pretty list of available timezones,
by groups, and sorted alphabetically.$ timezone-converter --listLicenseThis project is licensed under the terms of theMITlicense.↥ back to top
Package: timezonedb
timezonedb.com API [python wrapper]Wrapper fortimezonedb.comAPIAPI ReferenceFull timezonedb.com API reference can be foundhereHOW TO USElist timezonereferenceList out all available time zones supported by TimeZoneDB.fromtimezonedbimportTimezoneDBAPI#get timezonesapi=TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})res=api.list_time_zone(response_format="json")print(res)get timezonereferenceGet local time of a city by its name, time zone, latitude & longtiude, or IP address.fromtimezonedbimportTimezoneDBAPI#get timezonesapi=TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})res=api.get_time_zone(response_format="json",by="position",lat="40.689247",lng="-74.044502",)print(res)fromtimezonedbimportTimezoneDBAPI#get timezonesapi=TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})res=api.get_time_zone(response_format="json",by="city",city="chicago",country="US",)print(res)convert timezonesreferenceConvert timestamp between two different time zone.fromtimezonedbimportTimezoneDBAPI#get timezonesapi=TimezoneDBAPI(api_key={TIMEZONEDB_API_KEY})res=api.convert_time_zone(response_format="json",from_zone="America/Los_Angeles",to_zone="Australia/Sydney",)print(res)
Package: timezonefinder
This is a python package for looking up the corresponding timezone for given coordinates on earth entirely offline.Quick Guide:pip install timezonefinderfromtimezonefinderimportTimezoneFindertf=TimezoneFinder()# reusequery_points=[(13.358,52.5061),...]forlng,latinquery_points:tz=tf.timezone_at(lng=lng,lat=lat)# 'Europe/Berlin'For more refer to theDocumentation.Also check:PyPIonline GUI and APIconda-forge feedstockruby port:timezone_finderdownload stats
Package: timezone-handler
This Package designed to handle the DST(Day Light Savings).There is many functions that can help us to handle DST(Day Light Savings) in our code.1- adjust_dst(zonename, date):-
This Function used to convert the date with DST(Day Light Savings)
like- 2023-04-22 04:30:00 is the DST(Day Light Savings) date and we
want to auto handle the date accourding to normal date.2- is_dst(zonename, date):-
This Function is used to check the given date is DST or NOT
if DST retun True Else False.3- timezone_appender(zonename, date):-
This Function is used to append the timezone in the date
like 2023-04-22 04:30:00 IST.4- timezone_appender_with_time_format(zonename, date):-
This Function is used to append the timezone in the date with beautify date
like April 05 2023 at 04:30 IST.5- timezone_appender_with_time_format(zonename, date):-
This Function is used to append the timezone in the date with beautify date
like April 05 2023 at 04:30 IST.6- adjust_zoneoffset(zonename, date):-
This Function used to get the zone offset like -5:30 for UTC7- adjust_zoneoffset_dst(zonename, date):-
This Function used to get the zone offset like -5:00 for UTC
with DST handled like in DST is will return -4:00 so this function
convert -4:00 to -5:00 if the time period in DST.values format for the function is-zonename example- 'America/New_York'
date example- any date like '2023-04-22 04:30:00' this format
Package: timezones-cli
Timezones CLICLI toolkit for timezones:zap:What can you do withtimezones-cli? :zap:Search for date and time based on city, country, or timezones.Manage dashboard for timezones you frequently view.Get UTC date and time based on your local timezone or any timezones.ContentsInstallationUsageSearch for local date timeSearch based on timezone abbreviationsAdd timezonesRemove timezonesShow local datetime of all saved timezonesSelect a single timezone from defaultsGet UTC timeRun using Docker :whale:ContributingInstallation$pip3installtimezones-cliTo run this CLI using Docker, checkRun using Docker :whale:.NOTE:List of country codes or timezone names:earth_asia:Use-tflag to toggle 24 hours format.UsageSearch for local date timeYou can use short country code like 'AE', 'RU', 'US' and so on.You can search via city like: 'Paris', 'London', 'Moscow', 'Chicago' and so on.$tzsearch"us"$tzsearch"Nepal"$tzsearch"Paris"DemoSearch based on timezone abbreviations$tzget"pst"$tzget"ist"$tzget"est"$tzget"cst"DemoAdd timezonesTimezones added to the config file are treated as the default timezones which is triggered by thetz showcommand.file is stored at ~/.tz-cli$tzadd"Asia/Kathmandu"Demo---Remove timezonesThere are two ways for removing timezones from the config file. Using the--interactivemode and passing the the--nameflag.$tzremove-i

$tzremove--name"Asia/Kathmandu"DemoShow local datetime of all saved timezones$tzshowDemo---Select a single timezone from defaults$tzselectDemoGet UTC timeGet UTC time based on current system time.tz utc --help$tzutcGet UTC time based on specified time and timezone.$tzutc<time><timezone>

$tzutc"11:45PM""Asia/Kathmandu"DemoRun using Docker :whale:dockerpullghcr.io/yankeexe/timezones-cli:latestVerify signature of the image: requirescosign.COSIGN_EXPERIMENTAL=truecosignverifyghcr.io/yankeexe/timezones-cli:latestCreate a config file manually first.$touch~/.tz-cli

$dockerrun--rm-it-v${HOME}/.tz-cli:/home/tz/.tz-clighcr.io/yankeexe/timezones-clisearchusFor convenience you can add alias of the command to your shell config:$echo"alias tz='docker run --rm -it -v${HOME}/.tz-cli:/home/tz/.tz-cli ghcr.io/yankeexe/timezones-cli'">>~/.bashrc
$source~/.bashrc

$echo"alias tz='docker run --rm -it -v${HOME}/.tz-cli:/home/tz/.tz-cli ghcr.io/yankeexe/timezones-cli'">>~/.zshrc
$source~/.zshrc# Use alias to invoke timezones-cli$tzsearchNepalFor local debugging: Use themake runcommand followed by the command you want to run against thetzbinary.$makeruncmd="get ist"DemoContributingFor guidance on setting up a development environment and how to make a contribution totimezones-cli, see thecontributing guidelines.
Package: timezones-for-regions
Hello!
Here is a simple dataset of timezones for all regions of all countries that are included in pycountry library.RegionTimezones are stored in the following format:
A dictionary, where you have keys as tuples with (country_code, region_name, region_code)
and values as timezones in str.{
('AF', 'Jowzjān', 'AF-JOW'): 'Asia/Kabul',
('AF', 'Zābul', 'AF-ZAB'): 'Asia/Kabul',
('AF', 'Kābul', 'AF-KAB'): 'Asia/Kabul',
}
Package: timezoneutils
Python Package for timezoneutils including but not limit to converting timezone, calculate timezone difference, timezone offset, get timezone info (including which country use this timezone), check is the timezone DST, check the DST start and end date for a particular year or current year by default. Middleware to get timezone and related info like country using public ip address from requestChange logs:
v 0.0.1 - initial release (alpha version)
v 0.1.0 - fixed bug for timezone_middleware where ip_address is None (local development). (alpha version)
Package: timg
timgDisplay an image in terminal.Setuptimgis available as a package on PyPI:$ pip install timgNow you can use thetimgcommand in your terminal.ScreenshotsUsageusage: timg [-h] [-V] [-i] [-m METHOD] [-r N] [-s W] [filename]

    print an image in terminal

    positional arguments:
      filename              filename of an image

    optional arguments:
      -h, --help            show this help message and exit
      -V, --version         print version and exit
      -i, --invert-background
                            invert grayscale in ASCII mode
      -m METHOD, --method METHOD
                            name of a rendering method (use `-m list` to list
                            available methods, the default is a24h)
      -r N, --reduce-colors N
                            reduce color palette of an input image (1-256)
      -s W, --size W        width of an imagezsh completionsAdd this line to.zshrccompdef _gnu_generic timg
Package: timing
Simplify logging of timings of selected parts of an application.ContentsHow to useRequirementsHow to useRecommended initialization is as follows.importtiming_TIME=timing.get_timing_group(__name__)# type: timing.TimingGroupThis follows the conventions ofloggingmodule.importlogging_LOG=logging.getLogger(__name__)Any name can be used instead of__name__.
However, if names of formatmodule.sub.sub_subare used, this will create a timing
hierarchy where each timing data is stored in its proper location and can be queried easier.The resulting_TIMEobject is used to create individual timers,
and will handle storing results in cache, which later can be used to obtain timing statistics.You can obtain the timer object directly viastart(name)method.
You’ll need to manually callstop()in this case.timer=_TIME.start('spam')# type: timing.Timingspam()more_spam()timer.stop()You can also obtain the timer object indirectly viameasure(name)context manager.
The context manager will take care of callingstop()at the end.with_TIME.measure('ham')astimer:# type: timing.Timingham()more_ham()And if you want to time many repetitions of the same action (e.g. for statistical significance)
you can usemeasure_many(name[,samples][,threshold])generator.You can decide how many times you want to measure viasamplesparameter
and how many seconds at most you want to spend on measurements viathresholdparameterfortimerin_TIME.measure_many('eggs',samples=1000):# type: timing.Timingeggs()more_eggs()fortimerin_TIME.measure_many('bacon',threshold=0.5):# type: timing.Timingbacon()more_bacon()fortimerin_TIME.measure_many('tomatoes',samples=500,threshold=0.5):# type: timing.Timingtomatoes()more_tomatoes()Also, you can usemeasureandmeasure(name)as decorator.
In this scenario you cannot access the timings directly, but the results will be stored
in the timing group object, as well as in the global cache unless you configure the timing
to not use the cache.importtiming_TIME=timing.get_timing_group(__name__)@_TIME.measuredefrecipe():ham()eggs()bacon()@_TIME.measure('the_best_recipe')defbad_recipe():spam()spam()spam()Then, after calling each function the results can be accessed throughsummaryproperty.recipe()bad_recipe()bad_recipe()assert_TIME.summary['recipe']['samples']==1assert_TIME.summary['the_best_recipe']['samples']==2Thesummaryproperty is dynamically computed on first access. Subsequent accesses
will not recompute the values, so if you need to access the updated results,
call thesummarize()method.recipe()assert_TIME.summary['recipe']['samples']==1bad_recipe()bad_recipe()assert_TIME.summary['the_best_recipe']['samples']==2# will fail_TIME.summarize()assert_TIME.summary['the_best_recipe']['samples']==2# okFurther API and documentation are in development.See these examples in action inexamples.ipynbnotebook.RequirementsPython version 3.11 or later.Python libraries as specified inrequirements.txt.Building and running tests additionally requires packages listed intest_requirements.txt.Tested on Linux, macOS and Windows.
Package: timing-asgi
timing-asgiThis is a timing middleware forASGI, useful for automatic instrumentation of ASGI endpoints.This was developed atGRIDfor use with our backend services which are built using
python and the ASGI frameworkStarlette, and intended to emit metrics toDatadog,
a statsd-based cloud monitoring service.ASGI versionSince 0.2.0 this middleware only supports ASGI3, if you need ASGI2 support please use version0.1.2.installationpip install timing-asgiusageHere's an example using the Starlette ASGI framework which prints out the timing metrics..A more realistic example which emits the timing metrics to Datadog can be found athttps://github.com/steinnes/timing-starlette-asgi-example.importloggingimportuvicornfromstarlette.applicationsimportStarlettefromstarlette.responsesimportPlainTextResponsefromtiming_asgiimportTimingMiddleware,TimingClientfromtiming_asgi.integrationsimportStarletteScopeToNameclassPrintTimings(TimingClient):deftiming(self,metric_name,timing,tags):print(metric_name,timing,tags)app=Starlette()@app.route("/")defhomepage(request):returnPlainTextResponse("hello world")app.add_middleware(TimingMiddleware,client=PrintTimings(),metric_namer=StarletteScopeToName(prefix="myapp",starlette_app=app))if__name__=="__main__":logging.basicConfig(level=logging.INFO)uvicorn.run(app)Running this example and sending some requests:$ python app.py
INFO: Started server process [35895]
INFO: Waiting for application startup.
2019-03-07 11:38:01 INFO  [timing_asgi.middleware:44] ASGI scope of type lifespan is not supported yet
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: ('127.0.0.1', 58668) - "GET / HTTP/1.1" 200
myapp.__main__.homepage 0.0006690025329589844 ['http_status:200', 'http_method:GET', 'time:wall']
myapp.__main__.homepage 0.0006950000000000012 ['http_status:200', 'http_method:GET', 'time:cpu']
INFO: ('127.0.0.1', 58684) - "GET /asdf HTTP/1.1" 404
myapp.asdf 0.0005478858947753906 ['http_status:404', 'http_method:GET', 'time:wall']
myapp.asdf 0.0005909999999999804 ['http_status:404', 'http_method:GET', 'time:cpu']
Package: timingdiagram-alkasm
timingdiagramWork with discrete state changes over time.Reduce data to state changesCompare diagrams over timeQuery state by timeUse any ordered indexInstallFrom PyPI withpip:pipinstalltimingdiagram-alkasmFrom source:gitclonehttps://github.com/alkasm/timingdiagramcdtimingdiagram
pipinstall.Note that you must havepip >= 19.0installed in your environment to install from source, since this project uses thepyproject.tomlfile defined inPEP-0517instead ofsetup.py. More from PyPAhere.Try it out>>>fromtimingdiagramimportTimingDiagram>>>d1=TimingDiagram(enumerate([False,False,False,True,True,False,True]))>>>d2=TimingDiagram(enumerate([False,True,False,False,True,False,False]))>>>d1|d2TimingDiagram([(0,False),(1,True),(2,False),(3,True),(5,False),(6,True)])ExampleSuppose you had a log of users signing in and out of a service, and the log included the time, user id, and action the user took. We can view each user's login/logout history as a timing diagram, and simply&them all together to see when all users were logged in at the same time:log="""2019-08-27T19:38:50 001768bf-af44-46a6-890d-048f2c50aa29 login2019-08-27T19:51:11 084c07f0-dd0d-46a3-8eb5-1d4cb13756a4 logout2019-08-27T19:55:25 001768bf-af44-46a6-890d-048f2c50aa29 logout2019-08-27T19:58:37 001768bf-af44-46a6-890d-048f2c50aa29 login2019-08-27T20:17:21 a8118353-eb81-4ce0-8d10-6f3f9de6d7ca login2019-08-27T20:45:19 001768bf-af44-46a6-890d-048f2c50aa29 logout2019-08-27T21:01:45 001768bf-af44-46a6-890d-048f2c50aa29 login2019-08-27T21:18:09 001768bf-af44-46a6-890d-048f2c50aa29 logout2019-08-27T22:02:37 084c07f0-dd0d-46a3-8eb5-1d4cb13756a4 login2019-08-27T22:55:54 001768bf-af44-46a6-890d-048f2c50aa29 login2019-08-27T23:08:07 001768bf-af44-46a6-890d-048f2c50aa29 logout2019-08-27T23:23:04 a8118353-eb81-4ce0-8d10-6f3f9de6d7ca logout2019-08-27T23:47:50 001768bf-af44-46a6-890d-048f2c50aa29 login2019-08-27T23:55:10 084c07f0-dd0d-46a3-8eb5-1d4cb13756a4 logout2019-08-27T23:56:33 001768bf-af44-46a6-890d-048f2c50aa29 logout""".split("\n")fromcollectionsimportdefaultdictfromfunctoolsimportreducefromtimingdiagramimportTimingDiagramsessions=defaultdict(list)forrowinlog:ts,userid,action=row.split()sessions[userid].append((ts,action=="login"))all_logged_in=reduce(lambdad1,d2:d1&d2,map(TimingDiagram,sessions.values()))From just a few lines of code, we get a timing diagram corresponding to when all the users were logged in:TimingDiagram([
  ('2019-08-27T19:38:50', False), 
  ('2019-08-27T22:55:54', True), 
  ('2019-08-27T23:08:07', False), 
  ('2019-08-27T23:56:33', False)
 ])So all users were logged in between22:55:54and23:08:07on2019-08-27. The additional states at the beginning and end signify the start and end times of the logs.