Saravanan666/pypi-org huggingface dataset:
Package: tgpy
TGPyRuns Python code snippets within your Telegram messagesGuide:https://tgpy.tmat.me/guideRecipes:https://tgpy.tmat.me/recipesDiscussion:https://t.me/tgpy_floodhttps://user-images.githubusercontent.com/38432588/181266550-c4640ff1-71f2-4868-ab83-6ea3690c01b6.mp4Quick StartPython 3.10+ required. Install using pipx:pipxinstalltgpy
tgpyor Docker:dockerpulltgpy/tgpy
dockerrun-it--rm-v/tgpy_data:/datatgpy/tgpyThen follow instructions to connect your Telegram account.More on installation:https://tgpy.tmat.me/installationNext, learn TGPy basics:https://tgpy.tmat.me/basicsUse CasesHere are a few examples of how people use TGPy:🧮 Run Python as an in-chat calculator🔍 Search for song lyrics within a chat🧹 Delete multiple messages with a command📊 Find out the most active members in a chat✏️ Instantly convert TeX to Unicode in messages:For example,x = \alpha^7becomesx = α⁷AboutTGPy allows you to easily write and execute code snippets directly within your Telegram messages. Combine Telegram
features with the full power of Python: Integrate with libraries and APIs. Create functions and TGPy modules to reuse
code in the future. Set up code transformers and hooks to create custom commands and tweak Python syntax.TGPy uses Telegram API through theTelethonlibrary.Inspiration and CreditsTGPy is inspired byFTGand similar userbots. However, the key
concept is different: TGPy is totally based on usage of code in Telegram rather than plugging extra modules. It was
designed for running single-use scripts and reusing code flexibly. You can think of TGPy as **a userbot for programmers
**.We built TGPy withTelethon, a Python library to interact with Telegram API.
Basic code transformation (such as auto-return of values) is based onmeval.TGPy Docs useMaterial for MKDocswith custom CSS.LicenseThis project is licensed under the terms of the MIT license.
Package: tg-qso-bot
tg-qso-botSimple HAM helper bot written on Python.FeaturesGet QSO list fromHamlogby request from Telegram chat.Installationpython3-mpipinstalltg-qso-botConfigurationGetapp_idandapp_hashfromTelegram Apps.
The API key is personal and must be kept secret.Ask@botfatherfor bot token.Putapp_id,app_hashandbot_tokento fileconfig/settings.json. You can
create copy of this file for editing calledsettings.local.json.Usagepython3-mtg_qso_bot.bot
Package: tgradish
tgradishSimple video converting cli utility specializing in Telegram videostickers with the ability to bypass the 3 second limit.Installationpython -m pip install tgradishDependenciesFor thetgradish convertcommandffmpegshould be installed in PATH,
buttgradish spoofworks just fine even without it.Usage examplesConverting .mp4 video to videosticker:tgradish convert -i ~/pig.mp4Spoofing duration of already correctly encoded videosticker:tgradish spoof ~/pig.webm ~/spoofed_pig.webmLicenseMIT License
Package: tgraphics
TGraphicsInstallationViapip$ pip install tgraphicsVia Source from GitHub usinggit$ git clone https://github.com/GrandMoff100/tgraphics
$ cd tgraphics
$ python setup.py installUsagefromtgraphicsimport(Screen,Sprite,Vector,# Experimental, b/w vectorTexture# Experimental, b/w texture (wrapper for vector))
Package: tgre
This package is for reading and writing Praat TextGrid annotations in
Python. It can read TextGrid files that are compatible with theTextGrid file
formatspecification. It is tested to work with Python 2.7, 3.4, 3.5, and 3.6.UsageThetgre.pymodule docstring shows some usage examples, and the
docstrings intgre.pyhave more detail on functionality.InstallationThe package can be installed from PyPI with this command:pip install tgreThe latest version can also be installed from GitHub with this command:pip install git+http://github.com/scjs/tgre.gitYou can also copy thetgresubdirectory into your working directory,
or put it in your Python path.TestsTo run the tests, runnosetestsfrom the root directory, orpython setup.py testto install the test dependencies first.ReferencesBoersma, Paul & Weenink, David (2016). Praat: doing phonetics by
computer [Computer program]. Version 6.0.12, retrieved fromhttp://www.praat.org/
Package: tg-react
tg-reactHelpers for react based applications running on django.DocumentationThe full documentation is athttps://tg-react.readthedocs.org.QuickstartInstall tg-react:pip install tg-reactThen use it in a project:import tg_reactFeaturesTODO.. TODO: List features and link to documentation for more informationChangelogChanges are documented underGithub Releases <https://github.com/thorgate/tg-react/releases>_.
Package: tgrocery
A simple, efficient short-text classification tool based on LibLinear.Sample Usage>>>fromtgroceryimportGrocery# Create a grocery(don't forget to set a name)>>>grocery=Grocery('sample')# Train from list>>>train_src=[('education','Student debt to cost Britain billions within decades'),('education','Chinese education for TV experiment'),('sports','Middle East and Asia boost investment in top level sports'),('sports','Summit Series look launches HBO Canada sports doc series: Mudhar')]>>>grocery.train(train_src)# Or train from file>>>grocery.train('train_ch.txt')# Save model>>>grocery.save()# Load model(the same name as previous)>>>new_grocery=Grocery('sample')>>>new_grocery.load()# Predict>>>new_grocery.predict('Abbott government spends $8 million on higher education media blitz')education# Test from list>>>test_src=[('education','Abbott government spends $8 million on higher education media blitz'),('sports','Middle East and Asia boost investment in top level sports'),]>>>new_grocery.test(test_src)# Return Accuracy1.0# Or test from file>>>new_grocery.test('test_ch.txt')# Custom tokenize>>>custom_grocery=Grocery('custom',custom_tokenize=list)Installation$pipinstalltgroceryLinksCode on Github
Package: tgr-wdn-query-lang
Copyright 2021 HORANGI PTE LTDPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Package: tgsdk
Telegram API SDKIntroductionGetting startedTo start using package tgsdk you have to know methods of theTelegram API. This library provides pure  interface to interact with it, but you need to understand what you are doing.Documentation of methods just contain URL to realTelegram APIdocumentation cause all logic is understandable without large texts and you have to know description and signature of most methods. If you want you can add documentation and make a pull request.InstallationYou can install or upgrade package with:pipinstalltgsdk--upgradeLicenseGPLv3
Package: tgsdl
TGSDLTelegram sticker pack downloaderFast and SimpleHow to installpip install tgsdlExample usefrom tgsdl import download_sticker_pack

pack_url = "https://t.me/addstickers/SophiaLillis_lillislove"
download_sticker_pack(pack_url)>>> tgsdl https://t.me/addstickers/SophiaLillis_lillislove
Package: tg-searcher
TG Searcher众所周知，Telegram 的搜索功能较弱，尤其是对于中文等 CJK 语言，由于 Telegram 无法对其进行正确的分词，因此很难搜到想要的内容。本项目实现了一个通用的框架，用户可以对 Telegram 的会话建立索引，通过 bot 来便捷地搜索消息。它的使用效果见下图：用法关于如何运行和部署 Searcher，参见deploy.md关于如何编写配置，参见configuration.md关于不同版本的修改记录，参见CHANGELOG.mdTelegram Bot 前端Telegram Bot 的前端提供了如下功能：当用户给 bot 发送消息的时候，bot 默认会将消息的内容视为搜索的关键词，因此会返回根据这个关键词进行搜索的结果。除了简单的关键词查询以外，还支持如下的高级搜索语法"foo bar"搜索出现foo bar这个字符串的消息AND,OR,NOT可以用来组合搜索逻辑，例如NOT foo AND (bar OR woo)搜索所有没有出现foo，并且出现了bar或者woo的消息*和?通配符，前者匹配任意多个字符，后者匹配一个字符。注意：包含通配符的搜索会较慢。更详细的语法介绍，参见 whoosh 的文档下面几条命令任何用户都可以使用：/search [keyword]: 搜索消息，同去掉/search的情形等价。/chats [keyword]: 列出所有被索引的，标题中包含keyword的会话列表。如果没有指定keyword，则返回所有的会话。bot 会返回一列按钮，点击一个按钮之后这条消息就对应了一个会话。有一些指令包含chat_id作为参数，对于这些指令，如果没有指定 chat_id 参数，那么可以通过回复这条消息来把会话的 ID 当作参数。如果回复搜索的关键词，则只搜索这个会话中的消息。/random：返回一条随机的消息（暂不支持指定会话）下面几条命令只有管理员可以使用：/download_history [--max=MAX] [--min=MIN] [CHAT...]: 下载某个会话的历史消息并将其进行索引。其中CHAT是对话的 id 或者用户名。如果没有指定CHAT也没有通过回复 bot 的消息来指定会话。MIN和MAX参数用于指定索引的消息的最小和最大 ID。在下载之后，会话会自动加入监听列表，所有新消息和旧消息的修改、删除均会被同步到索引/monitor_chat CHAT...: 仅将会话加入监听列表，不索引历史消息。注意：当前版本当后端重启之后，如果一个聊天没有任何消息被索引，那么它不会被加入监听列表，未来的版本可能会修复这个问题/stat: 报告后端的状态/clear [CHAT...]: 或者清除特定会话的索引，如果要清除所有索引，请使用\clear all/find_chat_id KEYWORD: 列出所有后端的账号的所有会话中包含keyword的会话以及对应的 id/refresh_chat_names: 刷新会话 id 和会话名称之间映射的缓存
Package: tgsend
tgsend - Telegram Messaging Tooltgsend is a little Python module to send messages, photos and documents to Telegram chats via a Telegram bot. tgsend can be used either as a command line tool or as a module for Python 3.Quick Start (Command Line)Create a Telegram Bot with the help of@BotFatherand take note of the bot token.Start a new chat with your bot or add it to a group where the messages should be sent to.
Find out your personal chat ID or the chat ID of the group chat, e.g. by using@Echo_ID_Bot.Important:Telegram Bots are shy, so you have to send the first message in a chat with them.Install tgsend with pip:sudopip3installtgsendQuickly configure tgsend with environment variables (seeConfigurationfor other options). In bash:TGSEND_TOKEN=abcdefg# your bot tokenTGSEND_CHATID=1234567# the chat ID of the private/ group chatTest it:tgsend"Hello World"UsageFrom Command LineSend a text message with formatting:tgsend--formatmarkdown"This is a text with *bold* and _italic_ words."Add a title and an icon:tgsend-t"Title"--icon$'\u2705'"Some text."Send a picture:tgsend--photoimage.png"Image description."Send a file:tgsend--doclog.txt"Log file"Send a video:tgsend--videovideo.mp4"Video caption"Send a sticker:tgsend--stickersticker.webpRead from stdin:catgreeting.txt|tgsend-Typetgsend --helpto see all options.In PythonExample:fromtgsendimportTelegram,ParseMode# token and chat ID will be searched in config files if not specified heretelegram=Telegram("your-bot-token","your-chat-id")# send a text messagetelegram.send_message("This is a text with *bold* and _italic_ words.",title="The Title",parse_mode=ParseMode.MARKDOWN)ConfigurationA configuration for tgsend always consists of a bot token and a chat ID.
These values can be either set through environment variables (as shown above) or through a configuration file.Per-user and global configurationYou can place a per-user configuration file at~/tgsend.confand a global configuration file at/etc/tgsend.conf.
If no environment variables are specified, tgsend will look for the required values in these files in the given order.
The format of this configuration file should look like this:[Default]
BotToken = your_bot_token
ChatID = your_chat_idMore configuration optionsYou can add additional bot token/ chat ID profiles by adding a config section to the configuration file, e.g.:[AltConfig]
BotToken = different_bot_token
ChatID = another_chat_idYou can then simply switch to this configuration with the-coption:tgsend-cAltConfig"Hello World"It is also possible to specify a different location for the configuration file by using the-loption. E.g.:tgsend-l~/tgsend/botconfig.conf"Some text"tgsend will now look for the[Default]section in the given configuration file.LicenseThis software is pusblished underBSD-3-Clause license.
Package: tgsender
tgsenderAn easy and automatic telegram uploader, with personalized descriptions.Free software: MIT licenseDocumentation:https://tgsender.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-09-17)First release on PyPI.
Package: tg-session-keeper
Telegram Session KeeperКонсольная утилита для хранения Telegram-сессий.Я использую несколько аккаунтов Telegram. Большинство из них зарегистрированы на одноразовые номера. Для входа в аккаунт с другого устройства необходимо ввести одноразовый код, получить его по SMS возможности уже нет. Чтобы не потерять доступ, создана эта утилита. Она позволяет хранить сессии в зашифрованном виде и посмотреть последнее сообщение от Telegram, в котором указан код для аутентификации.ИспользованиеУстановкаpip install tg-session-keeperЗапускusage: __main__.py [-h] [--filename FILENAME] [--test]

optional arguments:
  -h, --help           show this help message and exit
  --filename FILENAME  path to a sessions file
  --test               run keeper on test Telegram serverКомандыadd                создать Telegram-сессию
remove <NUMBER>    удалить сессию
list               список сессий
get <NUMBER>       посмотреть последнее сообщение от Telegram
exit               выйти из программыСкриншотыСписок сессийПример сообщения от Telegram
Package: tgshg
Example PackageThis is a simple example package. You can useGithub-flavored Markdownto write your content.https://packaging.python.org/tutorials/packaging-projects/python -m twine upload dist/*https://www.cnblogs.com/KeenLeung/p/5858452.htmlpython setup.py sdist upload$ twine register dist/project_name-x.y.z.tar.gz
$ twine register dist/mypkg-0.1-py2.py3-none-any.whl
$ twine upload dist/*http://blog.konghy.cn/2018/04/29/setup-dot-py/https://pypi.org/classifiers/Development Status :: 1 - Planning  Copy classifier
Development Status :: 2 - Pre-Alpha  Copy classifier
Development Status :: 3 - Alpha  Copy classifier
Development Status :: 4 - Beta  Copy classifier
Development Status :: 5 - Production/Stable  Copy classifier
Development Status :: 6 - Mature  Copy classifier
Development Status :: 7 - Inactive发展现状:: 1 - 规划  复制分类器
发展现状:: 2 - 前阿尔法  复制分类器
发展现状:: 3 - Alpha  复制分类器
发展现状:: 4 - Beta  复制分类器
发展现状:: 5 - 生产/稳定  复制分类器
发展现状:: 6 - 成熟  复制分类器
发展现状:: 7 - 无效Environment :: PluginsLicense :: Free for non-commercial use操作系统::操作系统独立
Package: tg-store-cli
tg-store-cliTG Store CLIUsage:$tg-store-cli[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:load: Зарядкаshoot: Стрельбаtg-store-cli loadЗарядкаUsage:$tg-store-cliload[OPTIONS]Options:--help: Show this message and exit.tg-store-cli shootСтрельбаUsage:$tg-store-clishoot[OPTIONS]Options:--help: Show this message and exit.
Package: tgthon
tgthon• Telegram_
• Github_install.. code:: pythonpip install tgthonUsagetgthon.pyutils.. code:: pythonfrom tgthon.pyutils import rename, file_extension

#rename files
rename(file, new_path) 

#get file extension using path of file
extension = file_extension(file)tgthon.pyfunc.. code:: pythonfrom tgthon.pyfunc import bash, total_frames, video_metadata

#handy subprocess
o, e = bash(cmd)

#get total number of frames in a video
tf = total_frames(file)

#get basic metadata of video
data = video_metadata(file)

height = data["height"]
width = data["width"]
duration = data["duration"]tgthon.uploader.. code:: pythonfrom tgthon.uploader import download_from_youtube, ytdl, weburl

#Download videos from youtube
filename = await download_from_youtube(url)

#Download videos from YtDlp supported sites
filename = await ytdl(url)

#Download files from the web
filename = weburl(url).. _Telegram:https://t.me/AnnayanX.. _Github :https://Github.com/pragy-dl
Package: tgtk
tgtk - telegram leech botNotes:a pypi package namedtgtkcontaining all bot code, easily to install withpip install tgtkdeploying from an docker imagereaitten/tk:latestDeploy via Heroku CLIDownloaddeploy.zip.Unzip & open a command prompt.Change stack dyno to container:heroku stack:set container --app your-app-nameInitialise the project files as a Git Repository, push the repo to 'Heroku Git' and build the Docker Image:git init
git add .
heroku git:remote -a your-app-name`
git commit -m "initial commit"
git push heroku mainDeploying your private custom repo(remember to connect github account to heroku account)Creditsyash-dk's TorToolkittortoolkit's tortoolkit-Telegramsahadz's tortoolkit-Telegramdr-qaatil <3VariablesIS_VPS= FalseCompulsory VarsAPI_HASH= Obtained from TelegramAPP_ID= Obtained from TelegramBOT_TOKEN= Obtained from BotfatherBASE_URL_OF_BOT= IP/domain of your bot like "https://appname.herokuapp.com" (for heroku)AUTH_CHANNEL= It is a list of IDs of all the allowed groups and useres who can use this bot in private. Seperated by spaces e.g: "-102222 -33322211 11222333"DB_URI= Postgres database URL.OWNER_ID= self-explanatory, get value from@userinfobotOptional Vars(IT IS RECOMMENDED TO SET THE OPTIONAL VARS FROM SETTINGS MENU, If not all vars atleast use settings menu for RCLONE that way is much easier.)EDIT_SLEEP_SECS= Seconds to Sleep before edits. Recommended is 40.TG_UP_LIMIT= Telegram Upload limit in bytes.BOT_CMD_POSTFIX= Set this to your bot username if you want to add the username of your bot at the end of the commands. e.g/leech@TorToolkitBotso the value will be @TorToolkitBotFORCE_DOCUMENTS= Should all the upload to telegram be made as documents or not.COMPLETED_STR= Character used to denote completed progress.REMAINING_STR= Character used to denote remaining progress.RCLONE_BASE_DIR= Rclone Base Directory to where stuff should be clonned. (cannot be configured from settings)LEECH_ENABLED= Upload to telegram should be enabled or not.RCLONE_ENABLED= Upload to rclone should be enabled or not.DEFAULT_TIMEOUT= Default destination to choose if the user fails to choose upload destination in 60 seconds.RCLONE_CONFIG= rclone file path. usually it's /app/rclone.conf if you uploaded rclone.conf onto the root directory of folder.DEF_RCLONE_DRIVE= Default Drive for rclone to use. e.g: if my drive is calledtk-drive, then i would add the value,tk-drive.MAX_YTPLAYLIST_SIZE= Max size of a playlist that is allowed (Number of videos)MAX_TORRENT_SIZE= Max torrent size in GBsOther varibles are not to be changed.Commandsadd in@BotFatherleech - To Leech a torrent or download a direct link
ytdl - Donwload YouTube Video
pytdl - Download YouTube Playlist
about - About the bot
status - Status of all the downloads
stats - Get server status
usettings - User Settings (private also)
instadl - Instagram Post/Reel/IGTV download
setthumb - Set the thumbnail
clearthumb - Clear the thumbnail
speedtest - Check internet speed of host
settings - Settings of the bot ⚠️ Admin Only
pauseall - Pause all torrents⚠️ Admin Only
resumeall - Resume all torrents⚠️ Admin Only
purge - Delete all torrents ⚠️ Admin Only
logs - Get the robot logs ⚠️ Admin Only
Package: tg-tool
tg-toolAwesome Portal GunUsage:$tg-tool[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:load: Load the portal gunshoot: Shoot the portal guntg-tool loadLoad the portal gunUsage:$tg-toolload[OPTIONS]Options:--help: Show this message and exit.tg-tool shootShoot the portal gunUsage:$tg-toolshoot[OPTIONS]Options:--help: Show this message and exit.
Package: tgusers
TgUsers[RU]Что такое комнаты?Комнаты, это понятие введено для интуитивной понятности происходящего. Пользователь (user) отправляя команду "/start" попадает в комнату по названием "start". В этой комнате может быть неограниченное количество команд и возможностей, но весьма часто требуется не одинаковые ответы бота на один и тот же вопрос.Пример:Существует комната "start", в которой команда "/get" означает получение "Hello TgUser".
И еще одна комната, в которой "/get" означает получение фотографии космоса.Библиотека умеет автоматически логировать отправленные сообщения создавать новых пользователей.
Разграничивать их по ролям и проверять роли при входе в комнаты.Usage example and source code:https://github.com/drogi17/TgUsers
Package: tg-utils
Collection of various utils for Django-based projects.This is code that we’re using in our projects at Thorgate and we’re hoping you’ll find some of it useful as well.Free software: ISC licenseDocumentation:https://tg-utils.readthedocs.org.FeaturesModel utils, e.g. timestamped and closable models, QuerySets that send out a signal when objects are modified.Templated email sending.Profiling utilities.Unique filename generation for uploads.Using hashids for models (instead of exposing primary keys).System checks for email and Sentry configuration.Mixin for easier implementation of ordering in Django’s generic ListView.Mixin for making admin view read-only.Decorator for annotating admin methods.JS/CSS compressors forDjango Compressor.Health-check endpoints (with and without token authentication)CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: tgw
星耀数智服务平台以多元市场数据信息的整合和人工智能分析为基础，形成标准化数据体系，形成集数据接入、推送、查询、计算和分析为一体的金融数据解决方案，为机构和个人量化用户提供市场前沿、可靠、全面、极速的金融数据服务。
支持的数据包括：实时行情数据推送K线数据（1/3/5/10/15/30/60/120分钟线/日/周/月/季年线）Level-1现货快照数据指数快照数据沪深期权快照数据Level-1期货快照数据港股通快照数据盘后定价交易快照数据中证指数快照数据深交所国证指数快照数据港股通实时额度数据港股通产品状态快照数据港股市场波动调节机制(VCM)推送数据历史行情数据查询K线历史数据（日/周/月/季年线、1/3/5/10/15/30/60/120分钟线/日/周/月/季年线）Level-1快照历史数据Level-2逐笔委托历史数据Level-2逐笔成交历史数据Level-2委托队列历史数据五大商品交易所Level-2期货快照历史数据沪深期权快照历史数据中金所股指期货期权快照历史数据港股SF级别历史快照数据港股SF级别挂单历史数据港股SF级别成交历史数据港股经纪席位历史数据行情基本信息数据查询证券个股基本信息查询复权因子表信息查询股票基础信息A股基本资料A股行业分类公司简介股本结构公司主营业务历史股票列表发行与上市A股首次公开发行A股增发数据收益分配A股股票分红A股股票配股A股股票除权除息股本与股东A股十大股东名单限售股解禁明细解禁数据股权持股冻结/质押情况财务数据A股资产负债表A股利润表A股现金流表A股财务指标日交易数据交易日历个股资金流向交易异动统计大宗交易数据交易异动营业部买卖信息融资融券数据融资融券交易明细融资融券成交汇总基金基本信息基金最新指标指数信息A股指数成分股资讯数据信息查询资讯数据更新日期公共参数表交易市场代码表证券类别代码表公司类型代码表股票增发进度代码表股票分红进度代码表股票配股进度代码表报表类型代码表详情见中国银河证券官网（http://www.chinastock.com.cn/newsite/cgs-services/strategyTrade/geWuInstitution.html
Package: tgwrapper
mob-terragrunt-wrapperTerragrunt wrapper for AWS infra deploymentFree software: MIT licenseDocumentation(Not ready yet):https://tgwrapper.readthedocs.ioHow to install$pip3installgit+https://github.com/smruti-21/mob-terragrunt-wrapper.git@mainFeaturesTODOHistory0.1.0 (2021-09-07)First release on PyPI.
Package: tgx-cli
# TravelgateX CLI[![Python](https://img.shields.io/pypi/pyversions/tgx-cli.svg?maxAge=2592000)](https://pypi.python.org/pypi/tgx-cli)[![Travis](https://api.travis-ci.org/travelgateX/tgx-cli.svg?branch=master)](https://travis-ci.org/travelgateX/tgx-cli)[![Slack](https://slack.travelgatex.com/badge.svg)](https://slack.travelgatex.com)Tool that you can use to manage your TravelgateX platform## Installation```bashpip install tgx-cli```## Usage```bashtgx COMMANDOptions:--endpoint              Gateway endpoint.--auth_type             ak or apikey, br or bearer--auth                  Auth TokenCommands:organization            Create organization or an organization with apikeyapikey                  Create apikeyconfigure               Create a file with the credentials and run options```### Get StartedFor usage and help content, pass in the `--help` parameter, for example:```bash$ tgx organization --help$ tgx configure --mode TEST --endpoint https:// --auth_type br --auth useyourown$ tgx organization create_all --user user@mail.com --organization_code XXX```
Package: th
thOverviewusername=response.body["users"][0]["name"]TypeError:'NoneType'objectisnotsubscriptablebecomes:fromthimportget,_username=get(response,_.body["users"][0]["name"])th.TypeError:_.body['users'][0]['name']^^^^^^^^^^^^^^^inappropriatetype(NoneType)Installationpip3installthUsageDefaulttotal=get(response,_.body["total"],default=0)# no exceptionVerboseuser=get(response.body,_["users"][4]["id"],verbose=True)th.IndexError:_['users'][4]['id']^outofrangewhere_is<class'dict'>:{'users':[{'id':1,'name':'Bob'},{'id':2,'name':'Alice'},{'id':3,'name':'Eve'}]}ExamplesAttributeError:'Response'objecthasnoattribute'body'# ->th.AttributeError:_.body['users'][0]['name']^^^^doesnotexistIndexError:listindexoutofrange# ->th.IndexError:_.body['users'][0]['name']^outofrangeKeyError:'users'# ->th.KeyError:_.body['users'][0]['name']^^^^^^^doesnotexistTypeError:listindicesmustbeintegersorslices,notNoneType# ->th.TypeError:_.body['users'][None]['name']^^^^inappropriatetype(NoneType)TypeError:'NoneType'objectisnotsubscriptable# ->th.TypeError:_.body['users'][0]['name']^^^^^^^^^^^^^^^inappropriatetype(NoneType)