Saravanan666/pypi-org huggingface dataset:
Package: ttkbootstrap
A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.👀 Check out thedocumentation.Features✔️Built-in ThemesOver a dozen curated dark and light themes.✔️Pre-defined Styles:Loads of beautiful pre-defined widget styles such asoutlineandround togglebuttons.✔️Simple keyword API:Apply colors and types using simple keywords such asprimaryandstripedinstead of the legacy approach ofprimary.Striped.Horizontal.TProgressbar. If you've used Bootstrap for web development, you are already familiar with this approach using css classes.✔️Lots of new Widgets:ttkbootstrap comes with several new beautifully designed widgets such asMeter,DateEntry, andFloodgauge. Additionally,dialogsare now themed and fully customizable.✔️Built-in Theme Creator:Want to create your own theme? Easy! ttkboostrap includes a built-intheme creatorthat enables you to easily build, load, expore, and apply your own custom themes.Installationpython-mpipinstallttkbootstrapSimple UsageInstead of using long, complicated ttk style classes, you can use simple keywords with the "bootstyle" parameter.importttkbootstrapasttkfromttkbootstrap.constantsimport*root=ttk.Window(themename="superhero")b1=ttk.Button(root,text="Submit",bootstyle="success")b1.pack(side=LEFT,padx=5,pady=10)b2=ttk.Button(root,text="Submit",bootstyle="info-outline")b2.pack(side=LEFT,padx=5,pady=10)root.mainloop()The new keyword API is very flexible. The following examples all produce the same result:bootstyle="info-outline"bootstyle="info outline"bootstyle=("info", "outline")bootstyle=(INFO, OUTLINE)LinksDocumentation:https://ttkbootstrap.readthedocs.io/en/latest/GitHub:https://github.com/israel-dryer/ttkbootstrap
Package: ttkbootstrap-fork-laggykiller
NOTICEThis is a fork fromhttps://github.com/israel-dryer/ttkbootstrapThis is uploaded to PyPI as dependency of my projectI am forced to upload to PyPI this as I cannot upload project that has git repo as dependencyChanges could be seen fromhttps://github.com/laggykiller/ttkbootstrapA supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.👀 Check out thedocumentation.Features✔️Built-in ThemesOver a dozen curated dark and light themes.✔️Pre-defined Styles:Loads of beautiful pre-defined widget styles such asoutlineandround togglebuttons.✔️Simple keyword API:Apply colors and types using simple keywords such asprimaryandstripedinstead of the legacy approach ofprimary.Striped.Horizontal.TProgressbar. If you've used Bootstrap for web development, you are already familiar with this approach using css classes.✔️Lots of new Widgets:ttkbootstrap comes with several new beautifully designed widgets such asMeter,DateEntry, andFloodgauge. Additionally,dialogsare now themed and fully customizable.✔️Built-in Theme Creator:Want to create your own theme? Easy! ttkboostrap includes a built-intheme creatorthat enables you to easily build, load, expore, and apply your own custom themes.Installationpython-mpipinstallttkbootstrapSimple UsageInstead of using long, complicated ttk style classes, you can use simple keywords with the "bootstyle" parameter.importttkbootstrapasttkfromttkbootstrap.constantsimport*root=ttk.Window(themename="superhero")b1=ttk.Button(root,text="Submit",bootstyle="success")b1.pack(side=LEFT,padx=5,pady=10)b2=ttk.Button(root,text="Submit",bootstyle="info-outline")b2.pack(side=LEFT,padx=5,pady=10)root.mainloop()The new keyword API is very flexible. The following examples all produce the same result:bootstyle="info-outline"bootstyle="info outline"bootstyle=("info", "outline")bootstyle=(INFO, OUTLINE)LinksDocumentation:https://ttkbootstrap.readthedocs.io/en/latest/GitHub:https://github.com/israel-dryer/ttkbootstrap
Package: ttkDesigner
ttkDesignerttkDesigneris thepyTermTktool for designing and building Text-based user interfaces (TUIs) withpyTermTkWidgets. You can compose and customize your windows or dialogs in a what-you-see-is-what-you-get (WYSIWYG) manner, and test them interactively.Widgets and forms created withttkDesignerintegrate seamlessly with programmed code, usingpyTermTk's signals and slots mechanism, so that you can easily assign behavior to graphical elements. All properties set inttkDesignercan be changed dynamically within the code.FeaturestbdInstall/UpgradettkDesigneris available onPyPIpip3install--upgradettkDesignerRunttkDesigner
Package: ttkode
ttkodeTerminalToolKit (Studio) Code (editor)A hopefully fast and mesmerizingly advancedtext-basedcode editor inspired byvscodeFeatures (TBD)Search PanelHighlightBookmarksShiny ASCII Red PeppersPeek 2022-10-08 22-25.webmInstall frompypipipinstallttkodeQuickRun$ttkode-h
usage:ttkode[-h][-cC]path[path...]positionalarguments:paththedir/filename/s

optionalarguments:-h,--helpshowthishelpmessageandexit-cCconfigfolder(default:"/home/user/.config/ttkode")TestClonegitclonehttps://github.com/ceccopierangiolieugenio/ttkode.gitcdttkodeRunpython3 -m ttkode  <Dir/File/s>
Package: ttkthemes
ttkthemesA group of themes for the ttk extenstions for Tkinter gathered together by RedFantom and
created by various authors.Licensettkthemes: A group of themes for the ttk extensions of Tcl
Copyright (C) 2017-2020 RedFantom
Copyright (C) 2017-2018 Akuli
Copyright (C) 2004 Pat Thoyts
Copyright (C) 2004 David Zolli
Copyright (C) 2007-2008 Mats Bengsston
Copyright (C) 2005 Jelco Huijser
Copyright (C) 2015-2018 The materia and equilux authors
Copyright (C) 2018 Uwe Klimmek 
Copyright (C) Regents of the University of California, Sun Microsystems, Inc., Scriptics Corporation, and other parties
Copyright (c) 2018 Maximilian Lika
Copyright (C) 2018-2020 The Yaru Theme Authors
Copyright (C) 2015-2020 The Adapta Theme Authors

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.``Please note that while you can use some themesonlyunder GPLv3 and that my code is also
availableonlyunder GPLv3, some themes, of which the files have a header explicitly stating
this, are also available under the BSD-like 2-clause Tcl license.UsageFor more information about how to use this project in your own programs, please check out thedocumentationon ReadTheDocs. You can also find
example images of the different included themes there, so you can choose one easily, as well
as examples on usage.RecommendationsThe themesplastik,clearlooksandeleganceare recommended to make your UI look nicer
on all platforms when usingTkinterand thettkextensions in Python. When you are targeting
Ubuntu, consider using the greatradiancetheme.
Package: ttkthemes2
TtkTheme2受ttkthemes灵感而发，目的只是为了补充ttkthemes的主题。维护者：XiangQinxiTtkThemes2*依赖tksvg库，有些主题是使用tksvg构建的，需要安装tksvgpipinstalltksvg使用：fromttkthemes2importTtkThemes2theme=TtkThemes2(theme_name=...)简单示例fromtkinterimportTk,ttk,StringVarfromttkthemes2importTtkThemes2root=Tk()theme=TtkThemes2(theme_name="awdark")window=ttk.Frame(root)button=ttk.Button(window,text="TtkButton")button.pack(padx=10,pady=10,fill="x")window.pack(fill="both",expand="yes")root.mainloop()Themed2Tk简易包装TtkThemes2*依赖tksvg库，有些主题是使用tksvg构建的，需要安装tksvgpipinstalltksvg使用：fromttkthemes2importThemed2Tkroot=Themed2Tk(theme_name=...)简单示例fromtkinterimportTk,ttk,StringVarfromttkthemes2importThemed2Tkroot=Themed2Tk(theme_name="awdark")window=ttk.Frame(root)button=ttk.Button(window,text="TtkButton")button.pack(padx=10,pady=10,fill="x")window.pack(fill="both",expand="yes")root.mainloop()
Package: ttkvideo-player
ttkvideo_playerttkVideo_player: Python module for playing videos (with sound) inside tkinter Label widget using Pillow and imageio works best
& fast on small size videos however takes few seconds of time for larger videos files Copyright Â© 2024 coder-wisvishalsharma.pypi@gmail.comBuilt With :tkinter & CustomTkinter (Python built-in)imageioPillowInstallation:The pip command to install ttkinter videos library for usepip install ttkvideo_playerThis will create a shim between your code and the module binaries that gets updated every time you change your code.Usage :Import tkinter and tkvideo-moviepyCreate Tk() parent and the label you'd like to useGet a moviepy videoCreate ttkvideo_player object with its parameters(video_path, label_name,number of loops for the video if required and size of the video_screen)Start the player thread with .play()Start the Tk mainloopExamplesThe given below is an example of the'demo.py'file to demonstrate the syntax :For Tkinterimport ttkvideo
  import tkinter as tk
  win=tk.Tk()
  label=tk.Label(win)
  label.pack()
  player=ttkvideo_player.Ttkvideo( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()For Customtkinterimport ttkvideo
  import customtkinter as ctk
  win=ctk.Tk()
  label=ctk.Label(win)
  label.pack()
  player=ttkvideo_player.Ttkvideo( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()Releases :For the updated versionLatestversion.LicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: ttkvideos
ttkvideostkVideo: Python module for playing videos (with sound) inside tkinter Label widget using Pillow and imageio works best & fast on small size videos however takes few seconds of time for larger videos files Copyright Â© 2023 vishal sharma &nbspSharma659615@gmail.comBuilt With :tkinter & CustomTkinter (Python built-in)imageioPillowInstallation:The pip command to install ttkinter videos library for usepip install ttkvideosThis will create a shim between your code and the module binaries that gets updated every time you change your code.Usage :Import tkinter and tkvideo-moviepyCreate Tk() parent and the label you'd like to useGet a moviepy videoCreate tkvideo object with its parameters(video_path, label_name,number of loops for the video if required and size of the video_screen)Start the player thread with .play()Start the Tk mainloopExamplesThe given below is an example of the'demo.py'file to demonstrate the syntax :For Tkinterimport ttkvideos
  import tkinter as tk
  win=tk.Tk()
  label=tk.Label(win)
  label.pack()
  player=ttkvideos.Ttkvideos( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()For Customtkinterimport ttkvideos
  import customtkinter as ctk
  win=ctk.Tk()
  label=ctk.Label(win)
  label.pack()
  player=ttkvideos.Ttkvideos( %video_path% ,label,loop=1,(640,400))
  player.play()
  win.mainloop()Releases :For the updated versionLatestversion.LicenseDistributed under the MIT License. SeeLICENSEfor more information.
Package: ttkwidgets
ttkwidgetsA collection of widgets for Tkinter's ttk extensions by various authors.Licensettkwidgets: A collection of widgets for Tkinter's ttk extensions by various authors 
Copyright (c) 2008-2022 The ttkwidgets authors
See AUTHORS.md for more details

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.InstallationWith pip:pip install ttkwidgetsUbuntu: ttkwidgets is available in the PPAppa:j-4321-i/ttkwidgets.sudo add-apt-repository ppa:j-4321-i/ttkwidgets
  sudo apt-get update
  sudo apt-get install python(3)-ttkwidgetsArchlinux: ttkwidgets is available inAUR.DocumentationOnline documentation is available here:https://ttkwidgets.readthedocs.io/en/latest/ContributingIf you have created a widget that you think is worth adding, then feel free to fork the repository and create a Pull
Request when you've added the widget to your copy of the repository. You will be credited for your work, and you can add
headers to your files. You will also be added to theAUTHORS.mdfile.IssuesIf you find any bugs or have any ideas, feel free to open an issue here in the repository, and it will be looked at.
Package: ttla
TTLAThis application is meant to be an automated experiment and not
an application by it self to annotated numeric columns. Nonetheless,
we are planning to create an application based on this approach
details will be mentioned here once we start.Install via pippip install ttlaRun the experimentsTo download the data of T2Dv2 automaticallypython data/preprocessing.pyDetectionpython -m experiments.web_commons_v2 detectLabelingLabel (may take up to an hour, it needs to be connected to the internet)python experiments.web_commons_v2 labelGet the kinds (offline, quick)python experiments.web_commons_v2 addkindsShow scores (offline, quick)python experiments.web_commons_v2 scoresTestsQuick tests (test the algorithms, but does not include the t2d experiment)sh run_tests.shrun tests with the T2Dv2 experiment (may take up to an hour)sh run_t2dv2_tests.shnot that some tests may fail overtime as they depend on dbpediaCoverage:Coverage of the quick testssh run_cov.shCoverage of T2Dv2 testssh run_t2dv2_cov.shTo publishpython setup.py sdist bdist_wheel
twine upload dist/*ContributionTo contribute, please read the below to follow the same conventionCode structureThe source code related to detection of data types (e.g. categorical, continuous, ...) is located underdetect.while the files related to the annotation of the semantic types (e.g. height of a person) are located underlabel.
Package: ttlab
TT - labEasy to use import scripts for the most common physics equipments such as XPS, mass spectrometer, light spectrometers.
Functions for the most typical analysis procedures.Installation$pipinstallttlabHow to useFor full explanation, see the documentation at ‘link’.Example with mass spectrometer data:fromttlabimportMassSpectrometer# Create a mass spec objectfilename='path/filename.asc'MS=MassSpectrometer(filename)# Check what gases are included in the dataprint(MS.gases)# Plot one of the gases, using matploltlib, returns the axesax=MS.plot_gas('Ar')# Get the ion current and the relative time for the gas, returns np arrays with the dataion_current_argon=MS.get_ion_current('Ar')time_relative=MS.get_relative_time('Ar')LicenseMIT license
Feel free to use ttlab in whatever way you want to.
Package: ttl-cache
ttl-cacheHow to use itpipinstallttl-cacheimportttl_cache# use ttl_cache directly@ttl_cachedefexpensive_operation(a,b):......returnSOME_RESULTexpensive_operation(xx,yy)expensive_operation(xx,yy)# prefer cached result# ... 60 seconds laterexpensive_operation(xx,yy)# compute again# or@ttl_cache(2.0)# cache the result in the next 2 seconds, default is 60.0 secondsdefexpensive_operation(a,b):......
Package: ttldict
Python dictionary with key expiry timeOrderedTTLDict- behaves like an ordered dict you know.
The methodsitemsandvaluesreturn a list of objects after purging expired
objects. The methodkeysreturnsodict_keysas the parnet class, but it does
so after purging expired keys.
Python’s own OrderedDict and other dictionaries return a [dictionary views][1]
whereas the methods here do not.TestingUse pytest to run the tests:` make test `Credits and Thanks:mailgun for expiringdictThomas Kemmer forhttps://github.com/tkem/cachetoolsand for Jyrki Muukkonen for ttldict
published inhttps://github.com/jvtm/ttldict.This library contains fixes for his TTLDict class
and my own OrderedTTLDict.Without all those this work would not have been possible.[1]:https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects
Package: ttldict2
ttldict2Another dictionary with expiring keys.DetailsThere are quire a few expiring/ttl dictionary libraries available. This one might be a better choice for you if:Only need support for Python 3.7+ or PyPy3Use it in a single/asyncio threadWork correctly regardless of system-clock adjustmentsThe implementation is a wrapper around the builtin dict. As a design choice the methods that are not wrapped with
TTL logic are accessible and can be used with caution.Install & usageIt is available on PyPI:$python-mpipinstallttldict2>>>importtime>>>importttldict2>>>d=ttldict2.TTLDict(ttl_seconds=1.0)>>>d["a"]=5>>>d.get("a")5>>>time.sleep(1.1)>>>d.get("a")None
Package: ttl_memoized
TTL Memoized - A memoized decorator with TTL (time-to-live) support.The idea ofmemoizedis great, as some resources are expensive, so
you want to cache them.However, there isn’t a memoized lib support TTL (time-to-live) at the
moment, or I haven’t find any thing yet.So I implement thisttl_memoizedto fill in
the gap here.Also, this lib is meant to be thread-safe, usingthreading.localobject to store the variables.Installation:Should be faily simple using pip:pip install ttl_memoizedUsageThe usage is simple, and the best way to explain it, is with my test
cases:def test_basic():

  @memoized(ttl=0.5)
  def a(name):
    return datetime.datetime.now()

  @memoized(ttl=0.5)
  def b(name, *args, **kwargs):
    return datetime.datetime.now()

  a1 = a(1)
  b1 = b(1, 2, 3, what='ever', you='want', to='be')

  for i in range(100):
    assert a1 == a(1)

  for i in range(100):
    assert b1 is b(1, 2, 3, what='ever', you='want', to='be')

  a2 = a(2)
  assert a2 != a1

  # let the cache expired...
  time.sleep(0.51)

  assert a(1) != a1
  assert b1 != b(1, 2, 3, what='ever', you='want', to='be')CeveatThe parameter for the functions is required to be serializable withjsonlibs, as the lib
is using json to build the keys from parameters.
Package: ttlockio
ttlock.ioPython wrapper for TTLock APIRegister a developer accounthttps://euopen.ttlock.com/registerLog inhttps://euopen.ttlock.com/loginCreate application:https://euopen.ttlock.com/CreateApplicationThe application needs to be reviewed. After it is reviewed, all the APIs are available.Create a user for this application and get the access token:$ pip install ttlockio
$ create_user YOUR_APP_CLIENT_ID YOUR_APP_CLIENT_SECRET USERNAME PASSWORD --token--tokenis an optional parameter;create_user -hfor usage. if not used the user will be created without an access token. You need pass the PASSWORD with max 32 chars, low caseReturn:{'username': 'prefixed_user'}
{'access_token': 'xxx', 'uid': xxx, 'refresh_token': 'xxx', 'openid': xxx, 'scope': 'user,key,room', 'token_type': 'Bearer', 'expires_in': 7776000}5a. Refresh the access token when requiredrefresh_access_token YOUR_APP_CLIENT_ID YOUR_APP_CLIENT_SECRET YOUR_REFRESH_TOKENReturn:{'access_token': 'xxx', 'refresh_token': 'xxx', 'openid': xxx, 'scope': 'user,key,room', 'token_type': 'Bearer', 'expires_in': 7776000}Test your USER:Download TTLock App at your cellphones app store. Log in with your YOUR_APP_NAME_CONCAT_NEW_NAME_FOR_YOUR_USER and NEW_PASS_FOR_YOUR_USER created on step four.Add your TTLock gateways and locks.Install and Use$ pip install ttlockio 
$ python3
>>import ttlockwrapper
>>gateways = list(ttlockwrapper.TTLock(clientId='YOUR_APP_CLIENT_ID',accessToken='YOUR_ACCESS_TOKEN').get_gateway_generator())
>>print('Gateway ID and Gateway Lock quantity: {}, {}'.format(gateways[0].get('gatewayId'),gateways[0].get('lockNum')))ExamplesSee example dir at this repo.
Package: ttlser
ttlserDeterministic turtle serialization for rdflib.DocumentationSee thedocsfor the full specification and
details on the implemention.ttlseralso includes a number of other turtle serializers for
specific rendering needs.ttlfmtttlserprovides attlfmtscript that can convert any rdflib supported
format into the output format supported by the serializers or any other
rdflib serializer. If you want to use it you should install withttlser[ttlfmt].Known issuessymmetric predicates: If you have symmetric predicates likeowl:disjointWiththen
ttlser needs to know about them so that it can do the reordering those cases appropriately,
otherwise you will end up with situations where another tool reorders the serialization and
ttlser has to assume that the ordering is semantically meaningful.  Seesymmetric_predicatesinserializers.py.multiple prefixes: If there is more than one curie prefix for the same iri prefix
then the one that is selected will depend on the dicationary ordering (which while
stable in newer version of python is not guranteed to be the same based on the
contents of the data, rather on the history of the additions and removals).rdflib version: ttlser cannot produce deterministic results without the changes
added inhttps://github.com/RDFLib/rdflib/pull/649. Hopefully those will be merged
for rdflib-5.0.0, in the mean time ttlser depends on neurdflib which includes those
changes. Once it is merged then ttlser will depend on versions of rdflib that come
after and neurdflib will be deprecated.Random failures. Every once in awhile list serialization fails specatcuarly.
The cause is not obvious (same input file every time for testing), but it is probably
because the fixed point function used to implement bnode ranking has a bug.scottl is a broken mess. In principle this orders by therdfs:subClassOfhierarchy
and thennatsort, however in practice it currently does whatever it wants. I'm also
fairly certain that the test templatescogood.ttlis not correct.
Package: ttlstore
Installation:pip install ttlstoreGetting started:import time

from ttlstore import TTLStore


d = TTLStore(ttl=1) # use d like a python dictionary
d['a'] = 'b'
time.sleep(2)
# 'a' is not present any more in the memory
print(d)

def call_me(key, value):
   print(key, value)

d = TTLStore(ttl=1, callback=call_me)
d['a'] = 'b'
time.sleep(2)
# 'a' is not present any more in the memory and call_me is called.
print(d)To run example script:➜  python example.py
INFO:root:-------- executing example 1 ----------
DEBUG:root:contents of dict: {}
INFO:root:-------- end of example 1 ---------
INFO:root:-------- executing example 2 ----------
DEBUG:root:executing call back for deleted k: 1, v: 3
DEBUG:root:executing call back for deleted k: 2, v: 4
DEBUG:root:contents of dict: {}
INFO:root:-------- end of example 2 ---------
INFO:root:-------- executing example 3 ------
DEBUG:root:done inserting 1000 elements in a tight loop, time taken: 0.0015082359313964844
DEBUG:root:length of dict: 0
DEBUG:root:done inserting 10000 elements sporadically, time taken: 3.6316630840301514
DEBUG:root:length of dict: 0
INFO:root:-------- end of example 3 ----To run tests:python -m unittest -v tests/ttlstore_test.pyUnittest results:➜ python -m unittest -v tests/ttlstore_test.py
test_basics (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_create (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_get (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_iter (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_not_implemented (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_pop (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_reset_of_key_no_trim (tests.ttlstore_test.TTLStoreTestCases)
Re-setting an existing key should not cause a non-expired key to be dropped ... ok
test_set (tests.ttlstore_test.TTLStoreTestCases) ... ok
test_setdefault (tests.ttlstore_test.TTLStoreTestCases) ... ok

----------------------------------------------------------------------
Ran 9 tests in 0.089s

OK