Saravanan666/pypi-org huggingface dataset:
Package: python-tr
python-trThis module is a Python implementation of the tr algorithm.tr(string1, string2, source, option=’’)If not given option, then replace all characters in string1 with
the character in the same position in string2.Following options are available:cReplace all complemented characters in string1 with the character in the same position in string2.dDelete all characters in string1.sSqueeze all characters in string1.csSqueeze all the characters in string2 besides “c” replacement.dsDelete all characters in string1. Squeeze all characters in string2.cdDelete all complemented characters in string1.Params:<unicode> string1<unicode> string2<unicode> source<basestring> optionReturn:<unicode> translated_sourceNoteIf Python2.x, the type of paramaters (string1, string2 and source) must be unicode.If Python3.3 or later, the type of paramaters (string1, string2 and source) must be str.Installationpip install python-trExamplePython2.xfromtrimporttrtr(u'bn',u'cr',u'bunny')# => u'curry'tr(u'n','',u'bunny','d')# => u'buy'tr(u'n',u'u',u'bunny','c')# => u'uunnu'tr(u'n',u'',u'bunny','s')# => u'buny'tr(u'bn','',u'bunny','cd')# => u'bnn'tr(u'bn',u'cr',u'bunny','cs')# => u'brnnr'tr(u'bn',u'cr',u'bunny','ds')# => u'uy'Python3.3 or laterfromtrimporttrtr('bn','cr','bunny')# => 'curry'tr('n','','bunny','d')# => 'buy'tr('n','u','bunny','c')# => 'uunnu'tr('n','','bunny','s')# => 'buny'tr('bn','','bunny','cd')# => 'bnn'tr('bn','cr','bunny','cs')# => 'brnnr'tr('bn','cr','bunny','ds')# => 'uy'Contributions are welcome.CHANGES0.1.2 (2016-03-11)Fix transliteration bugs in no option bugThis bug is reported by id774.
Many thanks.0.1.1 (2015-02-11)Fix metacharcter bug in squeezeThis bug is reported by Pierre Nugues.
Many thanks.0.1 (2014-11-24)Improve processing speed slightly0.0.1 (2014-07-10)First release.
Package: python-traceview
Library for providing access to the TraceView API v2.Please see theTraceView API Referencefor more information.InstallationTo install python-traceview, simply:$pipinstallpython-traceviewUsage>>>importtraceview>>>tv=traceview.TraceView('API KEY HERE')>>>tv.apps()[u'Default',u'pyramid_web_app']>>>tv.server.latency_summary(app='Default'){u'count':2746.0,u'average':213911.87181354698,u'latest':35209.87654320987}>>>tv.error_rates('Default'){u'fields':u'timestamp,error_rate',u'items':[[1399082880.0,0],[1399082910.0,0],...]}DocumentationDocumentation available athttp://python-traceview.readthedocs.org/.Release History0.7.0 (2016-06-12)Add support for formatting TraceView API resultsAdd support for total requests summaryRefactor internal design of libraryUpdate requests library to version 2.10.0Drop support for Python 3.20.6.0 (2016-01-16)Add support for deleting apps (thanks Dan Kuebrich!)0.5.0 (2015-10-16)Add support for total requests (thanks Matt Coddington!)Python 3.5 now supported0.4.0 (2014-09-08)Add support for licensesAdd support for annotations improvementsAdd support for deleting old hostsAdd support for hosts by appAdd support for instrumentation versions0.3.0 (2014-05-05)Add python3 supportUpdate tests0.2.0 (2014-05-04)Add documentationAdd support for application assignmentAdd support for annotations0.1.0 (2014-04-21)Inception!
Package: python-trakt
This package provides a module to interface with thetrakt.tvAPI.Installationtrakt API usageLicenseReferencesInstallationUsing pip:$ pip install git+https://github.com/z4r/python-trakttrakt API usageimport trakt.tv
trakt.tv.setup(apikey=<YOUR_APIKEY>)
trakt.tv.search.shows('walking dead')You can perform auth requestimport trakt.tv
trakt.tv.setup(apikey=<YOUR_APIKEY>, username=<USER>, password=<PWD>)
trakt.tv.show.episode('the-walking-dead', 1, 1)LicenseThis software is licensed under theApache License 2.0. See theLICENSEfile in the top distribution directory for the full license text.Referencestrakt.tvAPI
Package: python-transcoded
# Video transcoding daemonThis project implements a daemon that wraps ffmpeg for video transcoding and listens for jobs over http.Intended to be used as backend for web applications that deal with video encoding in any way so they don'thave to mess with the long running background processes, queueing and ffmpeg command line parameters.To use this you create a config file that defines which applications can use which directory for media andthe encoding profiles the applications can use.An example configuration:```conf[general]port=12380listen=127.0.0.1[user-mediacenter]password=verysecretpaths=/mnt/storage/videoscallback=http://127.0.0.1/transcode-callback[profile-h264]container=mkvvcodec=h264vpolicy=alwaysacodec=aacapolicy=alwaysvbitrate=2Mvbitratemax=3Mabitrate=192kabitratemax=1M```This defines the user `mediacenter` with the password `verysecret` which can start transcoding jobs in any path startingwith `/mnt/storage/videos`. It also defines a callback url for reporting job progress to the requesting application.It also defines the profile called `h264` which always encodes to h264+aac in a mkv container.The default policy for transcoded is to transcode as little as possible unless explicitly configured to transcode anything.The default config doesn't transcode the stream if the source codec matches the destination codec(s). It does alwaysrecreate the container for the streams.It is possible to define multiple output codecs seperated by a comma, in that case it won't transcode if the source codecmatches any of the listed codecs. If the source doesn't match any codec then it will transcode it to the first specifiedcodec.
Package: python-transifex
python-transifexA python API to the Transifex translation service (www.transifex.com). This API wrapper makes it easier to communicate with Transifex. The wrapper does not expose all of the underlying functionality of the Transifex API.This wrapper is compatible with both www.transifex.com and Transifex Community Edition (self hosted).ChangeLog0.1.7Downgrade requests version to ensure compatibility with current code0.1.6Update setup.py to only include the actual requirements needed to install. Thanks to Toshio Kuratomi (https://github.com/jakul/python-transifex/pull/3)Fix tests which now throw InvalidSlugException. Thanks to Toshio Kuratmi (https://github.com/jakul/python-transifex/pull/4)0.1.5add new InvalidSlugException; make exceptions share a base class
Package: python-transparencydata
Python library for interacting with the TransparencyData.com API.The TransparencyData.com API provides campaign contribution and lobbying data.http://transparencydata.com/api/python-transparencydata is a project of Sunlight Labs (c) 2010
Written by Jeremy Carbaugh <jcarbaugh@sunlightfoundation.com>All code is under a BSD-style license, see LICENSE for details.Source:http://github.com/sunlightlabs/python-transparencydata/Requirementspython >= 2.4simplejson >= 1.8 (not required with Python 2.6, will use built-injsonmodule)UsageTo initialize the api, all that is required is for it to be imported and for an
API key to be defined.(If you do not have an API key visithttp://services.sunlightlabs.com/api/to
register for one.)Import TransparencyData class and set your API key:>>> from transparencydata import TransparencyData
>>> td = TransparencyData('sunlight-api-key')Parameter OperatorsSome parameters allow multiple values or greater than, less than, or between operations. We allow operators to be added similar to the method used by the Django ORM. The operator is appended to the end of the parameter name using double underscore.>>> td.contributions(amount=100)                        # contributions equal to 100 dollars
>>> td.contributions(amount__lt=100)            # contributions less than 100 dollars>>> td.contributions(cycle=1990)                        # contributions from the 1990 election cycle
>>> td.contributions(cycle__in=(1990,2008)) # contributions from the 1990 and 2008 election cyclesgtGreater than specified value.ltLess than specified value.betweenBetween the lesser value and greater value. Parameters must be passed as a two-value tuple or list.>>> td.contributions(date__between=(start_date, end_date))inMatches any in a range of values. Parameter must be a tuple or list.See the parameter documentation (http://transparencydata.com/api/) to find out which operators are valid for each parameter.Campaign ContributionsTo find all contributions to Chris Van Hollen from the state of CA during the 2008 election cycle:>>> td.contributions(cycle=2008, contributor_state='CA', recipient_ft='van hollen')A list of valid contributions parameters can be accessed programmatically:>>> print td.contributions.parametersParameter documentation:http://transparencydata.com/api/#contributionsResponse documentation:http://transparencydata.com/docs/#contributionsLobbyingTo find all lobbying conducted by John Wonderlich:>>> td.lobbying(lobbyist_ft='john wonderlich')A list of valid lobbying parameters can be accessed programmatically:>>> print td.lobbying.parametersParameter documentation:http://transparencydata.com/api/#lobbyingResponse documentation:http://transparencydata.com/docs/#lobbying
Package: python-travis-deploy
A test project for deploying to PyPI from TravisDeployment StrategyAny user can create a new branch and commits that puts the package
into a deployable state. (Updating changelog, putting release date, etc)
The branch must be namedrelease-x.x.xto trigger integration testsUser creates a Pull Request to the repo as normal.Travis runs unit tests as normal.Travis runs integration tests due to therelease-x.x.xbranch name.Once merged any maintainer can tag the squashed commit and push tags to GitHub.Travis will build and deploy the tagged commit and upload to PyPI.Travis will prepare a GitHub release draft for the tag.Once you’re satisfied with the release content (ie changelog entry info)
you can publish the release.Configuration OptionsIf your deployment uses universal wheels you can consolidate the
two PyPI deployments into one and build both within_travis/deploy.sh.If you’re not a fan of GitHub releases you can remove that section
withindeploy:in.travis.yml.
Package: python-trello
Python Wrapper for Trello APIInstallationpipinstallpython-trelloI use trello a lot for my personal projects, planning and executing them, hence I created my own personal library for common tasks.Some use casesScrape your udemy courses and put them on trello board with checklists for each chapter.Scrape books from your shelves on goodreads and put them on trello.Scrape details of an apartment search page and put them up on trello.I just started refactoring a lot of code from two years ago. Things that I should do now:Remove goodreads and udemy code out of this code.Fix testsUpdate code to use python3 features.Update testsIntegrate run scripts for this repoAdd pre-commit hooks.Add attrs.Uploading to pypitwineupload--repositorytestpypidist/*
twineuploaddist/*
Package: python-trello-api
Trello API - Async Python SDK client (using aiohttp)Simple and fast client to call rest-api endpoints"https://trello.com/1/using aiohttp package.View at:https://pypi.org/project/python-trello-api/How to installpip3installpython-trello-apiUsageMain example:importasynciofromapi_trelloimportTrelloClientTOKEN="12345:YOUR_TOKEN"APP_HOSTNAME="https://YOUR_HOSTNAME.ngrok.io"trello=TrelloClient(token=TGBOT_TOKEN)asyncdefmain_async():passif__name__=="__main__":asyncio.run_until_complete(main_async())DocsHow to publish pypi packageMedium article in RussianDependenciesTODODisclaimerThis project and its author is neither associated, nor affiliated withAtlassianorTrelloin anyway.
See License section for more details.LicenseThis project is released under theGNU LESSER GENERAL PUBLIC LICENSELicense.
Package: pythontrie
pythontrie : Python Implementation of Trie Data Structurepythontrie includes sweet implementation of our favourite data structure trie in python.Usage:>>> from pythontrie import trie
>>> sample_trie = trie()
>>> sample_strings = ['heyy', 'heyay', 'heyey', 'hyyy', 'yoyo', 'heeyy', 'hoeyy']
>>> for sample_string in sample_strings:
>>>     sample_trie.insert(sample_string)Then printing suggestions is as simple as:>>> print(sample_trie.suggestions(prefix='he')
['heyy', heyay', heyey', 'heeyy']Current FeaturesAdding arbitrary strings into trieSearching for suggestion using prefixSearch whether any string is present in trie or notpythontrie right now supports all python versionsInstallationTo install pythontrie, simply use all time favorite pip and type :$ pip install pythontrie
✨🍰✨DocumentationComing Soon.How to ContributeInitial plan is to integrate all necessary functionality that trie can offer into this library so that it can act as
one place shot for everyone who is playing with trie.Please propose and feel free to raise an issue and submit a PR for some sensible feature. Try to elaborate the
the area where this feature would be applicable so that all of us can be enlightened :).I am planning to integrate research work done on tries into this library as well so that it can provide advanced functionalities
with tight algorithmic complexity bounds. Please feel free to share any paper.
Package: python-tripleodash
This is a terminal Dashboard for TripleO. It aims to provide an overview of
the deployment by showing you the images, nodes and Heat stack all together.
This helps you see your progress when deploying and will also help when
troubleshooting.UsageYou can either install tripleodash system wide.$source~/stackrc$pipinstallpython-tripleodash$tripleodashOr, run it in a virtualenv with Tox. This may be favourable if you want to
run tripleodash without touching the system Python install.$source~/stackrc$gitclonehttps://github.com/d0ugal/python-tripleodash.git$cdpython-tripleodash$tox-evenv--tripleodashNoteIf you don’t have a pip and tox package for your system, install pip withget-pip.pyand thensudo pip install toxFurther documentation and screenshots.
Package: python-troveclient
This is a client for the OpenStack Trove API. There’s a Python API (thetroveclientmodule), and a command-line script (trove). Each
implements 100% of the OpenStack Trove API.See theTrove CLI Guidefor information on how to use thetrovecommand-line tool. You may also want to look at theOpenStack API documentation.python-troveclient is licensed under the Apache License like the rest of OpenStack.License: Apache License, Version 2.0Online DocumentationBugs- issue trackingPyPi- package installationBlueprints- feature specificationsGit SourceSpecsHow to ContributeRelease Notes
Package: python-trovo
python-trovoThis is a Python wrapper for some of theTrovo APIfunctions, specifically:Main API5.1. Get Game Categories (get_all_game_categories)5.2. Search Categories (get_game_categories)5.3. Get top channels (get_top_channels)5.4. Get Users (get channel id) (get_users)5.5. Get Channel Info by ID (get_channel_info_by_id)5.10. Get Emotes (get_emotes)5.11. Get channel viewers (get_channel_viewers)5.12. Get channel followers (get_channel_followers)5.13 Get Live Stream Urls (get_livestream_urls)5.14 Get Clips Info (get_clips_info)5.15 Get Past Streams Info (get_past_streams_info)To obtain a connection, just run the following command:importtrovoApic=trovoApi.TrovoClient("client_id")print(c.get_all_game_categories())
Package: pythontrr
python-trrPython-trr is an terminal app for typing practice. It is written in Python with one of its standard libraries - Curses, which means no additional packages are required to run this app as long as you have python3 installed in your environment. Python-trr is inspired by ( or a remake of )emacs-trron GNU Emacs.What does it do?The current version of python-trr ( as in Dec 2021 ) supports the following features:Has a stable graphics interface in a standard 80 x 24 terminal windowHighlights correct / incorrect inputsShows time, error rate, kpm ( keystrokes per minute ) in real-timeStores results and histories in local filesPresents recent game results in scatter plot styleProvides a settings menu ( accessible with the TAB key ) for user settingsUsageFirst, install python-trr with pip.pip install pythontrrThen, from the terminal, simply runpython3 -m pythontrrand start typing!ConfigurationVia settings menuPress TAB during the game to pause and enter settings mode. There are currently 5 settings and several options for users to choose from. Here are some keys you will find useful:Up / Down arrow keyNavigate through different settingsLeft / Right arrow keyNavigate through different optionsTABSave changes and let the game resumeESCSave your changes beforehand, otherwise your current game status and changes to settings will be lost.Press ESC to exit the game. After restarting the game, you will find the new settings applied.Via connfiguration file ( not recommended )Inconfig.pyyou can tweak the configuration as you like. Here are some tips:READ_RESULT_FROM_HISTORY,READ_HISTORYIf set to True, then the program will look for the stored history in your local files. If there is not one, it will be created. If set to False, it erases all existing histories stored in the file and overwrites them.HISTORY_ENTRIESSpecifies how many entries will be shown in the History block. The maximum is 3.WORD_COUNTSpecifies how many words ( or in fact keystrokes ) will be shown in the Text block. The maximum is 350.ReferencesSample texts are scraped fromProject Gutenberg's Website.
Package: python-trustico
This module is the an API and a command line
for ordering SSL certificates from Trustico.NoteThe code is still a work in progress
(i.e type2 products are not yet supported.)InstallationYou need to install the dependencies listed in therequirements.txtfile.UsageBe sure to have unable the API in the web interface before
to try to use it.Test the connexion:trustico -u trustico_user -p your_password -tGet the status of an order:trustico -u trustico_user -p your_password -s -o 1111-11-11111-1111111Create a new certificate with a existing certificate request:trustico -u trustico_user -p your_password -A admin_address.json -T tech_address.json -O order.json -C domain.csrWhereorder.jsonlooks like:{
    "product" : "rapidssl",
    "period" : 12,
    "approver" : "admin@example.com",
    "insurance" : 0,
    "servercount" : 1,
    "techusereseller" : 1,
    "novalidation" : 0
}admin_address.jsonlooks like:{
    "title" : "Ms",
    "firstname" : "Eliza",
    "lastname" : "Xample",
    "organisation" : "EXample",
    "role" : "WebSite Owner",
    "email" : "example@example.com",
    "phonecc" : "1",
    "phoneac" : "514",
    "phonen" : "9460234",
    "address1" : "1 High Street",
    "city" : "MyTown",
    "state" : "London",
    "postcode" : "SW1 4AA",
    "country" : "GB"
}and fortech_address.json(same things but norolefield):{
    "title" : "Ms",
    "firstname" : "Eliza",
    "lastname" : "Xample",
    "organisation" : "EXample",
    "email" : "example@example.com",
    "phonecc" : "4",
    "phoneac" : "514",
    "phonen" : "9460234",
    "address1" : "1 High Street",
    "city" : "MyTown",
    "state" : "London",
    "postcode" : "SW1 4AA",
    "country" : "GB"
}Type:trustico --helpFor complet usage details.APIFor the complet API see the official documentation at:https://resellers.trustico.com/geodirect/admin/api-overview.phpThe script is inspired by the perl version:http://cpansearch.perl.org/src/CLIFFORDJ/Net-Trustico-0.01/lib/Net/Trustico.pm
Package: python-trustwave-appscanner
[![Build Status](https://travis-ci.org/siteblindado/python-trustwave-appscanner.svg?branch=master)](https://travis-ci.org/siteblindado/python-trustwave-appscanner#)
[![Current version at PyPI](https://img.shields.io/pypi/v/python-trustwave-appscanner.svg)](https://pypi.python.org/pypi/python-trustwave-appscanner)Python Trustwave Appscanner transforms Appscanner REST API results into Plain Python Objects for easier processing.Installationpip install python-trustwave-appscannerUsageThe library exposes some functions that can return Python objects representing the XML response, strings or booleans.Boolean functions are:application_exists,assessment_existsString functions are:get_application_id_by_name,get_assessment_status,get_current_assessment_run_idget_assessment_run_statusreturns anAssessmentRunobject
Package: python-tsl2591
TSL2591 Python LibraryThis is a simple python library for the Adafruit TSL2591 breakout board based on theArduino libraryfrom Adafruit. It was developed to work on a Raspberry PI.RequirementsTo use this library, you must have the following:TSL2591 sensor (nottheTSL2561)I2C enabled devicePython 3 (though Python 2 should technically still work)InstallationThis module can be installed using pip (and can find a copy of this module onPyPi).pipinstallpython-tsl2591QuickstartThis library comes with an example file you can use, or you can copy and paste the following:frompython_tsl2591importtsl2591importtimeif__name__=='__main__':tsl=tsl2591()# initialize# full, ir = tsl.get_full_luminosity()  # Read raw values (full spectrum and infared spectrum).# lux = tsl.calculate_lux(full, ir)  # Convert raw values to Lux.whileTrue:print(tsl.get_current())# Return object with all values.# print (lux, full, ir)time.sleep(2)Install from SourceYou can also install this Python module from source:gitclonehttps://github.com/kyletaylored/python-tsl2591cdpython-tsl2591
pythonsetup.pyinstallEnabling I2C on your Raspberry PiYou can enable I2C on the Raspberry Pi by following the instructions onAdafruit.The quick version is:Runsudo raspi-configSelectAdvanced OptionsEnable I2CReboot (sudo reboot)When testing I2C (sudo i2cdetect -y 1), you should see at least one connected device, your TSL2591 at0x29. For more information, see theFAQ.FAQFatal error (deprecated)UPDATE: We have integrated thesmbus2library, which is an smbus library built in Python, and does not require any system packages likesmbus-cffiorlibffi-dev.If you do not have those Raspbian packages installed prior to installing this library, you will run into errors that look similar to this.fatal error: ffi.h: No such file or directory
     #include <ffi.h>
                     ^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1I2C Check for Static AddressBecause the TSL2591 connects via I2C, it's always good to run the I2C detection to verify the address is being read. Unlike the TSL2561 with programmable addresses, the TSL2591's address is hard coded and cannot be changed - thus it will always show0x29.In the example output below, you can see there are two I2C devices detected, one being the TSL2591.pi@raspberrypi:~$sudoi2cdetect-y10123456789abcdef00:--------------------------10:--------------------------------20:------------------29------------30:------------------------3c------40:--------------------------------50:--------------------------------60:--------------------------------70:----------------LicensePython files in this repository are released under theMIT license.