Saravanan666/pypi-org huggingface dataset:
Package: tournament-scheduler
A tool to generate a CSV export of the best tournament schedule for the specified number of teams and fields, under the constraint that every team must play the same amount of games on some fields (all fields by default).Can be used either as a command-line tool or as a regular Python module.InstallationThrough PyPI$pipinstalltournament-schedulerManually$gitclonehttps://github.com/fdebellabre/tournament-scheduler&&cdtournament-scheduler
$pipinstall.UsageFrom the command lineEither specify the team names$scheduler--nfield6ParisBordeauxLilleLyonMarseilleNantesToulouseOr specify the number of teams$scheduler--nteams7--nfield6From within Pythonimportschedulerimportnumpyasnpimportpandasaspdnteams=10nfields=3bestfields=1teams=['Team '+str(z+1)forzinrange(nteams)]games=scheduler.get_best_schedule(teams,nfields,bestfields)# Field distribution qualityscheduler.get_aggregate_data(games)# Schedule qualitynp.array(scheduler.get_gap_info(games))# gaps between games (rows are teams)# Save the schedule to csvschedule=scheduler.pivot_schedule(games)schedule.to_csv('schedule.csv')ProcedureThe goal of this program is to optimize a schedule for a group tournament with those characteristics:any two teams must meet oncesome fields may be better than otherseach team must play the same amount of games on the better fields, and on every other field if possibleIn addition to those constraints, we want to minimize the overall duration of the tournament and to optimize the rest time, such that no team has to wait for too long between two games.The original use-case for this optimization problem was a soccer tournament with 10 teams and 3 fields, one of which being better than the others.1. Getting a list of games to play on each fieldIn our setup, all fields are not equal. Each team must play the same number of games on the better fields (and on all fields if possible). We get aperfect matchwhen this happens.To get the best possible match between games and fields, I created the python functionget_best_match. Depending on the number of fields and teams, there cannot always be a perfect match.Here is a summary of what this function does:Try and get each team to play as much as the other teams on every fieldIf not possible, at least have the teams play the same number of games on the better fields.If not possible, decrement the number of fields to play on (e.g.if 5 fields are available but there is no satisfactory solution, we try and get a solution with 4 fields).2. Optimizing the schedule with respect to some criteriaCriteria:we want to minimize the rest periods between games. In order of priority, we minimize:The maximum gap between any two games of the same teamThe maximum gap before+after a gameThe average (across teams) maximum gap between any two games of the same teamThe python functionget_best_schedulerandomly tries different schedules and returns the best of them, according to criterion 1, then criterion 2, then criterion 3.
Package: toursst
TouRSSt tours the web so you don’t have to. Run frequently, it pulls
new RSS news items from a number of channels and puts them where you
want.Currently it can deliver news items to a Maildir, but future additions
will include sending over SMTP, perhaps writing out aggregated RSS
feeds, and so on. TouRSSt is built to be reasonably modular, so you
should have no problems adding your own delivery plugin, if you just
know a bit of Python.
Package: toutiao
Copyright (c) 2018 DoukeshiPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Project-URL: Bug Reports,https://github.com/doukeshi/toutiao-cli/issuesProject-URL: Source,https://github.com/doukeshi/toutiao-cliDescription: # toutiao-cliCLI for [toutiao.io](https://toutiao.io/)## Installation`sh $ pip install toutiao `## Usage`sh $ toutiao [OPTIONS] [DATE] `Examples:`sh $ toutiao    # Show today's posts $ toutiao--top# Show yesterday's top3 posts $ toutiao2018-05-09# Show posts on2018-05-09$ toutiao--top2018-05-09# Show top3 posts on2018-05-09$ toutiao--verbose# Show today's posts with more information $ toutiao--verbose2018-05-09# Show posts on2018-05-09with more information `Get Help:`sh $ toutiao--help`## Credits[Click](https://github.com/pallets/click)[Requests](https://github.com/requests/requests)[BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/)## ContributingFeedback, suggestions and bug reports are welcome on GitHub athttps://github.com/doukeshi/toutiao-cli/issues.## License[MIT License](https://opensource.org/licenses/MIT)Keywords: toutiao cli tool
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Terminals
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Package: toutpt.zopeskel
IntroductionThis package provide new templates forZopeSkel2.X.It contains at the moment only one template for Plone.How to installThis can be installed by using easy_install, pip or buildout.
An example of buildout can be found athttps://github.com/toutpt/mypythontoolsTemplatestoutpt_diazo960Create a Plone theme using plone.app.theming.The theme is pure Diazo theme using 960 css.The package profile install the theme, activate it, and unactivate column.css
(aka deco). It loads all resources in corresponding registry.toutpt_diazoboostrapCreate a Plone theme using plone.app.theming.The theme is pure Diazo theme using twitter’s boostrap grid (responsive mode).The package profile install the theme, activate it, and unactivate column.css
(aka deco) and mobile.css. It loads all resources in corresponding registry
and override the ‘main_template’ to reset the viewport.toutpt_collectivejsCreate a package to provide a javascript library to Plone. Many collective.js.* packages can be found like jqueyrui.This template has been used to create collective.js.formalize.toutpt_collectiveCreate a package to be a collective addon. It will provides tests using plone.app.testing, upgrades for genericsetup and a browserlayer. All common needs are their.CreditsCompaniesPlanet Makina CorpusContact usAuthorsJeanMichel FRANCOIS aka toutpt <toutpt@gmail.com>..ContributorsChangelog1.3.3 (2012-05-31)collective: Following conventions for testing + use PloneWithPackageLayeradd toutpt_diazobootstrap skel: a diazo theme based on twitter bootstrap responsiverename toutpt_diazotheme skel in toutpt_diazo9601.3.2 (2012-03-20)collective: add tests1.3.1 (2012-03-16)upgrade boostrap.py1.3 (2012-03-16)add upgrades for profile to all skelsfix missing initialize1.2 (2011-12-28)collectivejs: add z3c.autoincludediazotheme: add skinname to static directory.1.1 (2011-12-14)add toutpt_collectivejs template1.0 (2011-12-14)Initial release
Package: toutsurmoneau
py-mon-eauVersion 0.0.23Get your water meter data from your online Suez account (<www.toutsurmoneau.fr>) as well as other sites using the same interface.Two Classes are provided:AsyncClientis an asynchronous clientClientis a legacy synchronous client, compatible with modulepySuezInstallationpipinstalltoutsurmoneauCLI Usagetoutsurmoneau[-h]-u_user_name_here_-p_password_here_[-c_meter_id_][-e_action_]API UsageAsync useimporttoutsurmoneauimportaiohttpimportasyncioasyncdefthe_job():asyncwithaiohttp.ClientSession()assession:obj=toutsurmoneau.AsyncClient(username='_username_here_',password='_password_here_',session=session)returnawaitobj.async_contracts()print(f">>{asyncio.run(the_job())}")Sync useimporttoutsurmoneauclient=toutsurmoneau.Client('_username_here_','_password_here_')print(f">>{client.contracts()}")The sync object returns the same values aspySuez.HistoryThis module was inspired frompySuez from Ooii.
Package: towbar
Introductiontowbar is a python library for theboxcar.ioweb service.InstallationInstall via pip:pip install towbarOr if you must:easy_install towbarUsagetowbar can be imported into any python module:from towbar import Towbar
tow_bar = Towbar(user, password)The object then provides the following API methods:tow_bar.notify_myself(message, sender)There is also an exported API function which can be used directly:import towbar
towbar.send_notification(user, password, text)Dependenciespython-requestsTODOFull API supportProvider supportIntegration testingMetaBugsContinuous IntegrationDocsContributeIf you want to contribute:Fork the project.Make your feature addition or bug fix based on develop.Add tests for it. This is important so I don’t break it in a future version unintentionally.Commit, do not mess with versionSend me a pull request. Bonus points for topic branches.History0.1.0 (2011-09-10)basic API accesssend notification to oneself
Package: towbintools
towbintools!This is the package containing all the important functions used by the Towbin Lab of the University of Bern.
Most of the code is a python translation of our old Matlab pipeline.Documentation :https://towbintools.readthedocs.io/en/latest/towbintools.htmlDeep learningThis package uses the pretrained-microscopy-models package (available here :https://github.com/nasa/pretrained-microscopy-models/tree/main) which is not available as a pip dependency. If you want to use the deep learning part, you will have to install it using:pipinstallgit+https://github.com/nasa/pretrained-microscopy-modelsSetting up a Virtual EnvironmentUsing a virtual environment isolates your package dependencies and settings from your system Python.
Here's how you can set one up:First, create a folder where the venv will be stored:mkdir~/env_directoryCreate the venv:python3-mvenv~/env_directory/towbintoolsTo activate the venv:source~/env_directory/towbintools/bin/activateWhenever you are done working, you can deactivate it with:deactivateHow to add a python venv to JupyterFirst, make sure Jupyter and related packages are installed:pip3installjupyteripykernelAdd your venv to Jupyter:python3-mipykernelinstall--user--name=towbintoolsIf you're using VSCode, reload VSCode and you should be able to find the kernel.Install the package using pipSimply run the following command:pip3installtowbintoolsBuild the package and install itFirst, make sure build is installed:pip3installbuildGo to the package directory, eg:cd~/towbintoolsBuild the package:python3-mbuildInstall the package you just built:pip3installdist/*.whlYou're now all set!
Package: towel
Towel is a collection of tools which make your life easier if you
are building a web application using Django. It contains helpers and
templates for creating paginated, searchable object lists, CRUD
functionality helping you safely and easily create and update objects,
and using Django’s own proofed machinery to see what happens when
you want to safely delete objects.Towel on github:https://github.com/matthiask/towel/Documentation:http://www.feinheit.ch/media/labs/towel/
Package: towel-foundation
NoteYou have to addtowel_foundationtoINSTALLED_APPS, preferably
beforedjango.contrib.adminbecause otherwise the foundationified
login, logout and password templates will not be picked up.Included goodiesBase templatesbase.html:Base template for everything. CSS is at the top, Javascript at the bottom.
Defines two Javascript arrays you might want to be aware of:onReady: A list of functions which will be run on$(document).ready(). Receive the jQuery instance as first and only
argument.onForm: A list of functions which initialize forms. Might be called
several times on the same set of elements. Receive two arguments, a
jQuery object wrapping eitherdocumentor some subset of the DOM
and the jQuery instance.towel/modal.html:Template for AJAX-loaded modals.The following blocks are available by default:title: Browser titlecss: CSS declaration.body: Everything inside<body/>except fortemplatesandjs.navigation: The content of the navbar.main: The main container, that is, everything except for the navigation
and the footer.search: A search form embedded in the sidebar.sidebar: The sidebar itself.messages: A messages container above the page header and the content.page-header: The page header, most useful when there is a<divclass="page-header"/>inside.content: Content.footer: The footer.templates: May be used for Javascript templates, meaning mainly for<scripttype="text/template"/>tags.js: All Javascript files and code.ModelView templatestowel_foundationcomes with a selection of templates most useful with
ModelView. Have a look at the files intowel_foundation/templates/modelview/.Towel templatestowel_foundationoverrides the styles of form items, form errors and
warnings, of ordering links in the list pages and of the pagination.Templates fordjango.contrib.authLog in, log out, password change and reset templates are included as well.Template tagsContains a template tag most useful for marking the current navigation entry.
Use as follows:{% load mark_current %}
{% mark_current request.path %}
    <li><a href="..."></a></li>
    <li><a href="..."></a></li>
    <li><a href="..."></a></li>
{% endmark_current %}Each navigation entry should occupy one line; adds aclass="active"where
the current URL begins with thehrefattribute value.Javascript helpersonReadyandonFormhave already been described above.$.fn.flash: Changes a set of elements to be partially translucent before
fading them in to complete opacity again.$.fn.autogrow: When applied to a textarea, causes the textarea to
automatically expand in height when new content is added so that no scrollbar
appears. Is applied by default to all elements matchingtextarea.autogrow.initForms([elem]): Runs all handlers inonForm. Defaults to handling
everything insidedocumentif no object is passed.modalLoad(url): Loads a foundation modal from a remote URL. This is
automatically activated for all elements matchinga[data-toggle=ajaxmodal].All AJAX requests are patched to work with Django’s CSRF protection.Third-party librariesjQuery.Harvest chosen.
Package: towercrane
TowerCranetowercrane is an easy to use commandline tool for keeping your large project files on the cloud.
It simply searches for specific file extensions in your project and let your simply upload and downlaod them between your local and cloud.
It's designed to work with AWS S3, Google Cloud Storage and other storage services in the future.
towercrane is desined for Linux and macOS. Support for windows is in the backlog.I used to run out of space on my laptop all time. very often it was because of large datasets or other formats of project files, which I didn't want to remove from my local. I wrote towecrane and decided to make it open source for other people to contribute to.CheersQuick startyou can install towercrane on using pip.
when running config there is a choice for using either AWS S3 or Google Cloud Storage. and you need have their cli tool authnticated. look for the links at the bottom.pip3installtowercrane

towercraneconfigBasic Usagetowercrane commandsStartbymovingtotherootofyourprojectcdmy_project

towercranescantowercranestatus

towercraneinittowercraneuploadtowercraneremovetowercranedownloadStatus lifecycle of a towercrane projectlocal
cloud
local_and_cloudupload
uploadedremove
removeddownload
Package: tower-of-rapunzel
Tower of RapunzelInstallCreate a Python virtual environment (version 3.7 or above):python3 -m venv torvenvInstall the game (the version number may differ):torvenv/bin/pip install tower_of_rapunzel-0.9.0.tar.gzPlayLaunch the server:torvenv/bin/torgameYou should see this message:======== Running on http://127.0.0.1:8080 ========
(Press CTRL+C to quit)Point your browser to that address:firefox http://127.0.0.1:8080When you get to Rapunzel’s chamber for the first time, you may need toenable audioin your browser tab
if there is no sound to be heard.PosterTower of Rapunzel is Free software. It is a web-native single-puzzle text adventure, built entirely of:Python 3.7+HTML5CSS3It’s a piece of work to demonstrate the use of theTurberfield dialoguelibrary, and to show how that
can be integrated into an asynchronous web framework.Tower of Rapunzel’s core logic is written in Python. The dialogue library provides a neat format to define and
schedule the speech of the non-player characters.Other architectures are possible. Authors less focused on coding may prefer to implement game logic within
the dialogue itself. This too is supported by theTurberfield dialoguelibrary.I’m looking for feedback on the game and its underlying technology. Do please:Leave acommenton the Itch.io game pageFlag a technicalissueat the Github repository
Package: towerpy-rd
:satellite: TOWERPYTowerpy is an open-source toolbox designed for reading, processing and displaying polarimetric weather radar data.:books: DocumentationYou can find more details aboutTowerpyhere.:speech_balloon: CitingIf you findtowerpyuseful for a scientific publication, please consider citing thetowerpy paper:BibTeX:@article{sanchezrivas2023, title = {{Towerpy: An open-source toolbox for processing polarimetric weather radar data}},
   journal = {Environmental Modelling & Software}, pages= {105746}, year = {2023}, issn = {1364-8152},
   doi = {https://doi.org/10.1016/j.envsoft.2023.105746}, author = {Daniel Sanchez-Rivas and Miguel Angel Rico-Ramirez},
   keywords = {Weather radar, Polarimetry, Radar QPE, Radar research applications, Open source}}:hammer: Installing towerpyTo ensure a smooth installation of towerpy, we strongly recommend usingconda, the open-source Python package management system.Downloadand install Anaconda to get conda and other essential data science and machine learning packages.Once Anaconda is installed and working, we recommend adding theconda-forge channelto the top of the channel list::conda config --add channels conda-forgeStrict channel priority can dramatically speed up conda operations and also reduce package incompatibility problems. We recommend setting channel priority to "strict" using::conda config --set channel_priority strictCreate a new environment to install towerpy::conda create -n towerpy python=3.10Activate the new environment::conda activate towerpyInstall the latest version of Towerpy by choosing ONE of the following options:(1) Downloading and installing Towerpy from Anaconda.org::conda install -c towerpy towerpy(2) Downloading and installing Towerpy from GitHub (here we have the latest release)::python -m pip install --upgrade git+https://github.com/uobwatergroup/towerpy.git@main(3) Downloading and installing Towerpy from the Python Package Index (PyPI)::python -m pip install towerpy-rdFinally, install other additional dependencies helpful for scientific computing::conda install -c conda-forge ipython jupyter sympy spyder scikit-learn wradlibInstalling from sourceOptionally, you can get the towerpy source code from theGitHub repository.Either download and unpack the zip file of the source code or use git to clone the repository::git clone https://github.com/uobwatergroup/towerpy.gitOnce inside the folder wheretowerpywas downloaded, it can be installed by using pip::python -m pip install .Or install Towerpy in “editable” mode::python -m pip install -e .:snake: DependenciesThe following dependencies are required to work withtowerpy:PackageRequiredNumPyv1.21+SciPyv1.7.1+Matplotlibv3.5.2+Cartopyv0.19+netCDF4vv1.5.8+*Some modules withintowerpyrun using shared objects/dynamic link libraries (.so, .dll). These libraries are automatically installed during thetowerpyinstallation.:thought_balloon: Missing a specific feature? Found a bug?Feel free to post a message to ourdiscussions pageor have a look at ourcontribution guidelinesto find out about our coding standards.:construction_worker: TeamTowerpy is created and maintained byDaniel Sanchez-RivasandMiguel A Rico-Ramirez
Package: towhee-deepfake
Deepfakeauthor: Zhuoran YuDescriptionDeepfake techniques, which present realistic AI-generated videos of people doing and saying fictional things, have the potential to have a significant impact on how people determine the legitimacy of information presented online.This operator predicts the probability of a fake video for a given video.This is an adaptation fromDeepfakeDetection.Code ExampleLoad videos from path '/home/test_video'
and use deepfake operator to predict the probabilities of fake videos.importtowhee(towhee.glob['path']('/home/test_video').deepfake['path','scores']().select['path','scores']().show())[0.9893,0.9097]InterfaceA deepfake operator takes videos' paths as input.
It predicts the probabilities of fake videos.The higher the score, the higher the probability of it being a fake video.(It can be considered to be a fake video with score higher than 0.5)Parameters:filepath:strAbsolute address of the test videos.Returns:listThe probabilities of videos being fake ones.
Package: towncrier
towncrieris a utility to produce useful, summarized news files (also known as changelogs) for your project.Rather than reading the Git history, or having one single file which developers all write to and produce merge conflicts,towncrierreads “news fragments” which contain information useful toend users.Used byTwisted,pytest,pip,BuildBot, andattrs, among others.While the command line tooltowncrierrequires Python to run, as long as you don’t use any Python-specific affordances (like auto-detection of the project version), it is usable withany project typeonany platform.Philosophytowncrierdelivers the news which is convenient to those that hear it, not those that write it.That is, by duplicating what has changed from the “developer log” (which may contain complex information about the original issue, how it was fixed, who authored the fix, and who reviewed the fix) into a “news fragment” (a small file containing just enough information to be useful to end users),towncriercan produce a digest of the changes which is valuable to those who may wish to use the software.
These fragments are also commonly called “topfiles” or “newsfiles”.towncrierworks best in a development system where all merges involve closing a ticket.To get started, check out ourtutorial!Project LinksPyPI:https://pypi.org/project/towncrier/Documentation:https://towncrier.readthedocs.io/Release Notes:https://github.com/twisted/towncrier/blob/trunk/NEWS.rstLicense:MIT
Package: towpy
TOW.PYTOW.PY(text only window)is a simple, toy python library that allows for text-based graphical
applications to be prototyped and developed. It has been built on top ofpygamebut developed as to abstract its methods away.SIDE NOTE: This is not to say that pygame is complicated or necessary to
abstract away to create a useable framework.PhilosophyWhy develop a program that is so restricted when libraries such aspygamealready exist? Aside from being a toy library to play around with and develop
quirky text programs in, I have always taken after the way of thinking that
minimilism enhances creativity.SetupTOW.PY can easily be installed with pip.pip install towpyCode Exampleimport towpy

tow = towpy.TextOnlyWindow()

txt_obj = towpy.TextObject(["Hello", "World"], (10, 10))
tow.add_object(txt_obj)

tow.run()