Saravanan666/pypi-org huggingface dataset:
Package: python-ta
PyTAPyTA is a Python program which uses static code analysis to help students find
and fix common coding errors in introductory Python courses. Python already
has great static analysis tools like pep8 and pylint, but these tools do not
necessarily have the most beginner-friendly format. PyTA has two central goals:Statically identify common coding errors by using existing linting tools and
building custom linters (e.g., as pylint checkers).Present beautiful, intuitive messages to students that are both helpful for
fixing errors, and good preparation for the terser messages they will see
in their careers.This is a new project started in the Summer of 2016, and takes the form
of a wrapper aroundpylint(with custom checkers) that operates
directly on Python modules, as well as a website with some supplementary
material going into further detail for the emitted errors.For greater details on the errors PyTA checks for:Help Documentation.For help getting started using PyTA:Quick Start.InstallationIf you're interested in using PyTA, you can install it usingpip(orpip3, on OSX/Linux):> pip install python-taDevelopmentIf you're developing PyTA:First, clone this repository.Open a terminal in this repo, and runpip install -e ".[dev, cfg, z3]"to install the dependencies.Then runpre-commit installto install the pre-commit hooks (for automatically formatting and checking your code on each commit).While not strictly necessary for debugging, some debugging tools requiregraphvizto be installed on your system.TestsTo run the test suite, run the following command from inside thepytadirectory:> python -m pytest tests  # Or python3 on OSX/LinuxGenerating the docsThe PyTA documentation is generated usingSphinx.
To generate the documentation locally, run the commands:> cd docs> make htmlThen open the filedocs/_build/index.htmlin your web browser!DemoYou can currently see a proof of concept in this repository. Clone it,
and then runpythonin this directory (PyTA is primarily meant to be
included as a library). In the Python interpreter, try running:>>>importpython_ta>>>python_ta.check_all('examples.forbidden_import_example')[Someoutputshouldbeshown]>>>python_ta.doc('E9999')ContributorsLorena Buciu,
Simon Chen,
Freeman Cheng,
Ivan Chepelev,
Nigel Fong,
Adam Gleizer,
Ibrahim Hasan,
Niayesh Ilkhani,
Craig Katsube,
Rebecca Kay,
Christopher Koehler,
David Kim,
Simeon Krastnikov,
Ryan Lee,
Christopher Li,
Hayley Lin,
Bruce Liu,
Merrick Liu,
Wendy Liu,
Yibing (Amy) Lu,
Aina Fatema Asim Merchant,
Shweta Mogalapalli,
Ignas Panero Armoska,
Justin Park,
Harshkumar Patel,
Varun Sahni,
Amr Sharaf,
Richard Shi,
Kavin Singh,
Alexey Strokach,
Sophy Sun,
Utku Egemen Umut,
Sarah Wang,
Jasmine Wu,
Philippe Yu,
Package: python-table-print
Python Table PrintA project to dynamically scale and print tables using text in PythonUsagePython Table Print is object-oriented. This means that aPrintTableobject gets instantiated and added to/edited. When the table is ready to be printed/created, this can be done by calling theprint_table/get_tablemethods. An example can be found inexample.py, but is copied here for convenience:fromtableimportPrintTablemy_table=PrintTable()my_table.add_row("Col 1","Col 2","Col 3")my_table.add_row("Entry 1","Entry number 2","Entry 3 baby")my_table.add_row("Another entry","yay","an entry in the table")my_table.add_row("Fun times","This is kinda cool","wooow")my_table.print_table()Output:**************************************************************
*         Col 1 *              Col 2 *                 Col 3 *
**************************************************************
*       Entry 1 *     Entry number 2 *          Entry 3 baby *
* Another entry *                yay * an entry in the table *
*     Fun times * This is kinda cool *                 wooow *
**************************************************************In the above example, theprint_tablemethod was called which prints using the defaultprintfunction. However, if the table in string form is preferred, then this is also easily achievable:fromtableimportPrintTablemy_table=PrintTable()...str_table=my_table.get_table()HeaderBy default, the first row of the table is treated as the header of the table, and is printed with an extra border around it, not done for any other row. This behaviour can be turned off/on by setting the propertyhas_headertoTrue/False:fromtableimportPrintTabletable=PrintTable()table.add_row("Col 1","Col 2","Col 3")table.add_row("Entry 1","Entry number 2","Entry 3 baby")table.add_row("Another entry","yay","an entry in the table")table.add_row("Fun times","This is kinda cool","wooow")table.has_header_row=Falsetable.print_table()Output:**************************************************************
*         Col 1 *              Col 2 *                 Col 3 *
*       Entry 1 *     Entry number 2 *          Entry 3 baby *
* Another entry *                yay * an entry in the table *
*     Fun times * This is kinda cool *                 wooow *
**************************************************************
Package: python-tables
Python-TablesImplementing tables from Lua into Python 3.12Usagepipinstallpython-tablesfromtablesimportTabletbl=Table()print(tbl)# <>tbl.append(1)tbl["foo"]="bar"print(tbl)# <1, foo: 'bar'>print(repr(tbl))# Table([1]; {"foo": "bar"})tbl+=[2,3,4]print(tbl)# <1, 2, 3, 4, foo: 'bar'>print(tbl==Table(1,2,3,4,foo="bar"))
Package: python-tables-lib
Console CreatorA Python lib that makes creating tables easier than ever !This lib enables you to create tables, and manipulate them from their columns and rows, instead of having to deal with the usual troubles of this process.InstallInstall from PyPITo install this library, just typepip install python-tables-liband this should be ok.VisitPyPIfor more info.Install from sourceJust download the file atthis link, and import it in your project.UsageSeeexamplesif wanted.This library provides theTableclass, which is the table you are going to use.TableinitThis class has two optional parameters on creation :name: A string containing the name of the table.size: he size of the table. If not filled, the table will be flexible. Otherwise, the table will only fit this size. This should be a tuple of (rows, columns).Theadd_row,add_rows,add_column, andadd_columnsmethodsThese methods will add rows or columns to the table.They are disabled if the table size is fixed.Theadd_rowandadd_columnmethods will take as argument a list or tuple, and will add all its elements to the table.Theadd_rowsandadd_columnsmethods will take as argument a list/tuple of lists/tuples and will add all its elements to the table.Thedelete_rowanddelete_columnmethodsThe names are pretty explicit : The functions deletes the row/column of the given indexThereturn_rowandreturn_columnmethodsThese methods will return as list of lists the rows/columns of the table.Example :fromtablesimport*# Table creationtable=Table()table.add_row([0,1,2])table.add_row([0,5,0])print(table.return_rows())print(table.return_columns())Outputs the following :[[0, 1, 2], [0, 5, 0]]
[[0, 0], [1, 5], [2, 0]]Therender_tablefunctionThis method prints a stylized view of the table in the console.Optional argument :row_numbers_enabled: Boolean indicating whether or not to display the number of rows.Trueby default.Example :fromtablesimport*# Table creationtable=Table("Testing table")table.add_row([0,1,2])table.add_row([0,5,0])# Stylized table printtable.render_table()Outputs the following :--- Testing table ---
0 -> | 0 | 1 | 2 | 
1 -> | 0 | 5 | 0 |Theset_elementmethodThis method sets the value of an element.Arguments :row: The row number.column: The column number.value: The value to insert in this cell.name: The name of the cell (optional).See the exampleat this link, with a Morpion game.
Package: python-tado
Author: Chris Jewell <chrism0dwk@gmail.com>
Modified: Wolfgang Malgadey <wolfgang@malgadey.de>Licence: GPL v3Copyright: Chris Jewell 2016-2018PyTado is a Python module implementing an interface to the Tado web API.  It allows a user to interact with their Tado heating system for the purposes of monitoring or controlling their heating system, beyond what Tado themselves currently offer.It is hoped that this module might be used by those who wish to tweak their Tado systems, and further optimise their heating setups.DisclaimerBesides owning a Tado system, I have no connection with the Tado company themselves.  PyTado was created for my own use, and for others who may wish to experiment with personal Internet of Things systems.  I receive no help (financial or otherwise) from Tado, and have no business interest with them.  This software is provided without warranty, according to the GNU Public Licence version 3, and should therefore not be used where it may endanger life, financial stakes, or cause discomfort and inconvenience to others.Example basic usage>>> from PyTado.interface import Tado
>>> t = Tado('my@username.com', 'mypassword')
>>> climate = t.getClimate(zone=1)DevelopmentThis software is at a purely experimental stage.  If you’re interested and can write Python, clone the Github repo, drop me a line, and get involved!Release and publish to pypi.orgsee:https://packaging.python.org/tutorials/packaging-projects/TL:DR;
* updateversioninsetup.py*python3 -m pip install –user –upgrade setuptools wheel*python3 setup.py sdist bdist_wheel*python3 -m pip install –user –upgrade twine*python3 -m twine upload dist/*Best wishes and a warm winter to all!Chris Jewell
Package: python-tado-dev
Author: Chris Jewell <chrism0dwk@gmail.com>
Modified: Wolfgang Malgadey <wolfgang@malgadey.de>Licence: GPL v3Copyright: Chris Jewell 2016-2018PyTado is a Python module implementing an interface to the Tado web API.  It allows a user to interact with their Tado heating system for the purposes of monitoring or controlling their heating system, beyond what Tado themselves currently offer.It is hoped that this module might be used by those who wish to tweak their Tado systems, and further optimise their heating setups.DisclaimerBesides owning a Tado system, I have no connection with the Tado company themselves.  PyTado was created for my own use, and for others who may wish to experiment with personal Internet of Things systems.  I receive no help (financial or otherwise) from Tado, and have no business interest with them.  This software is provided without warranty, according to the GNU Public Licence version 3, and should therefore not be used where it may endanger life, financial stakes, or cause discomfort and inconvenience to others.Example basic usage>>> from PyTado.interface import Tado
>>> t = Tado('my@username.com', 'mypassword')
>>> climate = t.getClimate(zone=1)DevelopmentThis software is at a purely experimental stage.  If you’re interested and can write Python, clone the Github repo, drop me a line, and get involved!Release and publish to pypi.orgsee:https://packaging.python.org/tutorials/packaging-projects/TL:DR;
* updateversioninsetup.py*python3 -m pip install –user –upgrade setuptools wheel*python3 setup.py sdist bdist_wheel*python3 -m pip install –user –upgrade twine*python3 -m twine upload dist/*Best wishes and a warm winter to all!Chris Jewell
Package: python-taiga
A python wrapper for theTaiga REST API.Documentation:https://python-taiga.readthedocs.io/Usage: :https://python-taiga.readthedocs.io/usage.htmlWarningVersion 1.1 change the signature of HistoryItem methods.
Check thedocumentationand update your code if it uses kwargs forHistoryEntity.delete_comment/HistoryEntity.undelete_comment.History1.3.0 (2024-01-02)FeaturesSwitch to bump-my-version (#140)Switch to Coveralls Github action (#155)Add a duplicate() method to Project. (#161)Adds SwimLane/SwimLanes models and support to add/list in Project. (#162)Adds the ability to read/write the default_swimlane attribute in Project. (#166)BugfixesAdd the version parameter to the alloed parameter so the requester can acess it. (#149)1.2.0 (2023-08-23)FeaturesAdd list_attachments on WikiPage (#100)Add refresh_token API call (#131)BugfixesAdd count to SearchResult object, fix wikipages attribute name in SearchResult object (#111)Add moveTo parameter in delete methods when needed by Taiga API (#130)Fix ruff linting error (#134)1.1.0 (2023-04-23)FeaturesUpdate tooling, drop Python 2 (#59)Implement list_epic_attributes() (#103)Update packaging - python versions (#124)BugfixesUpdate HistoryItem methods signatures (#97)Improve models documentation (#105)Add refresh token support to tests/resources/auth_users_success.json (#114)Fix pagination (#116)Update linting tools and fix code style (#117)Improved DocumentationImprove documentation (#58)1.0.0 (2019-08-08)Add support for python 3.7Add support for epicsAdd support for additional attributes from Taiga 3.2/3.3Improve modelsImprove pagination supportFix and enforce code style0.9.0 (2018-01-31)Add support for multiple authentication backendsAdd support for self-signed and not verified SSL certificatesAdd support for webhooksAdd pagination support for listsAdd debian packagingAvoid installing tests as a separate moduleMove documentation to readthedocsAdd support for Python 3.5/3.60.8.6 (2016-08-26)Fix header values to be strings instead of booleanFix requests compatibility issues
Package: python-taobao
作者：wangbuke@gmail.compython-taobao is a library to write taobao-open-platform api in a pythonic way.Install:# pip install -e git+https://github.com/buke/python-taobao.git#egg=python-taobaoUninstall:# pip uninstall python-taobaoNutshellImport:>>> import taobaoSimple User:>>> top = taobao.ServerProxy(app_key = "xxx", app_secret="xxx", session="xxx")
>>> seller = top.taobao.user.seller.get(fields=['nick','sex'])
>>> dict(seller)
{'nick': 'seller_nick', 'sex': 1}

>>> seller.nick
'seller_nick'

>>> seller.sex
1支持开源：如果您觉得好用，请进入下面的网址，付费支持作者 ~http://me.alipay.com/wangbuke谢谢！
Package: python-taorpc
AuthServiceProxy is an improved version of python-jsonrpc.It includes the following generic improvements:HTTP connections persist for the life of the AuthServiceProxy objectsends protocol ‘version’, per JSON-RPC 1.1sends proper, incrementing ‘id’uses standard Python json libcan optionally log all RPC calls and resultsJSON-2.0 batch supportIt also includes the following bitcoin-specific details:sends Basic HTTP authentication headersparses all JSON numbers that look like floats as Decimal,
and serializes Decimal values to JSON-RPC connections.Installationchange the first line of setup.py to point to the directory of your installation of python 2.*run setup.pyNote: This will only install taorpc. If you also want to install jsonrpc to preserve
backwards compatibility, you have to replace ‘taorpc’ with ‘jsonrpc’ in setup.py and run it again.Or simply install the library using pip:pip install python-taorpcExamplefromtaorpc.authproxyimportAuthServiceProxy,JSONRPCException# rpc_user and rpc_password are set in the bitcoin.conf filerpc_connection=AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user,rpc_password))best_block_hash=rpc_connection.getbestblockhash()print(rpc_connection.getblock(best_block_hash))# batch support : print timestamps of blocks 0 to 99 in 2 RPC round-trips:commands=[["getblockhash",height]forheightinrange(100)]block_hashes=rpc_connection.batch_(commands)blocks=rpc_connection.batch_([["getblock",h]forhinblock_hashes])block_times=[block["time"]forblockinblocks]print(block_times)Logging all RPC calls to stderrfromtaorpc.authproxyimportAuthServiceProxy,JSONRPCExceptionimportlogginglogging.basicConfig()logging.getLogger("TaoRPC").setLevel(logging.DEBUG)rpc_connection=AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user,rpc_password))print(rpc_connection.getinfo())Produces output on stderr likeDEBUG:TaoRPC:-1-> getinfo []
DEBUG:TaoRPC:<-1- {“connections”: 8, …etc }
Package: python-task-manager
python-task-managerTask Manager is a wrapper that executes your tasks and rollback functions in a safe wayUsingMore usage examples can be found in this repository. You may also explore the tests/ folder to get a better view of this library.DevelopingFeel free to suggest modifications and/or merge/pull requests.# start venvpython3-mvenvvenvsource./venv/bin/activate# install pipenvpython3-mpipinstallpipenv# install the rest of the dependencies (with dev deps too)python3-mpipenvinstall-d# to test this package installedpython3-mpipinstall.
Package: python-taskpaper
python-taskpaper is a Python module for interacting withTaskpaper-formatted documents.What does it do?So far?  Not much.   You can open, read and write TaskPaper documents, and
add or remove tags on items within that document, but that’s about it.  I’d
like to expand it to be much more powerful, but it depends on when I have
free time.I will probably change the API in a non-backwards compatible way before 1.0.
User beware.Look in thedocsdirectory for some examples of how I’m using it.  I’ll
write proper documentation soon.What does it require?To use this module, you need Python 2.7 or 3.3+.  Those are the only versions
of Python that I’m interested in testing or writing for.  Standard library
only (for now).How do I install it?You can install it from PyPI:pip install python-taskpaperWhy write this?  Why not use the built-in scripting?Two reasons:I work with TaskPaper-formatted documents on Windows and Linux (for my day
job), and the best AppleScript support in the world is utterly useless
there.  :-(I prefer Python to AppleScript and JavaScript.I hate Python.Good for you.There’s built-in support for scripting the TaskPaper app with JavaScript or
AppleScript, or Matt Gemmell has written aRuby librarythat you
could use.  (I’d use Matt’s library if I actually knew any Ruby.)How do I run the tests?Installtox, ideally in a virtualenv:pip install toxthen run the tests like so:make testThis will run the tests, and show which lines aren’t covered by existing tests.
I’m trying to get better at writing tests with good coverage.LicenseThe project is licensed under the MIT license.
Package: python-tbk
Requirementspython: ~2.7, ^3.6libxml2 >= 2.9.1libxmlsec1 >= 1.2.14🇬🇧InstallationJust run:$ pip install python-tbkUsageAs simple as call (snakecased) webpay api methods:>>> from tbk.services import WebpayService
>>> from tbk.commerce import Commerce
>>> from tbk import INTEGRACION
>>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)
>>> webpay = WebpayService(commerce)
>>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)
>>> print(transaction['token'])
e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842ConventionsThis library use a snake cased naming convention for webservices and params for a more pythonic implementation. Every camelcased name in the webpay API was transformed to snakecase:initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)became:init_transaction(amount, buy_order, return_url, final_url, session_id)DocumentationYou can refer tohttp://www.transbankdevelopers.cl/?m=apifor official API documentation. This library documentation is on the way.LoggersThere are two levels of loggers:tbk.services
tbk.soapSpecific service logger are defined by class name:tbk.services.WebpayServiceBugs?Issues are welcome athttps://github.com/cornershop/python-tbk/issues🇪🇸InstalaciónEjecuta:$ pip install python-tbkUsoTan simple como llamar los métodos del API de Webpay (pero snakecased):>>> from tbk.services import WebpayService
>>> from tbk.commerce import Commerce
>>> from tbk import INTEGRACION
>>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)
>>> webpay = WebpayService(commerce)
>>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)
>>> print(transaction['token'])
e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842ConvencionesLa librería usa una convención de nombres snakecased para ser más pythonica. Cada nombre camelcased en el API de Webpay se transformó a snakecased:initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)se traduce en:init_transaction(amount, buy_order, return_url, final_url, session_id)DocumentaciónLa documentación oficial se encuentra disponible enhttp://www.transbankdevelopers.cl/?m=api. La documentación de esta librería está en desarrollo.LoggersSe encuentran definidos dos niveles de logger:tbk.services
tbk.soapEl logger específico de un servicio está definido por su nombre de clase:tbk.services.WebpayServiceTesting cards / Tarjetas de pruebaCredit / CréditoMarcaVISAMASTERCARDNo de Tarjeta40518856004466235186059559590568Año ExpiraciónCualquieraCualquieraCVV123123ResultadoAPROBADORECHAZADODebit / DébitoAPRUEBARECHAZATARJETA40518856004466205186059559590560RUT11.111.111-111.111.111-1PASSWORD123123
Package: python-tcxparser
Build Statusmaster:python-tcxparser is a minimal parser for Garmin’s TCX file format. It
is not in any way exhaustive.Data extracted:latitude & longitude of start point of workouttype of workout (running, walking, etc)time of completion of workout (in ISO UTC)distance of workout (in meters)duration of workout (in seconds)calories burned during workout (as estimated by device)average, max and min heart rate during workoutaverage pace during workoutaverage altitude during workoutascent and descent of workoutmax and min altitudetime stamp of each data point (in ISO UTC)average and max cadence (cycling activities)percentage and time spent in heart rate zoneaverage and max powertotal steps (also strokes)InstallationInstall it from PyPI:pip install python-tcxparserUsageBasic usage example:>>> import tcxparser
>>> tcx = tcxparser.TCXParser('/home/vinod/Downloads/20121226-212953.tcx')
>>> # Duration of workout in seconds
... tcx.duration
1992.78
>>> # latitude/longitude at start of workout
... tcx.latitude
35.951880198
>>> tcx.longitude
-79.0931872185
>>> tcx.activity_type
'running'
>>> # ISO UTC timestamp when workout completed
... tcx.completed_at
'2012-12-26T22:03:05Z'
>>> # distance of workout in meters
... tcx.distance
4686.31103516
>>> tcx.distance_units
'meters'
>>> # calories burned (as reported by device)
... tcx.calories
379
>>> # percentage of workout spent in each user-defined heart rate zone
... tcx.hr_percent_in_zones({"Z0": (0, 99), "Z1": (100, 129), "Z2": (130, 200)})
{"Z0": 14, "Z1": 36, "Z2": 50}CompatibilityPython 3.7+, seetox.ini.LicenseBSDMaintainer InformationWe use Github Actions to lint (using pre-commit, black, isort, and flake8),
test (using tox and tox-gh-actions), and calculate coverage (using coverage).We have a local script to do these actions locally, namedmaintain.sh:$ ./maintain.shA Github Action workflow also builds and pushes a new package to PyPI whenever a new
Release is created in Github. This uses a project-specific PyPI token, as described in
thePyPI documentation here. That token has been
saved in thePYPI_PASSWORDsettings for this repo, but has not been saved anywhere
else so if it is needed for any reason, the current one should be deleted and a new one
generated.As always, be sure to bump the version insetup.pybefore creating a Release, so
that the proper version gets pushed to PyPI.ContactPlease contact me with any questions: Vinod Kurup (vinod@kurup.com)