Saravanan666/pypi-org huggingface dataset:
Package: tzar
Tzar: Tar, Zip, Anything ReallyEasy compression and extraction for any compression or archival format.Usage/Examplestzarcompresslarge-dircompressed.tar.gz
tzarextractcompressed.tar.gzlarge-dir
tzarlistcompressed.tar.gzIt's alwaystzar <command> <source> [<destination>]InstallationThe package is published in PyPi undertzar. You can install it with the following methodsPipx(recommended)pipxinstalltzarPippip3installtzarDevgit clone git@github.com:DanielVZ96/tzar
cd tzar
poetry install
export TZAR_CONFIG=$PWD/configConfigurationConfiguration is read from the standard directories for each OS (~/.config/tzar/*.toml). You
can add any number of toml files to that directory and they will all be read by tzar at runtime.The configuration file has the following format:[command or format]extract="command extract ${verbose} ${filename} ${directory}"compress="command compress ${verbose} ${directory} ${filename}"show="command list ${verbose} ${filename}"extensions=[".ext1",".ext2"]verbose="-v"[another command or format]extract="another x${verbose} ${filename} ${directory}"compress="another c${verbose} ${directory} ${filename}"show="another list ${verbose} ${filename}"extensions=[".anoth"]verbose="v"All commands should have theextract,compress,show,extensionsandverbosevalues defined.
They are all self explanatory; they define templates for the commands to run, the extensions
for these commands, and how you can ask for a verbose output.They can all contain the following template variables that will be replaced at runtime:-verbose: Defines how and where to ask for a verbose output (defined in theverbose =variable definition).-filename: The name of the compressed file. Corresponds to<source>in theextractandlistsubcommands, and to<destination>in thecompresssubcommand-directory: The target directory. Corresponds to<destination>in theextractandlistsubcommands, and to<source>in thecompresssubcommandWhy?Because I think it's simplerYou may think that this should be doable with aliases, but I tried and I couldn't. Maybe you can use thefuckapp
ortldrbut I still feel it could be simpler to extract files (wtf does xvzf even mean?).Because I wanted to try the idea of Code as ConfigurationMaybe this sounds crazy, but I started this project by exploring the idea of storing the main behaviour of code in configuration files (in this case TOML), in order to
ease extensibility, reduce posible errors, and keep things simple. In my dayjob we tried this idea with my colleagues and the result is that changes that previously
spawned several files or lines of code, are now reduced into 2 or 3 hard-to-fuck-up yaml lines. If this project gains traction I may write a blog post about this.TODO[-] Add a ton of new file formatsDocument codeInteractive promptTests (Don't judge, I'm coding this in the spare time I have during my lunch breaks.)Authors@danielvalenzuela
Package: tzc
tzc - time zone convertcopies input to output, converting timezone in any lines beginning with an ISO-8601 timestampInstallationInstall this tool usingpip:$ pip install tzcUsageUsage: tzc [OPTIONS] [INPUT_FILE] [OUTPUT_FILE]

  copy input to output, converting timezone in any lines starting with a
  timestamp

Options:
  --version               Show the version and exit.
  -i, --input-zone TEXT   timezone in file
  -o, --output-zone TEXT  output timezone
  -f, --format TEXT       output format (strptime)
  -s, --short             format output as YYYY-MM-DD HH:MM:SS
  --help                  Show this message and exit.DevelopmentTo contribute to this tool, first checkout the code. Then create a new virtual environment:cd tzc
python -mvenv venv
source venv/bin/activateOr if you are usingpipenv:pipenv shellNow install the dependencies and tests:pip install -e '.[test]'To run the tests:pytest
Package: tz-canary
tz-canary- Time Zone CanaryIn a perfect world, all time series data is time-zone-aware and stored in UTC.
Sadly, we do not live in a perfect world.
Time series data often lacks a time zone identifier, or worse, does not actually adhere to the time zone it claims to be in.tz-canaryinspects the Daylight Savings Time (DST) switches in a time series to infer a set of plausible time zones the data could be in.
It allows you toinferthe full set of plausible time zones for the data, or tovalidatewhether a given time zone is plausible for the data.Installationtz-canaryis available on PyPI, so you can install it just like any other Python package:pipinstalltz-canaryUsageTime zone validationThe simplest way to usetz-canaryis to validate a given time zone for a time series:importpandasaspdfromtz_canaryimportvalidate_time_zonedf=pd.read_csv("docs/data/example_data.csv",index_col="datetime",parse_dates=True)validate_time_zone(df.index,"Europe/Amsterdam")# will passvalidate_time_zone(df.index,"America/New_York")# will raise ImplausibleTimeZoneErrorvalidate_time_zone(df.index,"UTC")# will raise ImplausibleTimeZoneErrorTime zone inferenceYou can also get a list of all plausible time zones for a time series:frompprintimportpprintimportpandasaspdfromtz_canaryimportinfer_time_zonedf=pd.read_csv("docs/data/example_data.csv",index_col="datetime",parse_dates=True)plausible_time_zones=infer_time_zone(df.index)pprint(plausible_time_zones)# Output:# {zoneinfo.ZoneInfo(key='Africa/Ceuta'),#  zoneinfo.ZoneInfo(key='Arctic/Longyearbyen'),#  zoneinfo.ZoneInfo(key='Europe/Amsterdam'),#  ...#  zoneinfo.ZoneInfo(key='Europe/Zurich')}Advanced usage: inference with cachedTransitionsDataWhen processing many time series, it can be useful to cache the transitions data used bytz-canaryto infer time zones.
You can do this by creating aTransitionsDataobject and passing it toinfer_time_zone(and this also works forvalidate_time_zone):importpandasaspdfromtz_canaryimportTransitionsData,infer_time_zone# We create a TransitionsData object to avoid having to recompute the transitions for#   every call to validate_time_zone.transition_data=TransitionsData(2010,2023)foriinrange(10):df=pd.read_csv("docs/data/example_data.csv",# In reality, these would be different filesindex_col="datetime",parse_dates=True,)plausible_time_zones=infer_time_zone(df.index,transition_data=transition_data)print(i,plausible_time_zones)DevelopmentMake sure you havegit,git LFS, andPoetryinstalled.Clone this repository:gitclonehttps://github.com/leonoverweel/tz-canarycdtz-canaryInstall the development requirements:poetryinstall--withdevInstall the pre-commit hooks (used for linting):pre-commitinstallRun the tests:poetryrunpytestMaking a releaseBump the version number inpyproject.tomland commit the change.Make anew releaseon GitHub.Build the package:poetrybuildPublish the package to PyPI:poetrypublishContributingPlease don't hesitate to open issues and PRs!GitHub repository:https://github.com/leonoverweel/tz-canary.
Package: tzcity
tzcityA module to find the Olson database time zone names of some of the most populous cities in the world without an internet connection.Only a few cities associated with each time zone are recognized to minimize the size of data bundled with the package.InstallationYou need Python>=3.6 to use tzcity.It can be installed from PyPI with pip usingpip install tzcityUsagetzcity.tzcity(city: str) -> strAccepts a city name and returns the time zone name associated with that city.RaisesUnknownTZCityExceptionif unable to recognize city.>>> tzcity.tzcity('abu dhabi')
'Asia/Dubai'

>>> tzcity.tzcity('bandar seri begawan')
'Asia/Brunei'

>>> tzcity.tzcity('myanmar')  # a country with only one time zone
'Asia/Yangon'tzcity.capitalize(name: str) -> strCapitalize the city or time zone name provided as argument.RaisesUnknownTZCityExceptionif unable to recognize name.>>> tzcity.capitalize('andorra la vella')
'Andorra la Vella'

>>> tzcity.capitalize("new york")
'New York'

>>> tzcity.capitalize("dumont d'urville")
"Dumont d'Urville"
Package: tzconvert
tzconverttzconvert is a simple library for converting a naive, timezone unaware
datetime object to it's smarter, timezone aware version.InstallationInstallation is straightforward.pip install tzconvertInstalling from sourcesClone this git repository.cd into the project folder.runpython setup.py installUsage>>>importtzconvert>>>importdatetime>>>naive_datetime=datetime.datetime.utcnow()>>>naive_datetimedatetime.datetime(2020,4,21,22,36,27,945535)>>>adjusted_datetime=tzconvert.adjust_datetime(naive_datetime,"Venice")>>>adjusted_datetimedatetime.datetime(2020,4,22,0,36,27,945535,tzinfo=tzoffset('GMT',7200))NOTES:adjust_datetime()returnsNoneon failure.adjust_datetime()takes an optional argumentdebug, set it to True
to display debug messages on stdout.PR's are more than welcome.
Package: tzcron
tzcronA library to work with cron/quartz expressions and timezones.Overviewtzcron provides a way to define schedules attached to timezones and get time occurrences out of it by just iterating the object created.Install>>> pip install tzcronUsage>>> import tzcron
>>> import pytz
>>> schedule = tzcron.Schedule("* * * * * *", pytz.utc)
>>> str(schedule)
'Cron: * * * * * * @UTC [2016-09-25 19:10:48.948486+00:00->None]'
>>> next(schedule)
datetime.datetime(2016, 9, 25, 19, 11, tzinfo=<UTC>)
>>> next(schedule)
datetime.datetime(2016, 9, 25, 19, 12, tzinfo=<UTC>)
>>> next(schedule)
datetime.datetime(2016, 9, 25, 19, 13, tzinfo=<UTC>)For further information, check theofficial documentationDevelop this packageTo test the package:> python -m noseTo release a new version of the package:> python setup.py sdist bdist_wheel upload
Package: tzevaadom
python-pikudHaoref-apiA Python library for Pikud Haoref's unofficial rocket alert API.Getting rocket alerts data - in Real timeWith the library you can listen to the new alerts.The data comes from the library in the following format:[{"value":"אשקלון","name":"אשקלון","name_en":"Ashkelon","name_ru":"Ашкелон","name_ar":"أشكلون","zone":"מערב לכיש","zone_en":"Western Lakhish","zone_ru":"запад Лахиш","zone_ar":"الغربي لاخيش","countdown":30,"time":"30 שניות","time_en":"30 Seconds","time_ru":"30 секунд","time_ar":"30 ثانية","lat":31.6688,"lng":34.5743}]With the library you can:Listen to new rocket alerts, and get the Data into yourAlerts_Handlerfunction.You can choose to receive only alerts from certain cities !Get the latest alerts history, with time filtering and different languages.tzevaadom is open source with apublic repositoryon GitHub.InstallationInstalltzevaadomfrom PIP.$pipinstalltzevaadomThe library doesn't require installing any additional PIP package.Examplesimporttzevaadomdefhandler(List_Alerts):foralertinList_Alerts:message="New Alarm: "+alert["name_en"]+". Zone: "+alert["zone_en"]print(message)''' start monitor api '''tzevaadom.alerts_listener(handler)# listening to alerts in background (Thread)Filter and get alerts, only from certain cities.tzevaadom.alerts_listener(handler,["אשקלון","נחל עוז"])# You will receive alerts, only if it was in `אשקלון` or `נחל עוז`.
Package: tzf.pyramid_routing
tzf.pyramid_routing READMEPackage statustzf.pyramid_routingis a convenience package, that helps loading routing defined and kept in separate list.DocumentationDocumentation can be found here:http://packages.python.org/tzf.pyramid_routingTestingTo run tests install extra dependencies fromtestsgroup and simply typepy.testCHANGES0.1.2introduced pylama for running code linters0.1.1rewritten tests to py.test0.1.0MIT License and Authorsfixes for python 3.30.0.4Added method to allow to import main method and pass routing modules as argument.0.0.3Some fixes for pypi releases0.0.2resolved issue with package submodule loading0.0.1main functionality
Package: tzf.pyramid-yml
tzf.pyramid_yml READMEPackage statustzf.pyramid_ymlis a convenience package, that allows for a yml settings, that can be kept in a structured, clear way, and also extensible depending on an ‘environment’.DocumentationDocumentation can be found here:https://readthedocs.org/projects/tzfpyramid_yml/TestingYou’ll need: packages defined in extra_requires[tests] to run tests, and then:py.testFor detailed test report run this command:py.test--cov-reportterm-missing--covtzf.pyramid_yml tests/CHANGES2.0.0[enhancement] Drop support for python 2[fix] Adjusted includemes for pyramid 1.10, which now marks includeme as processed even if it errored. Less ducktyping as well.1.1.1[fix] freeze pymlconf version at less than 1.0.0 which became incompatible with python 2.7 and is marked as python 3.6 only.1.1.0all scripts functions are publiccleaned pconfig’s argument checkchanged config_defaults to not have default mutable argument. It’s None instead - which gets replaced by default config.yaml and config.yml.1.0.1improved support for defining more than one configuration locations in ini file1.0.0changed tests to depend on pytest_pyramidchanged to support yaml extension by default, updated docs0.3.0rewrite all test to py.testintroduced Licenseallow to load configuration files from more than one folderuse only existing files to squash PymlConf warningsability to use full path to file in yml.location pathclearing some tests0.2.0pconfigcommand line tool for displaying merged yaml configaddedconfig.config_defaultsmethod to allow creating a default yaml configurations for pyramid packages, and easy merge into these created by tzf.pyramid_yml0.1.0python 3 compatibilityInclude pyramid packagesfilling in standard settings based on configurator: in yml configuration0.0.1merging two yml files int onereading yml files
Package: tzgeo
tzgeo is a library with one simple purpose - to convert a lat/lon to a
timezone - really fast!InstallationThe easiest way to install is usingpip:pip install tzgeoUsageUsing tzgeo is very simple!>>> import tzgeo
>>> tzgeo.tz_lookup(39.888724, -75.107952)
u'America/New_York'If the location is invalid, or points at the ocean,tz_lookupwill returnNone.More InformationMore information can be found on the project’sgithub page
Package: tzk
tzk(TiddlyZettelKasten)
is a TiddlyWiki edition and associated CLI
for maintaining personal notes
in something approaching the Zettelkasten method.
It’s updated periodically from whatever tooling I’m currently usingin my own Zettelkasten.
As such, it’s currently considered alpha-quality;
while it ought to be very stable and there’s no meaningful risk of data loss,
updating to a newer version might be difficult
and I’m unlikely to accept patches
unless they’re something I want in my own Zettelkasten.
This is intended primarily as a nice starting platform
on which to build your own tooling.Some basic knowledge ofTiddlyWikiis necessary and assumed.Documentation / InstallationFind a live version of the edition on the web with further instructions
athttps://sobjornstad.github.io/tzk/.
You can find the documentation for the CLI
(which handles creating the wiki,
versioning with Git,
and creating public and other derivative versions of the wiki)
athttps://tzk.readthedocs.io/en/latest/.Video walkthroughSince tzk is still in an alpha state,
general instructions on how to use it are somewhat lacking at the moment.
To fill in the gap in the meantime,
I recorded an hour-long walkthrough showing how you might take notes using tzk;
you can select individual sections to watch if that's longer than you want.Watch the video on YouTube.
Package: tzolkin
Tzolk'in: Scheduling for Humans™tsolkinis a python scheduler based oncron,schedule,snaptime, andmaya.F.A.Q.What's with the name?The Tzolk'in is a mayan calander.
I named it that because it's a scheduler based onmaya,
the excellent datatime library by Kenneth Reitz.What doestzolkindo differently?It's designed for maximum flexibility and built to be human interpretable.All the core elements are abstract classes with minimal interfaces.Need some weird asynchronous behavior, or to ensure consistency across a bunch
of remote nodes? Write aSchedule.Want to schedule something for every time there's penumbral lunar eclipse over
Old Carthage, or the first day of every prime numbered Gregorian year?
Write aTimeSet.Need to trigger something weird? If you can fit it in a python function, it'll
work as aJob.Why did you make this?I needed it for another project. I started out usingschedule, but it quickly
became clear that I needed something more flexible and extensible.Why not improveschedule?My particular use cases would have required pretty dramatic changes,
and looking at the contribution rules (in particular the requirement that it
work for python2, and the requirement that it not use external libraries)
forscheduleI decided it was not going to be very plausible.In addition, I wanted more flexible fluent building, and native first class
support for jobs that run only once.Why not improvepython-crontab?The goals of python-crontab are a little different. I wanted to focus on
scheduling within python (not just running bash jobs). I wanted to support
scheduling singleton jobs, as above. And I wanted something more readable.
Package: tzo-silverstripe-installer
Automation script to create new Silverstripe site.InstallationBefore being able to install this package, make sure you have python >= 3.5 installed first. If not, you can go to the official website to install it.‘pip’ command will be available after python is installed.Then,pipinstalltzo-silverstripe-installerPlease note it require python version >=3.5. For some environment, you might need to use “pip3” instead of “pip”.Usagetzo-create<site-name>[--ss3][--versionversion]By default, it will install latest stable version of SilverStripe 4.“site-name” required. It will applied to the site folder name and the repository name.“–ss3” optional. With this, it will install the latest version of SilverStripe 3.“–version” optional. The SilverStripe version to install. If this is provided, the option “–ss3” will be ignored.How it worksIt will ask you some information of the project. Input then hit enter key.The Gitlab private token will need to be entered only the first time. Then it will be saved to the file “$YOUR_HOME/.tzo_credentials”.For windows user, it is recommended to use git-bash terminal to use this.
Package: tzpos
0.1.7 (Sep 7th 2015)Added support for continent selection.
factory.seacher_in_continet0.1.6 (Aug 24th 2015)Fixed an concatenation in timezone function that was causing an error.0.1.5 (Aug 24th 2015)Added missing database file.0.1.0 (Aug 22th 2015)First implementation.
Package: tzrpc
TZRPC让深度学习调用： 简单！！！ 高效！！！深度学习模型在落地时需要提供高效快速交互接口，业务逻辑和深度模型解码通常运行在不同类型的机器上。
Http 并不适合大量数据的交互，而RPC (Remote Procedure Call) 远程过程调用, 而RPC在TCP层实现。提高了开发效率，算法工程师可以不必花费更多精力放在具体的接口实现上，而是专注于算法优化上。tzrpc 框架基于google的grpc实现，需要Python 3.7及以上， 支持流式传输！！！目前支持以下基础类型：TZRPC 类型python 类型是否支持Stringstr✅Integerint✅Floatfloat✅Doublefloat✅Booleanbool✅Bytesbytes✅Numpynumpy✅Tensortorch.Tensor✅使用pickle模块反序列化任意python对象✅快速使用安装pipinstalltzrpc或拉取最新代码，安装gitclonehttps://github.com/lovemefan/TZRPC.gitcdTZRPC
pipinstall-e.服务端 Server.pyfromtzrpcimportTZRPC_Serverimportnumbersserver=TZRPC_Server(__name__)@server.registerdefsay_hello(text):return"hello world "+text@server.registerdefsend_numpy_obj(data):returndata*2+1@server.registerdefsend_torch_tensor_obj(data):returndata@data.T@server.registerdefsend_bytes(data:bytes):returndata+data@server.registerdefsend_number(data:numbers.Number):returndata*2@server.registerdefsend_bool(_bool:bool):returnnot_bool@server.registerdefsend_python_obj(data):returndata@server.register(stream=True)defgumbel(num):ifnum%3==0:yieldf"number is{num}, you win"if__name__=='__main__':server.run("localhost",8000)客户端 Client.pyfromtzrpcimportTZPRC_ClientimportnumpyasnpimporttorchimportnumbersSERVER_ADDRESS="localhost:8000"client=TZPRC_Client(SERVER_ADDRESS)@client.registerdefsay_hello(text):returntext@client.registerdefsend_numpy_obj():data=np.array([[1,2,3],[4,5,6]])returndata@client.registerdefsend_torch_tensor_obj():data=torch.tensor([[1,2,3],[4,5,6]])returndata@client.registerdefsend_bytes():returnb"just for test"@client.registerdefsend_number(data:numbers.Number):returndata@client.registerdefsend_bool(_bool:bool):return_bool@client.registerdefsend_python_obj(data):returndata@client.register(stream=True)defgumbel(num):foriinrange(num):yieldiif__name__=='__main__':print(say_hello("lovemefan"))print(send_numpy_obj())print(send_torch_tensor_obj())print(send_bytes())print(send_number(2))print(send_number(1/3))print(send_bool(True))print(send_bool(False))classtestOb:def__init__(self,name,age):self.name=nameself.age=agepython_obj=testOb("test_name",20)print(send_python_obj(python_obj).__dict__)# 流式demoforiingumbel(10):print(i)客户端输出hello world lovemefan

[[ 3  5  7]
 [ 9 11 13]]

tensor([[14, 32],
        [32, 77]])

b'just for testjust for test'

4

0.6666666666666666

False

True

{'name': 'test_name', 'age': 20}

number is 0, you win
number is 3, you win
number is 6, you win
number is 9, you win
Package: tzunipy
TzunipyA python package that gives information about different Universities in Tanzania.tzunipy made bymaen08InstallRun this command to install the current stable version:pipinstalltzunipy# or using pip3pip3installtzunipyFeaturesShow all universities in TanzaniaShow all universities per region givenShow colleges per universityShow programms pursued per collegeShow the program-duration (if neccessary)Usage>>>fromtzunipy.tzunipyimportTzUniPy# get all universities>>>TzUniPy.all_universities()['University of Dar es Salaam UDSM (Dar es Salaam)','Sokoine University of Agriculture SUA (Morogoro)','Open University of Tanzania OUT (Dar es Salaam)',......]# get universities from a given region>>>TzUniPy.get_univeristy('Dodoma')>>>['University of Dodoma UDOM (Dodoma)',"St. John's University of Tanzania SJUT (Dodoma)"]ContributionWhoever wish to contribute in this project (direct or indirect), please read
the fileupdate.md
Package: tzupdate
tzupdate is a fully automated utility to set the system time using geolocation.Usage$ sudo tzupdate
Set system timezone to Europe/London.Internally, this geolocates you, gets the timezone for that geolocation, and
then updates the system’s local time zone.You can also see what tzupdate would do without actually doing it by passing-p, and specify an alternative IP address by using-a. This is not an
exhaustive list of options, seetzupdate--helpfor that.InstallationTo install the latest stable version from PyPi (recommended):$ pip install -U tzupdateTo install the latest development code from GitHub:$ pip install -U git+https://github.com/cdown/tzupdate.git@developTesting$ tox
Ran 18 tests in 1.109s
Package: tzview
tzviewView datetime in different time zones.Given a time zone and datetime, tzview can find the datetime at other time zones.The time zone names are those as specified in the Olsen time zone database (tz).tzview merely leveragespytzpackage to get the job done.InstallationYou need Python>=3.6 to use tzview.It can be installed from PyPI with pip usingpip install tzviewUsageDefaultsThe string'local'can be used to specify the local time zone. This is the source time zone by default.The string'now'can be used to specify the local datetime. This is the source datetime by default.Command line usageTo get the current time at Tokyo relative to your computer's current time and time zone, usepython3 -m tzview Asia/Tokyoto get something like2020-05-24 09:16:05.281238+09:00 : Asia/TokyoYou could provide source datetime using--dtoption and source time zone with--from-tzoption. Likepython3 -m tzview --dt "2020-03-23 11:32:34" --from-tz Asia/Tokyo Europe/Oslo Asia/Istanbulto get an output like2020-03-23 03:32:34+01:00 : Europe/Oslo
2020-03-23 05:32:34+03:00 : Asia/IstanbulUsepython3 -m tzview --helpfor more.Usage as moduleThetzview()function can be used. It accepts the extension name as string.Return value would be a list of timezone aware datetimes.For example,>>> from tzview import tzview
>>> t(['Europe/Oslo'])
[datetime.datetime(2020, 5, 24, 12, 6, 14, 272335, tzinfo=<DstTzInfo 'Europe/Oslo' CEST+2:00:00 DST>)]

>>> t(['Europe/Athens', 'Asia/Singapore'])
[datetime.datetime(2020, 5, 24, 13, 11, 7, 32042, tzinfo=<DstTzInfo 'Europe/Athens' EEST+3:00:00 DST>), datetime.datetime(2020, 5, 24, 18, 11, 7, 32042, tzinfo=<DstTzInfo 'Asia/Singapore' +08+8:00:00 STD>)]WhyIt is useful to figure meeting times when you got to attend meeting at a different time zone.Or when calling a friend at another timezone to figure out the time of the day there.That's what I use it for. :-)