Saravanan666/pypi-org huggingface dataset:
Package: tccseg
Thai Character Cluster SegmentertccsegA tool for segmenting character clusters from unsegmented text, particularly for Thai language.Installation (PyPI)pip install tccsegUsage (PyPI)from tccseg.core import Core
segmenter = Core()
res = segmenter.segment("เธอคือพจนานุกรม")
# res: ['เธ', 'อ', 'คือ', 'พ', 'จ', 'นา', 'นุ', 'ก', 'ร', 'ม'])segmenter = Core(cclib='original')
res = segmenter.segment("เธอคือพจนานุกรม")Usage (dev)usage: segmenter.py [-h] [--execute_mode {segment,interactive}] --input_data
                    INPUT_DATA [--cclib {original, cfcc}]

optional arguments:
  -h, --help            show this help message and exit
  --execute_mode {segment,interactive}, -x {segment,interactive}
                        Choose a mode from among 'segment' and 'interactive'
  --input_data INPUT_DATA, -i INPUT_DATA
                        Input data (text)
  --cclib {original, cfcc}
                        Specify Character Cluster library from among
                        'original' and 'cfcc' (Default: original)Execute mode (See 'sample_scripts/' for more details)segment: segment input data into character clusterinteractive: segment input text (stdin) into character clusterCharacter Cluster Library (cclib)original: Proposed by Theeramunkong et al. 2000. and revised bypythainlpcfcc: soonAcknowledgementThanaruk Theeramunkong, Virach Sornlertlamvanich, Thanasan Tanhermhong, and Wirat Chinnan. 2000. Character cluster based Thai information retrieval. In Proceedings of the fifth international workshop on on Information retrieval with Asian languages (IRAL ’00). Association for Computing Machinery, New York, NY, USA, 75–80. DOI:https://doi.org/10.1145/355214.355225Wannaphong Phatthiyaphaibun, Korakot Chaovavanich, Charin Polpanumas, Arthit Suriyawongkul, Lalita Lowphansirikul, & Pattarawat Chormai. (2016, Jun 27). PyThaiNLP: Thai Natural Language Processing in Python. Zenodo. http://doi.org/10.5281/zenodo.3519354
Package: tcd
Twitch Chat Downloaderpip install tcdA neat tool to download chat messages from past broadcasts.RequirementsPython 3.8 or newerA Twitch client ID & client secretUsagetcd# Download chat from VODs by video idtcd--video789654123,987456321--formatirc--output~/Downloads# Download chat from the first 10 VODs from multiple streamerstcd--channelsodapoppin,nymn,lirik--first=10FeaturesCreate your owncustom formatsIRC format with badgesSRT and SSAsubtitle formatsRaw JSON data from the Twitch APITimezone conversionDocumentation•Twitch Python
Package: tcdd-bilet-kontrol
🚉 TCDD Bilet KontrolTCDD Bilet Kontrol Etme Arayüzü🚀 Doğrudan Kullanımpipinstall-Utcdd-bilet-kontrol

tcdd_bilet_kontrolManuel Paketleme Seçenekleri🐍 Pythongitclonehttps://github.com/keyiflerolsun/tcdd_bilet_kontrol.gitcdtcdd_bilet_kontrol# Paketlepipinstall.# Artıkları Temizlerm-rfbuild/dist/*.egg-info/.eggs/&&find.|grep-E"(__pycache__|\.pyc|\.pyo$)"|xargsrm-rf# Çalıştırtcdd_bilet_kontrol# Paketi Kaldırpipuninstalltcdd_bilet_kontrol📦 Flatpakgitclonehttps://github.com/keyiflerolsun/tcdd_bilet_kontrol.gitcdtcdd_bilet_kontrol# Paketleflatpak-builder--user--install--force-cleanbuild-dirorg.kekikakademi.tcdd_bilet_kontrol.yml# Artıkları Temizlerm-rf.flatpak*.vscodebuild-dir&&find.|grep-E"(__pycache__|\.pyc|\.pyo$)"|xargsrm-rf# Çalıştırflatpakrunorg.kekikakademi.tcdd_bilet_kontrol# Paketi Kaldırflatpakuninstallorg.kekikakademi.tcdd_bilet_kontrol⚠️ Bilinen OlumsuzluklarFletvarsayılan başlık ve ikonu henüz değişemiyor.https://github.com/flet-dev/flet/discussions/378💸 Bağış Yap☕️ Kahve Ismarla🌐 Telif Hakkı ve LisansCopyright (C) 2022 bykeyiflerolsun❤️️GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007Koşullarına göre lisanslanmıştır..♻️ İletişimBenimle iletişime geçmek isterseniz,Telegram'dan mesaj göndermekten çekinmeyin;@keyiflerolsun@KekikAkademiiçin yazılmıştır..
Package: tc-ds-2023-calculator
Calculator packageSummaryThe package contains a calculator class which is a python representation of a calculator.
Calculator objects are used to perform the following
operations:AdditionSubtractionMultiplicationDivisionTaking n-th root of a positive number.Reseting the memoryInstallationTo install the package:pip install tc-ds-2023-calculatorUsing the packageTo import the package:from calculator import CalculatorInstantiating an object:obj = Calculator(memory=0)Memory stores the initial value which will later be manipulated. The variable is 0 by default but can be set to any other number of type int or float.Operator behaviour and instance methodsOperators:The class uses operator overloading for addition, subtraction, multiplication and division operations.+Addition-Subtraction*Multiplication/DivisionThese operations are done in a following manner:object <operator> inputExample:>>> obj = Calculator(2)
>>> obj
    Calculator(2)
>>> obj + 2
>>> obj
    Calculator(4)
>>> obj/2
>>> obj
    Calculator(2)
>>> obj * 3
>>> obj
    Calculator(6)
>>> obj / 2
>>> obj
    Calculator(3)Methods:Calculator class provides following methods:.root(n=2)Takes the n-th root of a positive number stored in the calculator memory. The n value must be an integer number. Only works with positive memory numbers even when n is odd. Takes the square root by default.reset()Sets the calculator memory to 0.get_num()Returns calculator memoryExample:>>> obj = Calculator(4)
>>> obj.root()
>>> obj
    Calculator(2)
>>> obj.reset()
>>> obj
    Calculator(0)
>>> obj.get_num()
    0TestingInstall dependencies:pip install -r requirements.txtTest:python3 -m unittest
Package: tcegoframework
TCE-GO Artificial Intelligence FrameworkFramework de Inteligência Artificial desenvolvido para o Tribunal de Contas do Estado de Goiás.InstalaçãoAntes de começar tenha certeza de que opipestá instalado com opython>=3.8.Para instalar localmente:pip install tcegoframeworkUsoRequisitosUm arquivoconfig.inique possua obrigatoriamente a seguinte estrutura deve existir no diretório onde o framework será chamado:[options.dremio]
connection = database.address:port
user = username
password = password

[options.training]
expired_class_path = arquivo_naturezas_vigência_expirada.xlsx
validated_data_path = dados_validados.xlsx[options.dremio]connection: endereço e porta do banco de dados onde serão feitas as consultas.user: nome de usuário do dremio.password: senha do usuário do dremio.[options.training]expired_class_path: endereço para o arquivo que possui as naturezas fora de vigência.validated_data_path: endereço para o arquivo que possui os dados validados por um especialista quanto à corretude.TreinoPara iniciar o treinamento:tcegoaif trainingSerá gerada uma estrutura de arquivos que não deve ser modificada para correto funcionamento do framework.InferênciaPara que seja possível realizar inferência os arquivos gerados pelo treinamento devem constar no diretório em que o comando for executado:tcegoaif inferenceAo final da inferência são gerados dois arquivos:dia-da-execução_results.csv: resultados da inferência contendo a seguinte estrutura:Identificador do empenhoEmpenho Sequencial EmpenhoNatureza PreditaCorretude PreditaAvaliação final do modeloxxxx.xxxx.xxx.xxxxxxxxx.xxxx.xxx.xxxxxx.x.xx.xx.xxOKC-M1-M2dia-da-execução_plot.png: gráfico contendo a distribuição da avaliação final do framework.FiltrosAlguns filtros são suportados por ambos os comandos.Intervalo de DatasBusca todos os documentos no intervalo de datas (dd/mm/aaaa) especificado. Funciona em modo de treino ou inferência e não pode ser usado em conjunto com o filtro de Data.tcegoaif inference --daterange 01/01/2020 01/02/2020outcegoaif inference -dr 01/01/2020 01/02/2020Data(s)Busca documentos de uma ou mais datas (dd/mm/aaaa) especificadas pelo filtro. Funciona apenas para o modo de inferência e não pode ser usada em conjunto com o filtro de Intervalo de Datas.tcegoaif inference --date 01/01/2020 02/01/2020 05/01/2020ou$tcegoaif inference -d 01/01/2020 02/01/2020 05/01/2020Órgão(s)Busca documentos de um ou mais órgãos especificados no filtro. Funciona apenas para o modo de inferência e pode ser combinado com qualquer um dos outros filtros.tcegoaif inference --orgao FUNEBOMoutcegoaif inference -o FUNEBOMContribuiçõesJeferson Marques (Kinteshi)Thauan Silva (devthauan)
Package: tcell
tcellScheme thread cells in PythonWARNING: This repo is in development. It was automatically generated withmkpylib. If you're reading this message, it means that I use this repo for my own purposes right now. It might not do anything at all; the default functionality isprint('TODO').If you really want to try it out, feel free. I recommend reading through thetestsand commit history to see if it does what you need, orask mefor status updates.Stay tuned!Installpip3 install -U tcellOr develop locally:git clone https://github.com/shawwn/tcell ~/tcell
cd ~/tcell
python3 setup.py developUsageimporttcellprint('TODO')LicenseMIT. SeeLICENSEfile.ContactA library byShawn Presser. If you found it useful, please considerjoining my patreon!My Twitter DMs are always open; you shouldsend me one! It's the best way to reach me, and I'm always happy to hear from you.Twitter:@theshawwnPatreon:https://www.patreon.com/shawwnHN:sillysaurusxWebsite:shawwn.com
Package: tcell-agent
tCell Python AgentA tCell.io security agent that instruments your Python web applications.InstallationInstalling latest agent via pip:$ pip install tcell_agentInstall a particular version:$ pip install tcell_agent==1.0.1Install from source:$ pip install ~/Downloads/tcellagent_srcInstall from a compressed file:$ pip install ~/Downloads/pythonagent-tcell-master.zipRun application from sourceSwitch to your project$ cd ~/projects/mydjangoapp/Obtain atcell_agent.configfile from the tCell dashboard and place it at the
root of your web app, for this example~/projects/mydjango/.NOTE!By default the agent looks for thetcell_agent.configin the current
working directory as well as$TCELL_AGENT_HOME/tcell_agent.config.There are two ways you can load the tcell_agent:1. Use the tcell_agent binary to run your appIf you previously started your web app like this:$ python manage.py runserver 0.0.0.0:8000you now start it like this:$ tcell_agent run python manage.py runserver 0.0.0.0:80002. Load the tcell_agent via a wsgi.py fileAssuming yourwsgi.py(Django) file looks something like this:importosfromdjango.core.wsgiimportget_wsgi_applicationfromdjango_waitlist.settingsimportPROJECT_ROOTos.environ.setdefault("DJANGO_SETTINGS_MODULE","django_waitlist.settings")application=get_wsgi_application()modify it accordingly:importosfromdjango.core.wsgiimportget_wsgi_applicationfromdjango_waitlist.settingsimportPROJECT_ROOT# optional: change default settings via ENV# os.environ['TCELL_AGENT_CONFIG'] = '/var/www/html/tcell/tcell_agent.config'# os.environ['TCELL_AGENT_HOME'] = '/var/www/html/tcell'importtcell_agenttcell_agent.init()os.environ.setdefault("DJANGO_SETTINGS_MODULE","django_waitlist.settings")application=get_wsgi_application()Run application from service scriptAssuming your service script (/etc/init.d/myapp.conf) that looks something
like this:scriptset-asource/etc/environmentexec/path/to/bin/uwsgi--iniuwsgi.ini
endscriptload the tcell_agent by modifying it accordingly:scriptset-asource/etc/environmentexportTCELL_AGENT_CONFIG='/path/to/tcell-home/tcell_agent.config'exportTCELL_AGENT_HOME='/path/to/tcell-home/tcell'exec/path/to/bin/tcell_agent/path/to/bin/uwsgi--iniuwsgi.ini
endscriptIf you don't want to modify your service script, modifyingwsgi.pyto load the
agent should also work.Common pitfallsIf you're usingtcell_agentbinary, ensure it exists in your path.If you're using virtualenv make sure to load the environment before installing
tcell_agentWhen specifyingTCELL_AGENT_HOMEensure the app's user has correct
read/write permissions to that directory.
Package: tcell-hooks
tCell Hooks is to be used in conjuction with thetcell_agentto allow for custom event notifications of login failures and login successes.Getting startedYou can add it to your requirements.txt file with:tcell_hooksThen runpip install -r requirements.txtThere are two options for calling the hooks from your application code:By providing a Django/Flask request object and having the tCell Agent extract the relevant details from it:fromtcell_hooks.v1importsend_django_login_event,LOGIN_SUCCESSsend_django_login_event(status=LOGIN_SUCCESS,django_request=request,user_id="tcell@tcell.io",session_id="124KDJFL3234")fromtcell_hooks.v1importsend_flask_login_event,LOGIN_SUCCESSsend_flask_login_event(status=LOGIN_SUCCESS,flask_request=request,user_id="tcell@tcell.io",session_id="124KDJFL3234")Or by providing each individual piece of information required for the tCell event:fromtcell_hooks.v1importsend_login_event,LOGIN_SUCCESSsend_login_event(status=LOGIN_SUCCESS,session_id="124KDJFL3234",user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) ...",referrer="http://192.168.99.100:3000/",remote_address="192.168.99.1",header_keys=["HOST","USER_AGENT","ACCEPT","REFERER","ACCEPT_ENCODING","ACCEPT_LANGUAGE","COOKIE"],user_id="tcell@tcell.io",document_uri="/users/auth/doorkeeper/callbackuri")The available statuses are:LOGIN_SUCCESSLOGIN_FAILUREImportant NoteIf thetcell_agentis not installed or if it's disabled, this code will do nothing and should have no performance effect on your app.
Package: tcenter
Tcenter for PythonA Python library for centralization of title. In this0.1.4.4version of tcenter, it allows you to center the title with a number of specific spaces.InstallationThe latest stable versionis available on PyPI. Either addtcenterto yourrequirements.txtfile or install with pip:pip install tcenterUsageAfter you have installed it, to use it is very simple, just import the library and use it this way:fromtcenter.centerimportto_centerreceive=to_center('Hello world',20)The functionto_center, it receives a maximum of three parameters and a minimum of two. if you run thehelp ()command you will receive more information about:help(to_center)He will return this to you at the terminal:Helponfunctionto_centerinmoduletcenter.center:to_center(title,space,object='')Thisfunctionisreponsibleforcentralizingthetitle.acceptedatleasttwovestments.:paramtitle:receiveanytitle,onlystring.:paramspace:receiveanyvalue,onlynumbers.:paramobject:receiveanyobject,ex:-.=~<>_|betweenothers.:return:Thetitlecentralized.there are 3 ways for you to pass the data toto_center:fromtcenter.centerimportto_centerreceive_one=to_center('Hello world',20)receive_two=to_center('Hello world','20')receive_three=to_center('Hello world',20,'=')print(receive_one)print(receive_two)print(receive_three)This way the output would be like this:HelloWorldHelloWorld=======HelloWorld=======if you notice, the first two have no difference, but the third, it allows your title to be in the middle of the objects.
Package: tcev-transformation
TCEV Data Transformation LibraryLibrary for common data transformations used in machine learning models, utilizing only the standard Python library and/or Numpy. Includes transposition, time series windowing & cross-correlation.DescriptionThe repository contains 3 data transformation and associated unit tests for the following functions:transpose2d-> a function that takes in a 2D matrix of real numbers and swaps the axis (standard transpose logic).window1d-> a function that converts a 1D list / np.array into window subsets of the input, given additional parameters on size of window, shift between windows & stride within a window.convolution2d-> a function that takes an input 2D array, a kernel 2D array and combines them to produce a 2D array using cross-correlation operations. Allows for an optional stride parameter, which determines the slide or "shift" between cross-correlation operations.The repo has been packaged, built and published to PyPi.DependenciesPoetryNumpyPytest (for running user tests only)After cloning the repository, run bash commandpoetry install.AuthorsErnestas Vainorius@LinkedInVersion historyv1.0.0:Added an additional unit test forconvolution2dfor testing larger matrices.Changedsrcdirectory name totcev_transformationto allow easier to understand library import post publishing.Finalized README.md.Packaged, built and published repo to PyPi.Seechange notesv0.3.0:Created aconvolution2dfunction that takes an input 2D array, a kernel 2D array and combines them to produce a 2D array using cross-correlation operations.Created unit tests for checkingconvolution2dfunctionality and parameter intake.Seechange notesv0.2.0:Implementedwindow1dfunction, which allows to create window subsets from a starting input array/list, with additional parameters for window size, shift between each window, stride within a window.Wrote unit tests fortranspose2d&window1dfunctionsSeechange notesv0.1.0:Createdtranspose2dfunction, which allows for transposition of any 2D real-number matricesBase file structure created, including Poetry files for dependency managementSeechange notes
Package: tcex
tcex - ThreatConnect Exchange App FrameworkThe ThreatConnect™ TcEx App Framework provides functionality for writing ThreatConnect Exchange Apps.Requirementsarrow (https://pypi.python.org/pypi/arrow)black (https://pypi.org/project/black/)inflect (https://pypi.python.org/pypi/inflect)isort (https://pypi.org/project/isort/)jmespath (https://pypi.org/project/jmespath/)paho-mqtt (https://pypi.org/project/paho-mqtt/)pyaes (https://pypi.org/project/pyaes/)pydantic (https://pypi.org/project/pydantic/)python-dateutil (https://pypi.python.org/pypi/python-dateutil)pyyaml (https://pypi.python.org/pypi/pyyaml)redis (https://pypi.python.org/pypi/redis)requests (https://pypi.python.org/pypi/requests)rich (https://pypi.python.org/pypi/rich)semantic_version (https://pypi.org/project/semantic-version/)wrapt (https://pypi.org/project/wrapt/)Development Requirementsbandit (https://pypi.org/project/bandit/)deepdiff (https://pypi.org/project/deepdiff/)fakeredis (https://pypi.org/project/fakeredis/)pre-commit (https://pypi.org/project/pre-commit/)pydocstyle (https://pypi.org/project/pydocstyle/)pylint (https://pypi.org/project/pylint/)pyright (https://pypi.org/project/pyright/)pyupgrade (https://pypi.org/project/pyupgrade/)typer (https://pypi.python.org/pypi/typer)Test Requirementspytest (https://pypi.org/project/pytest/)pytest-cov (https://pypi.org/project/pytest-cov/)pytest-html (https://pypi.org/project/pytest-html/)pytest-ordering (https://pypi.org/project/pytest-ordering/)pytest-xdist (https://pypi.org/project/pytest-xdist/)Installationpip install tcexDevelopment / Testingpip install tcex[dev,test]Documentationhttps://threatconnect.readme.io/docs/overviewRelease Noteshttps://threatconnect.readme.io/docs/release-notesContactIf you have any questions, bugs, or requests please contactsupport@threatconnect.com
Package: tcex-app-testing
tcex-app-testing - ThreatConnect™ Exchange App Testing FrameworkThe TcEx App testing framework provides functionality for using pytest to test TcEx Apps.Requirementsarrow (https://pypi.python.org/pypi/arrow)astunparse (https://pypi.python.org/pypi/astunparse)black (https://pypi.org/project/black/)deepdiff (https://pypi.org/project/deepdiff/)hvac (https://pypi.org/project/hvac/)inflect (https://pypi.python.org/pypi/inflect)isort (https://pypi.org/project/isort/)mako (https://pypi.org/project/mako/)pyaes (https://pypi.org/project/pyaes/)pydantic (https://pypi.org/project/pydantic/)pytest (https://pypi.org/project/pytest/)pytest-cov (https://pypi.org/project/pytest-cov/)pytest-html (https://pypi.org/project/pytest-html/)pytest-xdist (https://pypi.org/project/pytest-xdist/)python-dateutil (https://pypi.python.org/pypi/python-dateutil)redis (https://pypi.python.org/pypi/redis)requests (https://pypi.python.org/pypi/requests)rich (https://pypi.python.org/pypi/rich)semantic_version (https://pypi.org/project/semantic-version/)typer (https://pypi.python.org/pypi/typer)Development Requirementsbandit (https://pypi.org/project/bandit/)pre-commit (https://pypi.org/project/pre-commit/)pydocstyle (https://pypi.org/project/pydocstyle/)pylint (https://pypi.org/project/pylint/)pyright (https://pypi.org/project/pyright/)pyupgrade (https://pypi.org/project/pyupgrade/)InstallationUsing pippipinstalltcex-app-testingDocumentationhttps://threatconnect.readme.io/docs/tcex-app-testing-overviewRelease Noteshttps://threatconnect.readme.io/docs/tcex-app-testing-release-notesDevelopmentAfter cloning the repository, install the development requirements.pipinstall-e.[dev]ContactIf you have any questions, bugs, or requests please contactsupport@threatconnect.com
Package: tcex-cli
tcex-cli - ThreatConnect™ Exchange CLI PackageThe TcEx CLI package provides functionality for creating ThreatConnect Apps and Integrations.Requirementsarrow (https://pypi.python.org/pypi/arrow)black (https://pypi.org/project/black/)inflect (https://pypi.python.org/pypi/inflect)isort (https://pypi.org/project/isort/)paho-mqtt (https://pypi.org/project/paho-mqtt/)pyaes (https://pypi.org/project/pyaes/)pydantic (https://pypi.org/project/pydantic/)python-dateutil (https://pypi.python.org/pypi/python-dateutil)redis (https://pypi.python.org/pypi/redis)requests (http://docs.python-requests.org/en/latest)semantic_version (https://pypi.org/project/semantic-version/)tinydb (https://pypi.python.org/pypi/tinydb)typer (https://pypi.python.org/pypi/typer)Development Requirementsbandit (https://pypi.org/project/bandit/)pre-commit (https://pypi.org/project/pre-commit/)pydocstyle (https://pypi.org/project/pydocstyle/)pylint (https://pypi.org/project/pylint/)pyright (https://pypi.org/project/pyright/)pytest (https://pypi.org/project/pytest/)pytest-cov (https://pypi.org/project/pytest-cov/)pyupgrade (https://pypi.org/project/pyupgrade/)InstallationUsing pippipinstalltcex-cliDocumentationhttps://threatconnect.readme.io/docs/tcex-cli-overviewRelease Noteshttps://threatconnect.readme.io/docs/tcex-cli-release-notesDevelopment and TestingAfter cloning the repository, install the development and testing requirements.pipinstall-e.[dev,test]ContactIf you have any questions, bugs, or requests please contactsupport@threatconnect.com