Saravanan666/pypi-org huggingface dataset:
Package: toshl
Python client library for Toshl APIGetting started with the libraryTo use the library, you first need to obtain atokenfrom Toshl
API.Once you have a token you need to import the library and create an
instance of the client:from toshl.client import ToshlClient
client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')Every resource exposes the followingmethods:list()search()get()create()update()delete()To use each resource you will need to create an instance of them,
passing the client as parameter in the constructor.Note:at the moment not all the methods and not all the resources
have been implemented.Here you can find a couple of examples, but for the complete
documentation you can have a look at the official websitehttps://developer.toshl.com/docs/Accountsfrom toshl.client import ToshlClient, Account

client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
account = Account(client)

# list all accounts
account.list()

# search for a specific account
account.search('Test Account')Categoriesfrom toshl.client import ToshlClient, Category

client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
category = Category(client)

# list all categories
category.list()

# search for a specific category
category.search('Test Category')Entriesfrom toshl.client import ToshlClient, Entry

client = ToshlClient('xxx-xxxxx-xxx-xxxxxx-xxxxxx-xxx-xxxxxx')
entry = Entry(client)

# create an Entry
json_payload = {
    'amount': -123.68,
    'currency': {
        'code': 'GBP'
    },
    'date': '2016-04-07',
    'account': 'abcd1234',
    'category': 'category-001'
}

response = entry.create(json_payload)Copyright NoteToshland its logos, design, text, graphics, and other files, and
the selection arrangement and organization thereof, are owned by
Toshl.This is a 3rd party code and I’m not affiliated nor I work for Toshl.
Package: toshling
Toshling - a Python client library for the Toshl APIToshling is an(other) implementation of a client for theToshl API.InstallationToshling can be installed from the PyPI usingpip:pip install toshlingUsageAll interaction with Toshl is done via theClientclass, which is constructed with your API key:importtoshlingclient=toshling.Client('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')Namespaces and methods under the client generally match theAPI documentation. All arguments passed must be inkeyword=valueform. Due to some keywords being reserved or invalid in Python, some substitutes must be made. Examples are below:accounts=client.accounts.list()groceries_category=client.categories.list(search='Groceries')[0]everything_but_groceries=client.entries.list(account=accounts[0].id,from_='2020-12-01',to='2020-12-31',not_categories=groceries_category.id)client.entries.create(amount=168.43,currency={'code':'AUD'},date='2020-03-06',desc='Toilet paper for COVID-19 end-of-days',account=accounts[0].id,category=groceries_category.id)More details on the required argument types and their validation can be found in thetoshling.models.argument_typesandtoshling.models.return_types.IssuesToshling has numerous flaws, mostly due to the incompleteJSON Hyper-Schemadocuments provided by Toshl, which are inconsistent, based on an old draft spec and do not match their actual API documentation.Ideally the full client would be automatically generated from the schemas, but that is not currently possible. Instead, as much functionality as possible was implemented in a semi-automated manner, with the expectation that edge cases will present themself in day-to-day usage.Please feel free to submit issues for consideration on GitHub.Related librariestoshl- a seemingly unmaintained API client missing some key features such as getting entries.toshl-api- an autogenerated client without much documentation.
Package: tosholi
TosholiTosholi is a simple library for reading and writing TOML configuration
files using Python dataclasses.Tosholimeans to interpret or translate and
comes from the Chickasaw and Choctaw languages.Installation$pipinstalltosholiGet StartedCreate your configuration as aPython dataclass.
Configuration dataclasses can be nested, but can only be made ofTOML support types.Consider the followingconfig.tomlthat we want to read into a dataclass.
(This example is based ontoml.io).title="TOML Example"[owner]name="Tom Preston-Werner"dob=1979-05-27T07:32:00-08:00[database]enabled=trueports=[8000,8001,8002]temp_targets={cpu=79.5,case=72.0}[servers][servers.alpha]ip="10.0.0.1"role="frontend"[servers.beta]ip="10.0.0.2"role="backend"We can describe the configuration format with dataclasses.from__future__importannotationsimportdataclassesfromdatetimeimportdatetime@dataclasses.dataclassclassOwner:name:strdob:datetime.datetime@dataclasses.dataclassclassDatabase:enabled:boolports:list[int]temp_targets:dict[str,float]@dataclasses.dataclassclassServer:ip:strrole:str@dataclasses.dataclassclassConfig:title:strowner:Ownerdatabase:Databaseservers:dict[str,Server]Then the configuration file can be read using theConfigdataclass as a
the template for parsing.withopen('config.toml','rb')asf:config=tosholi.load(Config,f)Similarly, we can convert in the opposite direction. AConfiginstance
can be converted to astrwithtosholi.dumps()or written it to a file
withtosholi.dump().importtosholifromdatetimeimporttzinfoconfig=Config(title='TOML Example',owner=Owner(name='Tom Preston-Werner',dob=datetime(1979,5,27,7,32,0),),database=Database(enabled=True,ports=[8000,8001,8002],temp_targets={'cpu':79.5,'case':72.0},),servers={'alpha':Server(ip='10.0.0.1',role='frontend'),'beta':Server(ip='10.0.0.2',role='backend'),})withopen('config.toml','wb')asf:tosholi.dump(config,f)DevelopingWe usetoxfor testing andpre-commitfor linting. Get started for local
development with:$tox--devenvvenv-epy311
$.venv/bin/activate
$pre-commitinstallor$python-mvenvvenv
$.venv/bin/activate
$pipinstall-e.[dev]$pre-commitinstall
Package: tosKer
TosKer is an orchestrator engine capable of automatically deploying and managing multi-component applications specifies inOASIS TOSCA, by exploitingDockeras a lightweight virtualization framework.
The novelty of TosKer is to decouple the application-specific components, from the containers used to build their infrastructure.
This permits to improve the orchestration of the components and to ease the change of the containers underneath.History0.4.0 (2017-07-10)First release on PyPI.1.0.0 (2017-11-20)Stable release without Management Protocols.Add command log, to show the execution of an operation on a component.Add command prune, to remove all TosKer files and restore initial state.Improve memory management.Improve command line interface.Bug fix.2.0.1 (2017-12-09)Switch to Management Protocols to manage the life cycle of the componentsAdd support for derived node types.Add support for custom interfaces.Support custom management protocol defined using policies.Support safe execution of plans (list of <component, interface, operation>).Improve command line interface.2.0.2 (2017-02-12)Stable release with Management Protocols.Add support of two type of plans (.plan, .csv).Fix piped input error.Fix errors in python2 interpreter.Fix bug that does not execute the delete operation on Docker volumes.
Package: tosql
tosql - run sql queries on CLI datatosqlis a cli tool for running SQL queries on CLI data and outputting results to json
format. It can read/write from stdin/stdout so it should work fairly naturally.
It can also perform joins for data that comes from multiple input files.SetupInstall via pip:pipinstalltosqlQuick StartPipe any tabular data in and usetosqlto run a sql query on it. The default table
name to select from is "a"df|tosql"SELECT * FROM a LIMIT 2"If you runtosqlwith no arguments it will "SELECT * FROM a" by default.df|tosqlJoinstosqlreads multiple input files into tables called a,b,c,... , which you can perform join on.For example:# join a csv of daily prices with a json file of sales on different daystosql-iexamples/daily-price.csv-iexamples/daily-sells.json"SELECT a.Open as price, b.amount, b.day FROM a JOIN b ON a.Date = b.day LIMIT 10"# calculate the total soldtosql-iexamples/daily-price.csv-iexamples/daily-sells.json"SELECT SUM(Open*amount) FROM a JOIN b ON a.Date = b.day"CLI Optionstosqlhas several command line options to choose from, displyed by running with the
"--help" flag.$tosql--help
Usage:tosql[OPTIONS][SQL]Options:--versionShowtheversionandexit.-i,--inputFILENAMEInputfile,defaultstdin-o,--outputTEXTOutputfile,defaultstdout-f,--sql-fileTEXTFilecontainingSQLquery-t,--table-nameTEXTTablename[default:df]-c,--colsTEXTColumnnames,commaseparated--autoAutogeneratecolumnnames:abc...--saveSavethesqlfileto.tosql.db--helpShowthismessageandexit.
Package: tosr0x
A Python module for communicating with ‘TOSR0x’ relay controllers available at [tinyosshop.com](http://www.tinyosshop.com/index.php?route=product/product&product_id=365) and other online retailers.Note: as of v0.6.0 this module only supports Python 3.4+.Supported Hardware[TOSR0x USB 2-8 relay](http://www.tinyosshop.com/index.php?route=product/category&path=141_142)[TOSR0x WiFi 2-8 relay](http://www.tinyosshop.com/index.php?route=product/category&path=141_143)[LazyBone WiFi single relay](http://www.tinyosshop.com/index.php?route=product/category&path=141_129)FunctionalityDetect TOSR0x USB and WiFi devices.Set relay states.Query relay states.Query temperature (on supported models).RequirementsPython serial module (should be installed by default)InstallationUse setup.py:python setup.py installIf using Debian or a derivative (Ubuntu) additional USB permissions may be required:Add the user to the ‘dialout’ group:$ sudo usermod -G dialout -a <username>Add a udev rules file to allow access to usb devices:$ cat /etc/udev/rules.d/50-usb.rules
# allow access to usb devices for users in dialout group
SUBSYSTEM==”usb”, MODE=”0666”, GROUP=”dialout”UsageCall the handler function to return a list of tosr0x objects:>import tosr0x
>th = tosr0x.handler()Testing USB serial device on /dev/ttyUSB0
Testing USB serial device on /dev/ttyUSB1
Testing USB serial device on /dev/ttyUSB2
Testing USB serial device on /dev/ttyUSB3
TOSR0x device found on /dev/ttyUSB3>myTosr0x = th[0]
>print myT0sr0x<tosr0x.relayModule instance at 0xb68be46c>By default the handler scans all USB ports for compatible tosr0x devices. You
can also specify a range of ports to scan:>th = tosr0x.handler(devicePath=[‘/dev/ttyUSB3’])Testing USB serial device on /dev/ttyUSB3
TOSR0x device found on /dev/ttyUSB3Usually all relays on the module are cycled at initialisation to determine the
relay count. You can specify a relay count to prevent this:>th = tosr0x.handler(devicePath=[‘/dev/ttyUSB3’], relayCount=4)Testing USB serial device on /dev/ttyUSB3
TOSR0x device found on /dev/ttyUSB3It is also possible to use the class directly without using the handler:FOR SERIAL:
>import serial
>import tosr0x
>sd=serial.Serial(‘/dev/ttyUSB0’, timeout=0.1)
>myTosr0x=tosr0x.relayModule(sd) #Num relays not specified in this exampleFOR WIFI:
>import tosr0x
>myTosr0x = tosr0x.relayModule( (‘192.168.1.2’,2000), 2) #Module of 2 relaysSet relay states to either 0 or 1:>myTosr0x.set_relay_position(1,1)
True>myTosr0x.set_relay_position(2,0)
True(Note: relay numbering starts at 1. Set the state of all relays by using relay number 0.)Get relay positions, (returned as a dict {relay : state}):>myTosr0x.get_relay_positions()
{1: 1, 2: 0}Get Ambient Temperaure n Celsius degree for modules supporting a temperature probe:>myTosr0x.get_temperature()
23.94ProjectsJames Stewart (@amorphic) uses to _tosr0x_ to implement an Environmental Controller in [braubuddy](http://braubuddy.org), a temperature monitoring framework.Alex Roche (@alexroche) is using _tosr0x_ with WIFI option to control blinds through openremote controller running on a Raspberry Pi.
Package: toss
tossToss 결제를 위한 python client library wrapper (본격 날로 먹기의 꿈)참고자료가입부터 결제 완료까지Toss Payment APIrequirementspython3strong mentalityinstallpip install tossusagefromtossimportTossPayClientclient=TossPayClient()# 아무 값도 없으면 샌드박스결제 요청result=client.purchase('주문번호',1000,'상품설명','http://returning .url',False)결제 정보 가져오기payment=client.get_payment(result.pay_token)결제 승인client.approve(payment.pay_token)결제 취소client.cancel(payment.pay_token,'고객 요청으로 취소')환불client.refund(payment.token,1000,0)FAQ왜 이렇게 코드가 엉망인가요?제가 죽을 죄를 지었습니다. 그러니https://github.com/styleshare/toss/pulls굽신굽신사용하는 게 너무 불편해요.저도요. 어머 우리 통하는 게 있나봐요.https://github.com/styleshare/toss/pulls그런 당신을 위해 제가 특별히 마련했습니다.왜 라이선스가 Public domain 인가요?저는FSF를 지지합니다.toss 개발자들이 욕하지 않을까요?제가 왜 public domain 했겠어요?이거 FAQ 맞나요?눈치가 빠른 꼬맹이는 PR이나 날리라구https://github.com/styleshare/toss/pulls
Package: tossip
:heavy_exclamation_mark: Still in DevelopmentTossipA library to easily communicate with iOS Devices natively.Implementation of the most commands.Easily interact with the Device.support for python >= 3.6Feel free to contribute!Install using pippip install tossipFor Linux distributions with both python2 and python3 (e.g. Debian, Ubuntu, ...) you need to runpip3 install tossipUsageGet every UDID of the iOS Devices that are connected to the Computer as an Array.fromtossipimportTossipdefcollectUDIDs():print(functions.getConnectedDeviceUDIDs())AuthorsLiquidDevelopmentNETLicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: toston
TostonToston generates a secret key with size variable (in bytes)The idea behind this module is that you can take advantage of
thesecretsmodule to generate really secret and random keys to be
implemented in your web applications.Free software: MIT licenseDocumentation:https://toston.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-03-19)First release on PyPI.
Package: tosync
Automatic Subtitle PlacementThis contains code that allows users to download videos (or just audio) from youtube as well as their respective transcripts for training data. The model itself is able to place time stamps onto a transcript for any given video.FeaturesMachine learning model for voice activity detection (not recognition)Generates timestamps for transcriptDependenciesffmpeg (https://www.ffmpeg.org/download.html)Helpusage: tosync [-h] [--version] [--graph] [-d SECONDS] [-m SECONDS] [-s]
                   [--logfile PATH]
                   MEDIA [MEDIA ...]

positional arguments:
  MEDIA                 media for which to synchronize subtitles

optional arguments:
  -h, --help            show this help message and exitSpecial thanks[1] tympanix/subsync whose code was invaluable
Package: totalcorner
#Totalcorner API ClientUnofficial API Client for totalcorner.com API.##Installpip install totalcornerorpython setup.py install##Usageimport totalcornertapi = totalcorner.TotalCornerAPI(“apikeyabcdefg”)Todaytapi.today(type=”upcoming”, columns=”events,odds,asian,cornerLine,cornerLineHalf,goalLine,goalLineHalf,asianCorner,attacks,dangerousAttacks,shotOn,shotOff,possession”, page=1)Scheduletapi.schedule(date=”20190501”, columns=”events,odds,asian,cornerLine,cornerLineHalf,goalLine,goalLineHalf,asianCorner,attacks,dangerousAttacks,shotOn,shotOff,possession”, page=1)Matchviewtapi.matchview(matchid=”82537483”,columns=”events,odds,asian,cornerLine,cornerLineHalf,goalLine,goalLineHalf,asianCorner,attacks,dangerousAttacks,shotOn,shotOff,possession”)Oddstapi.odds(matchid=”82537483”, columns=”asianList,goalList,cornerList,oddsList,asianHalfList,goalHalfList,cornerHalfList,oddsHalfList”)League Tabletapi.leaguetable(leagueid=”1”, type=’table’)League Scheduletapi.leagueschedule(leagueid=”1”, page=None, columns=’events,odds,asian,cornerLine,cornerLineHalf,goalLine,goalLineHalf,”asianCorner,attacks,dangerousAttacks,shotOn,shotOff,possession’)
Package: totalopenstation
Total Open Station is a program for downloading and processing survey data from total station devices.Total Open Station is a good choice if:you work with total stations on GNU/Linux (and MacOS, probably)you work with old devices that are unsupported by vendorsyou need to process hundreds of data files at onceWe think Total Open Station is small but great because:it isfree/libre open source softwareit works onanyoperating system where Python is availableit is designed to support as many devices and formats as possible, all
within the same program, opposed to having one program per deviceit works both on the command line and with a graphical interfaceTotal Open Station uses a modular structure and
keeps the downloading of data logically separated from its processing,
thus enabling exporting data to a variety of output formats, even at a
later moment. Archiving of raw data is made easy by using plain text
files.InstallingIf you’re comfortable with the command line:pipinstalltotalopenstationWindows users can download the portable app from the
GitHubreleases page.GNU/Linux users can find thetotalopenstationpackage in some distributions
(OpenSUSE, Debian, Ubuntu).DocumentationDocumentation is online athttp://totalopenstation.readthedocs.io/with
an user guide, details on the application structure, supported models
and other interesting stuff.DevelopmentTotal Open Station is developed by @steko, @psolyca and other contributors, including
translators and providers of sample data. We are not professional software developers
but we do our best to follow modern good practice. Feel free to submit a feature request
or a pull request on GitHub.The application icons are copyright by Lapo Calamandrei 2008, under the
same license as Total Open Station.
Package: total-perspective-vortex
Total Perspective Vortex (TPV) provides an installable set of dynamic rules for
theGalaxy applicationthat can route entities
(Tools, Users, Roles) to appropriate job destinations based on a configurable
YAML file.DocumentationDocumentation on how to enable TPV in your Galaxy instance and configure the
relevant routing rules is available onRead the
Docs.For a guided tutorial, also check out theTPV tutorial on
GTN.Installing latest released versionOnce configured in the Galaxy application, TPV will be automatically installed
in the Galaxy environment. If you would like to manually install it instead, you
can do so fromPyPIwith
the following command:pipinstalltotal-perspective-vortexShared default resource database for toolsA shared database of reusable default resource requirements and scheduling rules
for TPV is maintained in:https://github.com/galaxyproject/tpv-shared-database/.
(This is likely something you want to take a look at - it will save a lot of
time.)
Package: total-points-model
Total Points Modeltotal-points-model is a Python library with useful functions and notebooks for tuning, training and evaluating an XGBoost model.The target of this model is the Total Points Scored in an AFL match.InstallationUse the package managerpipto install total-points-model.pipinstalltotal-points-modelUsageSee notebooks folder for more comprehensive examples of usage.Data Processingfromtotal_points_model.domain.preprocessing.data_preprocessorimportDataPreprocessorfromtotal_points_model.domain.contracts.mappingsimportMappingsfromtotal_points_model.domain.contracts.rolling_columnsimportRollingColumnspreprocessor=DataPreprocessor(Mappings=Mappings,rolling_dict=RollingColumns.rolling_dict)preprocessor.fit(training_data)training_data_preproc=preprocessor.transform(training_data)test_data_preproc=preprocessor.transform(test_data)Hyperparameter Tuningfromtotal_points_model.domain.modelling.hyperparameter_tuningimportXGBYearHyperparameterTunerfromtotal_points_model.domain.modelling.optuna_xgb_param_gridimportOptunaXGBParamGridxgb_tuner=XGBYearHyperparameterTuner(X_train_preproc,y_train,optuna_grid=OptunaXGBParamGrid,monotonicity_constraints={})xgb_tuner.tune_hyperparameters()params=xgb_tuner.get_best_params()Model Buildingfromtotal_points_model.domain.modelling.supermodelimportSuperXGBRegressorsuper_xgb=SuperXGBRegressor(X_train=X_train_preproc,y_train=y_train,X_test=X_test_preproc,y_test=y_test,params=params)super_xgb.fit()train_preds=super_xgb.predict(X_train_preproc.drop(columns=["Match_ID"]))test_preds=super_xgb.predict(X_test_preproc.drop(columns=["Match_ID"]))Model Evaluationfromtotal_points_model.domain.modelling.model_evaluationimportXGBRegressorEvaluatorfromtotal_points_model.domain.contracts.modelling_data_contractimportModellingDataContracttrain_xgb_evals=XGBRegressorEvaluator(model=xgb_model,data=train_evaluation_data,actual_name=ModellingDataContract.RESPONSE,expected_name="xgb_preds",compare_name='old_preds')train_xgb_evals.plot_distribution()test_xgb_evals=XGBRegressorEvaluator(model=xgb_model,data=test_evaluation_data,actual_name=ModellingDataContract.RESPONSE,expected_name="xgb_preds",compare_name="old_preds")test_xgb_evals.plot_distribution()CreditsData sourced using a private R package. Credits to dgt23.CONTRIBUTINGI am no longer updating this package as I am exploring other AFL related analysis and packages.LicenseMIT
Package: totalrecall
totalrecallA runtime step profiler - for Python.IntroductionAggregating runtime statistics and/or finding bottlenecks in code is one of the most common challenges as a software engineer. This is a library to aid that. In comparison to most existing libraries this one is focused onstep profiling; aggregation of runtime information in steps marked by keys/tags/labels and optional meta data, which is used to create a summary of all steps in form of a transaction. As a bonus it also supports decorating codecontextsandfunctions.This is anMVPthat most likely will be extended with more profiling features.InstallInstall usingpip:$pipinstalltotalrecallUseVery basicexample:importtotalrecallfromtimeimportsleep# ---------------------------------------------------#   EXAMPLE: runtime step profiler# ------------------------------------------------profiler=totalrecall.timer('profile something - using timer',begin=False)profiler.begin('task 1')sleep(0.1)profiler.begin('task 2')sleep(0.2)profiler.begin('task 3')sleep(0.3)profiler.end()print('[profiler.time / basic]: TIME:{0}'.format(profiler.time))print('[profiler.time / basic]: STEPS:{0}'.format(profiler.steps))# ---------------------------------------------------#   EXAMPLE: runtime step profiler (detailed)# ------------------------------------------------profiler=totalrecall.timer('profile something - using timer',begin=False,enabled=True,verbose=True,colors=True,)profiler.begin('task 1')sleep(0.1)profiler.begin('task 2')sleep(0.2)profiler.begin('task 3')sleep(0.3)profiler.end()print('[profiler.time / detailed]: TIME:{0}'.format(profiler.time))print('[profiler.time / detailed]: STEPS:{0}'.format(profiler.steps))# ---------------------------------------------------#   EXAMPLE: runtime context profiler# ------------------------------------------------profiler=totalrecall.context('profile something 2 - using context')withprofiler:sleep(1)print('[profiler.context / basic]: TIME:{0}'.format(profiler.time))print('[profiler.context / basic]: STEPS:{0}'.format(profiler.steps))# ---------------------------------------------------#   EXAMPLE: runtime function profiler# ------------------------------------------------profiler=totalrecall.function('profile something 2 - using context')@profilerdeffoo():sleep(1)print('[profiler.function / basic]: TIME:{0}'.format(profiler.time))print('[profiler.function / basic]: STEPS:{0}'.format(profiler.steps))TestClone down source code:$makeinstallRuncolorful tests, with only native environment (dependency sandboxing up to you):$maketestRunless colorful tests, withmulti-environment(usingtox):$maketest-toxAboutThis project was mainly initiated - in lack of solid existing alternatives - to be used at our work atMarkable.aito have common code conventions between various programming environments wherePython(research, CV, AI) is heavily used.CreditsThanks toop-bkfor creative help with naming this library.LicenseReleased under the MIT license.