Saravanan666/pypi-org huggingface dataset:
Package: telnetio
telnetioA Sans-IO implementation of a telnet parser.Includes ananyioserver implementation.  To install use theanyioextra, such aspip install telnetio[anyio].importanyiofromanyio.abcimportAnyByteStreamfromtelnetioimportAnyioTelnetServerasyncdefhandler(stream:AnyByteStream)->None:asyncwithstream,AnyioTelnetServer(stream)astelnet:asyncfordataintelnet:awaittelnet.send(data)asyncdefmain()->None:listener=awaitanyio.create_tcp_listener(local_port=1234)awaitlistener.serve(handler)anyio.run(main)See theexamplesdirectory for more examples.
Package: telnetlib2
telnetThis is an easy to use telnet module to interact with a remote system smoothly over this protocol!Install :pip install telnetlib2orpip3 install telnetUsage :import telnetlib2
t=telnetlib.telnet()
ip='192.168.0.32'#just an example
t.login(ip, username='root',password='toor',p=23,timeout=5)
output1=t.execute('echo ala_is_king')
print(output1)
output2=t.execute('cd / && ls')
print(output2)
t.close()
Package: telnetlib-313-and-up
This is a copy of telnetlib for python3.13+
It was deprecated and is being removed in python3.13 but many people would still like their old code to work.Just install it with pip/poetry/etc for python3.13+ and your old telnetlib code should keep working.Currently it is an exact copy(except for removing the derpracation warning),but I will accept patches for compatibility for future python versions.No extra options or feature or formatting fixes are likely.The pep suggested telnetlib3 which has a differnt api and isn't a drop in replacemnet or Exscript which has an old copy of telnetlibhttps://github.com/knipknap/exscript/blob/master/Exscript/protocols/telnetlib.pywhich you can import withimport Exscript.protocols.telnetlib as telnetlibbut also a bunch of other stuff.
Also it requires you to modify your imports, this package doesn't.
Package: telnetlib-proxy
telnetlib with SOCKS proxy supportThis is a python package that adds socks proxy support totelnetlibusing PySocks.It includes a telnet client that you can use viatelnet5command that uses
SOCKS4, SOCKS5 or HTTP proxy set via telnet_proxy environment variable.Installation:pip install telnetlib_proxyUsage:export telnet_proxy=socks5://host:port

telnet5 [-d] .. host port

# press Ctrl-C to close the connection
Package: telnetserver
Simple-Python-Telnet-ServerSimple module that allows to receive and send messages to clients through Telnet.It is a generalized version ofhttps://github.com/Frimkron/mud-pimade by
Mark Frimston.How to useYou can learn to use it by reading the docstrings of the public methods
in TelnetServer, or by looking at some examples. The echo_telnet_server.py file
under the examples directory is a simple server that makes use of all of the
PythonServer features, so it is a perfect place to learn.AuthorTelnetServer was created by Oliver L. Sanz, using Mark Frimston's mud-pi server
as the working base.You can contact me atoliverlsanz@gmail.comfor feedback or help.
Package: telomerecat
Telomerecat (Telomere Computational Analysis Tool)Telomerecat is a tool for estimating the average telomere length (TL) for a paired end, whole genome sequencing (WGS) sample.Telomerecat is adaptable, accurate and fast. The algorithm accounts for sequencing amplification artifacts, anneouploidy (common in cancer samples) and noise generated by WGS. For a high coverage WGS BAM file of around 100GB telomerecat can produce an estimate in ~1 hour.Docker containerTelomerecat is available as a Docker container onQuay.io.No "latest" image is defined, you need to specify the version you require, e.g.:exportVERSION_TEL=3.4.1# update as appropriatedockerpullquay.io/wtsicgp/telomerecat:${VERSION_TEL}SingularityThe docker container is known to work with singularity, save the image locally via:exportVERSION_TEL=3.4.1# update as appropriatesingularitypulldocker://quay.io/wtsicgp/telomerecat:${VERSION_TEL}INSTALLInstallation is viapip.  Simply execute with the URL to a package release, e.g.:pip3installtelomerecatBasic usagePlease see the command line help:telomerecat--helpProcessesWhen selecting the number of processes/threads the following should be considered:Single sample/input - 1, 2 or 4 recommendedMulti sample/input - even valuesparallel bam2telbam processes will be started with 2 cpus each (assuming >2 processes)Package Dependanciespipwill install the relevant dependancies, listed here for convenience:parabamnumpypysampandasDevelopment DependenciesYou will need virtualenv available on your system.Create a virtual python environementcd$PROJECTROOTpython3-mvenvenvsourceenv/bin/activate
pythonsetup.pydevelop# so bin scripts can find moduleCutting a releaseCheck version insetup.pyhas been updatedCheck parabam version insetup.py/DockerfileFollow standard Hubflow release process (within cancerit)CircleCI will handle docker image push to quay.io and package deployment to pypi.
Package: telospy
telospyLightweight python package for working with EOSIO based RPC APIs.Installpip3 install telospyExamplefrom telospy.api import API
from telospy.models import Action
from telospy.models import Permission
from telospy.exceptions import AccountAlreadyExistsException

# This example assumes that there is a node running locally on the machine
# It also assumes that the chain is a telos chain, but telospy works on either telos or eos

api = API('http://127.0.0.1:8888', 'http://127.0.0.1:8999', 'v1')

try:
    api.create_account('eosio', 'goodblockio1', 'TLOS8BLqdVB2Lk4qppxrUkA3xGrgqbgbiBLM5iey7X5t1LbDYkG2yA')
except AccountAlreadyExistsException:
    pass

args = {'from': 'eosio', 'to': 'goodblockio1', 'quantity': '1000.0000 TLOS', 'memo': 'Sent from telospy!'}
permission = Permission('eosio', 'active')
transfer_action = Action(account='eosio.token', action_name='transfer', args=args, authorizations=permission)

receipt = api.send_transaction(transfer_action)

print(receipt)
Package: telraam-data
A friendly Python package to download traffic count data from Telraam.net.Thetelraam_datapackage enables you to retrieve traffic count data from theTelraam ProjectAPI intopandas.DataFrameobjects.ExamplesDownloading hourly counts for one segmentfromtelraam_dataimportdownload_segmentdata=download_segment(segment_id=1003073114,fmt="per-hour")data.to_excel("hourly-counts.xls")Downloading daily counts for all segmentsdata=download_segment(segment_id="all",fmt="per-day")data.to_csv("daily-counts.csv")Plotting weekly average counts for all segmentsdata=download_segment("all",time_start="2020-01-01 00:00:00Z",time_end="2021-01-01 00:00:00Z",fmt="per-day")weekly_average=data.set_index('date').resample('7D').mean()*7weekly_average.plot(y=["car","bike","pedestrian"],marker='o')InstallationIf you have a working version of Python on your system, you can install the package using:pipinstalltelraam-dataNotesThis is a third-party package not officially affiliated with the Telraam project.The Telraam API is documented athttps://telraam-api.net.Telraam’s data is made available under the CC BY 4.0 license. Thanks Telraam!
Package: telstra-smart-modem
Telstra Smart Modem - Python libraryThis library provides a Python 3 interface to query information from a Telstra Smart Modem (Gen 2).Tested withTelstra Smart Modem (Gen 2):Model: Technicolor DJA0231Firmware: 18.1.c.0443-950-RBCurrent featuresRetrieving online status (Online, Backup & Offline)Retrieving connected devices:Checking if a device is connectedRetrieving information of seen device's
(ipv4, ipv6, hostname, mac, connection type, ethernet port)LinksGitHubPyPIInstallationRequirementsRequestsBeautiful SoupMethodsPIPpip install telstra-smart-modemUsageInitializationimporttelstra_smart_modemIP='192.168.0.1'USERNAME='admin'PASSWORD='Telstra'# Create tsm (Telstra Smart Modem) modem object:tsm=telstra_smart_modem.Modem(IP,USERNAME,PASSWORD)Devices# Get current devices object from modem:>>>clients=tsm.getDevices()# Get list of seen devices:>>>clients.devices[{'online':False,'hostname':'host1','ipv4':None,'ipv6':[],'mac':'00:00:00:00:00:01','connection':'wireless - 5GHz','eth-port':None},{'online':True,'hostname':'host2','ipv4':'192.168.0.3','ipv6':['2001:0db8:0000:0000:0000:8a2e:0370:7334'],'mac':'00:00:00:00:00:02','connection':'ethernet','eth-port':2}]# Get specific device by mac address:>>>clients.getDevice("00:00:00:00:00:01"){'online':False,'hostname':'host1','ipv4':None,'ipv6':[],'mac':'00:00:00:00:00:01','connection':'ethernet','eth-port':2}# Check if a device is currently connected:>>>clients.isOnline("00:00:00:00:00:02")True>>>clients.isOnline("11:11:11:11:11:11")FalseOnline status# Returns 'online' if the modem is connected through the WAN port.# Returns 'backup' if the WAN connection is down and the 4G backup is active.# Returns 'offline' if both the WAN and 4G connections are down.>>>tsm.getModemStatus()online
Package: telwoord
TelwoordA Python library to convert numbers into their Dutch (nl) written form.Links:Code:https://github.com/wbolster/telwoordPyPI:https://pypi.python.org/pypi/telwoordTravis CI:https://travis-ci.org/wbolster/telwoordInstallationTo install from PyPI:$ pip install telwoordThere are no dependencies; a Python 2 or Python 3 interpreter is all you need.UsageUsetelwoord.cardinal()to convert an integer to its string representation.By default, a friendly representation is used, based on some common style
recommendations about when to spell out numbers, and when to leave them as is:>>> from telwoord import cardinal

>>> numbers = (0, 1, 2, 3, 19, 20, 30, 31, 100, 200, 215, 300, 14999, 15000, 1000000, 12345678)

>>> for n in numbers: print("{0: 10d}   {1}".format(n, cardinal(n)))
         0   nul
         1   een
         2   twee
         3   drie
        19   negentien
        20   twintig
        30   dertig
        31   31
       100   honderd
       200   tweehonderd
       215   215
       300   driehonderd
     14999   14999
     15000   15 duizend
   1000000   1 miljoen
  12345678   12345678To forcibly spell out all the numbers, passfriendly=False:>>> for n in numbers: print("{0: 10d}   {1}".format(n, cardinal(n, friendly=False)))
         0   nul
         1   een
         2   twee
         3   drie
        19   negentien
        20   twintig
        30   dertig
        31   eenendertig
       100   honderd
       200   tweehonderd
       215   tweehonderdvijftien
       300   driehonderd
     14999   veertienduizend negenhonderdnegenennegentig
     15000   vijftienduizend
   1000000   een miljoen
  12345678   twaalf miljoen driehonderdvijfenveertigduizend zeshonderdachtenzeventigIn addition to cardinal numbers, you can also convert a number into its ordinal
string representation usingtelwoord.ordinal():>>> from telwoord import ordinal

>>> for n in numbers: print("{0: 10d}   {1}".format(n, ordinal(n)))
         0   nulde
         1   eerste
         2   tweede
         3   derde
        19   negentiende
        20   twintigste
        30   dertigste
        31   31e
       100   honderdste
       200   tweehonderdste
       215   215e
       300   driehonderdste
     14999   14999e
     15000   15 duizendste
   1000000   1 miljoenste
  12345678   12345678eThetelwoord.ordinal()function also takes afriendlyargument that
works the same way as fortelwoord.cardinal().Spelling rules and style recommendationsTaalunie,Aaneenschrijven van telwoordenGenootschap Onze Taal,Getallen in letters of cijfersGenootschap Onze Taal,Getallen uitschrijvenVersion history0.4Improved friendly representation for some negative numbers0.3Implemented support for ordinal numbers0.2Improved support for friendly representation of negative numbers0.1Initial releaseSupport for spelling out numbers, optionally in a friendly wayDevelopmentTo install from a source tree:$ pip install -e .To run the tests you will need a few extra packages:$ pip install -r test-requirements.txtTo run the tests:$ py.testTo test against multiple Python versions:$ toxPossible future work:Fractions, e.g. “tweederde”, “twaalf tachtigste”
Package: temboard
Monitor, optimize and configure multiplePostgreSQLinstances.Manage your PostgreSQL instance fleet from a unique web interface.FeaturesManage hundreds of instances in one interface.Fleet-wide and per-instance dashboards.Monitor PostgreSQL with advanced metrics.Manage running sessions.Track bloat and schedule vacuum on tables and indexes.Track slow queries.Tweak PostgreSQL configuration.Docker QuickstartWe provide a completetestingenvironment based on Docker ! Please
read ourQUICKSTARTguide for more details.InstalltemBoard is composed of two services:A lightweightagentthat you need to install on every PostgreSQL server you want to manage.A centralweb appto control the agents and collect metrics.temBoard project provides packages for RHEL and clones as well as
Debian. Seetemboard.readthedocs.iofor
installation instructions.ContributetemBoard is an open project. Any contribution to improve it is welcome.Want to contribute? Please first read our guide oncontributingif you're interested in getting involved.LicensetemBoard is available under thePostgreSQL License.Candy Scordia drewhéron garde-bœufsketches.
Package: tembo-pgmq-python
Tembo's Python Client for PGMQInstallationInstall withpipfrom pypi.orgpipinstalltembo-pgmq-pythonDependencies:Postgres running theTembo PGMQ extension.UsageStart a Postgres Instance with the Tembo extension installeddockerrun-d--namepostgres-ePOSTGRES_PASSWORD=postgres-p5432:5432quay.io/tembo/pgmq-pg:latestInitialize a connection to Postgresfromtembo_pgmq_pythonimportPGMQueue,Messagequeue=PGMQueue(host="0.0.0.0")Create a queue (or a partitioned queue)queue.create_queue("my_queue")# queue.create_partitioned_queue("my_partitioned_queue", partition_size=10000)Send a messagemsg_id:int=queue.send("my_queue",{"hello":"world"})Read a message, set it invisible for 30 seconds.read_message:Message=queue.read("my_queue",vt=10)print(read_message)Archive the message after we're done with it. Archived messages are moved to an archive table.archived:bool=queue.archive("my_queue",read_message.msg_id)Delete a message completely.msg_id:int=queue.send("my_queue",{"hello":"world"})read_message:Message=queue.read("my_queue")deleted:bool=queue.delete("my_queue",read_message.msg_id)Pop a message, deleting it and reading it in one transaction.popped_message:Message=queue.pop("my_queue")print(popped_message)
Package: temeco
Telegram Message Copy (TeMeCo)temecois a simple Telegram message entities to html translator.
Telegram Bot API makes it cumbersome fro bots to copy a user's message
preserving its entities, since it is currently impossible for a bot to send
entities directly along with a message,
so it needs to translate a message with entities into HTML or Markdown.This little package solves this problem and provides a convenient way
to translate a message with entities to HTML.TelegramUTF16Textclass is also aware of the fact that Telegram calculates
offsets for entities using UTF-16 encoding.
This comes into play when text being copied contains symbols which have different lengths
in UTF-8 and UTF-16 code units, like emojis.Installationpip install temecoUsage:fromtemeco.temecoimportBasicEntity,TelegramUTF16Text,HtmlFromMsgtext=("dolorem ipsum, quia dolor sit, 🔥🚒 amet, consectetur, adipisci velit, sed quia 🙃 non numquam eius modi"" tempora incidunt, 🙊\nut labore et dolore magnam aliquam quaerat voluptatem.")HtmlFromMsg(msg_txt=TelegramUTF16Text(text),entities=[BasicEntity(type="bold",offset=8,length=5,msg_text=TelegramUTF16Text(text)),BasicEntity(type="code",offset=55,length=8,msg_text=TelegramUTF16Text(text)),BasicEntity(type="text_link",offset=64,length=5,data={"url":"http://google.com/"},msg_text=TelegramUTF16Text(text),),BasicEntity(type="italic",offset=153,length=7,msg_text=TelegramUTF16Text(text),),],).as_str()Note:BasicEntityclass supports the following types of entities:bolditalictext_linkcode(monospace text)pre(preformatted text)Entities like hashtags and usernames are copied as is, since Telegram recognizes them
without extra code.You may create your own class implementingEntityinterface and use it instead of
BasicEntity.
Package: temi
Temi Python API(Unofficial) Python library for remote-controlling the Temi robot, via WebSocket.A corresponding server needs to be installed on Temi. You can find ithere.Installationpip install temiUsageBasicsThis library uses asyncio to perform the operations. The minimum structure is as follows:importasynciofromtemiimportTemiasyncdefconnect_temi():temi=Temi('ws://YOUR_TEMI_IP:8175')awaittemi.connect()awaittemi.speak(sentence='Hello!').run()asyncio.get_event_loop().run_until_complete(connect_temi())Note that each call needs to beawait-ed, and must end with arun().Sending multiple commands at onceSometimes, you need temi to do multiple things at once, while other times you may want Temi to do things sequentially. It is easy to mix both in you code. Just do it like such:# Temi will go to the door, uttering "I hear someone at the door" along the way.# When Temi arrives, it will ask the question "Hello! What's your name?"awaittemi.speak(sentence='I hear someone at the door.').goto(location='Front Door').run()awaittemi.ask(sentence="Hello! What's your name?").run()TimeoutAll commands support atimeoutparameter. If it is specified, theawaitwill terminate after the timeout, regardless of execution state.# The call will return after three seconds, regardless of Temi's location.# Temi may continue walking to the door, but you can command it to stop in the following code.awaittemi.goto(location='Front Door',timeout=3).run()APICurrently, the following APIs are implemented:# Speak a sentence.awaittemi.speak(sentence="Sentence to say",timeout=None).run()# Ask a question, then return the reply.reply=awaittemi.ask(sentence="Question to ask",timeout=None).run()# Go to a locationawaittemi.goto(location="Location name",timeout=None).run()# Turn by an angleawaittemi.turn(angle=angle,timeout=None).run()# Tilt screen to an angle (-25 ~ 55)awaittemi.turn(angle=angle,timeout=None).run()
Package: temp
Installation$[sudo]pipinstalltempExamples>>>importtemp>>>temp.tempdir()# dir'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T/tmpqlLDxb'>>>temp.tempfile()# file'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T/tmpsctFHJ'>>>temp.TMPDIR'/var/folders/rv/gy6_gnfs1d7_pd1518p27tsr0000gn/T'readme42.com
Package: temp2temp
temp2tempis a temperature conversion package between Celcius, Delisle, Fahrenheit, Kelvin, Rankine, Reaumur, Newton and RomerIntroductionA complete temperature conversion package for python3. Simply convert from Celcius to example Reaumor or Newton to Kelvin.BackgroundI could only find packages that had Celsius to Fahrenheit or Kelvin, which I found a bit lacking as I would not define it as a ‘complete’ package that others may need in the future.It’s is currently in beta stage as I am now in the process now to properly test and verify the results and if there’s any conversions errors that could happen.Usage exampleImport all temperature conversionsimporttemp2temptemp2temp.Celsius.to_kelvin(321)>>>594.15temp2temp.Rankine.to_newton(321)>>>-31.2895fromtemp2tempimport*Celsius.to_kelvin(321)>>>594.15Rankine.to_newton(321)>>>-31.2895Import just specific classesfromtemp2tempimportCelsius,Rankinetemp2temp.Celsius.to_kelvin(321)>>>594.15temp2temp.Rankine.to_newton(321)>>>-31.2895Licencetemp2tempis licensed under the MIT licence. See LICENCE.txt for details.
Package: tempailab
AIML & DBMS Lab programFunctionsisprime(number)tsp(graph,starting point)nqueen(number)longtictactoe()Programs will be returned for calla labp_multiplicationtablep_primeornotp_factorialp_list_operationsp_list_methodsp_chatbotp_set_operationp_count_s1_in_s2p_dictionary_operationsp_n_queenp_tspp_longtictactoe- dbms labp_libraryp_orderp_moviep_collegep_compUsageimport tempailabGet the list of sql programsprint(tempailab.sql_programs)Get the list of ai programsprint(tempailab.ai_programs)Examplerun itimport tempailab
print(tempailab.isprime(3))Output3 is a prime number
Package: tempath
tempath 0.1.0Function library for creating randomly filled files and directories,
that will be automatically removed at runtime end.PrerequisitesPython3 installed and enabledInstalling TempathTo install Tempath, follow these steps:Using pip:pipinstalltempathUsing git:git clone https://github.com/alexpdev/tempath.gitThe full API includes many other functions and classes as well.
See docs for more full API.LicenseThis project uses the following license: GNU LGPL v3
Package: temp-babelfish
BabelFishBabelFish is a Python library to work with countries and languages.LicenseBabelFish is licensed under the3-clause BSD license.
Copyright (c) 2013, the BabelFish authors and contributors.Changelog0.5.5release date:2015-10-31Fix hasattr on Country object when called with an invalid attribute0.5.4release date:2015-01-24Fix setuptools deprecation warning0.5.3release date:2014-06-22Better equality semantics for Language, Country, Script0.5.2release date:2014-05-25Babelfish objects (Language, Country, Script) are now picklableAdded support for Python 3.40.5.1release date:2014-01-26Add a register method to ConverterManager to register without loading0.5.0release date:2014-01-25WARNING:Backward incompatible changesSimplify converter management with ConverterManager classMake babelfish usable in placeAdd Python 2.6 / 3.2 compatibility0.4.0release date:2013-11-21WARNING:Backward incompatible changesAdd converter support for CountryLanguage/country reverse name detection is now case-insensitiveAdd alpha3t, scope and type convertersUse lazy loading of converters0.3.0release date:2013-11-09Add support for scriptsImprove built-in convertersAdd support for ietf0.2.1release date:2013-11-03Fix reading of data files0.2.0release date:2013-10-31Add str methodMore explicit exceptionsChange repr format to use ascii only0.1.5release date:2013-10-21Add a fromcode method on Language classAdd a codes attribute on converters0.1.4release date:2013-10-20Fix converters not raising NoConversionError0.1.3release date:2013-09-29Fix source distribution0.1.2release date:2013-09-29Add missing files to source distribution0.1.1release date:2013-09-28Fix python3 support0.1release date:2013-09-28Initial version
Package: tempcache
Python library to cache data and function results in temporary filesThis library offers a simple way to
cache data and function results using temporary files.
By default it will use thepicklemodule
to hash key values and serialize output data.
This is meant to be used with long running functions
that have repeatable results. The hashing of keys is dependent
on the pickle algorithm and so it may work accross different
python environments, as long as they have a compatible pickling algorithm.To avoid possible collisions make sure to use
a unique name when instantiatingTempCache.
You can also add asourceargument as any opaque string
to further differentiate cache keys from other caches.NoteFor more advanced use cases you may want to look at theMemoryclass
injoblib.Basic UsageAn instance of theTempCacheclass be used as a decorator
to automatically cache the results of a function.fromtempcacheimportTempCacheCACHE_MAX_AGE=24*60*60*2# two daystemp_cache=TempCache(__name__,max_age=CACHE_MAX_AGE)@temp_cachedeflong_running(...):...result=long_running(...)Caching results at the call siteYou can also use aTempCacheobject to cache a result
at the call site with thecache_resultmethod.fromtempcacheimportTempCacheCACHE_MAX_AGE=24*60*60*2# two daystemp_cache=TempCache(__name__,max_age=CACHE_MAX_AGE)deflong_running(...):...result=temp_cache.cache_result(long_running,...)Advanced usageIn cases where the function or some of its arguments
are defined in the__main__namespace or in a jupyter notebook
and cannot be pickled bypickleyou may want
to use a different pickle module likecloupickle.importcloudpicklefromtempcacheimportTempCacheCACHE_MAX_AGE=24*60*60*2# two daystemp_cache=TempCache("tempcache-foo",pickler=cloudpickle,max_age=CACHE_MAX_AGE)ExamplesExamples notebooks are in theextrasfolder.InstallationYou can install this package withpip.pip install tempcacheRelated ProjectsjoblibComputing with Python functionspercachePersistently cache results of callablescloudpickleExtended pickling support for Python objects