Saravanan666/pypi-org huggingface dataset:
Package: tiny-vectordb
Tiny Vector DatabaseA lightweight vector database designed for small projects.FeaturesJust-in-time (JIT) compiling to optimize vector operations by setting the vector size at compile time.Accelerates vector operations usingEigen.Processes vectors using only Python lists, no need for any additional third-party data formats.Stores vectors as base-64 encoded strings in a SQLite database.PerformanceMore than 10x Faster than numpy-based vector operations.Development StatusIt is currently compatible with g++ or clang++.You may need to modifycompile_configparameter inVectorDatabaseinitialization to inject your compile commands.To make it work with other compiler, you may need to changetiny_vectordb.jitmodule.Installationpipinstalltiny_vectordbGood to go!UninstallationThe package will emit some compiled files in the source directory, which may not be automatically removed usingpip uninstall, so you need to run the following command manually if you want to uninstall the package comletely.python-c"import tiny_vectordb; tiny_vectordb.cleanup()"After that, you can safely uninstall the package with:pipuninstalltiny_vectordbUsage:fromtiny_vectordbimportVectorDatabasecollection_configs=[{"name":"hello","dimension":256,},{"name":"world","dimension":1000,}]database=VectorDatabase("test.db",collection_configs)collection=database["hello"]# add vectorscollection.setBlock(["id1","id2"],# ids[[1]*256,[2]*256]# vectors)# search for nearest vectorssearch_ids,search_scores=collection.search([1.9]*256)For more usage, seeexample.py.Designing Note:No numpy array is used in the database, because I want it to be as lightweight as possible, and lists of numbers are eaiser to be converted into json for communication with http requests.The data are always stored in contiguous memory to ensure the best searching performance.So the addition and deletion are preferred to be done in batches as they envolve memory reallocation.Here are some useful functions for batch operations:classVectorCollection(Generic[NumVar]):defaddBlock(self,ids:list[str],vectors:list[list[NumVar]])->None:defsetBlock(self,ids:list[str],vectors:list[list[NumVar]])->None:defdeleteBlock(self,ids:list[str])->None:defgetBlock(self,ids:list[str])->list[list[NumVar]]:
Package: tinyweather
tinyweatherSoftware for a home weather station.Tinyweather's main use case is to gather data from climate sensors in an easy to understand format that the user can then play with and analyze.We will have libraries for rain gauges and BME280/680s.Tinyweather is maintained by the author of this document.InstallationpipinstalltinyweatherContributionWe are happy to have users contribute, however, in the early stages, the author will take a largely dictatorial approach to the software design.sensors.pysensors.py is a file that holds classes associated to each sensor attached to the weather stationmain.pyWrite your main tinyweather weather station script here.
Package: tinyxmpp
TinyXMPPTinyXMPP is a small XMPP client for Python applications. It allows developers to easily connect to XMPP servers and exchange messages in a fast and secure way.Getting Startedpip install tinyxmppTo connect to an XMPP server:fromtinyxmppimportXMPPClientasyncdefmain():client=XMPPClient(jid='user@xmppserver.net/python',password='mypassword')client.on_message=on_messageclient.on_iq=on_iqclient.on_presence=on_presenceawaitclient.connect(host_addr='xmppserver.net')awaitclient.send_message(to='someuser@xmppserver.net/Resource',message='Hello There')asyncdefon_message(message):print(message)asyncdefon_presence(element):print(element)asyncdefon_iq(element):print(element)loop=asyncio.get_event_loop()loop.create_task(main())loop.run_forever()LicenseTinyXMPP is made available under the Apache 2.0 license.DevelopmentYou can follow the development of TinyXMPP onGitHub.ContributingTo contribute to TinyXMPP, please open an issue on ourGitHub issue trackerand/or leave a Pull Request. Thanks!
Package: tiobeindexpy
# tiobeindexpyA Python package to extract TIOBE Index (Programming Rankings)### Dependenciesrequestsbeautifulsoup4pandas### Installation`python pip install tiobeindexpy `### ExampleTo extract Top 20 Programming Languges by TIOBE Index`python from tiobeindexpy import tiobeindexpy as tb tb.top_20() `Courtesy:https://www.tiobe.com/tiobe-index/
Package: tion
Tion ApiThis package provides API to control Tion breezerUsage:importosimportloggingfromtionimportTionApi,Breezer,Zone,MagicAirlogging.basicConfig(level=logging.INFO)# initialization api with no saving auth information (for test only)email,password=os.environ.get("TION_AUTH").split(',')api=TionApi(email,password,auth_fname=None)# getting current co2 level from magicairmagicair=api.get_devices(name_part="magic")[0]print(f"magicair.co2:{magicair.co2}")# getting breezerbreezer=api.get_devices(name_part="breezer")[0]# setting manual mode for breezer zonebreezer.zone.mode="manual"assertbreezer.zone.send()isTrue,"Failed to send zone data"print(f"breezer.zone.mode:{breezer.zone.mode}")# setting breezer speed manuallybreezer.speed=3assertbreezer.send()isTrue,"Failed to send breezer data"print(f"breezer.is_on:{breezer.is_on}, breezer.speed:{breezer.speed}")# setting air source to outsidebreezer.gate=2assertbreezer.send()isTrue,"Failed to send breezer data"print(f"breezer.is_on:{breezer.is_on}, breezer.speed:{breezer.speed}, breezer.gate:{breezer.gate}")# setting auto mode for breezer's zonebreezer.zone.mode="auto"assertbreezer.zone.send()isTrue,"Failed to send zone data"print(f"breezer.zone.mode:{breezer.zone.mode}")# setting breezer minimum speed to 3 and maximum to 6breezer.speed_min_set=3breezer.speed_max_set=6assertbreezer.send()isTrue,"Failed to send breezer data"print(f"breezer.speed_min_set:{breezer.speed_min_set}, breezer.speed_max_set:{breezer.speed_max_set}")
Package: tiotrap
TextIOTrapSimple class for trapping / capturing Python Text IO streams like fromsubprocess.popen,pexpect,sys.stderrand others; enabling the capture output of or dropping streams with cross platformDEVNULLhelper.Installationpython3 -m pip install tiotrapUsageThis tool contains one classTextIOTrapand a helperDEVNULL.Examples(Ex1) UseTextIOTrapto capture stdout of a chatty process usingstoreoption:_stdout_bk=sys.stdout# Store original stdoutttrap=tiotrap.TextIOTrap(store=True)try:sys.stdout=ttrap# Map stdout to tiotrapprint("TEST1")# call some chatty functions()print("TEST2")finally:sys.stdout=_stdout_bk# Restore stdoutOutput of print:captured logs:
TEST1
<chatty outputs here>
TEST2(Ex2) UseTextIOTrapto capture stdout usingwrite_handleroption:aTrap=[]_stdout_bk=sys.stdouttry:sys.stdout=tiotrap.TextIOTrap(write_handler=lambdas:aTrap.append(s))print("TEST1")print("TEST2")finally:sys.stdout=_stdout_bk# print adds extra \n end so remove with rstrip()print(f"aTrap:\n{''.join(aTrap).rstrip()}\n~end~\n")Output of print:aTrappedStdout = ['TEST1', 'TEST2']You can substitute lambda with a function or method call to handlewriteswith your own code.(Ex3) UseTextIOTrapgrab outputpexpectcall :ttrap=tiotrap.TextIOTrap(store=True)p=pexpect.spawn('ls -la')p.logfile=ttrapp.expect(pexpect.EOF)print(f"`ls -la` cmd output:\n{ttrap.entries()}\n~")Output of print:ls output:
<full directory listing here of cwd>Other uses ofTextIOTrap:Output the stdout of asubprocess.popencall in real time to a secondary log file...(Ex4) UseTextIOTrapgrab outputpexpectcall :ttrap=tiotrap.TextIOTrap(store=True)p=pexpect.spawn('ls -la')p.logfile=ttrapp.expect(pexpect.EOF)print("ls -la` cmd output (as was written):")forwriteinttrap:print(write)Output: Similar to Ex4(Ex5) UseDEVNULLto drop all output of a TextIO Stream_stdout_bk=sys.stdouttry:sys.stdout=tiotrap.DEVNULLprint("THIS WILL NOT PRINT")finally:sys.stdout=_stdout_bkprint("THIS WILL PRINT")This DEVNULL is very simple implementation and is fully cross platform unlike someother DEVNULL implementations.Note:TextIOTraphas been set up to be compatible with the standard methods for a Text IO streams. I'll be glad to update if any edge cases are discovered.
Package: tipboard2.0
Tipboard/C.IC.DReleaseGitlabAzureAWSOpenshiftTravisDockerPypi  3Pypi 2|IntroductionTipboard is a system for creating dashboards, written in JavaScript and Python.
Its widgets ('tiles' in Tipboard's terminology) are completely
separated from data sources, which provides great flexibility and
relatively high degree of possible customizations.Because of its intended target (displaying various data and statistics
in your office), it is optimized for larger screens.A detailed, technical documentation for Tipboard can be foundhere.Quick startExecution by pythonSome required packages need to be present, and python3.7 is required now$ sudo apt-get install python-dev python-virtualenv redis-serverInstall with python dependencies on virtual env$virtualenvtb-env# create virtual env$sourcetb-env/bin/activate# activate virtual env$(tb-env)$install-rrequirements.txt# install python lib$(tb-env)$tipboardcreate_projectmy_test_dashboard
$(tb-env)$pythonmanage.pyrunserver# start webserverInstall with python dependencies on system$pipinstall-rrequirements.txt
$pythonmanage.pyrunserverExecution by dockerIt's a non-root bitnami/python3.7 imageBy git source$dockerbuild-ttipboard:local.
$dockerrun-p8080:8080tipboard:localBy docker hub$dockerpullthemaux/tipboard
$dockerrun-p8080:8080themaux/tipboardRemove redis from contener1 - In Dockerfile, comment line 3 `RUN apt-get update && apt-get install redis-server -y`
 2 - In entrypoint.sh, comment line 2 `nohup redis-server &`
 3 - Change the value *REDIS_HOST* & *REDIS_PASSWORD* in the tipboard/Config/properties.jsonExecution on cloudDeploy on AWS# From sources git source$ebinit-pdockertipboard-aws
$ebcreate--single
$ebstatus
$ebopenDeploy on Openshift# From docker hub$ocnew-appthemaux/tipboard# Update the config_layout.yaml$ocapply-f./helm/tipboard-charts-deploy/manifests/tipboard-ops/charts/config/templates/tipboard-configmap.yamlDeploy on Azure# From docker hub$ocnew-appthemaux/tipboard# Update the config_layout.yaml$ocapply-f./helm/tipboard-charts-deploy/manifests/tipboard-ops/charts/config/templates/tipboard-configmap.yamlDeploy on clusters kubernets# Build helm package$helmpackage./helm/tipboard-charts-template/python3-tipboard--save=false-d./helm/charts/tipboard-charts-deploy# Build deployment helm template$mkdirmanifests
$helmtemplate--valuestipboard_helm.yaml--nametipboard--output-dir./manifests.# Deploy manifest$ocapply-R-f./manifests||helminstall--nametipboardMY_PATH_ENVIRONMENTLicenseTipboard is licensed under theApache License, v2.0.Copyright (c) 2013-2017Allegro Group.
Package: tipe
Tipe - typed pipeTipe allows you to create constructions similar topipe operator, where result of a function used as an input of next functionInstalationpipinstalltipeExamples>>>fromtipeimportPipe>>>>>>Pipe(2).pipe(lambdax:x+1).pipe(float).unwrap()3.0>>>Pipe([2,3,4])\....pipe(len)\....pipe(lambdax:x+1)\....pipe(float)\....unwrap()4.0>>>Pipe(2).pipe(range,4).pipe(len).unwrap()2Equivalent for examples above would be>>>float(2+1)3.0>>>float(len([2,3,4])+1)4.0>>>len(range(2,4))2APIPipe()To use.pipe()on a value wrap it withPipeclass>>>Pipe(2)Pipe(2)Pipe.pipe()Pass function to execute onPipevalue and additional params for it. Wraps function result inPipeand returns itPipe.check()LikePipe.pipe()but does not change the value insidePipe. May be useful for debugging purposes>>>Pipe(2).pipe(lambdax:x**x).check(print).pipe(float).unwrap()44.0Pipe.unwrap()Returns value fromPipeShort formsFor convenience you can usePas short version ofPipeand short versions of the methods:p:pipec:checku:unwrapTypestipetries its best to stay typesafe, so every function knows what exactly what it returns as long as it is inferable from arguments
Package: tipfy
Tipfy is a small but powerful framework made specifically forGoogle App Engine. It is a lot likewebapp:from tipfy import RequestHandler, Response

class HelloWorldHandler(RequestHandler):
    def get(self):
        return Response('Hello, World!')…but offers a bunch of features and goodies that webapp misses: i18n,
sessions, own authentication, flash messages and more. Everything in a modular,
lightweight way, tuned for App Engine. You use only what you need, when you
need.LinksTipfy’s websiteInstallation instructionsExtensionsWikiDiscussion GroupIssue TrackerSource Code Repository
Package: tipfy-dev
This is a tipfy experimental branch, which will be released as tipfy 0.7
in the future.Tipfy is a small but powerful framework made specifically forGoogle App Engine. It is a lot likewebapp:from tipfy import RequestHandler, Response

class HelloWorldHandler(RequestHandler):
    def get(self):
        return Response('Hello, World!')…but offers a bunch of features and goodies that webapp misses: i18n,
sessions, own authentication, flash messages and more. Everything in a modular,
lightweight way, tuned for App Engine. You use only what you need, when you
need.LinksTipfy’s websiteInstallation instructionsExtensionsWikiDiscussion GroupIssue TrackerSource Code Repository
Package: tipfy.ext.auth
This extension provides authentication utilities fortipfy. It allows users to authenticate using own
users, OpenId, Oauth, Facebook, Google, FriendFeed, Twitter or App Engine’s
built-in users API.Try a multi-authentication working example athttp://tipfy-auth.appspot.com/.LinksDocumentationSource Code RepositoryIssue TrackerAbout tipfyHome pageExtension listDiscussion Group
Package: tipi
Tipi====Tipi is for typographic replacements in HTML.Status: ACTIVE--------------Under active development and maintenance... image:: https://travis-ci.org/honzajavorek/tipi.png?branch=master:target: https://travis-ci.org/honzajavorek/tipi.. image:: https://coveralls.io/repos/honzajavorek/tipi/badge.png?branch=master:target: https://coveralls.io/r/honzajavorek/tipi?branch=master.. image:: https://pypip.in/v/tipi/badge.png:target: http://pypi.python.org/pypi/tipi/.. image:: https://pypip.in/d/tipi/badge.png:target: http://pypi.python.org/pypi/tipi/Ideas behind this project-------------------------- Input is HTML code, output is the same HTML code with changes in typography (entities, spaces, quotes, etc.).- `You can't parse HTML with regex. <http://stackoverflow.com/a/1732454/325365>`_- The best existing HTML parser and *tokenizer* for Python is `lxml <http://lxml.de/>`_.- There are more languages than English in the world. Each of them has different typographic rules.Installation------------Easy::$ pip install tipiQuickstart----------Usage of tipi is very straightforward:.. code-block:: python>>> from tipi import tipi>>> html = '<p>"Zavolej mi na číslo <strong class="tel">765-876-888</strong>," řekla, a zmizela...</p>'>>> html = tipi(html, lang='cs')>>> html'<p>\u201eZavolej mi na \u010d\xed\xadslo <strong class="tel">765\u2013876\u2013888</strong>,\u201c \u0159ekla, a\xa0zmizela\u2026</p>'>>> print html<p>„Zavolej mi na čí­slo <strong class="tel">765–876–888</strong>,“ řekla, a zmizela…</p>Remember that tipi is designed to work with HTML. In case you need to perform replacements on plaintext, escape it first:.. code-block:: python>>> fron tipi import tipi>>> tipi('b -> c')  # this works only by coincidence!u'b → c'>>> tipi('a <- b -> c')u'a  c'>>> import cgi>>> html = cgi.escape(u'a <- b -> c')>>> htmlu'a &lt;- b -&gt; c'>>> tipi(html)u'a ← b → c'Features--------- Support for multiple languages.- Language-sensitive replacements for single quotes and double quotes.- Ellipsis, dashes, nonbreakable spaces, ...- Arrows (--> turned into → ), dimensions (12 × 30).- Symbols (trademark, registered, copyright, EUR, ...)Alternatives------------- `Typogrify <https://github.com/mintchaos/typogrify>`_ - English only, adds markup for styling, on top of `smartypants <http://web.chad.org/projects/smartypants.py/>`_- `cstypo <https://github.com/yetty/cstypo>`_ - Czech only, not working well with HTMLPlans------ Inspiration from `Typogrify <http://static.mintchaos.com/projects/typogrify/>`_?- Get some inspiration from `Dero's <http://typografie.dero.name/typografie-entity.php>`_ and `Typomil's <http://typomil.com/typografie-na-webu/znakove-entity.htm>`_ typography guides.- Get some inspiration from `Liteera.cz <http://www.liteera.cz/>`_) (`source <https://is.muni.cz/auth/th/172528/fi_b?info=1;zpet=%2Fauth%2Fvyhledavani%2F%3Fsearch%3Djakub%20fiala%26start%3D1>`_).- Maybe also some inspiration `from here <http://www.webtvorba.cz/web/typografie-na-webu.html>`_.License: MIT------------© 2013-2014 Jan Javorek <mail@honzajavorek.cz>This work is licensed under `MIT license <https://en.wikipedia.org/wiki/MIT_License>`_.
Package: tipico
TIPICO: Test Inutile per Provare Inutilmente pliCOtipico is a useless application to test theplicoenvironment.InstallationOn the clientpip install tipicoOn the serverpip install tipico-serverThe tipico-server package installs also the client package.Config filesThe server requires to be configuredThe application usesappdirsto locate configurations, calibrations
and log folders: the path varies as it is OS specific.
Typical paths for config files are:On OS X$HOME/Library/Application Support/inaf.arcetri.ao.tipico_server/tipico_server.confOn Ubuntu$HOME/.config/inaf.arcetri.ao.tipico_server/tipico_server.confThe configuration files are copied when the application is first used
from their original location in the python package to the final
destination, where they are supposed to be modified by the user.
The application never touches an installed file (no delete, no overwriting)The easiest way of checking which config file is used by the server is to start it (see below) and check for the config file name written in the standard output.Another way of querying the system for config file location is to run python on the server and type:import tipico_server
tipico_server.defaultConfigFilePathThe user can specify customized conf/calib/log file path for both
servers and client (how? ask!)UsageStarting ServersStarts the 2 servers that control one device each.tipico_startUsing clientIn a Python / IPython shell:Create a client of the device (suppose the server is running on localhost on port 60010)In [1]: import tipico

In [2]: instr= tipico.instrument('localhost', 60010)Get position and move actuatorIn [3]: instr.getPosition()
Out[3]: 0

In [6]: instr.moveTo(np.array([42, 3.14]))

In [7]: instr.getPosition()
Out[7]: array([42.  ,  3.14])Get position and move actuatorIn [8]: status=instr.getStatus()

In [9]: status.actuatorCommands()
Out[9]: array([42.  ,  3.14])

In [10]: status.commandCounter()
Out[10]: 1

In [11]: instr.moveTo(np.array([1, 2]))

In [12]: status=instr.getStatus()

In [13]: status.commandCounter()
Out[13]: 2

In [14]: status.actuatorCommands()
Out[14]: array([1, 2])

In [15]: instr.getPosition()
Out[15]: array([1, 2])

In [16]: instr.getSnapshot('tux')
Out[16]: {'tux.COMMAND_COUNTER': 2, 'tux.SERIAL_NUMBER': '1', 'tux.STEP_COUNTER': 17065}

In [17]: instr.getSnapshot('tux')
Out[17]: {'tux.COMMAND_COUNTER': 2, 'tux.SERIAL_NUMBER': '1', 'tux.STEP_COUNTER': 21225}Stopping TipicoTo kill the servers runtipico_stopMore hard:tipico_kill_all
Package: tipico-server
# TIPICO server: Test Inutile per Provare Inutilmente pliCO[![Build Status][travis]][travislink]  [![Coverage Status][coveralls]][coverallslink] [![PyPI version][pypiversion]][pypiversionlink]tipico is a useless application to test the [plico][plico] environment.This repository contains the server package.  See [tipico][tipico] for installation and usage[plico]:https://github.com/lbusoni/plico[tipico]:https://github.com/lbusoni/tipico[travis]:https://travis-ci.com/lbusoni/tipico_server.svg?branch=master“go to travis”
[travislink]:https://travis-ci.com/lbusoni/tipico_server[coveralls]:https://coveralls.io/repos/github/lbusoni/tipico_server/badge.svg?branch=master“go to coveralls”
[coverallslink]:https://coveralls.io/github/lbusoni/tipico_server[pypiversion]:https://badge.fury.io/py/tipico_server.svg[pypiversionlink]:https://badge.fury.io/py/tipico_server
Package: tipimaid
Tipimaid is a collection of tools to ease the handling of Apache logs. It can
be used as a piped logger for Apache and allows you to distribute log entries
to different logfiles according to their virtual host information and the date
and time of the request. Logging can be done either locally or over the network
so that you can concentrate logs of a server farm on one logging computer.The Tipimaid collection comprises four scripts which are:tipimaid.pyUsed either as a piped logging tool or receives its loglines fromtipimaid_server.py. It rotates logfiles and distributes loglines
to different logfiles and is able to execute stuff when a file is rotated.tipimaid_sender.pyUsed as a piped logging tool to send loglines across the network totipimaid_server.pytipimaid_server.pyreceives loglines sent bytipimaid_sender.pyornetcatand outputs
them to stdout where they are usually piped totipimaid.pytipimaid_mergelogs.pyThe disaster recovery tool if something went terribly wrong during
logging over the network. It does a mergesort of several logfiles and
outputs chronologically sorted loglines to stdout.Changes in 0.3 (released 2009/10/21)Changed exit code to 0 intipimaid.pyas well (see version 0.2 for details)
Package: tippecanoe
tippecanoe Python DistributionsA project that packagestippecanoeas a Python package, enablingtippecanoeto be installed from PyPI:pipinstalltippecanoeor used as part ofbuild-system.requiresin a pyproject.toml file:[build-system]requires=["tippecanoe"]After installation, the Python bin directory for console scripts may need to be added to your path (or if installing in a venv, activate the venv).
Commands installed are:tippecanoe,tile-join,tippecanoe-decode,tippecanoe-enumerate,tippecanoe-json-tool, andtippecanoe-overzoom.PyPI package versions will follow themajor.minor.patchversion numbers of tippecanoe releases.Binary wheels for macOS and Linux for most CPU architectures supported on PyPI are provided. ARM wheels for Raspberry Pi available athttps://www.piwheels.org/project/tippecanoe/.tippecanoe PyPI Package Homepagetippecanoe Homepagetippecanoe Source Codetippecanoe License: BSD 2-Clause "Simplified" LicenseInstalling tippecanoetippecanoe can be installed by pip with:pipinstalltippecanoeor:python-mpipinstalltippecanoeBuilding from the source dist package requires internet access in order to download a copy of the tippecanoe source code.Using with pipxUsingpipx run tippecanoe <args>will run tippecanoe without any install step, as long as the machine has pipx installed (which includes GitHub Actions runners).Using with pyproject.tomltippecanoe can be added to thebuild-system.requireskey in a pyproject.toml file for building Python extensions that use tippecanoe to when building wheels.[build-system]requires=["tippecanoe"]LicenseThe code for this project (for building the wheels) is covered by the3-Clause BSD License.tippecanoe is distributed under theBSD 2-Clause "Simplified" License. For more information about tippecanoe, visithttps://github.com/felt/tippecanoe