Saravanan666/pypi-org huggingface dataset:
Package: target-typo
target-typoSingertarget to load data toTypo.InstallRequires Python 3pipinstalltarget-typoUsetarget-typo takes two types of input:A stream of Singer-formatted data on stdinA config file containing:api_key - API Key created in the Typo Dashboardapi_secret - API secret created in the Typo Dashboardcluster_api_endpoint - URL to your Typo cluster.  See your account details on the Typo Dashboard.repository - Name of the repositorysend_threshold - The batch size in number of rows to send in each import request to TypoSample config file:{"disable_collection":false,"api_key":"my_apikey","api_secret":"my_apisecret","cluster_api_endpoint":"https://cluster.typo.ai/management/api/v1","repository":"my_repository","send_threshold":250}>TAP-some-api|target-typo-cconfig.jsonDevelopment Installpython3 -m venv .venv
source .venv/bin/activate
pip install -e .SupportYou may reach Typo Support at the email handlesupport@typo.aior See the contact information athttps://www.typo.aiCopyright 2019 Typo. All Rights Reserved.Licensed 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.This product includes software developed at
or by Typo (https://www.typo.ai/).
Package: target-typo-proxy
target-typo-proxySingertarget that provides data quality checking withTypofor data in transit.target-typo-proxyworks as a standard Singer target that provides AI assisted data quality by sending the received data to Typo for inspection. Depending
on the results returned by Typo,target-typo-proxyforwards the record to a valid or error target. An optional passthrough target receives all records regardless of Typo results.InstallRequires Python 3pipinstalltarget-typo-proxyUsetarget-typo-proxy takes two types of input:A stream of Singer-formatted data on stdinA config file containing:api_key - API Key created in the Typo Dashboardapi_secret - API secret created in the Typo Dashboardcluster_api_endpoint - URL to your Typo cluster.  See your account details on the Typo Dashboard.repository - Name of the repositorysend_threshold - The batch size in number of rows to send in each import request to Typoerrors_target - The command for the target that will receive records predicted as errorvalid_target - The command for the target that will receive records predicted as validpassthrough_target - (optional) The command for the target that will receive all recordsAt least one of errors_target and valid_target must be provided.Sample config file:{"disable_collection":false,"api_key":"my_apikey","api_secret":"my_apisecret","cluster_api_endpoint":"https://cluster.typo.ai/management/api/v1","repository":"my_repository","send_threshold":250,"errors_target":"my_target -c errors.json","valid_target":"my_target -c valid.json","passthrough_target":"another_target -c passthrough.json"}>TAP-some-api|target-typo-proxy-cconfig.jsonDevelopment Installpython3 -m venv .venv
source .venv/bin/activate
pip install -e .SupportYou may reach Typo Support at the email handle support@ then the typo domain or See the contact information athttps://www.typo.aiCopyright 2019 Typo. All Rights Reserved.Licensed 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.This product includes software developed at
or by Typo (https://www.typo.ai/).
Package: targomiko
TargomikoA wrapper for paramiko, focused on easy remote command handling of IO, waiting, abortion and exit-code retrieval.It also brings along sane defaults for zero-user-interaction automation.Installingpip install targomikoExamplesimporttimeimporttargomikowithtargomiko.SSHConnection("127.0.0.1","user",password="password")asssh:ssh.upload_recursive(".","/opt/targomiko")# Do something with the underlying paramiko clientwithssh.client.open_sftp()assftp:sftp.mkdir("/opt/somedir")# Execute command and wait for exit.withssh.exec('/opt/targomiko/entrypoint.sh arg1 "long arg 2"')ascmd:cmd.wait()print(f"Exit code:{cmd.exit_code}")# Will output something along the lines of "Exit code: 0"# Execute command and abort after 1.5 secondswithssh.exec('/opt/targomiko/entrypoint.sh arg1 "long arg 2"')ascmd:try:cmd.wait(1.5)exceptTimeoutError:print("command timed out")# Upon exit of the with, the command is abortedprint(f"Exit code:{cmd.exit_code}")# If the timeout was reached, will output "Exit code: -1"# Execute command and abort after 1.5 secondswithssh.exec('/opt/targomiko/entrypoint.sh arg1 "long arg 2"')ascmd:cmd.stdin.write("helo")time.sleep(1)# Preliminary outputprint(f"STDOUT:{cmd.stdout}")print(f"STDERR:{cmd.stderr}")cmd.wait()# Final, complete outputprint(f"STDOUT:{cmd.stdout}")print(f"STDERR:{cmd.stderr}")print(f"Exit code:{cmd.exit_code}")# You don't *have to* use a with-statement, but then remember to call close!cmd=ssh.exec('/opt/targomiko/entrypoint.sh arg1 "long arg 2"')try:cmd.wait(1.5)exceptTimeoutError:print("command timed out")finally:cmd.close()
Package: targon
TargonEasy to setup modulable crawler for Riot API.Targon is a layer on top ofPantheonto abstract most of the tedious asyncio development. It offers a set of Callers, Queues and Parsers allowing to setup an efficient crawler while allowing to integrated custom code to use the data.WARNING : Work Heavily on Progress.How to useTo install :pip install targonAs I am too lazy to write docs for now, it might just be better to simply use the template for matches.Take a look a theexamples.Targon supportSolarias an add-on. To use it, you have to install it separately (as in it is not installed when installing Targon).RoadmapDOCSMore callers (ideally support all endpoints)More templates
Package: targzstream
Version: 1.1SummaryThis module provides an extension to the standard tarfile.TarFile class
which provides the ability to add files to a TarFile that are compressed
on-the-fly.  It will only work on an uncompressed output tarfile, since after
the data is written it will overwrite the header for the file with the
correct size data.LimitationsThe object to which the tarfile is being written must support “seek()”, so
this cannot work over a socket, nor presumably with a compressed tarfile.Note: re-compressing contents is not very useful.The “close_gz_file” method will be called when calling “close” on the
file stream.Note: close_gz_file() and close_file() are interchangeable.The constructor does not support reading, use theopen()class method or
use the base classtarfile.TarFileconstructor.Example Usage#!/usr/bin/env python3importos,sys,shutilimporttargzstream# USAGE:  ./foo.py TARFILE INPUT [ INPUT2 ... ]#  Eg: ./foo.py myoutput.tar *.cpp *.hwithtargzstream.TarFile(sys.argv[1],mode='w')astarball:forfnameinsys.argv[2:]:st=os.stat(fname)withtarball.add_gz_file(name=fname+'.gz',mtime=st.st_mtime,uid=st.st_uid,gid=st.st_gid,mode=st.st_mode)asfout:# Copy the data.withopen(fname,'rb')asfin:shutil.copyfileobj(fin,fout)# The end.TODOHaveadd_gz_filehandle the result of anos.stat.  Eg:withtarball.gz_file(name=fname+'.gz',stat=os.stat(fname))asobj:withopen(fname,'rb')asfin:shutil.copyfileobj(fin,obj)Wrapadd_gz_fileandclose_gz_fileas a context manager.Done.Allow streaming uncompressed files, too.Done.
Package: tarifafedextest
Tarifa Fedex TestPrueba: funcion que consulta Web Service de Fedex para cotizar tarifas.Pre-Requisitos.Python 3.5 o superiorInstalar dependenciaspip install requestspip install xmltodictInstalarpip install tarifafedextest==0.5Ejemplo usoImportamos la clase CotizarTarifafrom tarifafedextest.cotizatarifa import CotizaTarifaimport jsonCreamos el nuevo objeto de la clase CotizarTarifact = CotizaTarifa()Creamos objeto json con las credenciales del clientecredentials = json.dumps({"Key":"bkjIgUhxdghtLw9L","Password":"6p8oOccHmDwuJZCyJs44wQ0Iw","AccountNumber":"510087720","MeterNumber":"119238439","LanguageCode":"es","LocaleCode":"mx"})Creamos objeto json con la informacion de paquete a enviarquote_params = json.dumps({"address_from": {"zip": "64000","country": "MX"},"address_to": {"zip": "64000","country": "MX"},"parcel": {       "length": 25.0,"width": 28.0,"height": 46.0,"distance_unit": "cm","weight": 6.5,"mass_unit": "kg"}})Ejecutamos la funcion get, para obtener la cotizacionct.get(credentials,quote_params)Ejemplo de respuesta[{"price":"14.71",

  "currency":"USD",

  "service_level":{

     "name":"Priority Overnight",

     "token":"PRIORITY_OVERNIGHT"

  }},{"price":"11.34",

  "currency":"USD",

  "service_level":{

     "name":"Fedex Express Saver",

     "token":"FEDEX_EXPRESS_SAVER"

  }},{"price":"12.1",

  "currency":"USD",

  "service_level":{

     "name":"Standard Overnight",

     "token":"STANDARD_OVERNIGHT"

  }}]
Package: tarina
TarinaA collection of common utils for Arclet ProjectsInstallationpipinstalltarinaUsagefromtarinaimportgeneric_isinstancefromtypingimportListassertgeneric_isinstance([1,2,3],List[int])Build from sourcegitclonehttps://github.com/ArcletProject/Tarina.gitcdTarina
pipinstallsetuptoolswheelcibuildwheel==2.12.1
pipinstall-rrequirements/cython.txt
makecythonize
python-mcibuildwheel--output-dirwheelhouse
Package: tarix
metafidtarixتاریخ با استفاده از jdatetime و datetime برای دوری از کدهایِ پُر-تکرارِ مربوط به تاریخِ جلالی که در کارهام باهاش برخورد داشتم توسعه داده شد.راهنمایِ تاریخ رو دراین صفحهبخونید.installputhon3-mpipinstalltarix
Package: tarjan
Python implementation of Tarjan’s algorithmTarjan’s algorithm takes as input a directed (possibly cyclic!) graph and
returns as output its strongly connected components in a topological order.Example>>> tarjan({1:[2],2:[1,5],3:[4],4:[3,5],5:[6],6:[7],7:[8],8:[6,9],9:[]})
[[9], [8, 7, 6], [5], [2, 1], [4, 3]]UsesCyclic dependenciesIn various cases, dependencies might be cyclic and a group of interdependant
actions must be executed simultaneously.  It is not uncommon that
the simulataneous execution is costly.  With Tarjan’s algorithm, one can
determine an efficient order in which to execute the groups of interdependant
actions.Transitive closureUsing Tarjan’s algorithm, one can efficiently compute the transitive
closure of a graph.  (Given a graphG, the transitive closure ofGis a graph that contains the same vertices and contains an edge fromvtowif and only if there is a path fromvtowinG.)The transitive closure is implemented intarjan.tc:>>> from tarjan.tc import tc
>>> tc({1:[2],2:[1,5],3:[4],4:[3,5],5:[6],6:[7],7:[8],8:[6,9],9:[]})
{1: (1, 2, 5, 6, 7, 8, 9),
 2: (1, 2, 5, 6, 7, 8, 9),
 3: (3, 4, 5, 6, 7, 8, 9),
 4: (3, 4, 5, 6, 7, 8, 9),
 5: (8, 9, 6, 7),
 6: (8, 9, 6, 7),
 7: (8, 9, 6, 7),
 8: (8, 9, 6, 7),
 9: ()}Expand group hierarchiesGiven a graph of groups, one can use the transitive closure to determine
all indirect members of a group.  (Someone is an indirect member of a group,
if it is a member of a group that is a member of a group that … is a member
of the group.)InstallationSimply executepip install tarjanor from this source distribution, runpython setup.py installTarjan Changelog0.2.4 (2023-04-14)Support Python 3.8 - 3.11Drop support for Python 2.6, 3.2 - 3.7Change license to LGPLv3Switch to Github actionsAdd flake8 linting0.2.3.2 (2016-12-28)Python 3.6 support0.2.3.1 (2015-11-22)Python 3.4 & 3.5 support0.2.3 (2015-02-19)Fix packaging bug [#6]0.2.2 (2015-02-18)Removed dynamic version specifierConverted docs to rst for better docs on pypiThanks-to: Patrick Gerken (github.com/d03cc)
Package: tarjinja
tarjinja: template + archive/rsyncInstallpython -m venv ../bin/pip install tarjinjaInstall headgit clonehttps://github.com/wtnb75/tarjinjacd tarjinjapython -m venv ../bin/pip install -U .Use# ./bin/tarjinja
Usage: tarjinja [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  copy
  rsync
  tarc
  tarx
# ./bin/tarjinja copy --help
Usage: tarjinja copy [OPTIONS]

Options:
  --input PATH                    [required]
  --output PATH                   [required]
  --out-type [Tar|Zip|Dir|List]   [required]
  --in-type [Tar|Zip|Dir|Single]  [required]
  --filter-type [Jinja|Multi|ReverseJinja|ReverseTemplate|ReverseFormat|ReversePercent|ReverseFstring|Template|Format|Percent|Fstring|Mako]
  --value FILENAME
  --verbose / --no-verbose
  --thru TEXT
  --help                          Show this message and exit.examplestarjinja copy --in-type Dir --input examples/ex1 --out-type Dir --output /tmp/ex1 --filter-type Jinja --value examples/ex1.yamlls -l /tmp/ex1tarjinja copy --in-type Dir --input examples/ex2 --out-type Tar --output /tmp/ex2.tar.gz --filter-type Jinja --value examples/ex2.yamltar tvfz /tmp/ex2.tar.gztarjinja tarc --value examples/pythoncli.yaml /tmp/example1.zip examples/pythoncliunzip -l /tmp/example1.zipTODOsymbolic link supportadd more example templateLinkspypicoveragelocal pypi repo
Package: tarkov-changes.py
A Wrapper for theTarkov ChangesAPI written with Python.Quick ExamplesBasic use with use clientimporttvcimportasynciofromtvcimportAmmunitionfromtypingimportListTOKEN:str='blahblah some token string'client=tvc.TVCClient(token=TOKEN)asyncdefmain():ammunition:List[Ammunition]=awaitclient.fetch_ammunition('7.62x39mm BP gzh')ifnotammunition:# fetch result can be return empty list.# If the list of ammunition what responded to is empty.print('Can not found ammunition!')returnforammoinammunition:print(f"Name:{ammo}")# Returns all entries if you do not insert a query into the fetch function argument.ammunition:List[Ammunition]=awaitclient.fetch_ammunition()forammoinammunition:print(f"Name:{ammo}")if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())loop.close()Simple to use without client declarationimportasynciofromtvcimportAmmunition,TVCClientfromtypingimportListTOKEN:str='blahblah some token string'asyncdefmain():asyncwithTVCClient(TOKEN)asapi:ammunition:List[Ammunition]=awaitapi.fetch_ammunition('7.62x39mm BP gzh')ifnotammunition:# fetch result can be return empty list.# If the list of ammunition what responded to is empty.print('Can not found ammunition!')returnforammoinammunition:print(f"Name:{ammo}")# Returns all entries if you do not insert a query into the fetch function argument.ammunition:List[Ammunition]=awaitapi.fetch_ammunition()forammoinammunition:print(f"Name:{ammo}")# When you exit the `async with` syntax, aiohttp.ClientSession is automatically and securely terminated.# When you use the `async with` with again, a new aiohttp.ClientSession is created again.asyncwithTVCClient(TOKEN)asapi:...if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())loop.close()Update LogsCheck HereView more examplesClick here!
Package: tarkov-market.py
async wrapper forTarkov MarketAPI written in Python.InstallingPython 3.8 or higher is required# Linux/macOSpython3-mpipinstall-Utarkov-market.py# Windowspy-3-mpipinstall-Utarkov-market.pyQuick ExamplesBasic use with use clientimportasyncioimporttarkov_marketfromtypingimportListfromtarkov_marketimportItemTOKEN:str='YOUR API KEY'market=tarkov_market.Client(token=TOKEN,refresh_rate=None)asyncdefmain()->None:# return only one of the search resultsitem:Item=awaitmarket.fetch_item('TerraGroup Labs keycard (Red)')print(item.name,item.price)# return all search resultsitems:List[Item]=awaitmarket.fetch_items('key')foriteminitems:print(item.name,item.price)'''
    The fetch functions has a limit of 300 requests per minute because it communicates directly with the API.
    If you have a large number of requests, check the example in the link below.

    cache example: https://github.com/Hostagen/tarkov-market.py/blob/master/examples/cache.py

    Unrestricted by pre-loading and caching data once.
    '''if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())loop.run_forever()Simple to use without client declarationimportasynciofromtypingimportListfromtarkov_marketimportClientasTVMClient,ItemTOKEN:str='YOUR API KEY'asyncdefmain():asyncwithTVMClient(token=TOKEN)asapi:item:Item=awaitapi.fetch_item('TerraGroup Labs keycard (Red)')print(item.name,item.price)items:List[Item]=awaitapi.fetch_items('key')foriteminitems:print(item.name,item.price)# When you exit the `async with` syntax, aiohttp.ClientSession is automatically and securely terminated.# When you use the `async with` with again, a new aiohttp.ClientSession is created again.asyncwithTVMClient(token=TOKEN)asapi:...if__name__=='__main__':loop=asyncio.get_event_loop()loop.run_until_complete(main())loop.close()More Exampleshttps://github.com/Hostagen/tarkov-market.py/tree/master/examplesUpdate LogsCheck here for releases
Package: tar-mak-monaco-report
tar_mak_monaco_reportThis is a simple package that can be used to create a report on the drivers of Formula 1 - Monaco 2018 Racing.
Нhe package has a number of arguments that will help you get the information you need.-f or --files FILE - an argument that requires specifying the path to the folder which contains the required files(abbreviations.txt, end.log, start.log)--asc - an argument that follow after --files to specify ascending order.--desc - an argument that follow after --files to specify descending order.--driver "driver_name" - an argument that follow after --files to get information about specific raser.Output of the package is ordered by places racers, their time and cars.Example: report_mon -f " Folder_path " --descIn this case In this case, the package will show full report in descending order. If remove --desc, order will be ascending(by default)Example 2: report_mon --files " Folder_path " --driver "driver_name"In this case, the package will show information about certain racer
Package: tar-mak-unique-character-counter
TM_symbol_counter PackageThis is a simple package that you can use to count unique
characters in a passed string or file.
After installing the package, you can start using it in the command line.
Run the "countunique" command with the required arguments-f or --file FILE - an argument that requires specifying the path to the file-s or --string STRING - an argument that requires a string in which to count charactersIf you pass both arguments at the same time, the File argument will be preferredExample: countunique -f " Filepath " -s " Test term "In this case In this case, the package will count the unique characters that are in the file with the path " filepath "Example 2: countunique -s " Test string "In this case, the package will count the unique characters in " Test term " string
Package: tarot_cards
If running tarot cards works for you,then it must be magic.Magic has its cost.So, be ready.Only if you run very few times a day,if only it works,then it will work.Else,it just will not work, not for you.In another word:If you run many times a day,then it will not work.If it does not work for you,then it just will not work, not for you.So, while the magic embraces you,embrace the magic.Else,move on, give it a try another day,or just find magic elsewhere...Written by Jay Yu at jyuuic2@gmail.com
Package: tarotNLP
tarot_cardsThis is a python repository with some code that has a lot of properties for each card so its easy to find associations in readings.https://github.com/ddtraveller/tarot_cardsBasic Usage# spin up the object
from tarot import TarotCards, Card
t = TarotCards()

# get a random card
card_obj, raw_card_name =  t.rnd_card(played_cards=[])

# there are a number of properties for major and minor arcana cards
# ex: 'astrology', 'card_name', 'card_sephira', 'card_text', 'card_type', 'card_url', 'emotional_score', 'h_letter', 'h_number', 'h_origin', 'h_text', 'neg', 'neu', 'pos', 'tree_location', 'tree_num', 'world'

# print out the card name and a description of the card
print(f'{card_obj.card_name}.title()' is your first card. {{card_obj.card_text})The properties relate to astrology, kabbalah, hebrew letters, emotions and location on the tree of life.
Emotion scores look something like this;emotional_score={'Calm': 0.20, 'Mystical': 0.23, 'Overwhelmed': 0.00, 'Curious': 0.30, 'Happy': 0.22, 'Angry': 0.0, 'Surprised': 0.44, 'Sad': 0.22, 'Fearful': 0.11}, pos='0.749', neu='0.135', neg='0.067',The pos, neg, neu values were derived using AWS comprehension.
The emotions were done with another lib but that one was terrible so I re did them by hand.Get 6 cards but don't include the fool or magician cards and then count the number of cards that include an angel or a crown and then print the description of the crown if it exists.cards = t.rnd_card_list(6, played_cards=['fool', 'magician'])
for card, c_obj in cards.items():
    if card in t.angels:
        t.angels_count += 1
    if card in t.crowns:
        t.crowns_count += 1
        print(f'This is a description of the crown in the card: {t.crowns_desc_dict[card]}')Get the main emotion of a card;emotions = card_obj.emotional_score
max_emotion = max(zip(emotions.values(), emotions.keys()))[1]
Package: tarp
tarptarpis a small python package for performing statistical coverage tests to assess
the quality of posterior estimators.tarpcurrently implements the distance to random point (DRP) test introduced
inLemos, Coogan et al 2023, which relies on
posterior samples.Installationpip install tarpContributingPlease reach out to us if you're interested in contributing!To start, follow the installation instructions, replacing the last line withpipinstall-e".[dev]"This creates an editable install and installs the dev dependencies for generating
docs, running tests and packaging for PyPI.Please useisortandblackto format your code. Open upissuesfor bugs/missing features. Use pull requests for additions to the code. Write tests
that can be run bypytest.
Package: tarpatch
TarPatchBinary patches for tarballsBEWARE: THIS PROJECT IS STILL IN THE EXPERIMENTAL PHASEWhat is tarpatch?Tarpatch allows you to create a patch that represents the difference between two tar archives (a.k.a. tarballs).This patch is typically much smaller than the archives themselves, so it can be used for efficient transmission of updates.Instead of creating a single monolithic binary diff, tarpatch creates binary diffs for the individual files in the archives.The resulting patch file can be inspected easily, because it is in JSON format.FAQQ: Why not simply create a monolithic binary difference file using e.g.bsdiff?
A: For small archives, something likebsdiffwould probably be a better choice.
However, as archives grow larger, usingbsdiffcan become too expensive in terms ofmemory use.Questions?Please have a look at theQ&Aand existingissues.Similar or related projectsbsdiff4(Python)Courgettefrom Chromium (C++,source)containers/tar-diff(Go)difflib(Python, standard library)GNU diffutilsGNU patch
Package: tarpitd
Tarpitd.pyTarpitd.py will partly simulate common internet services,
for an instance, HTTP, but respond in a way that may make the
client not work properly, slow them down or make them crash.Qucik startJust download the script and run it:wget --output-document tarpitd.py \
https://github.com/ImBearChild/tarpitd.py/raw/main/src/tarpitd.py

python ./tarpitd.py -s misc_endlessh:0.0.0.0:2222Now an endlessh tarpit is running on your host listening port 2222.InstallYou don't need to runpip installorgit clone. Just download the script calledtarpitd.pyin this repo, and put it somewhere you see fit.If you want it act like an executable binary, put it inside your$PATH(usually/usr/local/binor~/.local/bin), and make it executable bychmod +x.In case that you still want an installation with pip:pip install \
git+https://github.com/ImBearChild/tarpitd.py.git@mainDocumentFor online usage document, please refer totarpitd.py(7)andtarpitd.py(1).Or you can refer to embedded manual page, if you have the script downloaded:python tarpitd.py --manual tarpitd.py.7