Saravanan666/pypi-org huggingface dataset:
Package: touchwatch
TouchwatchTouchwatch is a small Django app to watch a directory for changes
and if any found, touch a file (to trigger a server restart).Quick startAdd “touchwatch” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'touchwatch',
]Include the polls URLconf in your project urls.py like this:from touchwatch.views import wsgitime
if settings.DEBUG:
    urlpatterns += path('wt/', wsgitime, name='wsgitime'),Include the template at the bottom of your base.html file{% include “touchwatch/js.html” %}4.. Set the path of the file you want to touch in your settings file OR set the command you want to be runTOUCHWATCH_PATH = “%s/uwsgi.ini” % APP_DIRTOUCHWATCH_COMMAND = “ps -ef | grep ‘gunicorn’ | grep -v grep | awk ‘{print $2}’ | xargs -r kill -HUP 2> /dev/null”5.. Set the path of the folder you want to watch in your settings fileTOUCHWATCH_FOLDER = APP_DIRHow it worksFrom the commandline run the management command ‘touchwatch’:python manage.py touchwatchThis will then sit and watch for changes to the file defined in TOUCHWATCH_FOLDER, when changes are seen
then the file defined in TOUCHWATCH_PATH will be touched.  A small piece of JS runs on all pages on the
browser which looks for a change to the touched time of the defined file.  When the time changes,
the JS flashes the background colour and refreshes the page.
Package: touchworks
Allscripts Touchworks Platform API Client for PythonInstallationInstall fromPyPIusingpip$pipinstalltouchworksResourcesReportissueson GitHubQuick startimporttouchworkstw=TouchWorks('<url'>,'<your svc_username>','<your svc_password','<your app_name>')#optional parameter : cache_token=True#optional parameter: username : ehr_username# search for patients whose name matches F*patients=tw.search_patients(search_criteria='J*')patient_id=patients[0]['ID']#find patient activitiesactivities=tw.get_patient_activities(patient_id)#find all encounterscilinical_summary=tw.get_clinical_summary(patient_id)# get schedulesschedules=tw.get_schedule(start_date='10/4/2015)schedules=tw.get_schedule(start_date='10/4/2015, end_date='10/12/2015')Authentication and AuthorizationPlease seehttp://developer.allscripts.com/for more informationimporttouchworkstw=TouchWorks('<url'>,'<your svc_username>','<your svc_password','<your app_name>','<ehr username>)APIs Availablesave_notesearch_patientsget_document_typeget_patientget_encounterget_dictionaryfind_document_type_by_nameget_encounter_list_for_patientsave_unstructured_documentset_patient_location_and_statusget_clinical_summaryget_patient_activityset_patient_medhx_flagget_changes_patientsget_patients_locationsget_patient_pharmaciesget_user_idget_providerget_provider_infoget_providersget_task_listsave_message_from_pat_portalsave_task_commentget_tasksave_task_statussearch_task_viewssave_taskget_task_commentsget_delegatesget_task_list_by_viewget_scheduleget_documentsError HandingAll supported APIs right now raise an exception of type TouchWorksException where the string
will contain the error received from the TouchWorks WebService APIs.example 1: service username or password is invalid:touchworks.api.http.TouchWorksException:unabletoacquirethetokenfromwebserviceexample 2: SaveNot action failed
.. code-block:: pythontouchworks.api.http.TouchWorksException: magic json api failed : Error converting data type varchar to numeric.Loggingin order to enable debugging user can set the logging level to DEBUG.when DEBUG is enabled
the library will print out each request and response in the logs.Developersbuild instructions:makeflake8 is used to ensure that there are no syntax issues with the code. if you are
contributing to the code base please make sure make is passing before you push the changes
to the repository.testcreate a config.json file which contains these keys{"server":"http://somesandbox.com/Unity/UnityService.svc","appname":"Test App Name assigned to you","serviceusername":"Test Service User assigned to you","servicepassword":"Test Service Password assigned to you","ehr_username":"username that works on the sandbox","ehr_password":"password which would work on the sandbox"}and thenmaketestsSupported Python VersionsThis library aims to support and is tested against these Python versions:2.7.63.4.0PyPyLicenseSeeLICENSEfor details.
Package: toughbt
# toughbttoughbt 是一个基于Python/twisted开发的 radius 服务性能测试工具。## 运行环境- Linux/Mac OSX/BSD- ZMQ- Python 2.7/PyPy- easy_install/pip## 安装pip install toughbt## 使用说明$ pypy trbctl -husage: trbctl [-h] [-auth] [-acct] [-m] [-w] [-s SERVER] [-P PORT] [-e SECRET][-u USERNAME] [-p PASSWORD] [-n REQUESTS] [-c CONCURRENCY] [-v][-t TIMEOUT] [-f FORK] [-i INTERVAL] [-r RATE] [-conf CONF]optional arguments:-h, --help            show this help message and exit-auth, --auth         Run radius auth test-acct, --acct         Run radius acct test-m, --master          Run benchmark master-w, --worker          Run benchmark worker-s SERVER, --server SERVERRadius server address-P PORT, --port PORT  Radius server auth port or acct port-e SECRET, --secret SECRETRadius testing share secret-u USERNAME, --username USERNAMERadius testing username-p PASSWORD, --password PASSWORDRadius testing password-n REQUESTS, --requests REQUESTSNumber of requests to perform-c CONCURRENCY, --concurrency CONCURRENCYNumber of multiple requests to make at a time-v, --verbosity       How much troubleshooting info to print-t TIMEOUT, --timeout TIMEOUTSeconds to max. wait for all response-f FORK, --fork FORK  Fork worker process nums, default 1-i INTERVAL, --interval INTERVALStat data interval, default 2 sec-r RATE, --rate RATE  Max send message rate , default 5000 per process-conf CONF, --conf CONFRadius testing config file## 示例$ trbctl --auth -m -u trbtest -p 888888 -n 10000 -c 100 -f 2 -i 5 -r 500 -t 1000benckmark worker created! master pid - 78933, worker pid - 78937benckmark worker created! master pid - 78933, worker pid - 78938write worker 78938 log into /tmp/trbctl-worker-1.logwrite worker 78937 log into /tmp/trbctl-worker-0.log..................................................................------------------ radius auth benchmark statistics result ------------------------ Benchmark params-- Client platform                   :  Darwin-15.3.0-x86_64-i386-64bit, x86_64- Python implement, version         :  PyPy, 2.7.9- Radius server  address            :  127.0.0.1- Radius Server auth port           :  1812- Raduius share secret              :  secret- Auth Request total                :  10000- Concurrency level                 :  100- Worker Process num                :  2- All Requests timeout              :  1000 sec- Stat data interval                :  5 sec- Send request rate                 :  500/sec-- Time data statistics-- Current stat datetime             :  Sat Mar 19 19:09:54 2016- Current sent request              :  10000- Current received response         :  10000- Current accepts response          :  9992- Current rejects response          :  8- Current error response            :  0- Current requests per second       :  373.312449622, cast 3.75824594498 sec- Current max requests per second   :  502.08186488, cast 5.01711010933 sec- Current time per request          :  2.67872127226 ms- Current min time per request      :  1.99170707 ms- Current max time per request      :  35.0688480669 ms- Current Cast total seconds        :  28.886922121 sec---------------------------------------------------------------------------------
Package: toughcli
# toughclitoughcli 是一个toughradius以及相关软件的工具包。## 运行环境Linux/Mac OSX/BSDPython 2.7/PyPyClick## 安装easy_install toughcli 或者 pip install toughcli## 使用说明查看帮助：toughcli –helpUsage: toughcli [OPTIONS] COMMAND [ARGS]…Options:–version
–help     Show this message and exit.Commands:docker
mysql
radius
redis
upgrade查看服务器信息：$ toughcli –info
Linux distribution: CentOS Linux,7.2.1511,Core
Cli version toughcli: 0.0.7
Env_home: /root
Env_path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin
Server platform: Linux-3.10.0-327.4.5.el7.x86_64-x86_64-with-centos-7.2.1511-Core,x86_64
Python version: CPython,2.7.5
Docker version 1.8.2-el7.centos, build a01dc02/1.8.2
docker-compose version 1.5.2, build 7240ff3
Package: toughguy
# toughbttoughbt 是一个基于Python/twisted开发的 radius 服务性能测试工具。## 运行环境- Linux/Mac OSX/BSD- ZMQ- Python 2.7/PyPy- easy_install/pip## 安装pip install toughbt## 使用说明$ trbctl -husage: trbctl [-h] [-auth] [-acct] [-m] [-w] [-s SERVER] [-P PORT] [-e SECRET][-u USERNAME] [-p PASSWORD] [-n REQUESTS] [-c CONCURRENCY] [-v][-t TIMEOUT] [-f FORK] [-i INTERVAL] [-r RATE] [-conf CONF]optional arguments:-h, --help            show this help message and exit-auth, --auth         Run radius auth test-acct, --acct         Run radius acct test-m, --master          Run benchmark master-w, --worker          Run benchmark worker-s SERVER, --server SERVERRadius server address-P PORT, --port PORT  Radius server auth port or acct port-e SECRET, --secret SECRETRadius testing share secret-u USERNAME, --username USERNAMERadius testing username-p PASSWORD, --password PASSWORDRadius testing password-n REQUESTS, --requests REQUESTSNumber of requests to perform-c CONCURRENCY, --concurrency CONCURRENCYNumber of multiple requests to make at a time-v, --verbosity       How much troubleshooting info to print-t TIMEOUT, --timeout TIMEOUTSeconds to max. wait for all response-f FORK, --fork FORK  Fork worker process nums, default 1-i INTERVAL, --interval INTERVALStat data interval, default 2 sec-r RATE, --rate RATE  Max send message rate , default 5000 per process-conf CONF, --conf CONFRadius testing config file## 示例$ trbctl --auth -m -u trbtest -p 888888 -n 10000 -c 100 -f 2 -i 5 -r 500 -t 1000benckmark worker created! master pid - 78933, worker pid - 78937benckmark worker created! master pid - 78933, worker pid - 78938write worker 78938 log into /tmp/trbctl-worker-1.logwrite worker 78937 log into /tmp/trbctl-worker-0.log..................................................................------------------ radius auth benchmark statistics result ------------------------ Benchmark params-- Client platform                   :  Darwin-15.3.0-x86_64-i386-64bit, x86_64- Python implement, version         :  PyPy, 2.7.9- Radius server  address            :  127.0.0.1- Radius Server auth port           :  1812- Raduius share secret              :  secret- Auth Request total                :  10000- Concurrency level                 :  100- Worker Process num                :  2- All Requests timeout              :  1000 sec- Stat data interval                :  5 sec- Send request rate                 :  500/sec-- Time data statistics-- Current stat datetime             :  Sat Mar 19 19:09:54 2016- Current sent request              :  10000- Current received response         :  10000- Current accepts response          :  9992- Current rejects response          :  8- Current error response            :  0- Current requests per second       :  373.312449622, cast 3.75824594498 sec- Current max requests per second   :  502.08186488, cast 5.01711010933 sec- Current time per request          :  2.67872127226 ms- Current min time per request      :  1.99170707 ms- Current max time per request      :  35.0688480669 ms- Current Cast total seconds        :  28.886922121 sec---------------------------------------------------------------------------------
Package: toughradius
# TOUGHRADIUS[![Build Status](https://travis-ci.org/talkincode/ToughRADIUS.svg?branch=master)](https://travis-ci.org/talkincode/ToughRADIUS)ToughRADIUS is a Radius server software developed based on Python, which implements the standard Radius protocol and supports the extension of Radius protocol.ToughRADIUS can be understood as a Radius middleware, and it does not implement all of the business functions. But it’s easy to Easier to extended development.ToughRADIUS is similar to freeRADIUS, But it’s simpler to use, Easier to extended development.# Quick start## InstallFirst of all, you need a Python runtime environment and install the pip package manage tool> pip install toughradius## StartupStart authentication, accounting listen service>> radiusddebug mode>> radiusd -xfor help>> radiusd –help
Package: toughsearch
Tough SearchInstall$gitclonehttps://github.com/toughsearch/tough.git
$cdtough
$pip3install-rrequirements.txtConfigure$cpconf-example.yamlconf.yamlAnd then adjustconf.yamlaccording to your file structure and date format.Create index$python3-mtoughreindex<index_name>SearchLet's say you want to find all requests to URL/foobarthat came from March 5 to March 7, 2019 in your nginx logs:$python3-mtoughsearch-df2019-03-05-dt2019-03-07'/foobar'<index_name>Or, maybe, find/foobarand/foobazwith regex/fooba[rz]:$python3-mtoughsearch-df2019-03-05-dt2019-03-07-e'/fooba[rz]'<index_name>
Package: touhou-ura
Touhou-uraPython tool to get or/and download data from touhou-ura threads (futaba).Installationpipinstalltouhou-uraRequirements:requests,tqdm,beautifulsoup4Usagefromtouhou_uraimportThUrath_ura=ThUra()Methodsthreads_all()Get all threads currently shows. [Return: list]Optional params:sort: (1=latest, 2=oldest, 3=comments(desc), 4=comments(asc), 6/8=no idea)x: Rows to return (default: 20)y: Columns to return (default: 10)l: Title length (default: 4)thumbnail_size: Size of thumbnail (0~6, default: 6)get_thread_images(id)Get image links(src) from a thread. [Return: list]Params:id: Thread ID (You can find it on the url)https://dec.2chan.net/55/res/{THREAD_ID}.htmdownload_images(id, directory=None, custom=False)Download images form a thread. By default, images will be saved on your desktop in 'touhou_ura/images' (Creates if does not exist)Params:id: Thread IDdirectory: Directory you want to save (optional).custom: (optional)Example:importosfromtouhou_uraimportThUrath_ura=ThUra()directory=os.path.expanduser("~/Desktop/some_folder")th_ura.download_images(id,directory)# Will be saved at ~Desktop/some_folder/touhou_ura/images/{id}th_ura.download_images(id,directory,True)# Will be saved at ~Desktop/some_folderdownload_archive(id, directory=None, custom=False)Download archive of a thread (html, css & images). By default, archives will be saved on your desktop in 'touhou_ura/archives' (Creates if does not exist)Params:id: Thread IDdirectory: Directory you want to save (optional).custom: (optional)Example:importosfromtouhou_uraimportThUrath_ura=ThUra()directory=os.path.expanduser("~/Desktop/some_folder")th_ura.download_archive(id,directory)# Will be saved at ~Desktop/some_folder/touhou_ura/archives/{id}th_ura.download_archive(id,directory,True)# Will be saved at ~Desktop/some_folderMore features coming soonLicenseMIT License
Package: touka
ToukaA modern, easy-to-use, feature-rich API wrapper for Discord Automation written in Python.Key FeaturesOptimised in both speed and memoryInstallingPython 3.10 or higher is requiredTo install the library, you can just run the following command:# Linux/macOSpython3-mpipinstall-Utouka# Windowspy-3-mpipinstall-UtoukaQuick Examplefromtouka.extimportcommandscommands.daycare_spam(password='password',channel_id='channel_id',interval=10)NOTE:It is not advised to leave your token directly in your code, as it allows anyone with it to access your bot. If you intend to make your code public you should store it securely.LinksOfficial Discord ServerDiscord API
Package: touka.ssh
touka.sshtouka.ssh is an ssh manager that allows you to manage all of your VPSs without keeping your password.Installingpip3 install -U touka.sshhelptouka --helpUsage: touka.ssh [OPTIONS] COMMAND [ARGS]...

  Awesome ssh manager, especially made for anii ☂️

Options:
  -v, --version  Show the application's version and exit.
  --help                          Show this message and exit.

Commands:
  add      Add a new ssh connection with a description.
  connect  connect to server via name
  init     assign pub key to your IP machine
  list     list of all saved servers.
  purge    purge your stored servers.Initassign pub key to your IP machinetoukainitaddAdd a new ssh connection with a description.toukaadd-a192.168.0.9-nmeanii-ubuntu-d"meanii modlette's server digitalocean"listlist of all saved servers.Servers you have saved:

+----+---------------------+----------------+------+---------------------------------------------------+--------+
| ID |         Name        |    Address     | Port |                    Description                    | Status |
+----+---------------------+----------------+------+---------------------------------------------------+--------+
| 1  |   kube-anii-master  | 218.45.380.202 |  22  |     kube-anii-master  server of kubernaties       |   ✅   |
| 2  | kube-anii-worker-02 | 308.50.380.204 |  22  |   kube-anii-worker-02  server of kubernaties      |   ✅   |
| 3  | kube-anii-worker-01 | 308.50.254.203 |  22  |   kube-anii-worker-01  server of kubernaties      |   ✅   |
| 4  |     jenkins         | 308.50.253.209 |  22  |      jenkins server - jenkins.meanii.dev          |   ✅   |
+----+---------------------+----------------+------+---------------------------------------------------+--------+connectconnect to server via nametoukaconnect-nmeanii-ubuntuCopyright & LicenseCopyright (C)  2022meaniiLicensed under the terms of theGNU General Public License v3.0
Package: touketsu
touketsuis a tiny package for creating classes that disallow dynamic
instance attribute creation or modification while preserving class inheritance.
This project was inspired by all the unfortunate incidences where fat-finger
errors led to the creation of a new instance attribute instead of the
modification of an existing instance attribute.InstallationOn all systems, install the latest version from PyPI withpip3install--upgradetouketsuAfter installing, check that the package is properly working using the
interpreter, for example>>> from touketsu import immutable
>>> @immutable
... class a_class:
...     def __init__(self, a = "a"):
...         self.a = a
>>> aa = a_class()Attempting to executeaa.a = 5will result in anAttributeError, asa_classinstances are immutable.DocumentationThe documentation fortouketsuis hosted on Read the Docshere.
Package: toupy
TOUPY - Tomographic Utilities for PythonDOI:IntroductionThe nameToupystands for Tomographic Utilites for Python and it is a wordplay with the French
wordtoupie(pronouncedtoo-pee)  for spinning top, the toy designed to spin rapidly on the ground, the motion of
which causes it to remain precisely balanced on its tip due to its rotational inertia.
You can find the information in the wikipedia page inEnglishand inFrench.DocumentationThe documentation can be found inReadTheDocs.InstallationInstallation should be as simple as:pip install toupyFor local installation, using the flag --user:pip install --user toupyor, if you prefer:python3 setup.py install --userafter downloading/clone github repository files.Clickherefor more info about installation.TravisGet startedGet started quickly with the examples in thetemplatesdirectory.DependenciesToupy depends on the following python packages:python >= 3.6numpynumexprmatplotlibpyfftwfabioh5pyscikit-imagesilxCall for ContributionsToupy welcomes help to improvements from a wide range of different backgrounds.
For example, work on the documentation is well appreciated.
Package: tourbillon-client
# Tourbillon Client## Installingpip install -U pip pbr setuptoolspip install tourbillon-client## Usage### Connection```pythonfrom tourbillon_client import Clientclient = Client('http[s]://<tourbillon instance>[:<tourbillon port>]/')```### Create a table```pythonclient.create('ham')```### Delete a table```pythonclient.delete('ham')```### Write data to a table```pythonclient.create('ham')sample_data = [('2016-11-03 01:00', 10),('2016-11-03 02:00', 20),('2016-11-03 04:00', 40),('2016-11-03 05:00', 50),]client.write('ham', sample_data)```### Read back data```pythonresult = client.read('ham', '2016-11-01', '2016-11-05')print(result)#                      value# index# 2016-11-03 01:00:00     10# 2016-11-03 02:00:00     20# 2016-11-03 04:00:00     40# 2016-11-03 05:00:00     50```
Package: tourboxneo
What the hell is this?Tourbox is a small usb device by Tourbox Tech Inc. Which lets you assign custom program actions and hotkeys.
This Python script translates the serial IO to an evdev/uinput device.Installsudo pip install git+https://github.com/bloodywing/tourboxneoorsudo pip install tourboxneoit needs to install a udev rule.Last wordsThis was hacked together in one day, the wrapper is far from perfect. But at least it makes it possible to use that
expensive device with LinuxThe MIT License (MIT)Copyright (c) 2021 Pierre GeierPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: tour-guide
tour-guideA Wagtail app for navigation components. Please bear with us while we prepare more detailed documentation.Compatibilitytour-guide' major.minor version number indicates the Wagtail release it is compatible with. Currently this is Wagtail 4.1.xInstallationInstall usingpip:pipinstalltour-guideAddtour_guideto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'tour_guide'# ...]