Saravanan666/pypi-org huggingface dataset:
Package: turn-by-turn
Turn-By-TurnThis package provides reading functionality for turn-by-turn BPM measurements data from different particle accelerators.
It also provides writing functionality in theLHC's own SDDS format, through oursddspackage.
Files are read into a custom-madeTbtDatadataclass encompassing the relevant information.See theAPI documentationfor details.InstallingInstallation is easily done viapip:python-mpipinstallturn_by_turnOne can also install in acondaenvironment via theconda-forgechannel with:condainstall-cconda-forgeturn_by_turnExample UsageThe package is imported asturn_by_turn, and exports top-level functions for reading and writing:importturn_by_turnastbt# Loading a file is simple and returns a custom dataclass named TbtDatadata:tbt.TbtData=tbt.read("Beam2@BunchTurn@2018_12_02@20_08_49_739.sdds",datatype="lhc")# Easily access relevant information from the loaded data: transverse data, measurement date,# number of turns, bunches and IDs of the recorded bunchesfirst_bunch_transverse_positions:tbt.TransverseData=data.matrices[0]measurement_date=data.date# a datetime.datetime object# Transverse positions are recorded as pandas DataFramesfirst_bunch_x=first_bunch_transverse_positions.X.copy()first_bunch_y=first_bunch_transverse_positions.Y.copy()# Do any operations with these as you usually do with pandasfirst_bunch_mean_x=first_bunch_x.mean()# Average over all bunches/particles at all used BPMs from the measurementaveraged_tbt:tbt.TbtData=tbt.utils.generate_average_tbtdata(data)# Writing out to disk (in the LHC's SDDS format) is simple too, potentially with added noisetbt.write("path_to_output.sdds",averaged_tbt,noise=1e-5)LicenseThis project is licensed under theMIT License- see theLICENSEfile for details.
Package: turn-ephemeral-credentials
TURN Ephemeral Credentials - v1.0.1Generate time limited, i.e. ephemeral, long term credentials to authenticate against a TURN server. Thedefaultduration for the validity of the credentials is set toone dayas recommended inA REST API For Access To TURN Services. The same document describes how to generate theusernameandpasswordhere.StackPython 3.8.10 on Ubuntu 20.04.2 LTSInstallationFrom PyPI(venv)$pipinstallturn-ephemeral-credentialsFrom GitHub(venv)$pipinstallgit+https://github.com/p4irin/turn_ephemeral_credentials.gitUsagefromturn_ephemeral_credentialsimportgenerate# Generate a username and use the default ttl of one daycredentials=generate(shared_secret='A shared secret with a TURN server')# Pass a username and use the default ttlcredentials=generate(username='username',shared_secret='A shared secret with a TURN server')# Generate a username and use a ttl of half a daycredentials=generate(shared_secret='A shared secret with a TURN server',ttl=43200)ReferenceA REST API For Access To TURN ServicescoturnRFC 5766. Traversal Using Relays around NAT (TURN):Relay Extensions to Session Traversal Utilities for NAT (STUN)RFC 5389, Session Traversal Utilities for NAT (STUN)
Package: turning-function
Turning FunctionThis module contains Python bindings to a C-implementation of"An efficiently computable metric for comparing polygonal shapes"(Arkin et al., 1991).Installationpip install turning_functionUsageCallturning_function.distance(shape_a, shape_b, brute_force_updates=False)whereshape_a/shape_bare Nx2-shaped lists of points (not numpy arrays). This function will return four values:distance, theta, ht_err, slope_err. The error terms will be zero ifbrute_force_updatesisFalse. Note that there is a maximum number of points (turning_function.max_points) a shape can hold.importturning_functionimportrandomdefrandom_shape(num_points:int):return[(random.random(),random.random())for_inrange(num_points)]shape_a=random_shape(turning_function.max_points)shape_b=random_shape(42)distance,theta,ht_err,slope_err=turning_function.distance(shape_a,shape_b,brute_force_updates=False)print('Distance: ',distance)LicenseThe original source has this disclaimer:Implementation (c) Eugene K. Ressler 91, 92  This source may be freely distributed and used for non-commercial purposes, so long as this comment is attached to any code copied or derived from it.
Package: turnip
turnipturnip is a flexible and scalable Git server suite written in Python
using Twisted.The various servers provide customisable virtual hosting, with flexible
authentication and authorisation, and individual horizontal scaling from
the frontend to the storage layer.None of the Python interfaces here should be considered stable.Architectureturnip’s architecture is designed to maximise simplicity, scalability
and robustness. Each server provides roughly one service, and an
installation need only run the servers that it desires. Most servers
eschew local state to ease horizontal scaling, and those that do have
local state can replicate and/or shard it.There are two separate server stacks: pack and API. The pack stack
communicates with Git clients via the pack protocol (git://), smart
HTTP, or smart SSH. The HTTP and SSH frontends unwrap the tunneled pack
protocol, and forward it onto the midends as a normal pack protocol
connection. The separate HTTP API stack provides a programmatic remote
interface to high-level read and write operations on the repositoriesFrontends:PackSmart HTTPSmart SSHHTTP APIMidends:Pack virtualisationAPI virtualisationBackends:PackAPIInternal protocolturnip uses an extension of the Git pack protocol for most communication
between its servers. The only change is that turnip requests can specify
arbitrary named parameters, not just a hostname.The relevant part of the Git pack protocol’s git-proto-request is
represented in ABNF as follows:git-proto-request = request-command SP pathname NUL [ host-parameter NUL ]
host-parameter = "host=" hostname [ ":" port ]turnip-proto-request alters it to this:turnip-proto-request = request-command SP pathname NUL \*( param NUL )
param = param-name "=" param-value
param-name = \*( %x01-3C / %x3E-FF ) ; exclude NUL and =
param-value = \*%x01-FF ; exclude NULThe only additional parameters implemented today are
‘turnip-stateless-rpc’ and ‘turnip-advertise-refs’, which are used by
the smart HTTP server to proxy to the standard pack protocol.DevelopmentSetupCreate a trusty container (optional):sudo lxc-create -t ubuntu -n turnip.trusty -- -r trusty -a amd64 -b $USERRun the following:sudo add-apt-repository ppa:launchpad/ppa
sudo apt-get update
cat system-dependencies.txt | sudo xargs apt-get install -y --no-install-recommendsRunningPack smart-http/ssh services can be started with:python turnipserver.pyThe HTTP API can be started with:make run-apiDeploymentTurnip is deployed with the turnip juju charm, available from:git clonehttps://git.launchpad.net/~canonical-launchpad-branches/charms/+source/turnipTo deploy with the local provider:juju switch local
juju bootstrap
juju deploy –repository=/path/to/loca/charm/repo/root local:trusty/turnipNEWS for turnip0.1.1 (2015-06-11)Add a merge detection API.0.1 (2015-06-02)Initial release.
Package: turnitin-cli
Turnitin-CLIA commandline interface tohttps://www.turnitin.comUsagepython -m turnitin_cliScreenshotsCoursesAssignmentsDownloading an AssignmentSubmitting an AssignmentSetuppip install turnitin-cliDefault keybindings:KeyFunction,Menu down.Menu upqQuitThese keybindings can be changed in the configuration file located at$HOME/tiiconfig.ini.
While submitting, one can type!ls {{folder}}to list the contents of the folder.Features to implement:A backwards button for historyDisplaying submission metadataAdding default filenames for downloadsAdding a file browser
Package: turnmp4
turnmp4Python Boilerplate contains all the boilerplate you need to create a Python package.Free software: MIT licenseDocumentation:https://turnmp4.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-10-10)First release on PyPI.
Package: turn-python
turn-pythonDocumentation LinksTurn API documentationWhatsApp Business APIUsageGet an API token fromTurn(currently only tokens are supported, not username / passwords)Add this as an environment variable, or pass in to the turn client$exportTURN_AUTH_TOKEN={yourtoken}UsagefromturnimportTurnClientturn_client=TurnClient(token={optionallyaddyourtokenhere})# Get a user's whatsapp idwa_id=turn_client.contacts.get_whatsapp_id('123456')# Send a messageturn_client.messages.send_text(wa_id,'Hello')
Package: turnsole
turnsoleA series of convenience functions make your machine learning project easier安装方法Latest releasepip install turnsole项目暂不开源，因此该安装方法暂时不保证能用Developer modepip install -e .快速上手PDF 操作智能 PDF 文件转图片智能的把 PDF 文件里面的插图找出来，例如没有插图就将整页 PDF 截图下来，也能智能的将碎图拼接在一起Example:# pdf_path 表示 PDF 文件的路径，输出 images 按页码进行汇总输出
images = turnsole.pdf_to_images(pdf_path)图像操作工具箱base64_to_bgr / bgr_to_base64图像和 base64 互相转换Example:image = turnsole.base64_to_bgr(img64)
img64 = turnsole.bgr_to_base64(image)image_crop根据 bbox 在 image 上进行切片，如果指定 perspective 为 True 则切片方式为透视变换（可以切旋转目标）Example:im_slice_no_perspective = turnsole.image_crop(image, bbox)
im_slice = turnsole.image_crop(image, bbox, perspective=True)Output:OCR 引擎模块OCR 引擎指的是一系列跟 OCR 相关的底层模型，我们提供了这些模型的函数式调用接口和标准 APIADC :tada:DBNet :tada:CRNN :tada:Object Detector :tada:Signature Detector :tada:免费试用importrequestsresults=requests.post(url=r'http://139.196.149.46:9001/gen_ocr',files={'file':open(file_path,'rb')}).json()ocr_results=results['ocr_results']Prerequisites由于 OCR 引擎模块依赖于底层神经网络模型，因此需要先用 Docker 挂载底层神经网络模型首先把 ./model_repository 文件夹和里面的模型放到项目根目录下再启动，如果没有相关模型找lvkui要使用起来非常简单，你只需要启动对应的 Docker 容器即可dockerrun--gpus="device=0"--rm-p8000:8000-p8001:8001-p8002:8002-v$PWD/model_repository:/modelsnvcr.io/nvidia/tritonserver:21.10-py3tritonserver--model-repository=/modelsADC通用文件摆正算法from turnsole.ocr_engine import angle_detector

image_rotated, direction = angle_detector.ADC(image, fine_degree=False)DBNet通用文字检测算法from turnsole.ocr_engine import text_detector

boxes = text_detector.predict(image)CRNN通用文字识别算法from turnsole.ocr_engine import text_recognizer

ocr_result, ocr_time = text_recognizer.predict_batch(image, boxes)Object Detector通用文件检测算法from turnsole.ocr_engine import object_detector

object_list = object_detector.process(image)Signature Detector签字盖章二维码检测算法from turnsole.ocr_engine import signature_detector

signature_list = signature_detector.process(image)标准 APIpython api/ocr_engine_server.py
Package: turnstile-codevalidator
Turnstile-CodevalidatorCodevalidator extensions forturnstileCheckThecodevalidatorcheck runscodevalidatoron added and modified files.By default this check uses your general codevalidator configuration, but you can also provide a custom codevalidatorc by
adding it as.codevalidatorcto your repository root.CommandTo check if staged files follow the codevalidator rules do:$ turnstile codevalidatorIf you want codevalidator to try to fix the code style do:$ turnstile codevalidator –fixPlease note that any change will be left unstaged and need to be added withgit addand anyunstaged change to
staged files will be overwritten.LicenseCopyright 2015 Zalando SELicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: turnstile-specification
Turnstile-CodevalidatorCodevalidator extensions forturnstileCheckThecodevalidatorcheck runscodevalidatoron added and modified files.By default this check uses your general codevalidator configuration, but you can also provide a custom codevalidatorc by
adding it as.codevalidatorcto your repository root.CommandTo check if staged files follow the codevalidator rules do:$ turnstile codevalidatorIf you want codevalidator to try to fix the code style do:$ turnstile codevalidator –fixPlease note that any change will be left unstaged and need to be added withgit addand anyunstaged change to
staged files will be overwritten.LicenseCopyright 2015 Zalando SELicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: turp
Transurethral Resection Specimen CalculatorThis package is designed to calculate the range of cassettes needed for a given specimen weight.To install the package, use pip:pip install turpTo use, simply instantiate a TurpCounter object with the specimen weight.turp = TurpCounter(24)

print(
    turp.weight,
    turp.num_cassette_low_end,
    turp.num_cassette_high_end,
    sep='\n'
)The turp object attributes can be accessed directly or you can simply print the turp object to get the values.print(turp)


TurpCounter(specimen_weight=24, num_cassette_low_end=9, num_cassette_high_end=11)
Package: turq
Turq is a small HTTP server that can be scripted in a Python-based language.
Use it to set upmock HTTP resourcesthat respond with the status, headers,
and body of your choosing. Turq is designed for quick interactive testing,
but can be used in automated scenarios as well.Lets you do things like“RESTful API” resource with cross-origin support:if route('/v1/products/:product_id'):
    if GET or HEAD:
        json({'id': product_id, 'inStock': True})
    elif PUT:
        json(request.json)      # As if we saved it
    elif DELETE:
        status(204)
    cors()      # Handles preflight requests automaticallyRedirect to anindex.php, which serves a gzipped, cacheable page
after 3 seconds of “loading”:if path == '/':
    redirect('/index.php')

if path == '/index.php':
    sleep(3)
    html()
    gzip()
    header('Cache-Control', 'max-age=3600')Streamserver-sent events:header('Content-Type', 'text/event-stream')
for i in range(9000):
    sleep(1)
    chunk('data: event number %d\r\n\r\n' % i)Built-in editorYou don’t even need to create any files, just use the built-in Web editor:Get it nowIn any Python 3.4+ environment:$ pip3 install turq
$ turqRead the docsfor more.ThanksBrowserStackhave kindly provided a free subscription for testing Turq.
Package: turta-iothat3
Turta IoT HAT 3 for Raspberry PiIoT HAT is a Raspberry Pi I/O board which combines security and connectivity.##FeaturesSecurely connects to the cloud services via Cryptographic co-processor.Detects theft attempts.Senses ambient & RGB light, proximity, hand gestures, 3D acceleration, 3D tilt, and board temperature.Controls home electronics via IR remote transmitter.Carries 2Ch solid-state relays, 2Ch photocoupler inputs.Has Grove compatible I2C, UART, digital and analog ports.4Ch single-ended or 2Ch differential analog inputs are available.Carries a large user button and a piezo sounder.ID EEPROM for Raspberry Pi HAT specification compliance.##Documentation
Visitdocs.turta.iofor documentation.
Package: turta-lorahat
Turta LoRa HAT for Raspberry PiLoRa HAT is a long-range communication transceiver for Raspberry Pi.FeaturesCarries LoRa Transceiver module with onboard LoRaWAN Protocol Stack.Securely connects to the cloud services via Cryptographic co-processor.Detects theft attempts via accel-tilt sensor.Has Grove compatible I2C, digital and analog ports.4Ch single-ended or 2Ch differential analog inputs are available.Three LEDs for status indication.Stackable design; most of the GPIO pins are free.ID EEPROM for Raspberry Pi HAT specification compliance.Raspberry Pi ConfigurationYou should enable SPI and I2C from the Raspberry Pi's configuration. To do so, type 'sudo raspi-config' to the terminal, then go to 'Interfacing Options' and enable both SPI and I2C.You should swap the serial ports of the Raspberry Pi. Set "/dev/ttyAMA0" to 'serial0'. Also, disable the console on 'serial0'. For a how-to, visit our documentation atdocs.turta.io.DocumentationVisitdocs.turta.iofor documentation.
Package: turta-modular
Turta Modular System for Raspberry PiTurta Modular System is a plug-and-play sensor interface.FeaturesAccel Tilt ModuleAir Quality ModuleALS (Ambient Light) Gesture ModuleBuzzer Button ModuleDIY ModuleEnvironmental ModuleIR Remote ModulePhotocoupler ModulePIR Motion Detect ModuleSolid State Relay ModuleTemp RH ModuleDocumentationVisitdocs.turta.iofor documentation.
Package: turta-protohat
Turta Proto HAT for Raspberry PiProto HAT is a prototyping board with on-board ADC for Raspberry Pi.Features5x22 Free pads.2x22 Columns breadboard style pads.13 GPIO, I2C, SPI, UART (Serial), and 5V pads on the top row.2 Rows 3.3V, 2 Rows GND pads.Additional I2C Pads on the breadboard area.Analog-to-Digital Converter over the SPI CS0.4Ch single-ended or 2Ch differential analog inputs are available.Board temperature reading on the ADC IC.Slot for Raspberry Pi's CSI Camera Port.Stackable Raspberry Pi header.ID EEPROM for Raspberry Pi HAT specification compliance.Pads are numbered for easy content creation.DocumentationVisitdocs.turta.iofor documentation.
Package: turta-rcdriverhat
Turta RC Driver HAT for Raspberry PiRC Driver HAT is a Raspberry Pi interface board for autonomous RC vehicles.##Features4Ch PWM output for RC servo or ESC.4Ch analog input for distance sensors.4Ch PWM decoder for manual remote control.5Ch MOSFETs for LED lighting.3D Accelerometer and gyroscope.2Ch tachometer input for measuring speed and direction.Onboard fan for cooling the Raspberry Pi's CPU.2-6 Cell Li-Po compatible battery monitoring.High-efficiency switching power supply for back-powering the Raspberry Pi.Grove compatible I2C and UART ports.ID EEPROM for Raspberry Pi HAT specification compliance.##Documentation
Visitdocs.turta.iofor documentation.
Package: turta-relayhat2
Turta Relay HAT 2 for Raspberry PiRelay HAT is a stackable, high-quality relay module for Raspberry Pi.Features5Ch OMRON 10A Relays.Stackable design.Only uses I2C pins.Grove compatible I2C port.Optical isolation and isolation slot.Internal or external power input option.Power filter.ID EEPROM for Raspberry Pi HAT specification compliance.DocumentationVisitdocs.turta.iofor documentation.
Package: turta-relayuhat
Turta Relay uHAT for Raspberry Pi ZeroRelay uHAT is a two-channel relay module for Raspberry Pi Zero.This repository includes libraries and samples of Relay uHAT.Features2Ch 10A Relays. (We recommend max 5A per channel.)Only uses two GPIO pins.Optical isolation and isolation slot.ID EEPROM for Raspberry Pi HAT specification compliance.DocumentationVisitdocs.turta.iofor documentation.
Package: turta-sensoruhat
Turta Sensor uHAT for Raspberry Pi ZeroSensor uHAT is a sensor and IR control board for Raspberry Pi Zero.This repository includes libraries, samples, and component datasheets of Sensor uHAT.FeaturesMeasures temperature, relative humidity, air pressure, and calculates altitude via Bosch Sensortec BME280 environmental sensor.Detects movement and theft attempts via accelerometer and tilt sensor NXP MMA8491Q.Senses ambient light and UV Index via Silicon Labs SI1133 sensor.Controls home electronics via IR remote transmitter.Sensor uHAT has Grove System compatible I2C, UART, and digital ports.Carries ID EEPROM for Raspberry Pi HAT specification compliance.Raspberry Pi ConfigurationYou should enable I2C from the Raspberry Pi's configuration. To do so, type 'sudo raspi-config' to the terminal, then go to 'Interfacing Options' and enable the I2C.DocumentationVisitdocs.turta.iofor documentation.
Package: turtl-backup
Turtl BackupThis program permits to download a whole turtl account for offline
backuping, and optionally decrypt the backup file, then optionally
export the decrypted file to markdown.InstallationYou can installturtl-backupusing pip:pip3installturtl-backupUsageThere's a graphical user interface:turtl-backup-guiAnd a command line tool, here's its usage:usage:turtl-backup[-h]{backup,get_auth_token,export}...

Backupaturtlaccount.

positionalarguments:{backup,get_auth_token,export}Backupcanbedonewithalogin/passwordpairorusinganauthtoken.backupBackupaturtlaccount(withapasswordoranauthtoken)get_auth_tokenGetaturtlauthtokenexportDecryptandexportallnotesinthegivendirectory.

optionalarguments:
-h,--helpshowthishelpmessageandexitSo typically to create an encrypted backup:$turtl-backupbackuphttps://api.framanotes.orgbackup.json
username:testpassword:To decrypt a backup:$turtl-backupdecryptbackup.jsonbackup/
username:testpassword:To export a decrypted backup to markdown:$turtl-backupexportbackup/backup-md/
$catbackup-md/Hello.md
type:text
title:Hello
tags:[]url:None
username:None
password:None

worldFAQIs it possible to setup a cron to backup my notes without storing my
login/password in plaintext in my crontab?Yes, the turtlauth_tokenis enough to backup an account.  You can
get your auth token usingturtl-backup get_auth_token, but still
be carefull not to leak it. Then useturtl-backup backup --auth-token YOUR_AUTH_TOKEN.Is it possible to decrypt my notes using myauth_token?No, you'll need your login and password again.
Package: turtle2img
This is a fork of WojciechMula/canvas2svg which uses svglib, reportlab and
Pillow to convert things drawn in Python’s turtle library to png or jpg files.The list of supported items is the same as canvas2svg.Supported items:lineslines with arrowspolygonssmoothed lines and polygonsovals (i.e. circle & ellipse)arcs (all kind, i.e. ARC, CHORD, PIESLICE)rectanglestext (unwrappedonly i.e. attribute width = 0)Unsupported items:imagesbitmapswindowsStipples are not applied.Public functionssave_png(filepath: str, margin=10) -> None:filepath: The filepath to save the output image tomargin: The number of pixels around the bounding box of image elements to includesave_jpg(filepath: str, margin=10) -> None:filepath: The filepath to save the output image tomargin: The number of pixels around the bounding box of image elements to includeOriginal repository:https://github.com/WojciechMula/canvas2svg
Package: turtleBeads
turtleBeadsA library that provides some convenient functions for drawing shapes
using Python's built-in turtle graphics. These shapes are drawn centered
on the cursor, and are thus analogous to beads on a string.It also provides a few different convenience functions likeleapandhopwhich help move around without drawing, and augments the built-in
turtle functions causing them to print out a description of what they
draw, with functionsdescribeAsandendDescriptionallowing for
custom text descriptions of complex shapes.Designed by Peter Mawhorter.DependenciesNone.InstallingTo install from PyPI, run the following command on the command-line:python-mpipinstallturtleBeadsOnce it's installed, you can run the built-in examples using:python-mturtleBeadsDocumentationSeethe
documentationfor more details on how to use it and what each function does.Changelog1.1.2: Added better error checking fordrawDot. Flipped order of
changelog.1.1.1: Improved printed output for dots.1.1.0:IntroducedfontandfixedWidthFontfunctions to allow font
selection for drawing text.IntroduceddrawTextInBoxandfontSizeForTextInBoxfor
auto-sizing of fixed-width text.IntroduceddrawPathfor drawing paths possibly with arrows on the
ends.Fixed a bug where usingdescribeAsand thendrawTextwould
result in aRecursionError.MadedescribeAs/endDescriptionmaintain a stack of descriptions
so that sub-objects trying to describe themselves doesn't end the
description of a complex object (and their descriptions are
suppressed).<1.1.0: Didn't keep a changelog.