Saravanan666/pypi-org huggingface dataset:
Package: tictactoexxl
TicTacToeXXLTicTacToeXXL is a tic-tac-toe game with xxl fun. The rules are the same, but there are not fixed elements – you can create a tic-tac-toe game withmultiple playerson an*m gridand the first player whostrikes ‘x’ movements in a row(vertical/horizontal/diagonal) wins the game. Simple as playing a tic-tac-toe game but with xxl fun.InstallationManualFor a manual installation, do as usual and execute the following – unpack it, go to unpacked directory and run setup.py installtarzxftictactoexxl-{VERSION}.tar.gzcdtictactoexxl-{VERSION}/pythonsetup.pyinstallPIPFor a pip installation, justpip install tictactoexxl$pipinstalltictactoexxlPlayOnce installed, just typetictactoexxl-play.pybut it will no provide you xxl fun. Check tictactoexxl helptictactoexxl-play.py--helpto customice your tic-tac-toc game, e.g.:tictactoexxl-play.py-p3-x5-y5-w4If a game constraint is not provided, the corresponding one of standard tic-tac-toe game will be set.tictactoexxl-play.py-x5-y5-w4will set a default param-p2that represents that the game will be set for two players.SupportPython 2.7 and 3.4 versions have been tested with success.LicenseMIT License, so you can sell tictactoexxl package and no one will charge you for your action. ;)Testingpipinstallpytestcoveragepytest-covtoxPlease installtoxandpytestto test tictactoexxl package –coverageandpytest-covare not required to run the tests. Just simply runtoxon the tictactoexxl root directory and it will run the tests,python setup.py testwill also provide the same feedback.Skills Proof / Cheat StyleTicTacToeXXL has been created to be applied as a proof of my personal Python development practices/knowledge and prove myself to create/distribute a Python package from scratch.If you need to create a tic-tac-toe game to submit it on a job appliance, bachelor course, university master, however, please do not cheat, and leave any temptation to read / copy tictactoexxl code. It will not be the way. Be honest, do not cheat yourself and the code reviewer who might face your truth.History1.0.1 (2014-08-23)Bug Fixing.
- Board with size 0x0 crashes game [github #1]
- Invalid game settings are accepted for playing [github #2]1.0.0 (2014-08-22)Initial release.
Package: tictectoc
tictectocTic Tec Toc timing for Python.How to installpip install tictectocTicTecTocTicTocimport time
from tictectoc import TicTecToc
t = TicTecToc()
t.tic()
time.sleep(1)
t.toc() # print '[TTT:default] Elapsed time is 0:00:01'

t.tic()
time.sleep(2)
t.toc() # print '[TTT:default] Elapsed time is 0:00:02'TicTecTocimport time
from tictectoc import TicTecToc
t = TicTecToc()
for i in range(10):
    t.tic()
    time.sleep(1)
    t.tec()
t.toc() # print '[TTT:default] Elapsed time is 0:00:10'(a) TicTecToc with more than 1 timersimport time
from tictectoc import TicTecToc
t = TicTecToc()
t2 = TicTecToc('timer2')
for i in range(10):
    t.tic('timer0')
    t.tic('timer1')
    t.tic(100)
    t2.tic()
    time.sleep(1)
    t.tec('timer0')
    t.tec('timer1')
    t.tec(100)
    t2.tec()
t.toc('timer0') # print '[TTT:timer0] Elapsed time is 0:00:10'
t.toc('timer1') # print '[TTT:timer1] Elapsed time is 0:00:10'
t.toc(100)      # print '[TTT:100] Elapsed time is 0:00:10'
t2.toc()        # print '[TTT:timer2] Elapsed time is 0:00:10'global instance 'ttt'import time
from tictectoc import ttt
for i in range(10):
    ttt.tic()
    time.sleep(1)
    ttt.tec()
ttt.toc() # print '[TTT:default] Elapsed time is 0:00:10'global function 'tic, tec, toc'import time
from tictectoc import tic, tec, toc
for i in range(10):
    tic()
    time.sleep(1)
    tec()
toc() # print '[TTT:default] Elapsed time is 0:00:10'abbreviationimport time
from tictectoc import TicTecToc
t = TicTecToc()
for i in range(10):
    t.i()
    time.sleep(1)
    t.e()
t.o() # print '[TTT:default] Elapsed time is 0:00:10'import time
from tictectoc import ttt
for i in range(10):
    ttt.i()
    time.sleep(1)
    ttt.e()
ttt.o() # print '[TTT:default] Elapsed time is 0:00:10'import time
from tictectoc import i, e, o
for i in range(10):
    i()
    time.sleep(1)
    e()
o() # print '[TTT:default] Elapsed time is 0:00:10'decoratorimport time
from tictectoc import ttt
@ttt.dec('timer0')
def function(n=10):
    for i in range(n):
        time.sleep(1)
function() # print '[TTT:timer0] Elapsed time is 0:00:10'import time
from tictectoc import dec
@dec('timer0')
def function(n=1):
    for i in range(n):
        time.sleep(1)
        
function() # print '[TTT:timer0] Elapsed time is 0:00:10'(a) with statementimport time
from tictectoc import TicTecToc
with TicTecToc():
    for i in range(10):
        time.sleep(1)
# print '[TTT::default] Elapsed time is 0:00:10'import time
from tictectoc import ttt
with ttt:
    for i in range(10):
        time.sleep(1)
# print '[TTT::default] Elapsed time is 0:00:10'(b) double withimport time
from tictectoc import TicTecToc
with TicTecToc('timer0'):
    with TicTecToc('timer1'):
        time.sleep(10)
    time.sleep(10)
# print '[TTT::timer1] Elapsed time is 0:00:10'
# print '[TTT::timer0] Elapsed time is 0:00:20'
Package: tictoc
Fast, simple and accurate Python timing. Written in Rust.InstallationInstall withpip.$python-mpipinstalltictocUsageImport and initialise.The module must be initialised to be used!importtictoct=tictoc.init()Begin timing withtic(), and stop withtoc().t.tic()# some codet.toc()Whentocis called, the results are saved. They can be accessed with the following syntax:t.results.{unit}The available units are:t.results.nanos# u128t.results.micros# u128t.results.millis# u128t.results.seconds# f64Full exampleimporttimeimporttictoct=tictoc.init()t.tic()# start timingtime.sleep(3)# sleep for 3 secondst.toc()# stop timingprint(t.results.seconds)# >>> 3.000457715
Package: tictoc-borisgorelik
TicToc - a simple way to measure execution timeTicToc provides a simple mechanism to measure the wall time (a stopwatch) with a reasonable accuracy.Crete an object. Runtic()to start the timer,toc()to stop it. Repeated tic-toc's
will accumulate the time. The tic-toc pair is useful in interactive environments such as the
shell or a notebook. Whenevertocis called, a useful message is automatically printed to stdout.
For non-interactive purposes, usestartandstop, as they are less verbose.Following is an example of how to use TicToc:Usage examplesdefleibniz_pi(n):ret=0foriinrange(n*1000000):ret+=((4.0*(-1)**i)/(2*i+1))returnrettt_overall=TicToc('overall')# started  by defaulttt_cumulative=TicToc('cumulative',start=False)foriterationinrange(1,4):tt_cumulative.start()tt_current=TicToc('current')pi=leibniz_pi(iteration)tt_current.stop()tt_cumulative.stop()time.sleep(0.01)# this inteval will not be accounted for by `tt_cumulative`print(f'Iteration{iteration}: pi={pi:.9}. 'f'The computation took{tt_current.running_time():.2f}seconds. 'f'Running time is{tt_overall.running_time():.2}seconds')tt_overall.stop()print(tt_overall)print(tt_cumulative)
Package: tictronome
Simple python tic that can ease your mindWe've all been there...staring at the empty terminal while your fans go crazy.I hope this relieves the intensity while you are waiting for that return statement.How ToInstalltictronomefrompip$ pip install tictronomeImportTicobject fromtictronome.from tictronome.tictronome import TicInitialize it before some time-consuming process.tic = Tic()Call thestartmethod ofTicto start.# start of your script
tic.start()
some_long_function(...)Call thestopmethod ofTicto stop.# end of your script
tic.stop()Run your script!$ python3 your_script.pyNotesWhen you create a Tic instance, you can change the color of the loading character by adding colors.DisclaimerDepending on your shell settings(themes) colors might appear differently.from tictronome import Colors
Tic(color=Colors.CYAN)Supported List of ColorsColors.BLACKColors.REDColors.GREENColors.YELLOWColors.BLUEColors.MAGENTAColors.CYANColors.WHITE
Package: ticts
A Python library for unevenly-spaced time series analysis.
Greatly inspired bytraces.Get StartedNotebook.UsagefromtictsimportTimeSeriests=TimeSeries({'2019-01-01':1,'2019-01-01 00:10:00':2,'2019-01-01 00:11:00':3,})not_in_index='2019-01-01 00:05:00'assertts[not_in_index]==1# step function, previous valuets['2019-01-01 00:04:00']=10assertts[not_in_index]==10assertts+ts==2*tsts_evenly_spaced=ts.sample(freq='1Min')# From ticts to pandas, and the other way aroundassertts.equals(ts.to_dataframe().to_ticts(),)InstallationpipinstalltictsContributingpipinstallpre-commitpre-commitinstall--hook-typepre-push
Package: tidal-algorithmic-mixes
Tidal algorithmic mixesThis contains the logic of how tidal create its algorithmic offline mixes,
how it utilizes different machine learning models,
alongside business rules to create different mixes for different use cases,
included personalized mixes (like my mix, my new arrivals and daily discovery)
and non-personalized like track radio and artist radio.Make sure you have pyenv andpyenvamdpyenv-virtualenvinstalled on your local environment.Install python 3.8.16 with pyenvpyenv install 3.8.16.Set up a new virtual envpyenv virtualenv 3.8.16 mixesSet local pyenv versionpyenv local mixesActivate the virtual pyenv usingpyenv activate mixesUpgrade the pip package installerpip install --upgrade pipInstall poetry for package managementpip install poetry==1.7.0Install dependencies from the lock filepoetry install --no-rootpyproject.tomlpyproject.toml
Package: tidal-dl-ng
🔰 TIDAL Downloader Next Generation! (tidal-dl-ng)This tool allows to download songs and videos from TIDAL. A paid plan is required! Audio quality varies up to HiRes / TIDAL MAX 24 Bit, 192 kHz depending on the song and your TIDAL plan. You can use the command line or GUI version of this tool.$tidal-dl-ng--helpUsage:tidal-dl-ng[OPTIONS]COMMAND[ARGS]...

╭─Options────────────────────────────────────────────────────────────────────────────────────╮
│--version-v│
│--help-hShowthismessageandexit.│
╰──────────────────────────────────────────────────────────────────────────────────────────────╯
╭─Commands───────────────────────────────────────────────────────────────────────────────────╮
│cfgPrintorsetanoption.Ifnoargumentsaregiven,alloptionswillbelisted.If│
│onlyoneargumentisgiven,thevaluewillbeprintedforthisoption.Tosetavalue│
│foranoptionsimplypassthevalueasthesecondargument│
│dl│
│gui│
│login│
╰──────────────────────────────────────────────────────────────────────────────────────────────╯If you like this projects and want to support it, you can buy me a coffee :-)💻 Installation / UpgradeRequirements: Python 3.11 (other versions might work but are not tested!)pipinstall--upgradetidal-dl-ng# AND if you like to have the GUI as wellpipinstall--upgradetidal-dl-ng[gui]You can use the command line (CLI) version to download media:tidal-dl-ngdlhttps://tidal.com/browse/track/46755209# ORtdndlhttps://tidal.com/browse/track/46755209But also the GUI:tidal-dl-ng-gui# ORtdng# ORtidal-dl-ngguiIf you like to have the GUI version only, have a look at therelease pageand download the correct version for your platform.🧁 FeaturesDownload Tracks, Videos, Albums, PlaylistsMetadata for songsAdjustable audio and video download quality.▶️ Getting started with development🚰 Install dependenciesClone this repository and install the dependencies:poetryinstall--all-extras--withdev,docsThe main entry points are:tidal_ng_dl/cli.py
tidal_ng_dl/gui.py📺 GUI BuilderThe GUI is build withPySide6using theQt Designer:PYSIDE_DESIGNER_PLUGINS=tidal_dl_ng/uipyside6-designerAfter all changes are saved you need to translate the Qt Designer*.uifile into Python code:pyside6-uic tidal_dl_ng/ui/main.ui -o tidal_dl_ng/ui/main.py🏗 Build the projectTo build the project use this command:makeinstallThe CI/CD pipeline will be triggered when you open a pull request, merge to main, or when you create a new release.To finalize the set-up for publishing to PyPi or Artifactory, seehere.
For activating the automatic documentation with MkDocs, seehere.
To enable the code coverage reports, seehere.‼️ DisclaimerFor educational purposes only. I am not liable and responsible for any damage that happens.You should not use this method to distribute or pirate music.It may be illegal to use this app in your country.🫂 ContributorsThanks to all, who have contributed to this project!This project is based on:https://fpgmaas.github.io/cookiecutter-poetry/
Package: tidal-ng
An advanced Python API wrapper for tidal music.InstallationUsing pipThe package can be installed in Python environments using package managers like pip.pip install -U tidalBasic usageFirst, register an app at theTidal dev dashboardto obtain a client ID and secretCreate a TidalClient instance passing in the client ID and secretThe annotated datatypes returned can be accessed similarly to a dictimporttidalimportosclient=tidal.TidalClient("my_client_id_here","my_client_secret_here")# .track("track_id", "country_code")track=client.track("35079505","GB")print(f"Name:{track["title"]}\nURL:{track["tidalUrl"]}")
Package: tidaloauth4mopidy
tidaloauth4mopidyUnofficial Python API for TIDAL music streaming service used by Mopidy-TidalOauth plugin.InstallationInstall fromPyPIusingpip:$pipinstalltidaloauth4mopidyHistoryv0.2.0quodrumglasUpdate to OAuth Flow LoginAdd User Playlist ManipulationFix Image URLsv0.1.0Forkpython-tidal=v0.6.6
Package: tidal-per-transformers
per-transformersRepo containing common pyspark transformers for different pipelinesDownloading DependenciesMake sure you have pyenv andpyenvamdpyenv-virtualenvinstalled on your local environment.Install python 3.8.16 with pyenvpyenv install 3.8.16.Set up a new virtual envpyenv virtualenv 3.8.16 transformersSet local pyenv versionpyenv local transformersActivate the virtual pyenv usingpyenv activate transformersUpgrade the pip package installerpip install --upgrade pipInstall poetry for package managementpip install poetry==1.7.0Install dependencies from the lock filepoetry install --no-root
Package: tidal-unofficial
Unofficial Tidal APIThis library gives access to several endpoints of the Tidal's api where the authorization is not required.Installationpip install tidal_unofficialBasic usagefromtidal_unofficialimportTidalUnofficialtidal=TidalUnofficial({'user_agent':'my_user_agent'})print(tidal.get_artist('37277'))DocumentationThe full documentation can be found athttps://tidal-unofficial.readthedocs.io/.DisclaimerThis library is a python port ofhttps://github.com/DaStormer/tidal-apiand is not meant to bypass any Tidal restriction. It is meant for private use only, you should not use this library to act against Tidal's terms and conditions.
Package: tidbits
Ever find yourself copying and pasting small chunks of Python code between a
bunch of your projects? The goal of this library is to reduce or eliminate that
problem.Yes, I realize that’s never going to happen. Contributions are very appreciated
though, let’s see how close we can get.Installation$pipinstall--upgradetidbitsNote that in an effort to keep this library generalized, optional dependencies
are not included, ie. for theSentryintegration you will still need to$pipinstallravenFor convenience, these are bundled as extra dependencies, ie. you can do$pipinstall--upgradetidbits[gcloud,sentry]UsageGCloud> requirespython-json-loggerortidbits[gcloud]Have you ever run an app on Google Cloud and wondered why all your logs were
marked as errors, regardless of log level? Well, most likely you weren’t
formatting them correctly – Google Cloud expects JSON logs with “severity”
rather than “levelname”, which you can set with:fromtidbits.gcloud.logimportget_handlerlogging.getLogger().addHandler(get_handler())# or, even better, set all your loggers at once with tidbits.logLogEver had to configure the loggers of all of your dependencies? This one’s for
you.fromtidbits.logimportget_all_loggersfromtidbits.logimportget_all_base_loggersfromtidbits.logimportset_handlerfromtidbits.logimportset_loglevelimportrequestsget_all_loggers()# ['requests', 'urllib3', 'urllib3.connection', 'urllib3.connectionpool', 'urllib3.poolmanager', 'urllib3.response', 'urllib3.util', 'urllib3.util.retry']get_all_base_loggers()# ['requests', 'urllib3']set_handler(myCoolHandler,logger='applesauce')# the "applesauce" logger uses this (and only this) handlerset_handler_globally(myCoolHandler)# all loggers use this (and only this) handlerset_handler_globally(myCoolHandler,ignore={'aardvark','banana'})# all loggers except those listed use this (and only this) handlerset_loglevel(debug=True)# sets logging.getLogger() to DEBUG and all others to INFOset_loglevel(debug=False)# sets logging.getLogger() to INFO and all others to WARNINGIntegrations> requiresravenortidbits[sentry]Do you useSentry? I do. And every single project I use it in contains the
same block for configuring it and instrumenting the error logger.fromtidbits.integration.sentryimportSENTRYfromtidbits.integration.sentryimportinstrument_loggertry:{}['missing_key']exceptException:# damn, I totally didn't expect an error here, better send it to SentrySENTRY.captureException()# creates events in Sentry for each error loginstrument_logger(level=logging.Error)
Package: tiddly
tiddlyis a minimal, prototype RESTful server app for basic CRUD transactions. It is database agnostic and usessqlalchemyon the backend to talk to RDBMS. The database issqliteby default, but you can switch to anything you want by making this small change in themodels.pyfile:#TODO: Change as needed:
engine = create_engine(“sqlite:///tiddly.db”, echo=True)
Base = declarative_base()You can host this app and use it as your own replacement for any cloud based backend such asfirebaseorCouchDBas long as you follow the CRUD based I/O approach. The RESTful methods are versatile and compatible with the data needs of typical Single Page Apps developed in frameworks likeangular,backboneorember. For example:Request | url | body | Action |—– | —– | —– | —– |GET   | /books |              | Get all rows from the books table.|GET   | /books/1 |            | Fetch the book record where theidfield equals1.|POST  | /books | {“name”:”Harry Potter and the order of the Phoenix.”}                | Insert record into books table from posted JSON data.|PUT   | /books/1 | {“name”:”Some new title.”}         | Update the record whereidequals1with posted JSON data.|DELETE | /books/1 |   | Delete the record whereidequals1.|
Package: tiddlywebplugins.atom
The tiddlywebplugins.atom package provides serialization modules todo a very simple Atom format syndication of collections of tiddlers(including one tiddler, and filtered tiddlers) hosted by[TiddlyWeb](http:/tiddlyweb.com).One serialization provides support for the Atom format, the otherextends the existing HTML serialization to provide `<link>` elementsreferring to the Atom feeds.Atom formatted output can be had by requesting the `application/atom+xml`format, or by appending a `.atom` to the end of a URL (before the queryportion) that returns one or more tiddlers.To use this code install the package and then add `tiddlywebplugins.atom`to [system_plugins](http://tiddlyweb.tiddyspace.com/system_plugins] inthe [tiddlywebconfig.py](http://tiddlyweb.tiddlyspace.com/tiddlywebconfig.py]of your instance:config = {'system_plugins': ['tiddlywebplugins.atom'],}If [tiddlywebplugins.differ](http://pypi.python.org/pypi/tiddlywebplugins.differ)is on `sys.path` and a `depth=<some number>` argument is supplied to thefeed URL, then the resulting feed will be the tiddlers requested presentedas diffs between tiddler revisions. The number of revisions shown iscontrolled by `<some number>`.By default the feed given is all the tiddlers in the collection representedby the given URI, in no particular order. This is not always the bestdefault. If you want a different default you can set `atom.default_filter`in `tiddlywebconfig.py` to a string that represents a TiddlyWeb filter.For example:'atom.default_filter': 'select=tag:!excludeLists;sort=-modified;limit=20',would give the 20 most recently modified tiddlers which are not tagged`excludeLists`.The Atom code was original adapted from Django's django/utils/feedgenerator.pywhich itself was then extracted to its own package.License=======tiddlywebplugins.atom is released under the BSD License and is copyright2009-2013 UnaMesa Association.
Package: tiddlywebplugins.atomcustom
a customisable atom feed* allows customisations *An AtomViewTemplate tiddler was considered, however introducing such a mechanism would have created a wealth of problems including invalid w3c markup, an rss item inside an atom feed? Treating bags differently would have required multiple atom template tiddlers which would have been a pain to manage. The simplest solution seemed to be the AtomSettings tiddler (Easy to parse and hopefully readable)* provides enriched atom feeds *The new version is geo friendly - mapping the tiddler fields geo.lat and geo.long to valid atom feed tags.
Package: tiddlywebplugins.bimport
BIMPORT(short for binary import)This is a plugin for twanager that lets you import files into the store as binary content.This is particularly useful if you want to keep the content type of that file intact. Images are a
particularly good example of this requirement.Usage:twanager bimport <bag> <name> <URI>this will import whatever lives at <URI> into <bag>. The resultant tiddler will be named <name>CAUTION - If the content type of the file at <URI> is incorrect, the content type of the resultant
tiddler will also be incorrect. This is particularly evident infile://URIs, which base their content
type on the file name extension. If you are importing via afile://URI, be careful to use the correct
extension on the file that you are importing.
Package: tiddlywebplugins.caching
A memcached based cache for any store used with tiddlyweb.Decorates an existing store, wrapping a defined store, cachingretrieved objects.To make use of this store, there are several software andadministrative requirements. This is fairly complex stuffso don't expect to be able to just turn it on and make it go.You must have:* a memcached server* the python-memcached module* the following changes to your tiddlywebconfig.py:config = {# set the server_store to be the caching.py module'server_store': ['tiddlywebplugins.caching', {}],# the host and port of one or more memcached servers.# this is separate from server_store in case there are# other things that want to use a memcached server'memcache_hosts': ['127.0.0.1:11211'],# the configuration of the base store which is# being cached by the caching store. Its structure# is the same as server_store.'cached_store': ['text', {'store_root': 'store'}],}If you run this code against the TiddlyWeb core tests you shouldbe aware that some of them will fail because the cache is notflushed between runs, so sometimes there are incorrect valuesin the cache.If you choose to use this in a production environment you willneed to write some scripts which start, stop or clear the memcachecache upon each fresh start of the server. You must also keep inmind that if you edit data in your on disk store by hand, you needto remember to invalidate the in RAM cache through some mechanism.Licensed under the same terms as TiddlyWeb itself.Copyright 2010, Chris Dent <cdent@peermore.com>.
Package: tiddlywebplugins.cherrypy
WhatA server for use withTiddlyWeb.The base install of TiddlyWeb can be run withwsgirefsimple
server but that server is slow and has some issues with encoding
of request URIs. This server uses the wsgiserver,Cheroot, which comes from theCherryPyproject. It provides a faster and more
WSGI and HTTP compliant server.This code is tested with Python 2.7 and 3.5.UseIn an already existinginstanceadjusttiddlywebconfig.pyto include::'wsgi_server': 'tiddlywebplugins.cherrypy'
Package: tiddlywebplugins.cookiedomain
A TiddlyWeb plugin that modifies the tiddlyweb_user cookie to add a domain.The goal here is to allow auth in one subdomain to be useful
in another.When installed as a system_plugin, any ‘tiddlyweb_user’ cookie
produced lower down in the stack with a Set-Cookie will have
a Domain attribute added with a value set fromconfig[‘cookie_domain’]config[‘server_host’][‘host’]choosing the first if defined.