Saravanan666/pypi-org huggingface dataset:
Package: amplitude-tracker
Amplitude Tracker library lets you record analytics data from your
Python code toAmplitudeGetting StartedInstallamplitude-trackerusing pip:pip install amplitude-trackerInside your app, you’ll want toset yourwrite_keybefore making
any analytics calls:importamplitude_trackerasamplitudeamplitude.write_key='xxxxxxxxxxxxxxx'Note:If you need to send data to multiple Segment sources, you can
initialize a new Client for each write_key.Development SettingsThe default initialization settings are production-ready and queue
messages to be processed by a background thread.In development you might want to enable some settings to make it easier
to spot problems. Enabling amplitude.debug will log debugging info to
the Python logger. You can also add an on_error handler to specifically
print out the response you’re seeing from the Amplitude’s API.defon_error(error,items):print("An error occurred:",error)analytics.debug=Trueanalytics.on_error=on_errorTracktracklets you record the actions your users perform. Every action
triggers what we call an “event”, which can also have associated
properties.importamplitude_trackerasamplitudeamplitude.write_key='xxxxxxxxxxxxxxx'amplitude.track(user_id="xxx",event_type="xxx",user_properties={"trait":"xxx"},event_properties={"attribute":"xxx"})BatchingThis library is built to support high performance environments. That
means it is safe to use amplitude-tracker on a web server that’s serving
hundreds of requests per second.Every calltrackmethoddoes notresult in an HTTP request, but is
queued in memory instead. Messages are flushed in batch in the
background, which allows for much faster operation.By default, this library will flush:every100messages (control withupload_size)if0.5seconds has passed since the last flush (control withupload_interval)There is a maximum of500KBper batch request and32KBper call.
Package: amplot
# AmPlot[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)受到 [gmplot](https://github.com/vgm64/gmplot) 启发, 基于高德地图做一个可以python 简单调用生成地图 html 页面. 用于展示数据用TODO~~画 Polyline~~~~画 Polygon~~~~重构做到可以增加多个 Polygon, 及 Polygon 与 Polyline 混合使用.~~~~画圆~~带洞多边形生成热力图~~重构, 使用 dict 替换 list, 避免重复~~~~海量点图~~ 样式可传递, 更灵活.重构, 规范命名方式. 更简单易懂.Example TODO
* 海量点图
Package: amplpy
AMPLPY: Python API for AMPL# Install Python API for AMPL$python-mpipinstallamplpy--upgrade# Install solver modules (e.g., HiGHS, CBC, Gurobi)$python-mamplpy.modulesinstallhighscbcgurobi# Activate your license (e.g., free https://ampl.com/ce license)$python-mamplpy.modulesactivate<license-uuid># Import in Python$python>>>fromamplpyimportAMPL>>>ampl=AMPL()# instantiate AMPL object# Minimal example:fromamplpyimportAMPLimportpandasaspdampl=AMPL()ampl.eval(r"""set A ordered;param S{A, A};param lb default 0;param ub default 1;var w{A}>= lb <= ub;minimize portfolio_variance:sum {i in A, j in A} w[i] * S[i, j] * w[j];s.t. portfolio_weights:sum {i in A} w[i] = 1;""")tickers,cov_matrix=# ... pre-process data in Pythonampl.set["A"]=tickersampl.param["S"]=pd.DataFrame(cov_matrix,index=tickers,columns=tickers)ampl.solve(solver="gurobi",gurobi_options="outlev=1")assertampl.solve_result=="solved"sigma=ampl.get_value("sqrt(sum {i in A, j in A} w[i] * S[i, j] * w[j])")print(f"Volatility:{sigma*100:.1f}%")# ... post-process solution in Python[Documentation] [AMPL Modules for Python] [Available on Google Colab] [AMPL Community Edition]amplpyis an interface that allows developers to access the features ofAMPLfrom within Python. For a quick introduction to AMPL seeQuick Introduction to AMPL.In the same way that AMPL’s syntax matches naturally the mathematical description of the model, the input and output data matches naturally Python lists, sets, dictionaries,pandasandnumpyobjects.All model generation and solver interaction is handled directly by AMPL, which leads to great stability and speed; the library just acts as an intermediary, and the added overhead (in terms of memory and CPU usage) depends mostly on how much data is sent and read back from AMPL, the size of the expanded model as such is irrelevant.Withamplpyyou can model and solve large scale optimization problems in Python with the performance of heavily optimized C code without losing model readability. The same model can be deployed on applications built on different languages by just switching the API used.Documentationhttp://amplpy.ampl.comRepositories:GitHub Repository:https://github.com/ampl/amplpyPyPI Repository:https://pypi.python.org/pypi/amplpy
Package: amplpy-copt
copt driver for AMPL.  This package uses AMPLS-API, which is an open source set of lightweight
interfaces between AMPL and solvers, which allow:Read in an AMPL model instance from anNLfileWrite out the solution as asolfile, ready to be imported by AMPLA choiche between:Use of all the solver’s capabilities, using its own C API functionalitiesUse of a (provided) generic interface, that encapsulates the most common
functionalities of the solver interfaces, permitting hassle-free solver swapUsage of existing AMPL licenses, when used together with the AMPL driversThe interfaces are available for multiple languages; the core is written in C++ and it is wrapped using
[swig](https://www.swig.org) to other target languages.
Package: amplpy-cplex
CPLEX driver for AMPL.  This package uses AMPLS-API, which is an open source set of lightweight
interfaces between AMPL and solvers, which allow:Read in an AMPL model instance from anNLfileWrite out the solution as asolfile, ready to be imported by AMPLA choiche between:Use of all the solver’s capabilities, using its own C API functionalitiesUse of a (provided) generic interface, that encapsulates the most common
functionalities of the solver interfaces, permitting hassle-free solver swapUsage of existing AMPL licenses, when used together with the AMPL driversThe interfaces are available for multiple languages; the core is written in C++ and it is wrapped using
[swig](https://www.swig.org) to other target languages.
Package: amplpy-gurobi
GUROBI driver for AMPL. This package uses AMPLS-API, which is an open source set of lightweight
interfaces between AMPL and solvers, which allow:Read in an AMPL model instance from anNLfileWrite out the solution as asolfile, ready to be imported by AMPLA choiche between:Use of all the solver’s capabilities, using its own C API functionalitiesUse of a (provided) generic interface, that encapsulates the most common
functionalities of the solver interfaces, permitting hassle-free solver swapUsage of existing AMPL licenses, when used together with the AMPL driversThe interfaces are available for multiple languages; the core is written in C++ and it is wrapped using
[swig](https://www.swig.org) to other target languages.
Package: amplpy-xpress
XPRESS driver for AMPL. This package uses AMPLS-API, which is an open source set of lightweight
interfaces between AMPL and solvers, which allow:Read in an AMPL model instance from anNLfileWrite out the solution as asolfile, ready to be imported by AMPLA choiche between:Use of all the solver’s capabilities, using its own C API functionalitiesUse of a (provided) generic interface, that encapsulates the most common
functionalities of the solver interfaces, permitting hassle-free solver swapUsage of existing AMPL licenses, when used together with the AMPL driversThe interfaces are available for multiple languages; the core is written in C++ and it is wrapped using
[swig](https://www.swig.org) to other target languages.
Package: ampo
Aio Mongo Pydantic ORM (ampo)Features:AsynchronousUsageAll example run into:python-masyncioCreate and get objectfromampoimportCollectionWorker,AMPODatabase,ORMConfig,init_collection# Initilize DB before calls db methodsAMPODatabase(url="mongodb://test")# Pydantic ModelclassModelA(CollectionWorker):field1:strfield2:intmodel_config=ORMConfig(orm_collection="test")awaitinit_collection()inst_a=ModelA("test",123)awaitinst_a.save()# Get objectinst_a=awaitModelA.get(field1="test")IdFor search by 'id' usages in filter '_id' or 'id' name.Indexes# import# Initilize DB before calls db methodsAMPODatabase(url="mongodb://test")# Pydantic ModelclassModelA(CollectionWorker):field1:strmodel_config=ORMConfig(orm_collection="test",orm_indexes=[{"keys":["field1"],"options":{"unique":True}}])# This method create indexes# Call only one timeawaitinit_collection()Suppport options:uniqueexpireAfterSecondsKeys is list of fields.TTL IndexIt works only with single field (TTL Indexes).You should set the option 'expireAfterSeconds', and field 'keys' should have only single field.Example:# import# Initilize DB before calls db methodsAMPODatabase(url="mongodb://test")# Pydantic ModelclassModelA(CollectionWorker):field1:datetimemodel_config=ORMConfig(orm_collection="test",orm_indexes=[{"keys":["field1"],"options":{"expireAfterSeconds":10}}])# optional, set new valueModelA.update_expiration_value("field1",20)awaitinit_collection()if you want to set the 'expireAfterSeconds' only from method 'update_expiration_value', set it to '-1'.Relationships between documentsEmbededIt is supported by default. Just, you need create the embedded document as class of pydantic - 'BaseModel'. It will be stored into db as object.Example:frompydanticimportBaseModelclassEmbeded(BaseModel):name:strclassModelA(CollectionWorker):field1:strfield2:Embededmodel_config=ORMConfig(orm_collection="test")DevelopmentStyle:NumPy/SciPy docstrings style guideRun tests:envTEST_MONGO_URL=mongodb://localhost/testpytest
Package: ampoul3
Ampoule is a process pool implementation written on top of Twisted
Matrix. Its name comes from the use of AMP as the default
communication protocol between the pool and all its children.It’s different from other alternative solutions because it provides an
API very close to that of the Twisted ThreadPool. As an helper
function it also provides a deferToAMPProcess function that creates
the ProcessPool and submits jobs to it.
Package: ampoule
Ampoule - a process pool for Twisted, based on AMPAmpoule is a process pool written on top ofTwisted. Its name comes from the use ofAMPas the default communication protocol between
the pool and all its children.It provides an API very close to that of the built-in TwistedThreadPool. As
an helper function it also provides adeferToAMPProcessfunction that creates
theProcessPooland submits jobs to it.
Package: amps
Amps (Are My Packages Safe?) - A package scanner for Arch Linux based systemsampsscans all packages installed via pacman on your system and provides you a simple report of those with open CVE's reportedhere.Amps currently only supports Arch Linux based systems, butapt,dpkg, anddnfcapabilities are planned to work for more devices.InstallationVia PyPI:pipinstallampsAs a python script:curl-Ohttps://raw.githubusercontent.com/isaacmg00/amps/main/amps/amps.py
pythonamps.py
Package: ampscz-anonymize-dicom
AMP-SCZ Dicom AnonymizerContentsIntroduction
Dependencies
Installation
How to run AMP-SCZ Dicom AnonymizerIntroductionDependenciesTested on osxxquartz (https://www.xquartz.org)python(3) withpipaccessible in the shellInstallationInstallation throughpypi$ pip install ampscz_anonymize_dicomHow to run AMP-SCZ Dicom Anonymizer$ ampscz_anonymize_dicomDrag the root of the dicom directoryDrag the output directoryEdit the AMP-SCZ IDEnter the session numberClick "Run deidentification"
Package: amptk
AMPtkNGS AMPlicon Tool Kit:Documentation:http://amptk.readthedocs.io/CitationPalmer JM, Jusino MA, Banik MT, Lindner DL. 2018. Non-biological synthetic spike-in controls and the AMPtk software pipeline improve mycobiome data. PeerJ 6:e4925; DOI 10.7717/peerj.4925.https://peerj.com/articles/4925/
Package: amp-tools
Python AMP LibraryThis library contains class what converts html to AMP.Work in progressInstallationpipinstallamp_toolsUsage examplefromamp_toolsimportTransformHtmlToAmphtml_elements='<span class="test-class">'\'<form class="form-test"></form>'\'<img src="media/test.png" width="300" height="220">'\'</span>'valid_amp=TransformHtmlToAmp(html_elements)()# Returnb'<div class="amp-text"><amp-img src="media/test.png" width="300" height="220" layout="responsive"></amp-img></div>'
Package: amptrac
# -*- mode: org -*-* Amptrac, A Completely Ridiculous Issue TrackerI wrote this because twistedmatrix.com has a Trac instance full ofvaluable data, and Trac has become increasingly annoying over the past7 years. Amptrac is an attempt to provide a better face on that data.** How It WorksAmptrac provides an AMP listeners in a Twisted-based server,and a command-line client.*** ServerAMP commands in amptrac.responder define the interface for working withticket data.*** ClientXXX** How To Run ItIf you want to develop Frack, the tests can be run via 'trialamptrac.test'. For running a development server:# load some test data into an sqlite dbsqlite3 < frack/test/trac_test.sql trac.db# start the server (the URL here must be the url at which you will# access the site)twistd -n amptrac --sqlite_db=trac.db# After starting the server, you can thenbin/review-tickets# orbin/fetch-ticket <id>Ticket numbers in the test database are: 3312, 5622, 5517, 2723, 4712.
Package: ampy
Website|Documentation|Paper|Video Tutorial(TBD) |Colab NotebookAMPyis abaselinelibrary built uponOpenCVandNumPyto easily process experimental video data for active matter and disordered systems. Our library turns the processing of experiment recordings into a cakewalk, considerably accelerating extraction of system dynamics.OverviewThe library is comprised of 4 components:processing.py,statistic2d.py,statistic3d.py,animation.py, andutils.py.processing.pyhandles the initial processing of experimental video recordings and tracks the ArUco markers placed on the robots' upper surfaces.statistics2d.pyextracts various two-dimensional statistical measures from obtained kinematics (such as Cartesian displacement or order parameters).statistics3d.pyevaluates position, orientation, and velocity correlation maps for the entire platform.animation.pygenerates .gif/.mp4 with different visual augmentations of an input video.utils.pyprovides methods for reading/saving video data.If you want a brief introduction into library capabilities, we prepareda Colab tutorialfor that occasion.InstallationAMPy is available atthe Python Package Index:$ pip install ampyPreparing markersFor users' convenience, we providethe .ipynb notebookallowing to generate ArUco- and AprilTag-based markers for tracking of their own robots.Contact usIf you have some questions about the code, you are welcome to open an issue, we will respond to that as soon as possible. Contributions towards extension of AMPy functionality are more than welcome!LicenseEstablished code released as open-source software under the GPLv3 license.Citation@misc{
      dmitriev2023swarmobot,
      title={Swarmodroid 1.0: A Modular Bristle-Bot Platform for Robotic Active Matter}, 
      author={Alexey A. Dmitriev and Alina D. Rozenblit and Vadim A. Porvatov and
              Mikhail K. Buzakov and Anastasia A. Molodtsova and Daria V. Sennikova and
              Vyacheslav A. Smirnov and Oleg I. Burmistrov and Ekaterina M. Puhtina and
              Nikita A. Olekhno},
      year={2023},
      eprint={2305.13510},
      archivePrefix={arXiv},
      primaryClass={cond-mat.soft}
}
Package: ampycloud
ampycloudIntroductionampycloud refers to both this Python package and the algorithm at its core, designed to
characterize cloud layers (i.e. height and sky coverage fraction) using ceilometer measurements
(i.e. automatic cloud basehitsmeasurements), and derive the corresponding METAR-like message.For the full documentation, installation instructions, etc ..., go to:https://meteoswiss.github.io/ampycloudLicense & Copyrightampycloud is released under the terms ofthe 3-Clause BSD license. The copyright (2021-2023) belongs to MeteoSwiss.Contributing to ampycloudPlease see thecontributing guidelinesfor details.
Package: amqencode
ffmpeg scripts for handicapsThis Python 3 package simplifies 2-pass VP9/Opus encoding for AMQ usingffmpeg.
It's basically a wrapper with presets forffmpeg-python,
with some hacky stuff to get 2-pass encodes working.You can use it to encode every resolution of a video with a single command.You can override a lot of the presets.
Passingnorm=Trueautomatically adjusts volume levels for you.I'll write up documentation later.Install it withpipFirst, install Python 3 if you haven't already. Then,pipinstallamqencodeor maybe this on Windowspy -3 -m pip install amqencodeAlso make sure thatffmpegis on your PATH.Usageimport amqencodein your python scripts.Seesample_encode.pyfor an example of a script that encodes a video into
mp3 and webms, then muxes those outputs with clean audio.CLIIf you just want to encode a file without writing a standalone script,
you can call the package directly from a terminal.*nixpython3-mamqencodeWindowspy -3 -m amqencodeHowever, this is incapable of muxing clean audio into an encode.
Package: amqpcli
amqpcliAn interactive shell developed by Python to be used as a client to communicate with an AMQP broker(server).It is inspired byCelery's amqp command line, but amqpcli meant to provide a light-weight tool and others can use it without the necessity to install the whole Celery package.Getting StartedInstall it by pip:pipinstallamqpcliRun the command line:amqpcli-Hlocalhost:5672-uguest-pguest-V/That is it!Just try to enter ahelpcommand to check all available commands and their corresponding usages.Certainly you can also download the source code and run:PYTHONPATH=./bin/amqpcli-Hlocalhost:5672-uguest-pguest-V/
Package: amqpclient
# amqpclient [![Build Status](https://travis-ci.org/okurz/amqpclient.svg?branch=master)](https://travis-ci.org/okurz/amqpclient)
Simple AMQP python CLI applications for receiving/sending## CommunicationIf you have questions, contact me (okurz) irc.freenode.net, e.g. in
[#opensuse-factory](irc://chat.freenode.net/opensuse-factory).## ContributeThis project lives inhttps://github.com/okurz/amqpclientFeel free to add issues in github or send pull requests.TODOs and ideas are tracked in the fileTODOas well as github issues.### Rules for commitsEvery commit is checked by [Travis CI](https://travis-ci.org/travis) as soon as
you create a pull request but youshouldruntoxlocally,It would be nice to keep the test coverage or increase it, e.g. by adding
test reference data for new scenarios. TDD is advised :-)For git commit messages use the rules stated on
[How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/) as
a referenceIf this is too much hassle for you feel free to provide incomplete pull
requests for consideration or create an issue with a code change proposal.## LicenseThis project is licensed under the MIT license, see LICENSE file for details.
Package: amqpclt
amqpclt is a versatile tool to interact with messaging brokers speaking AMQP
and/or message queues (see messaging.queue) on disk.It receives messages (see messaging.message) from an incoming module,
optionally massaging them (i.e. filtering and/or modifying), and sends
them to an outgoing module. Depending on which modules are used, the tool
can perform different operations.
Package: amqpeek
AMQPeekA flexible RMQ monitor that keeps track of RMQ, notifying you over
multiple channels when connections cannot be made, queues have not
been declared, and when queue lengths increase beyond specified
limits.Support OSS, and me :)If you find this project useful, please feel free tobuy me a coffeeInstall$ pip install amqpeekOnce installed, you can then setup AMQPeek to suit your needs by editing
the configuration fileCreate configuration fileTo create a base configuration file:$ amqpeek --gen_configThis will create a file calledamqpeek.yamlin your current directory.
Here you can setup your connection details for RMQ, define queues you
wish to monitor and define the notifier channels you wish to use. Edit
this file to suit your needsRunninglisting all options:$ amqpeek --helpRun AMQPeek with no arguments: This runs the monitoring script once and
then exits out (useful when running AMQPeek as a Cron job)$ amqpeekRun AMQPeek with an interval: This monitors RMQ, running the tests every
10 minutes in a continuous loop (useful when running AMQPeek under
Supervisor or something similar)$ amqpeek --interval 10You can also specify the location of a configuration file to use instead
of the default location of your current directory$ amqpeek --config config.yamlNotification channelsAMQPeek supports multiple notification channels.Currently supported channels:SlackEmail (SMTP)These are controlled via the configuration file, under notifiers. You
can mix and match the notifiers you wish to use, and you can have
multiples of the same notifier types.
Package: amqp-helper
Introductionamqp_helperaims to be a simple Helper library to configure AMQP communication for use withaio-pikaTo achieve this goal this Library provides theAMQPConfigclass.This package also provides a log handler to send logs to an AMQP Broker. You can use it via the classAMQPLogHandlerInstallationamqp_helpercan be installed in multiple ways. The easiest Solution is to install it withpip.via pippython3-mpipinstallamqp-helperfrom sourcegitclonehttps://github.com/bad-microservices/amqp_helper.gitcdamqp_helperpython3-mpipinstall.Exampleimportasynciofromamqp_helperimportAMQPConfigfromaio_pikaimportconnect_robustamqp_config=AMQPConfig(username="test",password="testpw",vhost="testvhost")asyncdefmain():connection=awaitconnect_robust(**amqp_config.aio_pika())# do some amqp stuffif__name__=="__main__":asyncio.run(main())Example RPC over AMQPServer codeThe Server code is quite simpleimportasynciofromamqp_helperimportAMQPConfig,AMQPService,new_amqp_funcamqp_config=AMQPConfig(username="test",password="testpw",vhost="testvhost")asyncdeftestfunc(throw_value_error=False,throw_key_error=False,throw_exception=False*args,**kwargs):ifthrow_value_error:raiseValueError()ifthrow_key_error:raiseKeyError()ifthrow_exception:raiseException()return{"result":"sync stuff"}rpc_fun=new_amqp_func("test1",test1234)@rpc_fun.exception_handler(ValueError,KeyError)asyncdefhandle_value_error(*args,**kwargs):retrun"got ValueError or KeyError"@rpc_fun.exception_handler(Exception)asyncdefhandle_value_error(*args,**kwargs):return"got Exception"asyncdefmain():service=awaitAMQPService().connect(amqp_config)awaitservice.register_function(rpc_fun)awaitservice.serve()# do some amqp stuffif__name__=="__main__":asyncio.run(main())Clientimportasynciofromamqp_helperimportAMQPConfig,AMQPClientamqp_config=AMQPConfig(username="test",password="testpw",vhost="testvhost")asyncdefmain():client=awaitAMQPClient().connect(amqp_config)print(awaitclient.call(None,"test1"))if__name__=="__main__":asyncio.run(main())Logging to AMQPif we want to log to an AMQP Topic we can do it with the following example code.importloggingfromamqp_helperimportAMQPLogHandlerlog_cfg=AMQPConfig(username="test",password="testpw",vhost="testvhost")handler=AMQPLogHandler(amqp_config=log_cfg,exchange_name="amqp.topic")root_logger=logging.getLogger()root_logger.addHandler(handler)root_logger.info("test log message")