Saravanan666/pypi-org huggingface dataset:
Package: tracardi-text-classification
Text ClassificationThis plugin classifies provided text.Configuration{"source":{"name":"Text classification","id":"e7a3979e-7f31-452b-a571-8ca613de77fb"},"language":"en","model":"press","title":"The iPhone 13 isn’t a game changer","text":"The iPhone 13 isn’t a game changer for Apple’s series of smartphones, but it’s an ..."}source.id- Id that points to resource with an access token. See below for resource configuration schema.language- language of the text to classify. (en|sp|it|pt|ct|fr)title- optional title of the texttext- text to classifyResource configuration{"token":"dgrhfcd6hhdj706..."}OutputExample{"categories":[{"code":"13016000","label":"science and technology - electronics","abs_relevance":"0.2833175","relevance":"100"}]}
Package: tracardi-url-parser
Url parser pluginThis plugin parses URL and returns it as output.ConfigurationUser must provide a path to page URL. By default, path is available atsessionincontext.page.url{"url":"session@context.page.url"}InputThis action does not process input payload directly.OutputOutput example for urlhttp://web.address.com/path/index.html?param1=1#hash:{"url":"http://web.address.com/path/index.html?param1=1#hash","scheme":"http","hostname":"web.address.com","path":"path","query":"index.html?param1=1","params":{"param1":"1"},"fragment":"hash"}
Package: tracardi-weather
Weather pluginThis plugin connects to weather server and retrieves weather information.ConfigurationFirst you need to configure what type of temperature you need. Either in Celsius (C) of Fahrenheit (F)Example of configuration.{"system":"C","city":"profile@traits.public.city"}City can ba a path to data or a plain text.{"city":"Paris"}InputInput payload is not processed by this plugin.OutputExample{"temperature":4,"humidity":87,"wind_speed":15,"description":"Sunny"}
Package: tracardi-zapier-webhook
Zapier pluginThis plugin calls zapier webhook API.Configuration{"url":"https://hooks.zapier.com/hooks/catch/10523213728/b4basesz/","body":"<json as string>","timeout":10}This configuration requires zapier webhook url.PayloadPayload for this plugin defines a JSON data to be sent. It can be any json schema.ResultThis plugin returns either the response (on response port) or and error on error port.Valid response is:{"status":200,"content":{<responseasjson>}}
Package: traccar-api
Importfrom traccar_api.api import TraccarApiInitialtraccar = TraccarApi(URL, MAIL, PASS)Logincurrent_user = traccar.login()Bulksserver = traccar.get_server()devices = traccar.get_devices()devices_criteria = traccar.get_device(device_ids=[3, 38], device_unique_ids=["01442517SKYD066", "01433630SKYC6D3"])users = traccar.get_users()drivers = traccar.get_drivers()groups = traccar.get_groups()Singlesdevice = traccar.get_device(device_unique_ids=["01433630SKYC6D3"])user = traccar.get_user(1)driver = traccar.get_driver(301)Permissionspermissions = traccar.get_current_user_permissions()link_driver1_device1 = traccar.link_diver_device(driver_id=301, device_id=3)link_driver2_device1 = traccar.link_diver_device(driver_id=302, device_id=3)unlink_driver1_device1 = traccar.unlink_diver_device(driver_id=301, device_id=3)unlink_driver2_device1 = traccar.unlink_diver_device(driver_id=302, device_id=3)Errorstry:

    current_user = traccar.login()
    
except TraccarApiAuthenticationError as e:

    print(f"Authentication error: {e}")
    
except TraccarApiError as e:

    print(f"API error: {e}")LogOuttraccar.logout()
Package: traccess
TraccessTransportation access and equity computations.Traccess offers a set of fast and convenient functions to calculate multiple
transport accessibility measures. Given a pre-computed travel cost matrix, and
using data sets on land use supply, demand, and demographics, the package
computes accessibility levels using multiple accessibility measures, such as:
cumulative opportunities, minimum travel cost to closestnnumber of activities,
gravity-based (with different decay functions) and different floating catchment
area methods.The package also contains a number of different methods for computing
distributive and sufficientarian equity measures to compare the level of access
provided across demographic groups.
Package: traccuracy
traccuracy: Evaluate Cell Tracking Solutionstraccuracyprovides a suite of benchmarking functions that can be used to evaluate cell
tracking solutions against ground truth annotations. The goal of this library is to provide a convenient way to run rigorous evaluation and to document and consolidate the wide variety of
metrics used in the field.traccuracycan compute a comprehensive set of metrics for evaluating the cell linking and division performance, and can compute biologically meaningful metrics such as number of correctly reconstructed lineages over N frames and cell cycle length accuracy. As matching ground truth and
predicted lineages is a crucial step for performing evaluation,traccuracyincludes
a number of algorithms for matching ground truth and predicted lineages, both with
and without segmentation masks.Learn more in thedocumentationor check out thesource code.Installationpip install traccuracyGetting StartedThetraccuracylibrary has three main components: loaders, matchers, and metrics.
Loaders load tracking graphs from other formats, such as the CTC format, into aTrackingGraphobject.
A TrackingGraph is a spatiotemporal graph.
Nodes represent a single cell in a given time point, and are annotated with a time and a location.
Edges point from a node representing a cell in time pointtto the same cell or its daughter int+1.
To load TrackingGraphs from a custom format, you will likely need to implement a loader: see
documentationherefor more information.Matchers take a ground truth and a predicted TrackingGraph with optional segmentation masks and match the nodes and edges to allow evaluation to occur.
Metrics are then computed on the matched graphs, and a summary is printed out.Thetraccuracylibrary has a command line interface for running common metrics
pipelines,documented here, and a flexible Python API, shown inthisexample notebook.Implemented MetricsCTC-DET from theCell Tracking Challenge Evaluation MethodologyCTC-TRA from theCell Tracking Challenge Evaluation MethodologyAcyclic Oriented Graph Metric (AOGM) fromMatula et al. 2015. A generalized form the CTC metrics where you can supply different weights for each component of the overall metric.Division Precision. Optionally allows detection within N frames of ground truth division.Division Recall. Optionally allows detection within N frames of ground truth division.Division F1 score. Optionally allows detection within N frames of ground truth division.Mitotic Branching Correctness fromUlicna et al. 2021. TP / (TP + FP + FN). Optionally allows detection within N frames of ground truth division.GlossaryTracklet: A single non-dividing cell tracked over time. In graph terms, this is the connected component of a track between divisions (daughter to next parent). Tracklets can also start or end with a non-dividing cell at the beginning and end of the captured time or if the track leaves the field of view.Track: A single cell and all of its progeny. In graph terms, a connected component including divisions.
Package: tracdap-runtime
TRAC Model Runtime for PythonTRAC D.A.P. is a next-generation data and analytics platform for use in highly regulated environmentsThe TRAC model runtime provides all the APIs needed to write models for the TRAC platform.
It includes an implementation of the runtime library that can be used as a development
sandbox, so you can run and debug TRAC models right away from your favourite IDE or notebook.
A number of tools are included to make it easy to plug in development data and configuration.
When your models are ready they can be loaded into a real instance of TRAC for testing and
eventual deployment.Documentation for the TRAC platform is available on our website attracdap.finos.org.RequirementsThe TRAC runtime for Python has these requirements:Python: 3.7 up to 3.11.xPandas: 1.2 up to 2.1.xPySpark 2.4.x, or 3.0 up to 3.3.xNot every combination of versions will work, e.g. PySpark 3 requires Python 3.8.Installing the runtimeThe TRAC runtime package can be installed directly from PyPI:pip install tracdap-runtimeThe TRAC runtime depends on Pandas and PySpark, so these libraries will be pulled in as
dependencies. If you want to target particular versions, install them explicitly first.Writing a modelOnce the runtime is installed you can write your first TRAC model! Start by
inheriting the TracModel base class, your IDE should be able to generate stubs for you:import tracdap.rt.api as trac

class SampleModel(trac.TracModel):

    def define_parameters(self) -> tp.Dict[str, trac.ModelParameter]:
        pass

    def define_inputs(self) -> tp.Dict[str, trac.ModelInputSchema]:
        pass

    def define_outputs(self) -> tp.Dict[str, trac.ModelOutputSchema]:
        pass

    def run_model(self, ctx: trac.TracContext):
        passYou can fill in the three define_* methods to declare any parameters, inputs and outputs your
model is going to need, then start writing your model code in run_model.To learn about modelling with TRAC D.A.P. and what is possible, check out themodelling tutorialsavailable in our online documentation. The tutorials are based onexample modelsin the TRAC GitHub repository. We run these examples as part of our CI, so they will always
be in sync with the corresponding version of the runtime library.Building the runtime from sourceThis is not normally necessary for model development, but if you want to do it here are the commands.cd tracdap-runtime/python

# Configure a Python environment

python -m venv ./venv
venv\Scripts\activate              # For Windows platforms
. venv/bin/activate                # For macOS or Linux
pip install -r requirements.txt

# Build the Python package files

python ./build_runtime.py --target distThe package files will appear under build/dist
Package: trace2html
trace2html==========:author: Olivier Grisel`trace2html` is a utility to convert execution coverage data obtainedwith the `trace` module of the standard python library into a set of humanreadable HTML documents showing sortable summary and annotated source files.Installation------------As usual, you can either use `sudo easy_install -U trace2html` or extract thearchive and run::$ sudo python setup.py installSample usage------------Use trace2html to directly compute the coverage of a test suite byspecifying the module you are interested in::$ trace2html.py -w my_module --run-command ./my_testrunner.py$ firefox coverage_dir/index.htmlOr you can collect coverage data generated with trace.py::$ /usr/lib/python2.4/trace.py -mc -C coverage_dir -f counts my_testrunner.pyWrite a report in directory 'other_dir' from data collected in 'counts'::$ trace2html.py -f counts -o other_dir$ firefox other_dir/index.htmlUse the `--help` option for more details.Licensing---------`trace2html` is released under the GNU/GPL v2 license (see COPYING.txt for moredetails) and uses theI would not mind relicensing `trace2html` under a more liberal license such asthe Python or ZPL licenses but that would only be useful if someone find orwrite a replacement for the WebFX Sortable Table JS file under a similarlicense. SortableTable.js is currently under GPLv2.Bug reports and patches-----------------------You can directly send bug reports and patches to my personnal email address::olivier.grisel@ensta.orgOr you can use `bzr`__ to branch my repository::$ bzr branch lp:trace2htmlthen publish your branch on some site and send me a merge request. Pleasefollow the `5-minute tutorial`__ if you are new to bzr.Credits-------`trace2html` is inspired by the `cobertura project`__ for java programs. Itincludes Javascript code from  WebFX Sortable Table and Cobertura... References__`bzr`:: http://bazaar-vcs.org/__`5-minute tutorial`:: http://bazaar-vcs.org/QuickHackingWithBzr__`cobertura project`:: http://cobertura.sourceforge.netChangelog=========0.2.1------ packaging bugfixes (added missing files in the source distribution)(thanks to Grig Gheorghiu for the bug reports)0.2.0------ trace2html.py can now be directly used to collect coverage data- new whitelist system to explicitely restrict the traced modules0.1.1------ minor bugfix in options help message0.1.0------ initial revision
Package: traceable-agent
Python AgentUsagePython traceable agent requires Python >= 3.7Additionally, to use the traceable filter, you must be on a supported OS.Ubuntu 18.04+Centos 7+Debian 10+Amazon Linux 2+Instrumentation methodsThere are two ways to instrument your application, auto-instrumentation and code based instrumentation.AutoinstrumentationSimply prependtraceableai-instrumentto your applications startup command.ex:traceableai-instrument flask runCode based instrumentationAdd the following snippet to your python apps entrypoint file:fromtraceableai.agentimportAgentapp=Flask(__name__)agent=Agent()agent.instrument(app)# This will instrument the flask app + any other modules that are supportedagent.add_traceable_filter()# add the traceable filter to enable blockingDeveloping# Create a virtual env & install dependenciespython3-mvenvvenvsourcevenv/bin/activate
pipinstall-rrequirements.txt-rdev-requirements.txtNote: if you run into an error installing grpc:File "/Users/user/.pyenv/versions/3.9.4/lib/python3.9/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/clang' failed with exit code 1prepend this env var to the above pip install command:GRPC_PYTHON_BUILD_SYSTEM_ZLIB=trueBuildingpipinstall-rrequirements.txt
python3-mbuildInstrumentingtraceableai-instrumentyour_startup_command# ex: traceableai-instrument flask run -p 5000Updating LibtraceableUpdate thelibtraceable.hheader file if it has changed.Edit./src/download.pyand update the constantLIBTRACEABLE_VERSION.Verify using a test application indocker/test_apps. It will fail to build if libtraceable cannot be downloaded.Updating the Protogitsubmoduleupdate--init--recursive
./scripts/build_proto.shTestingUnit testsBuild the *.whl files.build_artifacts.shbuilds all the whl files. Intentionally use theCIBW_SKIPenvironment variable to skip versions to save time. The example below only tests on 3.6.CIBW_SKIP="*37* *38* *39* *310*" ./build_artifacts.shBuild and run test in docker.docker build -f docker/test_apps/unittest.Dockerfile -t pythonunittest .
docker run --rm pythonunittestTest applicationsRefer todocker/test_apps/.
Package: tracealllines
Prints all executed linespip install tracealllinesTested against Windows 10 / Python 3.10 / Anacondafromtracealllinesimportprint_execution,enable_trace_all,disable_trace_allcolorprint="green"@print_execution(file=__file__,color=colorprint,logfile="c:\\logogog.txt",enabled=True)deffu():forxinrange(2):print(x*1)@print_execution(file=__file__,color=colorprint,logfile=None,enabled=True)deffu3():forxinrange(3):print(x*25)@print_execution(file=__file__,color=colorprint,logfile=None,enabled=True)deffu2():forxinrange(2):print(x*150)if__name__=="__main__":fu()fu3()fu2()file,color,logfile=__file__,colorprint,"c:\\logogog.txt"enable_trace_all(file,color,logfile)fu2()disable_trace_all()fu3()
Package: traceback2
A backport of traceback to older supported Pythons.>>> import traceback2 as tracebackProfit.Things to be aware of!In Python 2.x, unlike traceback, traceback2 creates unicode output (because it
depends on the linecache2 module).Exception frame clearing silently does nothing if the interpreter in use does
not support it.traceback2._some_str, which while not an official API is so old its likely in
use behaves similarly to the Python3 version - objects where unicode(obj) fails
but str(object) works will be shown as b’thestrvaluerepr’.
Package: trace-dkey
trace-dkeyPython library to trace path of a particular key inside a nested dictInstallationFor stable versionpip install trace-dkeyFor developementgit clonehttps://github.com/Agent-Hellboy/trace-dkeycd trace-dkeypython -m venv .venvsource .venv/bin/activateExampleyou can use the library aspython3-mtrace_dkey--file=test.json--key=name, test.json isa json file containing name as key>>>fromtrace_dkeyimporttrace>>>l={'a':{'b':{'c':{'d':{'e':{'f':1}}}}}}>>>print(trace(l,'f'))[['a','b','c','d','e','f']]Nowyoucanqueryitasl['a']['b']['c']['d']['e']['f']>>>l['a']['b']['c']['d']['e']['f']1referTests_. for other examplesGeneral InfoThe value returned by thetracefunction is an array of paths, where each path is an array of dictionary keys.Because of that, the library can be used in a practical way by taking advantage of this format.In the example below we use the returned path to iterate over the dictionary keys and print the key value:fromtrace_dkeyimporttracel={'a':{'b':{'c':{'d':{'e':{'f':1}}}}}}paths=trace(l,'f')forpathinpaths:dic=lforkeyinpath:dic=dic[key]print(dic)This is addressing a wide range of question asked on stackoverflow about key inside a nested dictAtleast 13 duplicate questions can be found on stackoverflowThis can be tracked onhttps://you.com/search?q=find%20key%20in%20nested%20dictionary%20pythonSomeone made a nice comparision of this lib(trace-dkey) with one of the famous lib(yamlpath) which is doing the similar thingContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Package: tracee
Tracklet Extraction EngineThis package provides a function to retrievetrackletsfrom a list ofverticesin a three-dimensional space. The function find a set of linearly aligned vertices in the list and derive a line segment (tracklet) to approximate the vertex distribution.OverviewThe module provides a classTrackletand a functionextract. Theextractfunction receives a list of vertices asnumpy.ndarray. The array shape should be(n,6), wherenis the number of vertices. Then, a list ofTrackletsinstances are returned. Some tutorials are available innotebook.RequiremntsThe packagetraceedepends on the following packages. Both packages are available inPyPi. Installation on Ubuntu 18.04 was confirmed. If you have any troubles in installation, please contact to the developer.fdlsgm>=0.5.5minimalKNN>=0.5
Package: trace-event-handler
Logging Handler writing Trace Event FormatThis logging writes the logs in theTrace Event Format.Installationpipinstalltrace-event-handlerUsageimportloggingfromtrace_event_handlerimportTraceEventHandlerhandler=TraceEventHandler()logging.basicConfig(handlers=[logging.StreamHandler(None),handler])# Do your stuff and log it# ...# Dump the trace to filehandler.dump('trace.json')Open your Chromium based browser and navigate tochrome://tracing.
Click onLoadand select your dumped trace file.Theexampleleads to the trace seen in the figure above.Publishing manuallypython3setup.pysdistbdist_wheel
python3-mtwineuploaddist/*
Package: trace-events
Trace EventsPython event tracing using theTrace Event Formatwhich is supported by Chromium browsers and other toolsInstallingInstall and update usingpipUsageAdd tracing to sections of your code and execute to generate ajsontrace fileimporttimefromtrace_eventsimportProfiler,profile,timeit@profiledeffoo():# ... do some work@profile(category='suspected-slow')defbar():time.sleep(1)defbaz(value):withtimeit('baz::foo'):foo()withtimeit('baz::bar',value=value):bar()if__name__=='__main__':baz(10)Profiler.global_profiler().save_trace('trace.json')Traces are savedatexitto a defaulttrace.jsonfile, or can be configured with a call toinit_traceimporttrace_eventstrace_events.init_trace(trace_file_dir='./my-traces',trace_file_name='my-trace.json',# save_at_exit = True# overwrite_trace_files=False,# logger=logging.getLogger("trace_events"))Open up a Chromium browser tochrome://tracingand load the file to view the traceMore examples in the examples folderBasic ExampleLogging ExampleTracing Disabled
Package: trace-extractor
Trace ExtractorA wrapper around ffprobe that takes MPEG-4 files and outputs video traces in a format readable byns-3's UdpTraceClient application.DependenciesYou need to haveffmpeg'sffprobepresent in yourPATH. Alternatively, you can use a customffprobewith the--ffprobe-pathargument:python3 -m trace_extractor --ffprobe-path /path/to/ffprobeInstallationtrace_extractorcan be installed viapip:pip install trace-extractorUsageTo run the program, you need to specify the MP4 file you wish to process and the path to the output file.python3 -m trace_extractor -i path/to/input.mp4 -o path/to/output.ns-3-vtraceExampleAn example video is present in thetests/inputsdirectory, it is a recording of id Software's 1993 DOOM's DEMO1 demo played back on thedsda-doomsource port.
Package: trace-feature
Trace FeatureInstalaçãoVirtualenv1. Instale o PipPara visualizar se você possui o pip instalado, use:pip--versionCaso não tenha o pip instalado, use:sudoapt-getinstallpython3-pip2. Instale o VirtualenvPara visualizar se você possui o virtualenv instalado, use:virtualenv--versionCaso não tenha o pip instalado, use:sudopip3installvirtualenv3. Crie um Virtualenv com Python3virtualenv-ppython3env4. Entre no VirtualenvEntre na pasta que contém seu virtualenv e use:sourceenv/bin/activate5. Instalação da ferramentaTemos duas formas de executar o trace feature:utilizando o pacote trace-featureouclonando o repositório.Utilizando o pacote trace-feature:Após criar umvirtualenvexecute o seguinte comando:$pipinstalltrace-featureUtilizando o projeto clonado localmente:Após criar umvirtualenv, navegue até o diretóriotrace_featuree execute o seguinte comando:$pipinstall.Execução do projeto:Para executar o projeto, use o comando:trace-feature-f[feature]-s[linhadocenário]-u[urldoservidor]Os argumentos são opcionais e não precisam ser especificados depois do comando. Vale lembrar também que para que o comando seja executado sem parâmetros, é necessário navegar até a pasta do projeto onde se deseja executar a ferramenta.Para obter ajuda sobre o comando e os argumentos, basta usartrace-feature--helpPara execução completa da análise de features e métodos, devemos subir o servidor de análise de dados, com código fonte disponívelaqui. Então, devemos executar esta ferramenta na seguinte ordem:Primeiramente instalar Excellent:geminstallexcellentEntão devemos incluir um arquivo de configuração onde vamos definir os dados que deverão ser obtidos pela gema Excellent. Para isso, crie um arquivo chamado .excellent.yml na pasta raíz do projeto analisado. Então inclua as seguintes linhas no arquivo:AbcMetricMethodCheck:TrueCyclomaticComplexityMethodCheck:threshold:0MethodLineCountCheck:threshold:0Feito isso, execute:trace-feature-mAguardar a conclusão da análise de todos os métodos do projeto e executar:trace-featureTestes:Para executar os testes em conjunto com o output de cobertura, use o comando:pytest-v--covPara visualizar a cobertura dos testes em uma página HTML, execute:pytest-v--cov--cov-report=htmlE abra o arquivo index.html do diretóriohtmlcov
Package: traceforward
TraceforwardForward Networks utility that enhances traceroute experience, extending original traceroute output
with useful information from Forward.The tool expects Forward Server data to be present in configuration file:➜cat~/.traceforward/traceForwardConfig.ini[FORWARD_SERVER]url=<FORWARD_SERVER_URL>username=<USERNAME>password=<USERNAME>network_id=<NETWORK_ID>If this file is not present, for example during the first run, the tool will
prompt for the information and create config folder and file.For developersTo test from local folder:# Move to 'src' folder:cdsrc# Run traceforward as module:python3-mtraceforward--helpBuild and test in virtualenv:# buildpython3-mbuild# create a test venvpython3-mvenv.env/fresh-install-test# activate..env/fresh-install-test/bin/activate# install:pipinstalldist/traceforward-0.0.1-py3-none-any.whl# run from cli:traceforward--help