Saravanan666/pypi-org huggingface dataset:
Package: txtv
txtv - A client for reading swedish text tv in the terminalText-tv is great! plaintext and to-the-point news with no filler.
Now you can read it without touching your mouse or your tv-remote :)InstallationIf you have Python 3.6 or later with pip installed, just runpip3 install --user txtvCurrently wont work natively on the Windows command line because ofreadline; but you can use it withUbuntu for Windows.UsageRunning with no arguments will enter interactive mode.txtvFrom there you can run any of these commands:help | h | ? -- show this help text.
quit | q | exit -- quit the program (duh)
list | ls | l -- list all articles
next | n | > -- show next available page.
previous | prev | p | < -- show previous available page.
<PAGE NUMBER> -- show the page at the specified numberYou can also give any of these commands as an argument on the normal command line to run un-interactively. Except forquit,next, andprevious, because that would make no sense.txtv 100  # show page 100

txtv ls   # list all news articlesConfigurationtxtv.py will automatically generate a config file at~/.config/txtv/txtv.cfgwith default values. It uses format ofconfigparser.aliasunder the alias category you can specify any number of aliases for txtv commands. These will work both in interactive mode and as subcommands when calling txtv from your shell.example:[alias]
	all=listwill let you list all articles from shell withtxtv allor by typingallin interactive mode.generalSo far there is only one option here, namedprompt. It is just the prompt string used in interactive mode.example:[general]
	prompt = kommandorörelse>LinksHere is the trello for the development of txtv:https://trello.com/b/aBI0DpN3/txtvHere is where it's scraping data from:https://www.svt.se/svttext/web/pages/100.html
Package: txupnp
# UPnP for Twisted`txupnp` is a python2/3 library to interact with UPnP gateways using Twisted## Installation```pip install --upgrade txupnp```## Usage```usage: txupnp-cli [-h] [--debug_logging] [--include_igd_xml] commandpositional arguments:command            debug_device | list_mappings | get_external_ip |add_mapping | delete_mappingoptional arguments:-h, --help         show this help message and exit--debug_logging--include_igd_xml```## LicenseThis project is MIT licensed. For the full license, see [LICENSE](LICENSE).## ContactThe primary contact for this project is @jackrobison
Package: txvx
README-English about Txvx config manager支持中文版本的README，贼TM接地气README-Chinese## What is?
It is a config manager
#### What can it do?
It can set config, read config, get config and create a config
## How to use it?
### 1,Install
#### Linux/Unix
Install python 3.9(If you use an earlier version, I cannot guarantee that this broken thing will work)
`pip install txvx`
####Windows
Address:)2,UseIn you python code, write 'import txvx'and new a object
so......import txvx

Txvx = txvx.run(FilePath)3,FunctionsFunctionsUseDoget()get(var)get Config File {var} valueset()set(var, value)set Config File {var} valuecreate()create()Create a new Config File(If it existed would erase)add()add(var, vaule)add a new config vauleremove()remove(var)delete vaule and return the config vaulesave()save()save infomation from RAMshow()show()return all registered vauleshowType()showType()return now Typenew()new(List)Look Last!serach()serach(Item)4, Txvx file formatUnder normal circumstances (there is no abnormal situation), the configuration files are all suffixed with '.txvx'For example: see nm's see.txvxInternal files usually look like thisexample=5
example1=Hello, World
Writer=FZZkillbutI'm an idiotThis is wrong because it has no value, you should write even nullI'm not a fool=Notes:
I didn't expect to put it, this broken thing has a comment!# Note: only at the beginning5, a momentary misstep and eternal hatred!When you change the file, please be sure to use the 'save()' function to save the file, this grandson will not automatically save it, which is very important!Data is priceless, operate with carefinallyHere comes the pointHow to use the new method? This is the essence of the txvx method. Under normal circumstances, all functions need to pass the new method when reading the file registration.Normally, this function needs to pass two valuesnew([],type)What is [], this is easy to understand, in fact, it is to pass a list~~Why is the list []? I'm curious about this too, but that's the truth~But this list is important, there are two cases:['Registry','Cave']
[['No ,This Registry','Niubia'],['CXKNMSL','LBWNB']]So when to use it, you need to distinguish['xx','xx']
In this case, the incoming type value is 1
is to add this list to the main list

[[],[]]
In this case, the incoming type value is 2 (default)
This case is a direct override of the main listif you delete the object, it cannot saveLast and Last(Let me say a few world on important business)Writer: FZZkillLanguage: Python3.9Where: Github & Pypi
Package: txwac
This is aTwistedfork ofwac. See the wac documentation for more details.This fork operates nearly identically to wac except for these exceptions:Everything that hits the wire returns a DeferredMulti-page iteration is not possiblelen(obj) is not possible on objects that hit the wire to get the countThis usestreqwhich is not 100% compatible with requests. Most notably, headers are handled differently and response objects have slightly different attribute namesTODOConversion of the original wac tests to trial based tests. The tests that are here will not work correctly0.1 (2014-10-29)Initial conversion to twisted
Package: txwatcher
A little Python utility that lets you monitor Bitcoin addresses throughBlockchain Websocket APIand perform custom callbacks.Installation$ pip install txwatcherQuickStartfromtxwatcherimportTxWatcherw=TxWatcher(['18eGUUxUsSetQYxJcQXEQTjSCUETEFeA4E'])deftx_printer(tx):print(tx)# You can add as many callbacks as you wantw.on_tx+=tx_printerw.run_forever()# orimportthreadthread.start_new_thread(w.run_forever,())# Do some workw.add_addresses(*['16xg9kBKUR2S6bmyccCyPichCpMNMPATAH'])Transactions format{"op":"utx","x":{"hash":"f6c51463ea867ce58588fec2a77e9056046657b984fd28b1482912cdadd16374","ver":1,"vin_sz":4,"vout_sz":2,"lock_time":"Unavailable","size":796,"relayed_by":"209.15.238.250","tx_index":3187820,"time":1331300839,"inputs":[{"prev_out":{"value":10000000,"type":0,"addr":"12JSirdrJnQ8QWUaGZGiBPBYD19LxSPXho"}}],"out":[{"value":2800000000,"type":0,"addr":"1FzzMfNt46cBeS41r6WHDH1iqxSyzmxChw"}]}}MiscUsing TxWatcher within FlaskYou can start TxWatcher in a separate thread and have it running within your Flask app (or any Python web framework).fromflaskimportFlaskapp=Flask(__name__)@app.route("/")defhello():return"Hello World!"if__name__=="__main__":# First, start TxWatchertw=TxWatcher([a['address']foraincol_urls.find()])tw.on_tx+=new_txthread.start_new_thread(tw.run_forever,())# Then, start the Flask appapp.run()ChangelogSee CHANGES.rst.ContributionFeel free to submit a pull request!DonationIf you like my work, please consider donating:BTC 18eGUUxUsSetQYxJcQXEQTjSCUETEFeA4ELicense (MIT)Copyright (c) 2013 Thomas SileoPermission 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.
Package: txweb
# txwebTOUGHSTRUCT项目WEB框架，基于Python2.7, twisted, cyclone组成的WEB开发框架。## 快速安装pip install -Uhttps://github.com/talkincode/txweb/archive/master.zip## 创建项目以下指令会从github下载应用模板并创建应用目录，目录名就是应用名，参数 -U 表示重新下载，否则直接取本地缓存txwebctl –create -U –dir=appdir## 运行项目以下指令会在8888端口（可选）监听http请求，–logging=none是由于cyclone内部自动打印日志，与txweb日志打印重复，所以关掉。txwebctl –port=8888 –dir=appdir –conf=appdir/etc/appname.json -logging=none[May 25 09:30:13 appname] Log opened.
[May 25 09:30:13 appname] add free route [/:<class ‘appname.handlers.index.IndexHandler’>]
[May 25 09:30:13 appname] Application starting on 8888
[May 25 09:30:13 appname] Starting factory <txweb.web.Application instance at 0x105731e18>
Package: txwebbackendbase
Generic Base framework for Web App backend using TwistedFree software: MITSource:https://github.com/Stibbons/txwebbackendbaseFeaturesSet of utility function not part of Twisted official library I often need, for example:txwebbackendbase.logging.setupLogger: setup colorful logger (ifcolorloginstalled)txwebbackendbase.request.[jsonify|dejsonify]: send or receive json withrequest/treqtxwebbackendbase.singleton.singleton: declare a class as singleton to instance it once in the whole applicationtxwebbackendbase.threading.deferredAsThread: function decorator to run a blocking function in a threadNote: Seepipenv documentationfor Pipfile
specification.ContributingCreate your environment with$makedevActivate the environment:$makeshellExecute a command directly inside the environment:$makerunExecute unit tests:$maketest-unitBuild source package:Use it for most package without low level system dependencies.makepypiBuild binary package:Needed for package with a C or other low level source code.makebdistBuild Wheel package:Always provide a wheel package.makewheel(Only for package owner)Create a release:Go on GitHub and create a tag with a semver syntax. Optionally you can tag code locally and push
to GitHub.gittag1.2.3makepushOn successful travis build on the Tag branch, your Pypi package will be updated automatically.
Package: txwebutils
txwebutils - utilities fortwisted.webWhat istxwebutils?txwebutilsis a pure-python library containing various utility functions and implementations for thetwisted.webweb framework. It is the result of combining useful code from my various other projects.Featuressupport for unicode string results fortwisted.web.resource.Resource.render_*methods.support for deferreds results fortwisted.web.resource.Resource.render_*.utility functions to get the URL parameters in unicode.A custom cross-site authentication implementation usingtwisted.cred.Examples# -*- coding: utf-8 -*-"""Example for @unicode_response.The @unicode_response decorator allows both unicode and/or deferred results in render_* methods."""fromtwisted.internetimportdeferfromtwisted.web.resourceimportResourcefromtxwebutilsimportunicode_responseclassUnicodeRespondingResource(Resource):"""This resource serves a unicode string on a GET request.@unicode_response tries its best to guess the encoding correctly."""@unicode_responsedefrender_GET(self,request):returnu"This is a unicode string: äöüß"classBinaryRespondingResource(Resource):"""This resource serves a binary string on a GET request.This shows that you can return whatever string type you desire."""@unicode_responsedefrender_GET(self,request):returnb"This is a binary string"classDeferredResultingResource(Resource)"""This resource serves a deferred which fires with a unicode string on a GET request."""@unicode_responsedefrender_GET(self,request):returndefer.succeed(u"This is a unicode string: äöüß")classInlineCallbacksResource(Resource)"""This resource uses 'twisted.internet.defer.inlineCallbacks'"""@unicode_response@defer.inlineCallbacksdefrender_GET(self,request):s=yielddefer.succeed(u"This is a unicode string: äöüß")defer.returnValue(s)
Package: txwerewolves
Werewolves! is a party game sometimes called “Mafia”.  There are many variations.
This game is based in part on a card game adaption.The players are randomly assigned roles of either villagers or werewolves.  3 additional
roles are dealt to the table.
At night, some of the villagers with special roles and all the werewolves wake up at different
times and perform certain actions.  After all the night phases are done, the players
may discuss what happend during the night, though they may not actually show each other
their cards.  A player may say the role she received, but she may also claim that she
were dealt a role that she did not receive.After the discussion, all the players vote for a player to eliminate.  If there is a
player or players who received more than 1 vote, the player(s) with the most votes
are eliminated and the actual roles the players now posess are revealed.  If a
werewolf was killed, the village team wins, even if an innocent villager was eliminated,
too.  The villagers may also win if no one is eliminated and all the werewolves are in
the middle of the table.See full documentation athttp://txwerewolves.readthedocs.io/
Package: txWS
txWS (pronounced “Twisted WebSockets”) is a small, short, simple library for
adding WebSockets server support to your favorite Twisted applications.UsageUsetxws.WebSocketFactoryto wrap your factories. That’s it! Adding
WebSockets support has never been easier.>>> from txws import WebSocketFactory
>>> reactor.listenTCP(8080, WebSocketFactory(factory_to_wrap))There is no extra trick to txWS. There is no special setup involved.Do you want secure WebSockets? UselistenSSL()instead oflistenTCP().VersionstxWS supports the following versions of the WebSockets draft:Version 76Hixie-76 (Chrome 6, Fx 4, Opera 11,UNTESTEDSafari 5)HyBi-00Version 7HyBi-07 (Fx 6)Version 8HyBi-08HyBi-10 (Chrome 14, Chrome 15, Fx 7, Fx 8)Version 13RFC 6455 (Chrome 16)All listed browser versions have been tested and verified working; any browser
marked “UNTESTED” hasn’t been personally tested, but has been reported working
by third parties.In case you’re wondering, the version numbers above are correct; WebSockets
versioning is not sane.Browser QuirksThis might save you some time when developing your WebSockets-based
application.Firefox (all versions): WebSockets do not follow the standard WebSocket
API.Opera 11: WebSockets are disabled by default and are very slow to close
connections.ComparisonsHere’s how txWS compares to other Twisted WebSockets libraries.txWebSocketstxWS, unlike txWebSockets, doesn’t reuse any HTTP machinery and doesn’t
pretend to be HTTP. Whether this is a good or bad thing depends largely on
whether the WebSockets standard ends up being a valid HTTP subset.txWS supports newer WS versions 7 and 8, but txWebSockets supports the older
version 75. Both libraries support version 76.AutobahnAutobahn provides a client library for WebSockets as well as a server, and
provides a fancy set of messaging protocols on top of the WS layer. Autobahn
also provides support for WS version 10.However, Autobahn doesn’t provide support for WS version 76, and requires
clients to subclass their factories and protocols in order to provide WS
functionality. txWS uses a compositional approach with wrapped protocols,
allowing completely transparent reuse of existing protocols and factories.CycloneCyclone provides a simple WebSockets handler. This handler can do WS versions
75 and 76. The Cyclone WebSockets handler is very limited, can only wrap other
Cyclone handlers, and doesn’t support any of the more modern WebSockets
versions.LicensetxWS is (c) 2011 Oregon State University Open Source Lab and is made available
under the MIT license.ThanksThank you to all of the contributors in the community who have chipped in to
help keep txWS alive.
Package: txZMQ
IntroductiontxZMQ allows to integrate easilyØMQsockets into
Twisted event loop (reactor).txZMQ supports both CPython and PyPy and ØMQ library version 2.2.x or 3.2.x.Documentation is available atReadTheDocs.RequirementsC library required:ØMQ library 2.2.x or 3.2.xPython packages required:pyzmq >= 13 (for CPython & PyPy)TwistedDetailstxZMQ introduces support for general 0MQ sockets by classZmqConnectionthat can do basic event loop integration, sending-receiving messages in
non-blocking manner, scatter-gather for multipart messages.txZMQ uses ØMQ APIs to get file descriptor that is used to signal pending
actions from ØMQ library IO thread running in separate thread. This is used in
a custom file descriptor reader, which is then added to the Twisted reactor.Upgrading from 0.3.xIf you’re upgrading from version 0.3.1 and earlier, please apply following
changes to your code:root package name was changed fromtxZMQtotxzmq, adjust your
imports accordingly;ZmqEndpointType.Connecthas been renamed toZmqEndpointType.connect;ZmqEndpointType.Bindhas been renamed toZmqEndpointType.bind;ZmqConnection.__init__has been changed to accept keyword arguments
instead of list of endpoints; if you were using one endpoint, no changes
are required; if using multiple endpoints, please look foradd_endpointsmethod.HackingSource code for txZMQ is available atgithub;
forks and pull requests are welcome.To start hacking, fork at github and clone to your working directory. To use
the Makefile (for running unit tests, checking for PEP8 compliance and running
pyflakes), you will want to havevirtualenvinstalled (it includes apipinstallation).Create a branch, add some unit tests, write your code, check it and test it!
Some useful make targets are:make envmake checkmake testIf you don’t have an environment set up, a new one will be created for you in./env. Additionally, txZMQ will be installed as well as required
development libs.
Package: txZMQ-ng
IntroductionThis is a fork of the original project athttps://github.com/smira/txZMQ,
since it is no longer maintained.txZMQ allows to integrate easilyØMQsockets into
Twisted event loop (reactor).txZMQ supports both CPython and PyPy and ØMQ library version 2.2.x or 3.2.x.Documentation is available atReadTheDocs.RequirementsC library required:ØMQ library 2.2.x or 3.2.xPython packages required:pyzmq >= 13 (for CPython & PyPy)TwistedDetailstxZMQ introduces support for general 0MQ sockets by classZmqConnectionthat can do basic event loop integration, sending-receiving messages in
non-blocking manner, scatter-gather for multipart messages.txZMQ uses ØMQ APIs to get file descriptor that is used to signal pending
actions from ØMQ library IO thread running in separate thread. This is used in
a custom file descriptor reader, which is then added to the Twisted reactor.Upgrading from 0.3.xIf you’re upgrading from version 0.3.1 and earlier, please apply following
changes to your code:root package name was changed fromtxZMQtotxzmq, adjust your
imports accordingly;ZmqEndpointType.Connecthas been renamed toZmqEndpointType.connect;ZmqEndpointType.Bindhas been renamed toZmqEndpointType.bind;ZmqConnection.__init__has been changed to accept keyword arguments
instead of list of endpoints; if you were using one endpoint, no changes
are required; if using multiple endpoints, please look foradd_endpointsmethod.HackingSource code for txZMQ is available atgithub;
forks and pull requests are welcome.To start hacking, fork at github and clone to your working directory. To use
the Makefile (for running unit tests, checking for PEP8 compliance and running
pyflakes), you will want to havevirtualenvinstalled (it includes apipinstallation).Create a branch, add some unit tests, write your code, check it and test it!
Some useful make targets are:make envmake checkmake testIf you don’t have an environment set up, a new one will be created for you in./env. Additionally, txZMQ will be installed as well as required
development libs.
Package: ty
A mysterious packageFree software: BSD licenseInstallationpip install tyDocumentationhttps://ty.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.0.1 (2017-07-24)First release on PyPI.
Package: tyba-client
Tyba API ClientExamplesFor examples seehttps://github.com/Tyba-Energy/tyba-client-notebooks.
The script examples in tyba-python-client/examples will be deprecated eventually.DevelopmentDocsWe usesphinxto manage the documentation for the client.
Source .rst files can be found in docs/source. We use theintersphinxextension to manage links
between the client docs and the docs ofgeneration_models(the model
schema for the client). Make sure you understand how these links are defined based on theintersphinx_mappingvariable in docs/source/conf.py to avoid any gotchas.To generate/update documentation for the Tyba client,cdinto the docs directory and run the makefile that generates
the HTML documentation# Assuming you are already in the tyba-python-client directory$cddocs
$poetryrunmakehtmlThe HTML documentation can be found in docs/build/html.Once it's been reviewed, this HTML documentation needs to be uploaded to s3, so it
can be served athttps://docs.tybaenergy.com/api/. We have a python script to do
thispoetryrunpythonupload_to_s3.py
Package: tyba-cvxopt
CVXOPT is a free software package for convex optimization based on the
Python programming language. It can be used with the interactive Python
interpreter, on the command line by executing Python scripts, or
integrated in other software via Python extension modules. Its main
purpose is to make the development of software for convex optimization
applications straightforward by building on Python’s extensive standard
library and on the strengths of Python as a high-level programming
language.
Package: tyba-osqp
Python wrapper forOSQP: the Operator
Splitting QP Solver.The OSQP (Operator Splitting Quadratic Program) solver is a numerical
optimization package for solving problems in the formminimize        0.5 x' P x + q' x

subject to      l <= A x <= uwherex in R^nis the optimization variable. The objective function
is defined by a positive semidefinite matrixP in S^n_+and vectorq in R^n. The linear constraints are defined by matrixA inR^{mx n}and vectorsl in R^m U{-inf}^m,u in R^m U{+inf}^m.DocumentationThe interface is documentedhere.PackagingThis repository just performs the tests and does not build any python package.
We use the external repositories forconda recipesandpython wheels.
Package: tybase
新增百度的关键词汇总位置 : baidu.kw_tools.pyKeywordSummaryKeywordAggregatorLangchain相关工具的封装eg1-生成promptMysql工具的使用fromdbimportMysqlDBMyDB=MysqlDB(keys=["promotion_id"],uri="")# logger.debug(df.columns)  # df的列? 为什么没有过滤好?MyDB.update(df,table_name)