Saravanan666/pypi-org huggingface dataset:
Package: tonicapp-helpers
Django HelpersRequirementsPythonDjango>=3.2.2,<4.0Django Rest FrameworkInstallation$ pip install tonicapp-helpersAdd the application to your project'sINSTALLED_APPSinsettings.py.INSTALLED_APPS = [
    ...
    'helpers',
]Sourcehttps://pypi.org/project/tonicapp-helpers/Update Librarypython3 setup.py sdistpython3 -m twine upload dist/*
Enter your username: ******
Enter your password: ******
Package: tonic-ragas-logger
Tonic Validate Ragas LoggerThe Tonic Validate Ragas Logger is a tool to upload your results from Ragas to the Tonic Validate UI for visualization. The UI is completely free to use.To get started, install thevalidate-ragas-loggerlibrary.pipinstalltonic-ragas-loggerAfter the library is installed, you can start uploading your Ragas results. Here is an example of how to upload Ragas results.fromragasimportevaluatefromdatasetsimportDatasetfromtonic_ragas_loggerimportRagasValidateApidataset=Dataset.from_dict({'question':['What is the capital of France?'],'contexts':[['Paris is the capital of France.']],'answer':['Paris'],'ground_truths':[['Paris']]})results=evaluate(dataset)# Upload results to the Tonic Validate UIvalidate_api=RagasValidateApi("your-api-key")validate_api.upload_results("your-project-id",results)To get an API key for Tonic Validate, sign up for an account onour website. When you sign up, you can create an API key on the sidebar.Once you have an API key, you can either set it in theTONIC_VALIDATE_API_KEYenvironment variable or you can input it into theRagasValidateApiconstructor like sovalidate_api=RagasValidateApi("your-api-key")After you have created an API key, you can create a project which allows you to upload your results to the UI. To do so, click on the create a project button on the homepage of Tonic Validate.After creating your project, you will be provided a project id which you can copy intoupload_results.validate_api.upload_results("your-project-id",results)After you executeupload_results, your results should be visible in the UI.Congratulations, now you have uploaded your Ragas results to Tonic Validate!
Package: tonic-reporting
OverviewThis library contains tools for evaluating fidelity and privacy of synthetic data.UsageImport the desired modules from the library:import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from tonic_reporting import univariate, multivariate, privacyPrefaceNumericcolumns refer to columnsencodedas numeric. Numerical data types in the schema underlying a model may be encoded as other types.Categoricalcolumns refer to columnsencodedas categorical.source_dfis a Pandas DataFrame of original data from the source databasesynth_dfis a Pandas DataFrame of sampled data from trained modelsThe source and synthetic DataFrames should be equal in row count and schema.Numeric Column Statisticsunivariate.summarize_numeric(source_df, synth_df, numeric_cols)Categorical Column Statisticsunivariate.summarize_categorical(source_df, synth_df, categorical_cols)Numeric Column Comparative Histogramsfig, axarr = plt.subplots(1, len(numeric_cols), figsize = (9,12))
axarr = axarr.ravel()

for col, ax in zip(numeric_cols, axarr):
    univariate.plot_histogram(source_df, synth_df, col,ax)Categorical Column Comparative Frequency Tablesfor col in categorical_cols:
    univariate.plot_frequency_table(source_df, synth_df, col, ax)Numeric Column Aggregates Over TimeIf the data represents time series, we can visualize means and confidence intervals of numeric features
over time:for col in numeric_cols:
    fig, ax = plt.subplots(figsize=(10, 8))
    univariate.plot_events_means(source_df, synth_df, col, order_col, ax=ax)andfor col in numeric_cols:
    fig, ax = plt.subplots(figsize=(12, 10))
    univariate.plot_events_confidence_intervals(source_df, synth_df, col, order_col, ax=ax)whereorder_coldenotes the time/order column.Numeric Column Multivariate Correlations Tablemultivariate.summarize_correlations(source_df, synth_df, numeric_cols)Numeric Column Multivariate Correlations Heat Mapfig, axarr = plt.subplots(1, 2, figsize=(13, 8))
multivariate.plot_correlations(source_df, synth_df, numeric_cols, axarr=axarr, )
fig.tight_layout()Distance to Closest Record Comparisonsyn_dcr, real_dcr = privacy.compute_dcr(source_df, synth_df, numeric_cols, categorical_cols)

fig, ax = plt.subplots(1,1,figsize=(8,6))
ax.hist(real_dcr,bins=300,label = 'Real vs. real', color='mediumpurple');
ax.hist(syn_dcr,bins=300,label='Synthetic vs. real', color='mediumturquoise');
ax.tick_params(axis='both', which='major', labelsize=14)
ax.set_title('Distances to closest record',fontsize=22)
ax.legend(fontsize=16);
Package: tonic-textual
OverviewThis library contains useful wrappers around the Tonic Textual APIUsageInstantiate the API wrapper using the following code:from tonic_textual.api import TonicTextual

# Do not include trailing backslash in TONIC_URL
api = TonicTextual(TONIC_TEXTUAL_URL, API_KEY)Once instantiated, the following endpoints are available for consumption. Note that available endpoints and response types are limited. Available fields may be severely limited compared to the current Tonic API.Build and packageUpdate the version in pyproject.toml.  Ensure you are in the python_sdk/ folder in the repo root for the following instructions.Update build and twinepython -m pip install --upgrade build
python -m pip install --upgrade twineClean out dist folderrm dist/ -rfNow buildpython -m buildAnd shippython -m twine upload .\dist\*The username istokenand the pw is your token including the 'pypi-'
Package: tonie-api
tonie-apiPython library to access the REST API of the toniecloud. NOT associated with Boxine (tonies.de) in any way.InstallationInstall this via pip (or your favourite package manager):pip install tonie-apiContributors ✨Thanks goes to these wonderful people (emoji key):moritzj29💻🤔Wilhelmsson177⚠️📆🚧💻This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: tononkira
tononkiraUnofficial Module and CLI tool to get Malagasy song lyrics fromhttps://tononkira.serasera.orgINSTALLATIONpipinstalltononkiraUSAGEMODULEfromtononkiraimportTononkiratononkira=Tononkira()print(tononkira.get("Ampy anahy"))CLI TOOLADVANCE USAGEfromtononkiraimportTononkiratononkira=Tononkira()# global searchres=tononkira.search("Ambondrona")print(res[:2])# specific search by artistres=tononkira.search_by(artist="LJO")print(res[:2])# specific search by titleres=tononkira.search_by(title="Donia")print(res[:2])# specific search by lyricsres=tononkira.search_by(lyrics="tia anao aho")print(res[:2])# specific search by title and lyricsres=tononkira.search_by(title="Ngoma",lyrics="Mena masoandro")print(res[:2])OUTPUT[{'title':'Ajanony any','artist':'AmbondronA','url':'https://tononkira.serasera.org/hira/ambondrona/ajanony-any-1'},{'title':'ALEO ALOHA','artist':'AmbondronA','url':'https://tononkira.serasera.org/hira/ambondrona/aleo-aloha'}]...[{'title':'Aya','artist':'LJo','url':'https://tononkira.serasera.org/hira/ljo/aya'},{'title':'Ino tianÃ´ ?','artist':'LJo','url':'https://tononkira.serasera.org/hira/ljo/ino-tian-'}]...[{'title':'Donia','artist':'Lion Hill','url':'https://tononkira.serasera.org/hira/lion-hill/donia'},{'title':'RABODONIARIVO','artist':"Jonny R'afa",'url':'https://tononkira.serasera.org/hira/jonny-rafa/rabodoniarivo'}]...[{'title':'#586# [Feat. Mr Sayda]','artist':'306 BUK','url':'https://tononkira.serasera.org/hira/306-buk/586-feat.-mr-sayda-1'},{'title':"'Lay andro hodianao",'artist':'Mr Sayda (MisiÃ© Sayda)','url':'https://tononkira.serasera.org/hira/mr-sayda-misi-sayda/lay-andro-hodianao'}]...[{'title':'Ngoma','artist':'Shyn','url':'https://tononkira.serasera.org/hira/shyn-1/ngoma-1'},{'title':'Ngoma (feat Denise)','artist':'Shyn','url':'https://tononkira.serasera.org/hira/shyn-1/ngoma-feat-denise'}]fromtononkiraimportTononkiratononkira=Tononkira()res=tononkira.fetch("https://tononkira.serasera.org/hira/ambondrona/aleo-aloha")print(res)OUTPUTALEO ALOHA (Ambondrona)
----------------------

toa ts aritro iany
ny iandry anao
niezaka iany aho fa toa
...
Package: tonos-ts4
TestSuite4 0.4.1TestSuite4 is a framework designed to simplify development and testing of TON Contracts. It contains lightweight
blockchain emulator making it easy to develop contracts in a TDD-friendly style.Features:Speed- perform dozens of tests in just seconds.Complex test scenarios- using Python as a scripting language allows you to create testing scenarios of varying complexity.Deep Integration- access all internal messages, measure gas and control time.Easy installation- usepip install tonos-ts4to installTestSuite4on your local Windows, Linux or macOS. You can also easily compile it from source if needed.Seetutorialsfor self-documented examples of framework usage.List of tutorialstutorial01_getters.py- Working with getters of various types.tutorial02_methods.py- Working with external methods.tutorial03_constructors.py- Working with constructors.tutorial04_messages.py- Dispatching messages between contracts and catching events.tutorial05_deploy.py- Deploying a contract from a contract and working with it through wrappers.tutorial06_signatures.py- Working with singed external calls and handling exceptions raised by a contract.tutorial07_time.py- Fast-forwarding time however you need to.tutorial08_balance.py- Fetching contract balance.tutorial09_send_money.py- Send money and watch it travel within the virtual blockchain.tutorial10_encode_call.py- Encode the payload for use in thetransfer()call.tutorial11_set_code.py- Using the contract code update functionality.Quick StartWarningYou might need to replacepythonandpipwithpython3andpip3if you are running Linux or macOS.If you havePython 3.6-3.10,pipandgitinstalled on your system, you can proceed with the following steps.Installtonos-ts4package:pip install tonos-ts4Download tutorials from GitHub:git clone git@github.com:tonlabs/TestSuite4.git... and run the tutorials:cd TestSuite4/tutorials
python tutorial01_getters.pyFor more information, visitTestSuite4's documentation.
Package: tonplay-sdk
TON Play Public API Connector PythonThis is alightweight librarythat works as a connector toTON Play public APIInstallationpipinstalltonplay-sdkGet API KeyTo get API Keyfollow the linkRESTful APIsUsage examples:fromtonplay.methodsimportTonPlayApiclient=TonPlayApi(api_key='<YOUR API KEY>')# Get assets on saleprint(client.get_assets_on_sale())Please findexamplesfolder to check for more endpoints.In order to set your API and Secret Key for use of the examples, create a file examples/config.ini with your keys.Eg:# examples/config.ini[keys]api_key=abc123456
Package: tonpy
tonpy: powerful Python TON toolkitWhat is it?tonpyis a Python package that provides data structures and API to interact
withTON blockchain. Tonpy is separate for two
packages:C++ bindingsandmain packagethattakespre-built binaries compiled
byworkflowand creates complete python package with
some python code on top of C++ bindings.InstallationOne command:pip install tonpyComplex installation for not supported systems and python versions are described indocumentationDocumentationDocumentation can be found ontonpy.dton.ioDonationIf you want to support our work, send any coins to:EQDfmsDtWQP5D_YkXX-XlULvs4HivRaKY38ftT2hS5yAANRfLicenseCopyright (c) 2023 Disintar LLP Licensed under the Apache License
Package: tonpy-dev
tonpy: powerful Python TON toolkitWhat is it?tonpyis a Python package that provides data structures and API to interact
withTON blockchain. Tonpy is separate for two
packages:C++ bindingsandmain packagethattakespre-built binaries compiled
byworkflowand creates complete python package with
some python code on top of C++ bindings.InstallationOne command:pip install tonpyComplex installation for not supported systems and python versions are described indocumentationDocumentationDocumentation can be found ontonpy.dton.ioDonationIf you want to support our work, send any coins to:EQDfmsDtWQP5D_YkXX-XlULvs4HivRaKY38ftT2hS5yAANRfLicenseCopyright (c) 2023 Disintar LLP Licensed under the Apache License
Package: tonrocketapisdk
SDK для работы с TON Rocket⚙️ Установкаpipinstalltonrocketapisdk🔐 АвторизацияКак получить токен написанотут.fromtonrocketapisdkimport*api=RocketApi('токен')Testnet:fromtonrocketapisdkimport*api=RocketApi('токен',True)⬇️ Навигация🚀Методы- getAppInfo- transfer- withdrawal- createCheque- getCheques- getCheque- editCheque- deleteCheque- createInvoice- getInvoices- getInvoice- deleteInvoice- getCoins- getCurrencies🚀 МетодыПараметры отмеченные знаком * являются обзательнымиgetAppInfoДокументацияПараметрИнформацияНе принимает параметровПример:api.getAppInfo()transferДокументацияПараметрИнформацияtgUserId*ID получателя переводаamount*Сумма переводаcurrencyВалюта перевода. По умолчанию: "TONCOIN"transferIdПо умолчанию: "12345"descriptionПо умолчанию: ""Пример:api.transfer({"tgUserId":87209764,"currency":"TONCOIN","amount":1.23,"transferId":"abc-def","description":"You are awesome!"})withdrawalДокументацияПараметрИнформацияaddress*TON кошелек, на который нужно отправить монетыamount*Сумма переводаcurrencyВалюта для вывода. По умолчанию: "TONCOIN"withdrawalIdПо умолчанию: "12345"commentПо умолчанию: ""Пример:api.withdrawal({"address":"EQB1cmpxb3R-YLA3HLDV01Rx6OHpMQA_7MOglhqL2CwJx_dz","currency":"TONCOIN","amount":1.23,"withdrawalId":"abc-def","comment":"You are awesome!"})createChequeДокументацияВсе параметры как в документацииПример:api.createCheque({"chequePerUser":0.005,"usersNumber":100,"refProgram":50,"password":"pwd","description":"This cheque is the best","sendNotifications":true,"enableCaptcha":true,"telegramResourcesIds":["-1001799549067"]})getChequesДокументацияПараметрИнформацияНе принимает параметровПример:api.getCheques()getChequeДокументацияПараметрИнформацияid*ID чекаПример:api.getCheque({id:1234})deleteChequeДокументацияПараметрИнформацияid*ID чекаПример:api.deleteCheque({id:1234})createInvoiceДокументацияВсе параметры как в документацииПример:api.createInvoice({"amount":1.23,"description":"best thing in the world, 1 item","hiddenMessage":"thank you","callbackUrl":"https://t.me/ton_rocket","payload":"some custom payload I want to see in webhook or when I request invoice","expiredIn":10})getInvoicesДокументацияПараметрИнформацияНе принимает параметровПример:api.getInvoices()getInvoiceДокументацияПараметрИнформацияid*ID счётаПример:api.getInvoice({id:1234})deleteInvoiceДокументацияПараметрИнформацияid*ID счётаПример:api.deleteInvoice({id:1234})getCoinsДокументацияПараметрИнформацияНе принимает параметровПример:api.getCoins()getCurrenciesДокументацияПараметрИнформацияcoinFrom*ID токенаcoinTo*ID токенаПример:api.getCurrencies({coinFrom:Assets.TON,coinTo:Assets.SCALE})
Package: tons
TonsDocumentationYou can findinstallation guideand all available features in ourdocs.Introductiontonsis an Open Source cross-platform wallet application
and command-line interface to maintain any type of wallet on the TON network
on desktops and servers. Works with Windows/Mac/Linux.tonshas different UI versions thanks to which any user will find a suitable interface:tons-interactivetonstons-guitonsuses specific filesystem architecture that is maintained by the application..tons
├── config.yaml
├── whitelist.json
├── keystores
│   ├── *.keystoreUser interfacestons-interactivetons-interactiveis a convenient interface to control your assets through terminal.$tons-interactive[✓]Pickcommand:Keystores[✓]Pickcommand:Openkeystore[✓]Choosekeystoretouse:🔒personal.keystore[?]Pickcommand[personal.keystore]:Listwallets>ListwalletsTransferAdvancedTransferWhitelistTonconnectv2DNSJetton...tonstonsis a batch mode interface that allows you to write automatic scripts.To get all available subcommands and flags run a command with an '-h' flag$tons-h
Usage:tons[OPTIONS]COMMAND[ARGS]...

Options:--versionShowtheversionandexit.-c,--configUsespecificconfig.yamlfile-h,--helpShowthismessageandexit.

Commands:configControlconfigparameters(checkREADME.mdforallfields...contractOperatewithcontractsdevDevelopmenttoolsdnsOperatewithDNSinitInitialize.tonsworkdirinacurrentdirectorykeystoreOperatewithkeystorestonconnectOperatewithTonConnectwalletOperatewithwalletswhitelistOperatewithwhitelistcontactsExample: get list of all wallets from a keystore$tonswalletlist-v|Name|Version|WC|Address|Comment|State|Balance||:------|:-------:|:--:|:------------------------------------------------:|:--------|:------:|--------:||dev|v3r2|0|EQBxWbjry61lk0dU_8viG9M_e5x9VGOJaI9ZhOrn6vcIp7Sm|None|Active|13.1||prod|v4r2|0|EQCkNipaz2C3Md-tXVBcD3E4yv8EKqMzZ41QQtsM4IdFnKP5|None|Uninit|0.0||Total||||||13.1|tons-guiGraphic user interface version is being developed.
Here's a glimpse of the interface.LicenseThe code and data files in this distribution are licensed under the terms of the GNU General Public License version 3
as published by the Free Software Foundation. Seehttps://www.gnu.org/licenses/for a copy of this license.
Package: tonydbc
TonyDBCLatest version: 1.0.6Available on PyPI:https://pypi.org/project/tonydbc/2024-01-07:Release announcement on MediumSupports high-level database operations within Python.  TonyDBC is short for Tony’s Database Connector, named for Maria’s lover in West Side Story.TonyDBC uses the MariaDB/Connector but adds these features:Support for the object-oriented context manager design pattern, which automatically closes connections.A way to convert between pandas DataFrames and MariaDB tables, including serialization of complex data types like dictionaries and numpy arrays.A way to autoresume when the connection is lost.Support for fast INSERT and UPDATE from DataFrame.to_sql. Currently pandas’ implemention using sqlalchemy is 300x slower.A way to quickly and automatically clone a database from a DDL script and copy the contents from the production database.Batch INSERT and UPDATE offline and resume when Internet is available.Logging database actions using the standard logging module.In a CI/CD context, automatically connecting to the correct production or test database.Support for the np.Int64Dtype data type.Support for pandas timestamps.Able to bulk insert data containing NULLsInstallationTo install TonyDBC from PyPI:pipinstalltonydbcUsageA typical use case:fromtonydbcimportTonyDBC,load_dotenvsload_dotenvs()sql_params={"host":os.environ["MYSQL_HOST"],"user":os.environ["MYSQL_USER"],"password":os.environ["MYSQL_PASSWORD"],"database":os.environ["MYSQL_DATABASE"],"port":int(os.environ["MYSQL_PORT"]),}withTonyDBC(**sql_params)asdb:# Do stuffpass
Package: tonyear
carbonplan / tonyearPython package for understanding ton-year accountingThis repository implements two widely referenced ton-year accounting methods.Ton-year accounting refers to a family of approaches that quantify the benefit of temporarily storing carbon dioxide that might otherwise enter the atmosphere and exacerbate climate change. We’ve noticed growing interest in using ton-year accounting to generate carbon offsets – an arrangement that uses temporary storage of CO2to justify the on-going carbon pollution.We originally wrote this code as a way to improve our understanding of the climate science, math, and assumptions underlying ton-year accounting methods. By sharing our code, we hope to help facilitate deep thinking about how we value temporary carbon storage. We wrote a shortexplainerdocumenting what we’ve learned so far.licenseAll the code in this repository isMITlicensed, but we request that you please provide attribution if reusing any of our digital content (graphics, logo, articles, etc.).about usCarbonPlan is a non-profit organization that uses data and science for climate action. We aim to improve the transparency and scientific integrity of carbon removal and climate solutions through open data and tools. Find out more atcarbonplan.orgor get in touch byopening an issueorsending us an email.
Package: tonygrad
tonygradA tiny scalar-valued autograd engine with a small PyTorch-like neural network library on top.  Implements backpropagation (reverse-mode autodiff) over a dynamically built DAG.
The DAG only operates over scalar values, so e.g. we chop up each neuron into all of its individual tiny adds and multiplies. However, this is enough to build up entire deep neural nets doing binary classification, as the demo notebook shows.InstallationpipinstalltonygradExample usageBelow there is a simple example showing a number of possible supported operations:"""tanh() VERSION"""# inputs x1,x2x1=Value(2.0,label='x1')x2=Value(0.0,label='x2')# weights w1,w2w1=Value(-3.0,label='w1')w2=Value(1.0,label='w2')# bias of the neuronb=Value(6.8813735870195432,label='b')# x1*w1 + x2*w2 + bx1w1=x1*w1;x1w1.label='x1w1'x2w2=x2*w2;x2w2.label='x2w2'x1w1x2w2=x1w1+x2w2;x1w1x2w2.label='x1*w1 + x2*w2'#outputn=x1w1x2w2+b;n.label='n'#apply tanh to the outputo=n.tanh();o.label='o'#launch backprop on the built grapho.backward()Tracing / visualizationFor added convenience, the notebooktrace_graph.pyproduces graphviz visualizations. Here we draw the neural network graph built in the example above.fromtonygrad.trace_graphimportdraw_dot,tracedraw_dot(o)Training a neural netThe notebookdemo.ipynbprovides a full demo of training an 2-layer neural network (MLP) binary classifier. This is achieved by initializing a neural net fromtonygrad.nnmodule, implementing a simple svm "max-margin" binary classification loss and usingstochastic gradient descentfor optimization. As shown in the notebook, using a 2-layer neural net with two 16-node hidden layers we achieve the following decision boundary on the moon dataset:LicenseMIT
Package: toobit-api-python
TooBit API Python ClientThis library is designed to interact with the TooBit API using Python. Please test before you use it on your production codebase.InstallationYou can install the package using pip:pipinstalltoobit-api-pythonUsageHere is a simple example of how to use the library:fromtoobit_api.toobit_apiimportTooBitAPI# Define your API key and secret keyapi_key="your_api_key"secret_key="your_secret_key"# Create a TooBit API objecttoobit_api=TooBitAPI(api_key,secret_key)# Example: Get server timeprint(toobit_api.get_server_time())# Example: Get exchange informationprint(toobit_api.get_exchange_info())# More examples and information can be found in the documentation.For more examples and detailed usage, please refer to theofficial documentation.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details.
Package: toodle
Toodle (toml moodle) is a small transpiler that converts human-readable text and
TOML file formats representing Moodle questions to Moodle XML.Moodle TOML also supports the Coderunner question type.> Note: Moodle TOML is in alpha and significant API changes are likely.
> Currently, only Coderunner python questions, multi choice, and short answers
> are supported## Installpip install toodle
Package: toodoot
ToodootTodo is a simple TUI for tasks lists in markdown files.Run the command on a new file, existing file, or the default 'todo.md'If you open an existing file, it will ignore non task list markdown, but will display headers in the app.InstallYou can install toodoot from pip, the package is onpypipip install toodoot(You might have to run pip3 install toodoot, on some systems python/pip refers to python2, not 3)