Saravanan666/pypi-org huggingface dataset:
Package: toasts
ToastsToasts is an app that shows desktop notifications from various websites like GitHub,
StackExchange, BitBucket, and the likes. It just runs in the background and shows
you a notification when there is one from sites you have enabled. Authentication to
your user account on a particular website is done through a Personal Access Token or
Oauth.Please do note that this project is still a work in progress, even though it works.Supported SitesGithubIf you would like a new site to be supported, please open an issue, and let's see
what we can do :)Getting StartedRequirementsToasts is written in Python3 and the package is available on PyPI.The app has been tested only on Linux, as of now. It should work fine on a Mac, but
Windows is not supportd at the moment (I'm working on it).InstallationOpen a terminal and:$pipinstall--usertoastsFor updating the app:$pipinstall--user-UtoastsUsageBefore running the app, we should first enable available clients in theconfig file.
The user config file is~/.config/toasts/config.yamlon Linux and~/Library/Application Support/toasts/config.yamlon Mac.Only Github is implemented for now, so you can enable it in the config file like so:# Config file for toastsgeneral:# List of sites to enable; comma seperated list# Default: []clients:[github]...Toasts gets Github notifications using a Personal Access Token. Go toDeveloper Settingsand create one
with permission to access your notifications.
Then set the environment variablesGH_UNAMEto your Github username andGH_TOKENto the
access token you just created (it is possible to authenticate using your Github
password; just setGH_TOKENto your password).You're all set !Open a terminal and and run thetoastscommand:$toastsYou should see your notifications pop up, if you have an update from the
enabled sites.I'm so happy right now :)The Config FileThe file is inYAMLformat:# Config file for toastsgeneral:# List of sites to enable; comma seperated list# Default: []clients:[]# Connection timeout, in seconds# Default: 7 ; Minimum value: 1conn_timeout:7# Check for notifications every ___ minutes# Default: 3 ; Minimum value: 2check_every:3# Show notification for ___ seconds# Default: 7 ; Minimum value: 2notif_timeout:7# Maximum number of notifications to show at a time, of individual clients.# Default: 2# Note: Value of -1 will show all notifications; it may clutter your workspace.notif_max_show:2sites:github:# *Environment variable* which holds your github username# Default: GH_UNAMEusername:GH_UNAME# *Environment variable* which holds a personal access token for authentication# Default: GH_TOKENtoken:GH_TOKEN
Package: toasts-winrt
Python Windows SDKPython bindings for the Windows SDK.This is a community-supported version of the unmaintainedwinrtpackage.InstallationThis package is distributed on PyPI as thewinsdkpackage.# use your favorite environment manager
poetry add winsdk
pipenv install winsdk
pip install winsdkDocumentationhttps://python-winsdk.readthedocs.io/en/latest/
Package: toasty
toastyis a Python library that helps you create “tile pyramids” from
astronomical image data as used in theTOASTformat. These multi-resolution
maps can be viewed in software such asWorldWide Telescope.toastywas originally written byChris Beaumont, benefited from
contributions by Clara Brasseur (Space Telescope Science Institute), and is
currently maintained as part of theWorldWide Telescopeproject.For more information, including installation instructions, please visitthe
project homepage.
Package: toasync
toasyncConvert sync function to async function and start at same timefromtimeimportsleep,timeimportasynciofromtoasyncimportasync_@async_deffunc(name,i=1):print('Start function{}'.format(name))sleep(1)print('Done function{}'.format(name))if__name__=='__main__':coroutine=asyncio.gather(func()('1'),func()('2'),func()('3'),)start_time=time()asyncio.get_event_loop().run_until_complete(coroutine)print('Process take{}sencond'.format(time-start_time))thenStartfunction1Startfunction2Startfunction3Donefunction2Donefunction1Donefunction3Processtake1.007418155670166sencondIf run function as synchronous, you can calldelaymethodfromtimeimportsleepfromtoasyncimportasync_@async_deffunc(name,i=1):print('Start function{}'.format(name))sleep(1)print('Done function{}'.format(name))if__name__=='__main__':func().delay('1')func().delay('2')func().delay('3')thenStartfunction1Donefunction1Startfunction2Donefunction2Startfunction3Donefunction3
Package: toasyncio
toasyncioWrite on tornado with asyncio easy.AboutTransparent convert any asyncio futures and inline yield methods to tornado futures.ExamplesUsingimport tornado.gen
import asyncio
from tornado.ioloop import IOLoop
from toasyncio.gen import coroutine

@coroutine
def test():
    print('Tornado future')
    yield tornago.gen.sleep(1)
    print('Asyncio future')
    yield from asyncio.sleep(1, loop=IOLoop.current().asyncio_loop)
    print('Done')

IOLoop.current().run_sync(test)Testingimport asyncio
from tornado.gen import sleep
from toasyncio.testing import gen_test, AsyncTestCase


class TestBasic(AsyncTestCase):
    @gen_test
    def test_all_together(self):
        step = 0.1
        count = 10
        t0 = self.io_loop.time()

        for i in range(count):
            yield sleep(step / 2)
            yield from asyncio.sleep(step / 2, loop=self.aio_loop)

        self.assertTrue((t0 + (count * step)) <= self.io_loop.time())
Package: toautosyspath
Auto sys pathA python automatically adds the current project sys Path toolUse example:example-project:- package1-init.py- main.py- package2-init.py- util.pyat main.pyimportautosyspathfrompackage2.utilimporthelloworldhelloworld()You can run anywhere main.py without error.example:> cd /example-project && python package1/main.py> cd / && python example-project/package1/main.py> cd /example-project/package1 && python main.pythat's all ok.
Package: toaztr-specs
OpenAPI definition for Toaztr APIsDocumentation is accessible on ourdevelopers site.UsageInclusion in your projectCompiled specs can be accessed from thedevelopers siteor from the following package managers:For javascript/typescript onnpmjsFor python onpypiCode generationIf you require code generation from the api specs, it is up to you to set it up from the compiled specs we publish.
A good starting point is theOpenAPI generator.
Package: toba
Timeliness Ordered Byzantine AgreementFree software: Apache2 licenseInstallationpip install tobaDocumentationhttps://toba.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.1.0 (2017-04-20)First release on PyPI.
Package: tobacco
Tobacco: Your shiny new pipe>>!Do you miss the%>%from R/dplyr? What about the|>from Julia? Now
you can use atobacco.pipeto chain together function calls! The@pipedecorator will take a function and repurpose the builtin right-bitshift
operator>>to be a function pipe. I've hardly ever seen anyone using>>, so it doesn't seem likely many people will miss the default behavior.A pipeline takes the value of a function call on the left-hand side, and
passes it in as the first argument to the function on the right-hand side:0>>f>>g# evaluates to g(f(0))You can even specify keyword closures within the pipeline# Evaluates to g(f(0, some_keyword=5), another="foo")0>>f(some_keyword=5)>>g(another="foo")InstallationpipinstalltobaccoUsagefromtobaccoimportpipe@pipe# `pipe` overrides the builtin right-bitshift operator `>>`defplus_one(a:int)->int:returna+1@pipedefminus_amount(b:int,amount:int=2)->int:returnb-amount@pipedefplus_five(c:int)->int:returnc+5# 0 + 1 - 4 + 5 = 2res=0>>plus_one>>minus_amount(amount=4)>>plus_fiveprint(res)# 2For very long data pipelines, this can clean up the readability a lot:result=(load_data>>clean_data>>add_columns>>do_analysis>>upload_to_database)In this short example,resultis the output ofupload_to_databaseafter
all the prior steps completed.
Package: tobbetu-classFetcher
tobbetu-classFetcherA simple library to fetch class Zoom links from the TOBB ETU class portal.How to use?To install simply use:pip install tobbetu-classFetcherAt the beginning of your code add:from tobbetu-classFetcher import classFetcherCall the function using:classFetcher(className, classID)className is as the name implies, e.g. "ELE 263"classID includes your section to fit with the website formatting, e.g. "cELE2632" (ELE263, Section2)DependenciesThis library usesSeleniumandtime.
Package: tob-deux
Version:1.2.0Web:https://deux.readthedocs.org/Download:https://pypi.python.org/pypi/deuxSource:https://github.com/robinhood/deuxKeywords:authentication, two-factor, multifactorAboutMultifactor Authentication provides multifactor authentication integration for
the Django Rest Framework. It integrates with Token Authentication built into
DRF and OAuth2 provided bydjango-oauth-toolkit.What is Multifactor Authentication?Multifactor Authentication (MFA) is a security system that requires more than
one method of authentication from independent categories of credentials to
verify the user’s identity for a login or other transaction.
(Source:SearchSecurity)InstallationYou can install deux either via the Python Package Index (PyPI)
or from source.Requirementsdeuxversion 1.2.0 runs on Python (2.7, 3.4, 3.5).Installing with pipTo install usingpip:$ pip install -U deuxDownloading and installing from sourceDownload the latest version of deux fromhttp://pypi.python.org/pypi/deuxYou can install it by doing the following:$ tar xvfz deux-0.0.0.tar.gz
$ cd deux-0.0.0
$ python setup.py build
# python setup.py installThe last command must be executed as a privileged user if
you are not currently using a virtualenv.Using the development versionWith pipYou can install it by doing the following:$ pip install https://github.com/robinhood/deux/zipball/master#egg=deux
Package: toblerone
TobleroneSurface-based analysis tools.Installation via pip and conda:Cython and numpy need to be installed separately, as follows:python-mpipinstallcythonnumpy
python-mpipinstalltobleroneDocumentation:https://toblerone.readthedocs.io/en/latest/Citation:T. F. Kirk, T. S. Coalson, M. S. Craig and M. A. Chappell,Toblerone: Surface-Based Partial Volume Estimation, in IEEE Transactions on Medical Imaging, vol. 39, no. 5, pp. 1501-1510, May 2020, doi: 10.1109/TMI.2019.2951080.License:BSD License.
Package: tobool
toboolConvert many different representations of a bool to an actual bool or a NoneUsagepip install tobool

from tobool import to_bool

# Examples:
print(to_bool("True"))  # True
print(to_bool("False"))  # False
print(to_bool("Yes"))  # True
print(to_bool("T"))  # True
print(to_bool(1))  # True
print(to_bool("None"))  # None
Package: tobvalid
ToBvalid is a Python library and a program for the statistical analysis and validation of ADPs (Atom Displacement Parameters).This tool is designed for modelling of ADP distribution and their validation on both global and local levels. Main functionalities of ToBvalid include:Overall statistical analysis of ADP distributionParametrisation of ADP distribution (mixture) and validation of the distribution parametersSearch for potential lighter and heavier atoms which may have been modelled wronglyValidation of ligands
Package: toc4github
toc4githubInstallUsageShowcaseThetoc4githubis a very tiny tool to automatically generate Table of
Contents (TOC) for Markdown file, especially for README.md in Github.com.
It might also be used for other markdown rendering system, but
I never tested! :)Install$pipinstalltoc4github
$python-mtoc4github-h# inline helpUsageYou should insert a placeholder which is{toc}in README.md. The
placeholder ocuppies a whole line. Then:$python-mtoc4github[-d][-tTITLE]<path/to/README.md>Now, the placeholder is replaced by TOC generated with an optional title,
and your markdown file is updated.Or, you can callmake_tocinterface in your python code. It returns
the TOC as string in accordance with input, and you can do anything
you want with it.# how to importfromtoc4githubimportmake_toc# signaturemake_toc(lines:Iterable[str]|str)->strShowcaseIn addition, All my repos' TOC are generated by toc4github.
Have fun ... ^___^
Package: toca
TocaAutomatic Testing命令行# toca help
usage: toca ACTION [-c toca.toml]

ACTION should be:
    ls           列出所有 API
    run          运行所有 API
    help, -h, --help    打印帮助

optional arguments:
    -c toca.toml  指定配置文件, 默认为当前路径下的 toca.toml配置文件示例[env]
class_id  = "123456"
school_id = "123456"

# 静态参数可以出现在所有地方
# 动态参数只允许出现在 url/headers/params 中

[liteApp]
scheme = "http"
port = 4000
host = "localhost"
    [liteApp.headers]
    content-type = "application/json"
    [liteApp.Duration]
        [liteApp.Duration.CreateDuration]
        method = "post"
        url    = "/liteapp/duration"
            [liteApp.Duration.CreateDuration.headers]
            content-type = "application/json"
            [liteApp.Duration.CreateDuration.params]
            begin_time = "2019-01-01"
            end_time   = "2019-06-01"
            class_id   = "{{class_id}}"
            school_id  = "{{school_id}}"
        [liteApp.Duration.GetDuration]
        method = "get"
        url    = "/liteapp/duration/{$ liteApp.Duration.CreateDuration.response.data.uid $}"
        [liteApp.Duration.ListDuration]
        method = "get"
        url    = "/liteapp/duration/list"
    
    [liteApp.Duty]
        [liteApp.Duty.CreateDuty]
        method = "post"
        url = "/liteapp/duty/"
            [liteApp.Duty.CreateDuty.headers]
            content-type = "application/json"
            [liteApp.Duty.CreateDuty.params]
            duration_id = "{$ liteApp.Duration.CreateDuration.response.data.uid $}"
            duties      = "{$ _functions.loadJsonFromFile('duties.json') $}"
        [liteApp.Duty.GetDuty]
        method = "get"
        url    = "/liteapp/duty/{$ liteApp.Duty.CreateDuty.response.data.uid $}"
    
    [liteApp.Section]
        [liteApp.Section.ListSection]
        method = "get"
        url    = "/liteapp/school/{{school_id}}/sections/"Todo执行单个命令执行单个命令时，可以在命令行中指定参数执行单个 Groupenv 中的参数支持动态生成
Package: tocamelcase
🐫ToCamelCase: Convert snake_case to CamelCaseInstall$ pip install tocamelcaseWhy?Convertnon_camel_casetoCamelCaseClean and focusedActively maintainedUsageimporttocamelcaseprint(tocamelcase.convert("non_camel_case"))# Eg: non_camel_case → NonCamelCaseRelated🐍  decamelize: Convert a camelized string into snake_caseTeamCarlos AbrahamLicenseMITLicense ©Carlos Abraham
Package: tochka-cyclops-api
Tochka API v2 aka Cyclops API Library for PythonСтавьте звезды, суки бесполезные! Мне от ваших 100 установок в первый день НИКАКОЙ ПОЛЬЗЫUnofficial Python Library for Tochka APIНеофициальная библиотека на Python для работы с АПИ Точка Банка (я его предпочитаю называть Дрочка банком).Документация туть.Работает через JSONRPC.Может грузить документы.Содержит магию "Лунной призмы" 🪄 💫 ✨Установка:pipinstalltochka-cyclops-api# Если текущая версия падает с ошибкой, установите предыдущуюpipinstalltochka-cyclops-api==0.3.0# или такpoetryaddtochka-cyclops-api

poetryaddgit+https://github.com/s3rgeym/tochka-cyclops-api.git

gitclonehttps://github.com/s3rgeym/tochka-cyclops-api.gitcdtochka-cyclops-api# что-то правимpoetryinstall--no-devПоддержка asyncio пока не планируется, но за звезду и донат в пару тысяч оперативно добавлю.В эпоху Docker использовать версии Python, отличные от последних — моветон, поэтому поддержка более старых точно не планируется.Использование:fromtochka_cyclops_apiimportApiTochka,ApiErrorapi=ApiTochka(base_url='<API_URL>',sign_system='<SIGN_SYSTEM>',sign_thumbprint='<SIGN_THUMBPRINT>',pkey_data=open('/path/to/rsaprivkey.pem').read(),)# Методы генерируются динамически. Вызов несуществующих атрибутов инстанса ApiTochka преобразуется в запросы к API.try:"""Отправит запрос с таким телом:{"id": "0d6a26ea-84f0-4be2-9999-b46edc9b59b6","jsonrpc": "2.0","method": "identification_payment","params": {"payment_id": "cyclops-b9eabfd7-eead-4940-a6b1-4654850664f5","owners":[{"virtual_account": "859b645a-ebb8-4f91-8b05-b433c85dc662","amount": 1000}]}}* camelCase преобразуется в snake_case: identificationPayment,IdentificationPayment и identification_payment равнозначны.* Вместо именованных параметров можно передать словарь.* Если словарь и именованные параметры передаются вместе, то они мержатся,причем именованные параметры перезапишут элементы словаря.Результат будет примерно таким:{"virtual_accounts": [{"code": "859b645a-ebb8-4f91-8b05-b433c85dc662","cash": 1000}]}"""res=api.identificationPayment(payment_id="cyclops-b9eabfd7-eead-4940-a6b1-4654850664f5",owners=[{"virtual_account":"859b645a-ebb8-4f91-8b05-b433c85dc662","amount":1000}])# Вместо словаря при парсинге объектов используется AttrDict,# который позволяет к полям обращаться как к атрибутам, а не только по индексуprint(rv.virtual_accounts[0])exceptApiErrorasex:ifex.code=='4411':print('Аккаунт не найден')...rv=api.upload_document('beneficiary',# можно передать любой объект, имеющий метод read, например, `requests.get('https://target/path/to/file.pdf')`,# но тогда придется указать content_typeopen('/path/to/offer.pdf','rb'),beneficiary_id='...',document_type='contract_offer',# Эти параметры можно опустить, они сгенерируются автоматическиdocument_date='2023-11-12',document_number='12345',)print(rv.document_id)# cyclops-231020230621590-98a669e2-859b-44ac-9831-4a964ac7e49bЗапуск тестов:poetryrunpython-munittestВсе мыслимые права защищеныв натуре(с) 2023.
Package: toci
# TociToci is a markdown tool to generate an outline from a given Jupyter notebook. It traverses the markdown cells of a given `ipynb` file to form a toc for you.## How it works```$ pip install toci==0.0.3$ toci --helpusage: toci [-h] [--version] --notebook NOTEBOOKoptional arguments:-h, --help            show this help message and exit--version             show program's version number and exit--notebook NOTEBOOK, -n NOTEBOOKan ipynb notebook file```Create a table of content from a given ipynb file as follows:```$ toci -n notebook.ipynb# Table of Content- [Intro](#intro)- [Heading 2](#heading-2)- [Heading 3](#heading-3)- [Another Heading 2](#another-heading-2)- [Another Heading 2 2](#another-heading-2-2)- [Another Heading 3](#another-heading-3)- [Another Heading 4](#another-heading-4)- [😽 Cat Section](#-cat-section)- [is another section ready?](#is-another-section-ready)```## LICENSEMIT
Package: tocinator
TOCinatorThis python module parses your Markdown file and generates a Table of Content(TOC)
for that file. It should be noted that this is still in development and may not
always function as expected.The TOC below was completely generated using this module.Table of ContentFeatures of this moduleCode Generated using tocinatorRendered CodeInstallationHow to use this moduleWhat not to doGeneral LayoutFeatures of this moduleGenerate Markdown-ready code.Generated TOC has links to the actual headings and subheading. Which means you
can just paste the generated code in your README file and click on any of the links
to go to the desired heading.Code Generated using tocinatorBelow is an example of TOC generated using tocinator.
The README used in the below snippets is from myotherrepository.
Do check it out if you code in C, it might be of your interest.Rendered CodeInstallationWith pip$pip3installtocinatorWithout pipClone this repository.$gitclonegit@github.com:Coder-RG/tocinatorChange directory to cloned repository.$cdtocinatorRun the file at command line:$python3src/tocinator/tocinator.py<input-file><output-file>How to use this moduleUse##for headingsUse###for subheadings.Example 1: (installed with pip)$python3-mtocinatorREADME.mdOUT.mdExample 2: (installed without pip)$python3src/tocinator/tocinator.pyREADME.mdOUT.mdIf the .md file is in another folder, then use absolute path.$python3src/tocinator/tocinator.py<path-to-folder>/README.md<path-to-folder>/TEST.mdExample 3: (installed without pip)$python3src/tocinator/tocinator.py/home/username/project/README.md/home/username/project/OUT.mdWhat not to do#and####are not used in the parsing yet and therefore won't be
displayed in the TOC.Only use alphanumeric for heading and subheadings. Otherwise, the links won't work.General LayoutCode is rendered using grip module. Do check outgripif you want to render your markdown files in your browser.
Package: tock
TockTock stands for Theory Of Computing toolKit. It can simulate the
automata taught in standard theory of computation courses
(deterministic and nondeterministic finite automata, pushdown
automata, and Turing machines). It can also simulate many extensions,
like multiple stacks or tapes.Project documentationInstallationTock depends on the following:Python 3.7 (required)GraphViz(to draw graphs)Jupyter(to
view notebooks)pydot(to edit machines)openpyxl(to open Excel
files)Steps:Runpip install tock.InstallJupyterby runningpip install jupyter(orconda install jupyterif you use Anaconda).InstallGraphViz.CopyingThis is open-source software under the MIT License. SeeLICENSE.txtfor more information.
Package: tocka-django-cms
Open source enterprise content management system based on the django framework.Attention!To propose features, always open pull requests on thedevelopbranch.
It’s the branch for features that will go into the next django CMS feature release.For fixes for 3.0.x releases, please work onsupport/3.0.xwhich contains
the next patch release for 3.0.x series.Themasterbranch is the current stable release, the one released on PyPI.
Changes based onmasterwill not be accepted.FeaturesHierarchical pagesExtensive support for multilingual websitesMulti site supportDraft/Published workflowsUndo/RedoUse the content blocks (placeholders) in your own apps (models)Use the content blocks (static placeholders) anywhere in your templatesEdit content directly in the frontend on your pagesHierarchical content plugins (columns, style changes etc)Navigation rendering and extending from your appsSEO friendly urlsHighly integrative into your own appsYou can define editable areas, called placeholders, in your templates which you fill
with many different so called CMS content plugins.
A list of all the plugins can be found here:3rd party pluginsShould you be unable to find a suitable plugin for you needs, writing your own is very simple.More information onour website.DocumentationPlease head over to ourdocumentationfor all
the details on how to install, extend and use the django CMS.Tutorialhttp://docs.django-cms.org/en/latest/introduction/index.htmlQuick StartYou can use thedjango CMS installer:$ pip install --upgrade virtualenv
$ virtualenv env
$ source env/bin/activate
(env) $ pip install djangocms-installer
(env) $ mkdir myproject && cd myproject
(env) $ djangocms -p . my_demo
(env) $ python manage.pyGetting HelpPlease head over to our IRC channel, #django-cms, on irc.freenode.net or write
to ourmailing list.Commercial supportThis project is backed byDivio. If you need help
implementing or hosting django CMS, please contact us:sales@divio.ch.CreditsIncludes icons fromFamFamFam.Python tree engine powered bydjango-treebeard.Javascript tree in admin usesjsTree.Many thanks to theover 250 contributorsto the django CMS!