Saravanan666/pypi-org huggingface dataset:
Package: twx.botapi
twx.botapitwx.botapi: Unofficial Telegram Bot API Library and Client--contributionsPlease joinhttps://github.com/datamachine/twx.botapiissuesPlease usehttps://github.com/datamachine/twx.botapi/issuesPython version supported2.7, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6twx.botapiis a python interface for the Telegram bot API. It supports
making synchronous and asynchronous calls and converts the response into a
usable native python object.Support for the MTProto API is in the works, but considered pre-alpha right now.SupportYou can join our support chat at:https://telegram.me/twxapiInstallFor stable:pip install twx.botapiFor dev:pip install -i https://testpypi.python.org/pypi twx.botapiDocumentationDocumentation can be found athttp://pythonhosted.org/twx.botapi/Quick Startfromtwx.botapiimportTelegramBot,ReplyKeyboardMarkup"""Setup the bot"""bot=TelegramBot('<API TOKEN>')bot.update_bot_info().wait()print(bot.username)"""Send a message to a user"""user_id=int(<someuserid>)result=bot.send_message(user_id,'test message body').wait()print(result)"""Get updates sent to the bot"""updates=bot.get_updates().wait()forupdateinupdates:print(update)"""Use a custom keyboard"""keyboard=[['7','8','9'],['4','5','6'],['1','2','3'],['0']]reply_markup=ReplyKeyboardMarkup.create(keyboard)bot.send_message(user_id,'please enter a number',reply_markup=reply_markup).wait()
Package: twyg
twyglets you visualise arbitrary tree structures in a pretty way. The
appearance of the tree (layout, color, node, connection shapes etc.) is
fully controlled via configuration files in a generative way. This means that
almost all visual properties of the output can be controlled by expressions
that depend on the characteristics of the tree (e.g. the color or shape of a
node can be a function of its hierarchical position in the tree). This allows
for crafting very flexible configurations that can be applied to trees of
arbitrary size and complexity.FeaturesCompatible with Python 2.5, 2.6 and 2.7Supports theCairoandNodeBox1rendering backends16 visually fine-tuned built-in configurations32 attractive looking colorschemesSimple JSON files as inputPNG, PDF, SVG and PostScript output using the Cairo backendFully customisable node and connection shapes and coloring algorithmsHigh-quality font rendering via CairoGradient and drop shadow support, even in PDF and PostScript filesCustom human-readable configuration language that allows the visual
properties of the tree to be defined as expressions of arbitraty complexityAbility to cascade configurations and configuration sectionsFullCSS3 color notationandSVG 1.0 color keyword namesupportExtensive reference documentationInstallation & UsageFor detailed instructions, please refer to theuser documentation.License© Copyright 2011-2014,John Novak.
This project is released under the MIT license.
Package: twyla-chat-templates
Twyla Chat TemplatesA collection of Twyla chat message templatesInstallationpoetry install twyla-chat-templatesUsageQuick reply buttonsquick_replies=QuickReplies(text="Which kind of chocolate do you prefer?")# To add up to ten quick reply buttons:quick_replies.add(QuickReply(title="Dark",payload="dark_chocolate"))Postback and URL Buttonsbuttons=Buttons(text="What is your favourite type of pizza?")# To add up to three buttons:buttons.add(PostBackButton(title="Margherita",payload="x_Margherita_oaWVAeasEK_x"),UrlButton(title="Hawaii",url="https://google.com"),)Generic Templateelement=GenericElement(title="Cheesecake",subtitle="Cake with cheese",image_url="https://cake.com/image.jpg",action_url="https://cake.com",buttons=[PostBackButton(title="I want Cheesecake",payload="x_I_want_Cheesecake_gkvMPBXXxO_x"),UrlButton(title="Cheesecake, please",url="https://cheesecakeplease.com"),],)template=GenericTemplate(elements=[element])Carousel Template# To Create a vertically scrollable carousel, add up to 10 elements to the generic template:carousel=GenericTemplate(elements=[e1,e2,e3])Image Templateimage=ImageTemplate(url="https://pictures.com/picture.jpg")
Package: twyleg-kicad-utils
twyleg_kicad_utilsPersonal utilities to automate build process for KiCad projects.Installpython -m venv venv
source venv/bin/activate
pip install twyleg-kicad-utilsUsageUse the help output for detailed information:kicad_utils -hinitInit KiCad project.kicad_utils initsubmodulesManage submodules like listing modules, switching protocol (HTTPS/SSH) and upgrading submpdules.kicad_utils submodulesbuildBuild documentation and exports of KiCad project.kicad_utils builddiffShow interactive git diff based onkiri.kicad_utils diffExamplesAll examples can be found in theexamples/directory.
Package: twyn
TwynTwyn is a security tool that compares the name of your dependencies against a set of the most popular ones,
in order to determine if there is any similarity between them, preventing you from using a potentially illegitimate one.
In short, Twyn protects you againsttyposquatting attacks.It works as follows:It will try to find a dependencies file in your working path. You can freely specify a different path for that file.If your installed package name matches with the name of one of the most well known packages, the package is accepted.If the name of your package is similar to the name one of the most used packages, Twyn will prompt an error.If your package name is not in the list of the most known ones and is not similar enough to any of those to be considered misspelled, the package is accepted. Twyn assumes that you're using either a not so popular package (therefore it can't verify its legitimacy) or a package created by yourself, therefore unknown for the rest.DockerTwyn provides a Docker image, which can be foundhere.QuickstartInstallationTwyn is available on PyPi repository, you can install it by runningpip install twynRunTo run twyn simply type:twyn run <OPTIONS>For a list of all the available options as well as their expected arguments run:twyn run --helpConfigurationAllowlistIt can happen that a legitimate package known by the user raises an error because is too similar to one of the most trusted ones.
You can then add this packages to theallowlist, so it will be skipped:twyn allowlist add <package>To remove it simply:twyn allowlist remove <package>Dependency filesTo specify a dependency file through the command line run:twyn run --dependency-file <file path>Currently it supports these dependency file formats.requirements.txtpoetry.lockSelector methodYou can choose between different operational modes:all: Default option. It is the most exhaustive mode. It will check your package names against the trusted ones without any assumption.nearby-letter: will consider a possible typo in the first letter of your package name, so it will also consider all the nearby characters (in an English keyboard) when computing the distance between words.first-letter: will assume the first letter of your package is correct. It is the fastest mode but the least reliable one.To select a specific operational mode through the CLI use the following commandtwyn run --selector-method <method>Configuration fileYou can save your configurations in a.tomlfile, so you don't need to specify them everytime you run Twyn in your terminal.By default, it will try to find apyproject.tomlfile in your working directory when it's trying to load your configurations.
However, you can specify a config file as follows:twyn run --config <file>All the configurations available through the command line are also supported in the config file.[tool.twyn]
dependency_file="/my/path/requirements.txt"
selector_method="first_letter"
logging_level="debug"
allowlist=["my_package"]
Package: twypy
[![PyPI version](https://badge.fury.io/py/twypy.svg)](http://badge.fury.io/py/twypy)
[![Build Status](https://travis-ci.org/rfguri/twypy.svg?branch=master)](https://travis-ci.org/rogerfernandezg/twypy)Twypy is a super lightweight Twitter REST API v1.1 client written in Python,
based on [Birdy](https://github.com/inueni/birdy).Minimizing lines of code it aims to be a simpler yet more intuitive aproach to avoid
all the boilerplate that most of the clients has using a simplified call constructor.The requests come with a built-in code syntax to easely map all API calls.AdvantagesFocused only on REST APIBetter JSON object dispatcherOptimized methodsRequirementspython >= 2.7requests_oauthlib >= 0.3.2InstallationYou can install the package viaeasy_installorpip:`Bash easy_install twypy pip install twypy `UsageImport the module at the beginning of your file:`python from twypy.api import Api `Init theclientwith your credentials:`python client = Api(client_key, client_secret, access_token, access_token_secret) `Call [Twitter REST API](https://dev.twitter.com/docs/api/1.1) methods
following this example pattern:` <method><first>/<second-->api.<first>.<second>.<method>.(<params>)`#### GET
So the followingGETresource url:` GET statuses/user_timeline |https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi`with Twypy is handled with the following syntax:`client.api.statuses.user_timeline.get(screen_name='twitterapi')`A visual example of previous explanation with aresponseobject goes like this:`python response =client.api.statuses.user_timeline.get(screen_name='twitterapi')`#### POST
The same using aPOSTresource url:` POST statuses/update |https://api.twitter.com/1.1/statuses/update.json?status='Maybehe'll finally find his keys. #peterfalk!' `with Twypy is handled with the following syntax:`client.api.statuses.update.post(status='Maybehe'll finally find his keys.#peterfalk!')`A visual example of previous explanation with aresponseobject goes like this:`python response =client.api.statuses.update.post(status='Maybehe'll finally find his keys.#peterfalk!')`#### RESPONSE
To simply see the theJSONresponse just print theresponseobject:`python print response `TODOAdd [Nose](https://github.com/nose-devs/nose/) testsAdd exceptionsLicenceTwypy is Copyright © 2014 Roger Fernandez Guri. It is free software, and may be
redistributed under the terms specified in the [LICENCE](https://github.com/rfguri/twypy/blob/master/LICENSE) file.
Package: twython-django
(An example Django Python Twitter OAuth Application, using Twython)OAuth is an annoying specification to work with. Twitter has an awesome and somewhat unique real time data stream, though, and it’d be a shame to miss out on that stuff because of the warts of a specification.Twython supports OAuth authentication with Twitter now, and this is a sample Django application to get people up and running (fairly) instantly with Twitter OAuth in Django. Enjoy.InstallationInstalltwython-djangoviapip$pipinstalltwython-djangoor, witheasy_install$easy_installtwython-djangoBut, hey…that’s up to you.Or, if you want the code that is currently on GitHubgitclonegit://github.com/ryanmcgrath/twython-django.gitcdtwythonpythonsetup.pyinstallGetting StartedAddtwython_django_oauthto yourINSTALLED_APPSin yoursettings.pyfile.If you wish to use the example template, feel free to copy that over as well.Update urlsSpecify the following urlconf in your root urls.py:(r'^your_url_extension/',include('twython_django_oauth.urls')),Modify settings.pyAdd the following settings to your settings.pyTWITTER_KEY='your_key'TWITTER_SECRET='your_secret'LOGIN_URL='/your_url_extension/login'LOGOUT_URL='/your_url_extension/logout'LOGIN_REDIRECT_URL='/'LOGOUT_REDIRECT_URL='/'Need Twython Help?If you need help with the Twython library itself, check out the project on Github. It’s all pretty self contained (twython/endpoints.pycontains just about every function definition you’ll need):https://github.com/ryanmcgrath/twythonQuestions, Comments, etc?My hope is that twython-django is so simple that you’d neverhaveto ask any questions, but if you feel the need to contact me for this (or other) reasons, you can hit me up atryan@venodesigns.net.Or contact me on Twitter:@ryanmcgrath
Package: tx2
TX2Welcome to TX2! This library is intended to aid in the explorability and explainability of
transformer classification networks, or transformer language models with sequence classification
heads. The basic function of this library is to take a trained transformer and
test/train dataset and produce an ipywidget dashboard as seen in the screenshot below,
which can be displayed in a jupyter notebook or jupyter lab.NOTE: Currently this library's implementation is partially torch-dependent, and so will
not work with tensorflow/keras models - we hope to address this limitation in the future!InstallationYou can install this package from pypi:pipinstalltx2NOTE: depending on the environment, it may be better to install some of the dependencies separately before
pip installing tx2, e.g. in conda:condainstallpytorchpandasscikit-learn=1.1numpy=1.22-cconda-forgeExamplesExample jupyter notebooks demonstrating and testing the usage of this library can be
found in theexamples
folder.Note that these notebooks can take a while to run the first time, especially
if a GPU is not in use.Packages you'll need to install for the notebooks to work (in addition to the
conda installs above):pipinstalltqdmtransformers==4.21datasets==2.4Running through each full notebook will produce the ipywidget dashboard near the
end.The tests in this repository do not depend on transformers, so raw library
functionality can be tested by runningpytestin the project root.DocumentationThe documentation can be viewed athttps://ornl.github.io/tx2/.The documentation can also be built from scratch with sphinx as needed.Install all required dependencies:pipinstall-rrequirements.txtBuild documentation:cddocs
makehtmlThedocs/build/htmlfolder will now contain anindex.htmlTwo notebooks demonstrating the dashboard and how to use TX2 are included
in theexamplesfolder, highlighting the default and custom approaches
as discussed in the Basic Usage page of the documentation.CitationTo cite usage of TX2 in a publication, the DOI for this code ishttps://doi.org/10.21105/joss.03652bibtex:@article{Martindale2021,
  doi = {10.21105/joss.03652},
  url = {https://doi.org/10.21105/joss.03652},
  year = {2021},
  publisher = {The Open Journal},
  volume = {6},
  number = {68},
  pages = {3652},
  author = {Nathan Martindale and Scott L. Stewart},
  title = {TX$^2$: Transformer eXplainability and eXploration},
  journal = {Journal of Open Source Software}
}
Package: txacme
ACMEis Automatic Certificate Management Environment, a protocol that allows
clients and certificate authorities to automate verification and certificate
issuance. The ACME protocol is used by the freeLet’s EncryptCertificate
Authority.txacmeis an implementation of the protocol forTwisted, the
event-driven networking engine for Python.txacmeis still under heavy development, and currently only an
implementation of the client side of the protocol is planned; if you are
interested in implementing or have need of the server side, please get in
touch!txacme’s documentation lives atRead the Docs, the code onGitHub.
It’s rigorously tested on Python 2.7, 3.4+, and PyPy.
Package: txaio
txaiois a helper library for writing code that runs unmodified on
bothTwistedandasyncio/Trollius.This is likesix, but for wrapping
over differences between Twisted and asyncio so one can write code
that runs unmodified on both (akasource code compatibility). In
other words: youruserscan choose if they want asyncioorTwisted
as a dependency.Note that, with this approach, user coderuns under the native event
loop of either Twisted or asyncio. This is different from attaching
either one’s event loop to the other using some event loop adapter.Platform supporttxaioruns on CPython 3.6+ and PyPy 3, on top ofTwistedorasyncio. Specifically,txaiois tested on the following platforms:CPython 3.6 and 3.9 on Twisted 18.7, 19.10, trunk and on asyncio (stdlib)PyPy 3.6 an 3.7 on Twisted 18.7, 19.10, trunk and on asyncio (stdlib)> Note: txaio up to version 18.8.1 also supported Python 2.7 and Python 3.4. Beginning with release v20.1.1, txaio only supports Python 3.5+. Beginning with release v20.12.1, txaio only supports Python 3.6+.How it worksInstead of directly importing, instantiating and usingDeferred(for Twisted) orFuture(for asyncio) objects,txaioprovides
helper-functions to do that for you, as well as associated things like
adding callbacks or errbacks.This obviously changes the style of your code, but then you can choose
at runtime (or import time) which underlying event-loop to use. This
means you can writeonecode-base that can run on Twistedorasyncio (without a Twisted dependency) as you or your users see fit.Code like the following can then run oneithersystem:importtxaiotxaio.use_twisted()# or .use_asyncio()f0=txaio.create_future()f1=txaio.as_future(some_func,1,2,key='word')txaio.add_callbacks(f0,callback,errback)txaio.add_callbacks(f1,callback,errback)# ...txaio.resolve(f0,"value")txaio.reject(f1,RuntimeError("it failed"))Please refer to thedocumentationfor description and usage of the library features.
Package: txAMQP
This project contains all the necessary code to connect, send and receive messages to/from an AMQP-compliant peer or broker (Qpid, OpenAMQ, RabbitMQ) using Twisted.It also includes support for using Thrift RPC over AMQP in Twisted applications.txAMQP is sponsored by the friendly folks at Fluidinfo (http://www.fluidinfo.com).
Package: txapi
TXAPI轻量级的腾讯云SDK, 同时支持 yunapi2 与 yunapi3, 支持 公有云 / 专有云(租户端&运营端).Installpip install txapi项目地址:https://pypi.org/project/txapi/DEMO# -*- coding:utf-8 -*-fromtxapiimportAPIclient=API.v3(api_domain="云API请求的域名",region="地域名称",secret_id="云API密钥id",secret_key="云API密钥key",debug=False,ssl=True)cvm=client.get_client("cvm","2017-03-12")params={"Limit":20,"Offset":1}print(cvm.request("DescribeInstances",params))参数说明:

- api_domain: 云API请求的域名:
    默认为公有云域名, 也支持专有云(租户端+运营端)
    公有云: tencentcloudapi.com
    租户端api2: api2.环境主域名
    租户端api3: api3.环境主域名
    运营端api2: yunapi2.环境主域名
    运营端api3: yunapi3.环境主域名
- region: 地域名称
- secret_id, secret_key: 云API密钥
- ssl (是否开启https, 默认为True)
- debug(是否打印请求响应信息, 默认为False),
- 公有云密钥登录腾讯云控制台获取: https://console.cloud.tencent.com/cam/capi
Package: txasgiresource
txasgiresource isASGIimplemented as a Twisted Web Resource,
very similar toWSGIResource.This is inspired byDaphnebut somewhat implemented from specs.It can also run as a daemon.The code is available onGitHubUsageAs Twisted Resourcefromtwisted.webimportserverfromyourdjangoproject.routingimportapplicationresource=ASGIResource(application)site=server.Site(resource)# If we are done with the resource, make sure to stop it.yieldresource.stop()As ASGI Protocol servertwistd -n txasgi -a yourdjangoproject.routing:applicationAs ASGI Protocol server on a different port and iptwistd -n txasgi -a yourdjangoproject.asgi:channel_layer -d tcp:5566:interface=0.0.0.0Supported specificationsSpecificationSupportedasgi2Yes, through compatibility handlerasgi3YesHTTPYes, v2.0WebsocketYes, v2.0LifespanNoStatusMaster branchDevelop branchLicenseMIT, see LICENSE
Package: txbalanced
# txBalancedOnline Marketplace PaymentsNote:this library works with Balanced API version 1.1This is the [Twisted](https://twistedmatrix.com/trac/) fork of the official Balanced Payments Python [library](https://github.com/balanced/balanced-python/). While this library is directly derived from the official python library, there are some areas where it is not completely compatible. For example:It is not possible to lazily iterate through paginated lists. You must instead load each page and iterate through the items in the page. (.all() will load everything, however, but be aware that it will load all results into memory)Any lookup that goes over the wire will return a deferred## Installationpip install txbalanced## UsageView Balanced’s online tutorial and documentation athttps://www.balancedpayments.com/docs/overview?language=python(while noting the caveats above)
Package: txbillsearch
A thin, incomplete Python 3 library wrapper around theTexas Legislature Online
Bill Search.Install and Test$pipinstalltxbillsearch
...
$python-mtxbillsearch3billsfound...
result1of3:HB20byCapriglioneHFiled2019-01-24
result2of3:HB1096byCapriglioneHFiled2019-01-25
result3of3:HJR10byCapriglioneHFiled2019-01-24
ThenextpageofresultsisNone
$Usageimporttxbillsearchcapriglione_finance='https://capitol.texas.gov/Search/BillSearch.aspx?NSP=3&SPL=True&SPC=False&SPA=True&SPS=True&Leg=86&Sess=R&ChamberH=True&ChamberS=True&BillType=B;JR;CR;R;;;&AuthorCode=A2345&SponsorCode=&ASAndOr=O&IsPA=True&IsJA=False&IsCA=False&IsPS=True&IsJS=False&IsCS=False&CmteCode=&CmteStatus=&OnDate=&FromDate=&ToDate=&FromTime=&ToTime=&LastAction=False&Actions=H001;S001;&AAO=O&Subjects=I0747;I0748;&SAO=O&TT=&ID=abcDEFghi'search=txbillsearch.Search(capriglione_finance)forindex,billinenumerate(search.results):print(f'result{index+1}of{search.result_count}:{bill}')Technical DetailsFor some reason,BillSearchResults.aspxrequires that you supply an ID, generated onBillSearch.aspx. This ID
must be "fresh"; that is it must have been generated less than 24-ish hours ago
(I don't know the exact time interval). Without a "fresh" ID,
BillSearchResults.aspx displays "No bills were found matching the entered
search criteria." or redirects the client back to BillSearch.aspx.  The ID is associated with the search criteria you supply on BillSearch.aspx, so it cannot be reused with other searches on BillSearchResults.aspx alone.This ID is generated during the ASP.NET
POSTback that occurs to BillSearch.aspx after you have selected your search
criteria, but before you are redirected to BillSearchResults.aspx:DisclaimerI made my best effort to read through the Texas Legislature Online Terms and
Conditions, and found nothing that prohibited or discouraged
automated/programmatic use or access of this information for personal and/or
non-commercial use. TheFTP siteis no substitute
for a modern web service. If there's a better way to do this (e.g., arealweb service) I'd love to know about it, and would much prefer to use it to the
wasteful and inconvenient method developed herein.
Package: txbit
TxbitA Python3 wrapper for the Txbit APIInstallationpip3installtxbitUsagefromtxbitimportTxbitfromsecretsimportAPIKEY,SECRET# api key and secret# public functions (no APIKEY/Secret needed)markets=Txbit.getMarketSummaries().resultorder=Txbit.getOrderBook('ETH/BTC').result# market and account functions (require APIKEY/Secret)t=Txbit(APIKEY,SECRET)request=t.getBalance()ifrequest.success:balance=request.resultSupportFor any help or questions, please open an issue on GitHub.LicenseMIT
Package: txBreezeChMS
Twisted Python interface to BreezeChMS REST APIhttp://www.breezechms.comBased onpyBreezeChMSby
Alex Ortiz-RosadoInstallation$ pip install txbreezechmsGetting Startedfromtxbreezeimportbreezebreeze_api=breeze.BreezeApi(breeze_url='https://your_subdomain.breezechms.com',api_key='YourApiKey')To get a JSON of all people:people=breeze_api.get_people()# people is a Deferred instanceLicenseCode released under theApache
2.0license.