Saravanan666/pypi-org huggingface dataset:
Package: rtsf-locust
rtsf-locust基于rtsf-http及locust对http(s)等api，进行性能的自动化测试环境准备安装rtsf-locustpip install rtsf-locust关于用例的编写rtsf-locust与rtsf-http的测试用例，是同一份，唯一的区别就是在执行的时候，命令不一样.# rtsf-http 进行接口的自动化测试
hdriver c:\test_case.yaml
httpdriver c:\test_case.yaml 

#rtsf-locust 进行接口性能的自动化测试
hlocust -f c:\test_case.yaml
httplocust -f c:\test_case.yamlrtsf-locust,具有如下特性：支持yaml、json的测试用例支持case的分层支持case的数据驱动，在locust压测过程中，每个模拟的用户，都会对数据驱动的数据进行遍历，遍历结束，默认使用最后一组数据继续进行压测关于测试报告压测过程，实际上是 locust的运行过程，跟rtsf-http不同的是，rtsf-locust未记录日志和生成报告但是，您可以访问locust的控制台，查看实时报告和日志:http://localhost:8089/示例压测场景：在站点pypi中搜索项目，其中项目名称，使用数据驱动的方式，写在poject.csv中，如下# test_locust.yaml
- project:
    name: xxx系统
    module: xxx模块-性能
    data:
      - csv: projects.csv

- case:
    name: search-$project_name
    glob_var:
      expected_result: <title>Search results
    steps:
        - request:
            url: https://pypi.org/search/?q=$project_name
            method: GET
    verify:
        - ${VerifyCode(200)}
        - ${VerifyContain($expected_result)}

# project.csv
project_name
rtsf
rtsf-http
rtsf-app
rtsf-win
rtsf-web
Package: rtsgame
RTS game (нет)Простая игра о том что нужно быть сильным и справлятся с трудностями жизниУстановка и запускдля Debian-based дистрибутивовsudoaptinstallpython3-tkinter
sudopip3install-rrequirements.txt
python3./MainMenu.pyДля Windows
Нужно установить пакетActionTcl. Пройдите несложную регистрацию и установите TCL.
После этого аналогично инструкции для linux.
Package: rt.simpleslider
rt.simpleslider Package ReadmeOverviewThis products adds a simple slider support based on jQuery plugin called
[Basic jQuery Slider](http://basic-slider.com/)Using rt.simplesliderSimpleslider adds support for basic Plone types such as:ImageTopicFoldercollective.contentleadimageredturtle.smartlinkDepends which type of object you will choose slider will generate proper HTML
snippet for you. In case ofATImageor objects that providesILeadImageableyou will get a single image. In case ofTopicorFolderthe slider with try to render
all items provided by query/folderlisting.ViewletSlider registers one viewlet to render the basic slider, default forIAboveContent:<browser:viewletfor="*"name="rt.simpleslider.slider"manager="plone.app.layout.viewlets.interfaces.IAboveContent"class=".viewlets.Slider"template="slider_viewlet.pt"layer="..interfaces.IBrowserLayer"permission="zope2.View"/>Changelog1.3.4 (2020-03-18)Fix base responsive dimensions [pnicolli]1.3.3 (2014-04-09)fix default page handler [amleczko]1.3.2 (2013-05-27)fix image resize [amleczko]1.3.1 (2013-05-20)add handy js events [amleczko]1.3 (2013-03-22)change viewlet registration [amleczko]1.2.1 (2013-03-15)jslint fix for javascript [fdelia]1.2 (2013-03-05)update caption_template [amleczko]make sure the settings don’t fail [amleczko]1.1 (2013-03-05)do not link not linkable objects [amleczko]1.0 (2013-02-22)Initial release
Package: rtsp
RTSP Package/((((((\\\\
=======((((((((((\\\\\
     ((           \\\\\\\
     ( (*    _/      \\\\\\\
       \    /  \      \\\\\\________________
        |  |   |      </    __             ((\\\\
        o_|   /        ____/ / _______       \ \\\\    \\\\\\\
             |  ._    / __/ __(_-</ _ \       \ \\\\\\\\\\\\\\\\
             | /     /_/  \__/___/ .__/       /    \\\\\\\     \\
     .______/\/     /           /_/           /         \\\
    / __.____/    _/         ________(       /\
   / / / ________/`---------'         \     /  \_
  / /  \ \                             \   \ \_  \
 ( <    \ \                             >  /    \ \
  \/      \\_                          / /       > )
           \_|                        / /       / /
                                    _//       _//
                                   /_|       /_|Convenience-wrapper around OpenCV-Python RTSP functions.Featuresread most-recent RTSP frame as Pillow Image on demandpreview stream in OpenCV. 'q' to quit preview.URI shortcuts for rapid prototypingintegers load a USB or webcam from starting with interface 0 viaOpenCV, e.g.rtsp.Client(0)'picam' uses a Raspberry Pi camera as source e.g.rtsp.Client('picam')ExamplesUse RTSP access credentials in your connection string e.g.RTSP_URL = f"rtsp://{USERNAME}:{PASSWORD}@192.168.1.221:554/11"One-off Retrievalimport rtsp
client = rtsp.Client(rtsp_server_uri = 'rtsp://...', verbose=True)
client.read().show()
client.close()Stream Previewimport rtsp
with rtsp.Client(0) as client: # previews USB webcam 0
    client.preview()Continuous Retrievalimport rtsp

with rtsp.Client(rtsp_server_uri = 'rtsp://...') as client:
    _image = client.read()

    while True:
        process_image(_image)
        _image = client.read(raw=True)Resize Retrieval Imageimport rtsp

RTSP_URL = "rtsp://..."
client = rtsp.Client(rtsp_server_uri = RTSP_URL)

width = 640
height = 480

client.read().resize([width, height]).show()
client.close()Rotate Retrieval Imageimport rtsp

RTSP_URL = "rtsp://..."
client = rtsp.Client(rtsp_server_uri = RTSP_URL)

client.read().resize([client.read().size[0], client.read().size[0]]).rotate(90).resize([client.read().size[1], client.read().size[0]]).show()
client.close()Save Retrieval Image (With the TimeStamp Format and Set Number of Save Image)import rtsp
import datetime

RTSP_URL = "rtsp://..."
IMAGE_COUNT = 10

client = rtsp.Client(rtsp_server_uri = RTSP_URL)
while client.isOpened() and IMAGE_COUNT > 0:
    client.read().save("./"+ str(datetime.datetime.now()) +".jpg")
    IMAGE_COUNT = IMAGE_COUNT - 1
client.close()Roadmap:I don't plan to develop this module any further, as more complex applications are better suited to use OpenCV, Gstreamer, or ffmpeg directly.To do:might improve parsing for RTSP server URIs
Package: rtsparty
RTSPartyA RTSP module that makes it easy to grab live frames from a RTSP stream. This package basically just wraps cv2 and lets you grab the latest frame from the camera, instead of relying on the buffer.UsagefromrtspartyimportStreamstream=Stream('rtsp://username:password@10.0.0.1/endpoint/',live=True)# Get a live frame from the cameralive_frame_from_camera=stream.get_frame()# Force a reconnectionstream.reconnect()# Show a live view of the streamstream.view()To grab the latest frame from the camera no matter what, construct the stream with live=True (or leave it out, it's the default):stream=Stream(live=True)stream=Stream()To use the buffer, which may not provide the most live images from the camera, set live to False.stream=Stream(live=False)By leaving out the first argument in the Stream constructor, it will by default use the default video capture device on your machine (your webcam most likely).
Package: rtspbrute
RTSPBruteInspired byCameradarFeaturesFind accessible RTSP streamson any targetBrute-forcestream routesBrute-forcecredentialsMake screenshotson accessible streamsGenerateuser-friendly reportof the results:.txtfile with each found stream on new line.htmlfile with screenshot of each found streamReport filesresult.txt: Each target is on a new line. Import to VLC: change extension to.m3uand open in VLCindex.html: Click on the screenshot to copy its linkInstallationRequirementspython(>3.6)avPillowrichInstall withpipor your favorite PyPi package manager.pip install rtspbruteCLIUSAGE
    $ rtspbrute -t TARGETS [-p PORTS [PORTS ...]] [-r ROUTES] [-c CREDENTIALS]
                [-ct N] [-bt N] [-st N] [-T TIMEOUT] [-d] [-h]

ARGUMENTS
    -h, --help                     show this help message and exit
    -t, --targets TARGETS          the targets on which to scan for open RTSP streams
    -p, --ports PORTS [PORTS ...]  the ports on which to search for RTSP streams
    -r, --routes ROUTES            the path on which to load a custom routes
    -c, --credentials CREDENTIALS  the path on which to load a custom credentials
    -ct, --check-threads N         the number of threads to brute-force the routes
    -bt, --brute-threads N         the number of threads to brute-force the credentials
    -st, --screenshot-threads N    the number of threads to screenshot the streams
    -T, --timeout TIMEOUT          the timeout to use for sockets
    -d, --debug                    enable the debug logs

EXAMPLES
    $ rtspbrute -h
    $ rtspbrute -t hosts.txt -p 554 5554 8554 -d
    $ rtspbrute -t ips.txt -r routes.txt -c combinations.txt
    $ rtspbrute -t targets.txt -st 10 -T 10"argument"(default_value):"-t, --targets"(No default value): Set the path to the input file. The file can contain IPs, IP ranges and CIDRs. Each one of them should be on a separate line, e.g.:0.0.0.0
192.168.100.1-192.168.254.1
192.17.0.0/16"-p, --ports"(554): Set custom ports, e.g.:-p 554 5554 8554"-r, --routes"(routes.txt): Set custom path to the file with routes. Each route should start with/and be on a separate line, e.g.:/1
/11
/h264"-c, --credentials"(credentials.txt): Set custom path to the file with credentials. Each combination should contain:and be on a separate line, e.g.:admin:admin
user:user"-ct, --check-threads"(500): Set custom number of threads to brute-force the routes"-bt, --brute-threads"(200): Set custom number of threads to brute-force the credentials"-st, --screenshot-threads"(20): Set custom number of threads to screenshot the streams. Smaller number leads to more successful screenshots: when there's too much threads PyAV will throw errors and wouldn't connect to target."-T, --timeout"(2): Set custom timeout value for socket connections"-d, --debug"(False): Enable debug logging todebug.logfile
Package: rtsp-curl
Convert rtsp.c to rtsp_curl.pyA basic RTSP transferrtsp.cExample:import time
from madyel import Rtsp_Curl

stream_uri = 'rtsp://127.0.0.1:554/video.mp4'
rtsp = Rtsp_Curl()
rtsp.init(stream_uri, 'username:password')
rtsp.auth()
rtsp.rtsp_describe()
control = rtsp.get_media_control_attribute()
rtsp.rtsp_setup(control)
rtsp.rtsp_play(stream_uri)

time.sleep(5)

rtsp.rtsp_teardown()
rtsp.rtsp_curl_close()Install_requirespip install scanf 
pip install pycurlfor macOS:PYCURL_SSL_LIBRARY=openssl LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include" pip install --no-cache-dir pycurl/\
||_____-----_____-----_____
||   O                  O  \
||    O\\    ___    //O    /
||       \\ /   \//        \
||         |_O O_|         /
||          ^ | ^          \
||        // UUU \\        /
||    O//            \\O   \
||   O                  O  /
||_____-----_____-----_____\
||
||.
Package: rtsptogo
rtsptogo is a rtsp server for tivos.It has an html interface listing tivos and the contents. It then links to
an rtsp stream of each file.I have has success streaming SD content from a HD tivo to a nexus one, G1,
vlc and totem over a lan. Real time transfers spead is needed from your
tivo to computer and a real time transcode.All the data is also available in json by making the same get requests with a
Accept: application/json header.A newish web.py is needed, ffmpeg with libx264 and libfaac support (I am using
the medibuntu lucid package), and tivodecode. I have been using python2.6
older may work.Put a config file in /etc/rtsptogo.conf, /usr/local/etcrtsptogo.conf or
~/.rtsptogo.conf then “python -m rtsptogo.main” or rtsptogo if you installed
with pip to start it up.
Package: rtsp-to-webrtc
rtsp-to-webrtc-clientPython client library forRTSPtoWebandRTSPtoWebRTC.Development$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -e .
$ pip3 install -r requirements.txt

# Running tests
$ pytest

# Formatting and linting
$ pre-commit run --all-files
Package: rtspware
RTSPWareSome helper tools around RTSP protocol.InstallationFor all methods, firstly install the project via PIP:pipinstallrtspwareSave a video from streamYou need to installopenRTSP, for example
for Arch Linux it is available underlive-medialibrary:sudopacman-Slive-media
openRTSP--helpUsageSave a video from streamBasic call to save a video from RTSP stream to current directory with default
configuration:rtspware<url>--creds"<username> <password>"This will save incoming RTSP stream into mp4 files, with creating a new file
each hour.
Package: rtspwebviewer
DescriptionWeb server that displays an RTSP video stream.It is not a very efficient solution in terms of video transmission, but you will be able to see the video stream from all devices (Windows, Linux, Mac, iPhone, Android).Audio is not supported.Use caseYou have a security camera that streams inRTSP(e.g.Foscam) and want to make the video accessible via web.Install with pip$pipinstallrtspwebviewer--userInstall from source$gitclonehttps://github.com/luiscarlosgph/rtspwebviewer.git
$cdrtspwebviewer
$python3setup.pyinstallRunSyntax:$python-mrtspwebviewer.run-a<listening_ip_address>-p<port>-t<web_title>-w<password>-u<rtsp_address>You can specify up to four RTSP addresses, e.g.-u <rtsp_address> <rtsp_address> <rtsp_address> <rtsp_address>Example:$python-mrtspwebviewer.run-a0.0.0.0-p7654-t'RTSP Web Viewer'-wfancypassword-u'rtsp://user:pass@127.0.0.1:8669/unicast'In this case, you should accesshttp://127.0.0.1:7654/fancypasswordto see the website displaying the video stream.The IP address0.0.0.0means that the web server will listen in all your network interfaces.The password parameter is optional, if you do not specify one, you should accesshttp://127.0.0.1:7654to see the video.Run Docker containerIf you do not have Docker installed, you have an install guidehere.Build Docker image:$gitclonehttps://github.com/luiscarlosgph/rtspwebviewer.git
$cdrtspwebviewer
$dockerbuild-trtspwebviewerdockerDeploy container:$dockerrun-it--namertspwebviewer--net=host--restart=alwaysrtspwebviewer:latestpython-mrtspwebviewer.run-a<listening_address>-p<listening_port>-t<web_title>-w<web_password>-u<rtsp_address>&Access the camera view inhttp://<ip>:<port>/<web_password>If you do not know what to put on<listening_address>, use0.0.0.0(i.e. listen in all network interfaces).A password is not necessary.
Package: rtspwebviewer-ffmpeg
DescriptionWeb server that displays an RTSP video stream using ffmpeg as backend.Sound is not supported.Use as a Docker containerThis section explains how to use this repository with Docker.Build Docker container:$gitclonehttps://github.com/luiscarlosgph/rtspwebviewer-ffmpeg.git
$cdrtspwebviewer-ffmpeg/docker
$dockerbuild-trtspwebviewer-ffmpeg.Launch Docker container:$dockerrun--namertspwebviewer-ffmpeg--net=host-eRTSP=<rtsp_stream_address>-ePORT=<port>-eWEB_TITLE=<web_title>-eWEB_PWD=<password>rtspwebviewer-ffmpeg:latest&Options:RTSP: RTSP stream address.PORT: listening port for the web server that will play the camera video.WEB_TITLE: the name of the website that will be displayed by your web browser.WEB_PWD: the URL-based password to access the web player.Access the web player:http://127.0.0.1:<port>/<password>.Use as a standalone programThis sections explains how to use this repository without Docker, as a standalone Python program.Install dependencies:$sudoaptupdate
$sudoaptinstallffmpegInstallrtspwebviewer-ffmpeg:$gitclonehttps://github.com/luiscarlosgph/rtspwebviewer-ffmpeg.git
$cdrtspwebviewer-ffmpeg
$python3setup.pyinstallRunffmpegto convert theRTSPstream intoHLS:$ffmpeg-fflagsnobuffer-rtsp_transporttcp-i<rtsp_stream_address>-ccopy-hls_time2-hls_wrap10<path_to_m3u8_file>Run the web server:$python3-mrtspwebviewer_ffmpeg.run--address<listening_ip_address>--port<port>--title<web_title>--password<password>--m3u8<path_to_m3u8_file>Options:--address: Listening address, use0.0.0.0to listen in all interfaces (required).--port: TCP port to listen on (required).--title: website title (required).--password: password to append to the URL of the web server to access the web player (optional).---m3u8: path to them3u8file generated byffmpegin the previous step (required).Access the web viewer:http://<address>:<port>/<password>, e.g. for address0.0.0.0, port11931, and no password, accesshttp://127.0.0.1:11931.AuthorLuis C. Garcia-Peraza Herrera (luiscarlos.gph@gmail.com).LicenseThis repository is shared under anMIT License.
Package: rtsstat
rtsstatrtsstat. A mlf-core based .Free software: MITDocumentation:https://rtsstat.readthedocs.io.FeaturesTODOCreditsThis package was created withmlf-coreusingcookiecutter.ChangelogThis project adheres toSemantic Versioning.0.1.5 (2021-12-03)AddedFixedDependenciesDeprecated0.1.4 (2021-12-02)AddedFixedDependenciesDeprecated0.1.2 (2021-11-29)AddedFixedDependenciesDeprecated0.1.1 (2021-11-29)AddedFixedDependenciesDeprecated0.1.0 (2021-11-23)AddedCreated the project using mlf-coreFixedDependenciesDeprecated
Package: rtst
Real Time Speech Translator (rtst)Thertstis a Python package for comprehensive speech processing. It integrates speech recognition, language detection, translation, and text-to-speech functionalities into a single, easy-to-use function.FeaturesUnified function for speech recognition, language detection, translation, and speaking the translation.Support for multiple speech recognition services: Google, Azure, AWS, and Hugging Face.Automatic translation of recognized speech to English.Vocalization of translated text.InstallationInstall the package using pip:pipinstallrtstQuick StartHere’s how to usertstto recognize, translate, and vocalize speech:Single Function UsageThe package provides artstfunction, which takes care of the entire speech processing workflow:importrtst# Call the function with your preferred service and language codertst.process_speech(service="google")This function will:Capture speech from the microphone.Recognize the speech using the specified service.Detect the language of the recognized speech.Translate the speech to English if it's in a different language.Vocalize the translated text.Advanced UsageFor more advanced usage, refer to the package documentation. You can customize various aspects such as selecting different speech recognition services or handling different languages.LicenseMIT LicenseContributingContributions tortstare welcome. Please follow the guidelines provided in the repository for contributing.
Package: rt-stoppers-contrib
Additional stoppers for ray tune📝 DescriptionRay tuneis a tool for scalable hyperparameter tuning for machine learning applications.
For intelligent hyperperameter optimization, trials that are performing inadequately should be stopped early.
Part of this can be done by schedulers such asASHA, but additional explicit stopping criteria are useful as well.For example, a trial that has converged and is no longer producing better results, but is still outperforming all other running trials, will not be stopped by ASHA.
Ray tune currently only provides three different stoppers: a plateau stopper, a maximum iterations stopper, and a timeout stopper.This module aims to foster a greater variety of community maintained contributed stopping mechanisms.📦 Installationpip3installrt_stoppers_contrib🔥 Using itFor a full list of the stoppers offered, see the thedocumentation.Using any of the stoppers is as easy asfromrt_stoppers_contribimportNoImprovementTrialStoppertuner=tune.Tuner(tune.Trainable,tune_config=...,run_config=air.RunConfig(stop=NoImprovementTrialStopper("my_metric")))For more information, refer to thedocumentation.🧰 Development setuppip3installpre-commitcd<thisrepository>
pre-commitinstall
gitmoji-i💖 ContributingYour help is greatly appreciated! Suggestions, bug reports and feature requests are best opened asgithub issues. You are also very welcome to submit apull request!Bug reports and pull requests are credited with the help of theallcontributors bot.⚖️ LicenseSeeLICENSEfor more information. The logo is built from the officialray-tunelogo
together withthis stop sign(CC 4.0).
Package: rtta
RTTAPurposeThe purpose of this package is to implement a very low latency
incremental technical analysis toolkit.  Most technical analysis
tool-kits work in a "batch mode" where you hand them a blob of data and
in a pandas series and they return a series with the computed data.
Incremental updates for these require O(n) work.  There is one tool,talippthat is designed to support
incremental updates, but it is implemented in pure python and is a
little more than an order of magnitude slower than rtta.  On a 5995WX
talipp's exponential moving average requires 465ns; rtta's requires
36ns.  A bare python function call requires 35ns, so we're about as
fast as fast can be.InstallationpipinstallrttaUsageEach operator has a paramater fillna.  If set to false, nan values
will be returned until the operation is "populated".  If set to true,
best guesses will be returned until the operation is populated.So for example, our simple moving averageSMAIndicatorworks sort of like this:>>>importrtta.trendastrend>>>sma=trend.SMAIndicator(window=4,fillna=True)>>>sma.update(1)1>>>sma.update(2)1.5>>>sma.update(3)2>>>sma.update(2)2>>>sma.update(2)2.25<-The1fellofftheendoftheslidingwindowPerformanceIndicatorLatencySMA36nsEMA36nsMACD55ns
Package: rttapi
realtime-trains-api-python READMEA Python wrapper for theRealtime TrainsAPI v1.This library simplfies the process of making a call to the Realtime Trains API.
Requests to specific endpoints can be made from theRttApiclass, with the returned
JSON data parsed and wrapped into a data object.For now this is a literal mapping of the Realtime Trains API data structure into Python
data classes. Helper functionality may be added in future.PrerequisitesIn order to make requests from this library you must first sign up for a Realtime Trains
API account. You can do so atapi.rtt.io.Getting StartedIMPORTANT- Note that you must use
theAPI Auth Credentialsas displayed within your Realtime Trains API account,notthe credentials you use to log into the website.Create an instance of anRttApiobject using your Realtime Trains API auth credentials
like so:fromrttapi.apiimportRttApiapi=RttApi('rttapi_exampleuser','00112233aabbccdd')Request Station InformationTo request the list of upcoming departures from Clapham Junction station:departures=api.search_station_departures('CLJ')This will return aSearchResultobject with containing the station details and the list of
upcoming departures. You may either search using the three-letter CRS (computer reservation system)
code, or a longer TIPLOC (timing point location) code. You can find a station's CRS code by
searching on theNational Rail website.Arrivals can also be queried by using:arrivals=api.search_station_arrivals('CLJ')Which again returns aSearchResultobject.A detailed breakdown on the information returned can be found on the Realtime TrainsAPI documentation page.
This library mirrors the data returned by the API, albeit using Pythonesqueunderscore_caseproperties instead of thecamelCaseproperties returned by the API.Request Detailed Service InformationDetailed journey information for an individual service can be queried using:service_info=api.fetch_service_info_datetime(service_uid,service_date)where:service_uidis the unique identifier of the service obtained from theSearchResulte.g.8U09FWservice_datetimeis adatetime.dateobject representing the date on
which the service is due to depart.Alternatively, the year, month and day of departure can
be explicitly set (e.g. 27th March 2021) by using:service_info=api.fetch_service_info_ymd('8U09FW','2021','3','27')Both of these examples will return aServiceobject, which is explained in more detail
on the Realtime TrainsAPI documentation page.Other ExamplesA more detailed example on how to use this library can be found in mypyRailTimesproject.ThanksWith thanks to the Realtime Trains API team.