Saravanan666/pypi-org huggingface dataset:
Package: telamonapi
TelamonApiTelamonApi is a python package to scan ports with just 2 lines of code.Installationpip install TelamonApiUsagefrom TelamonApi import telamonA)
port = 80
telamon.scan("example.com", port)B)minport = 79
maxport = 999
telamon.scanmulti("example.com", minport, maxport)C)telamon.scanall("example.com")
Package: telamonpypi
TelamonPypiTelamonPypi is a python package to scan ports with just 2 lines of code.Installationpip install telamonpypiUsagefrom telamonpypi import telamonA)
port = 80
telamon.scan("example.com", port)B)minport = 79
maxport = 999
telamon.scanmulti("example.com", minport, maxport)C)telamon.scanall("example.com")
Package: telassar
TELASSAR : Two dimEnsionaL spectrAl analysiS for muSe And xshooteRA clunky, hideous package for doing what I want and upsetting every real programmer in our galactic quadrant. Brute force and ignorance are the tools of my trade. Nothing much beyond visualisation for (pseudo)long-slit spectra, with new functionalities to be added when I figure out how!Basic BitsCan generate WCS information for a 2D slice either from a FITS file directly, or from a custom data array + header. No promises, though. At the very least it makes an attempt!Usagefrom telassar import PVSlice
my_file = PVSlice(filename='some_file.fits')ormy_file = PVSlice(data=my_data, header=my_header)A 2D slice can also be reduced to a 1D spatial or spectral profile given a wavelength range and offset range:new_file = my_file.spatial_profile(arc=[0, 30], wave=[6725, 6730], spat_unit=True, spec_unit=True)For quick data viewing, a contour plot is easily generated:my_file.plot_contours()Some further customization can be done with the plots; check out the notebook in theexamplesfolder for a better idea.FeaturesNot a lot here at the moment, but a few things are being included:Registering/unregistering skyline emissions;=======
TODOAddLMFit-pymodeling options for fitting profilesExpand spatial/spectral profile class functionality (ie plotting, fitting, and integration)Learn how to do everything properly.
Package: telcolib
telcolibOverviewtelcolibis a Python library designed for validating phone numbers across multiple countries. Utilizing regular expressions, it ensures phone numbers adhere to specific national formats.FeaturesValidates phone numbers from a wide range of countries.Easily extendable to include additional countries and formats.Simple, straightforward API.InstallationTo installtelcolib, run the following command:pipinstalltelcolibAlternatively, you can clone the repository and install it manually:gitclonehttps://github.com/copyleftdev/telcolib.gitcdtelcolib
pipinstall.UsageHere's a quick example of how to usetelcolib:fromtelcolibimportPhoneNumberValidator# Create an instance of the validatorvalidator=PhoneNumberValidator()# Validate a phone numbervalid=validator.validate('+14445556666','USA')print("Phone number is valid:",valid)Adding Custom PatternsTo add or update a country's phone number pattern:validator.add_country_pattern('CountryName',r'^\+CountryCode\d{NumberOfDigits}$')DevelopmentPrerequisitesPython 3.6 or higher.Setting Up a Development EnvironmentClone the repository:gitclonehttps://github.com/copyleftdev/telcolib.gitNavigate to the project directory:cdtelcolibInstall the dependencies:pipinstall-rrequirements.txtRunning TestsTo run the tests, execute:pytesttests/ContributingContributions totelcolibare welcome! Feel free to fork the repository and submit pull requests.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.ContactFor questions or feedback related totelcolib, please open an issue in the GitHub repository.
Package: teleapi
teleapiEasy telegram APISee official telegram apidocumentationInstallpip install teleapiUsagefromteleapiimportTelegramApiBOT_TOKEN='TOKEN'CHAT_ID='example_chat_id'PROXY='soks5h://USERNAME:PASSWORD@IP:PORT'telegram_api=TelegramApi(BOT_TOKEN,proxy=PROXY)telegram_api.send_message(CHAT_ID,'Hello world!')Moreexamples
Package: teleasy
teleasy2.0.2Creating Telegram Bots Made SimpleTable of contentsExampleSetupWikiIntroductionStatusLicenseExamplefromteleasyimportTelegramBot,UpdateInfobot=TelegramBot(<YOUR_TOKEN>)@bot.on_normal_messagedefon_normal_message(chat:ChatInstance):chat.print(f"hello{chat.first_name}")@bot.on_command("/input")definput_example(chat:ChatInstance):color=chat.input("what's your favorite color?")chat.print(f"Your favorite color is{color}")bot.start()SeeExamples-Folderfor moreSetuppip install teleasy
pip3 install teleasypython3 -m pip install teleasy# Now, you can import the relevant Classes usingfromteleasyimportTelegramBot,UpdateInfo# or just doimportteleasy# and access the classes from the 'teleasy' object directlyseeInstallation Help (Wiki)for more HelpIntroduction# first import the relevant classesfromteleasyimportTelegramBot,ChatInstance# create bot object using your token as parameterbot=TelegramBot(<YOUR_TOKEN>)# let's define our first message handler that will respond# to all messages with "Hello, World!"@bot.on_normal_message# tell the bot to use the following function# when encountering normal messagesdefnormal_message_handler(chat:ChatInstance):# every handler will be passed a custom ChatInstance# this object contains information about the message# and may be used to get user inputchat.print("Hello World!")# handlers are run in parallel using multithreading to enable# very easy handling of user input# now we need to start the botbot.start()# and it's ready to go! Feel free to copy this code and try it outcommand handlers# we can also define command handlers:@bot.on_command("/help")# optional "/" in front of command namedefhelp_command_handler(chat:ChatInstance):chat.print("Welcome to the Help-Function")user input# each telegram message handler will be given its own thread to operate in# this allows us to get user input very easily by doing so:@bot.on_command("dialogue")defdialogue_command_handler(chat:ChatInstance):# the chat.input method works like the built-in 'input()' method in pythoncolor=chat.input("What's your favorite color?")food=chat.input("What's your favorite food?")chat.print(f"color:{color}\nfood:{food}")StatusProject isIN PROGRESSLicenseThis project is licensed under the terms of the MIT license.
Package: telebase
TelebaseTelebase é um projeto de código aberto que visa
a criação de um sistema de gerenciamento de dados json para o Telegram.Através de um mais bots do Telegram em um canal privado, que ajudam no CRUD dos dados.O intuito foi de facilitar no armazenamento e regaste de dados, como por exemplo,
uma lista de presença, uma lista de tarefas, uma lista de compras, etc
sem a necessidade de um banco de dados.InstalaçãopipinstalltelebaseComo usar1. Criando um botPara criar um bot, você deve falar com o @BotFather no Telegram, e seguir as instruções.2. Criando um canal3. Adicionando os bots no canal4. Criando a aplicaçãofromtelebaseimportTelebase# Crie um objeto Telebasedb=TeleBase()# Adicione o bot no objeto Telebasedb.adicionar_bot('<TOKEN: Union[str, list]>')# Chame a mensagem de boas vindas no canaldb.criar_database()# /startNo Telegram, você deve receber uma mensagem de boas vindas, com o ID do canal e a base de dados.TeleBaseiniciado{"ID":-1001488349617,"base":1095,"tabelas":{}}____Após isso, você já pode começar a usar o Telebase.Crie tabelasfromtelebaseimportTelebasedb=TeleBase(int('<CHAT_ID>'),int('<DATABASE_ID>'))db.adicionar_bot('<TOKEN: Union[str, list]>')# Inicie os botsdb.iniciar_bot()# Insira as tabelasdb.criar_tabela('usuarios')No Telegram você deve receber uma mensagem de confirmação.{"tabela":"usuarios","dados":[{}]}Inserindo dadosfromtelebaseimportTelebasedb=TeleBase(int('<CHAT_ID>'),int('<DATABASE_ID>'))db.adicionar_bot('<TOKEN: Union[str, list]>')db.iniciar_bot()# Insira os dadosdb.add('<TABELA>','<CHAVE>','<VALOR>')Métodos disponíveisdb.criar_tabela('<TABELA>')# Cria uma tabeladb.get_tabela('<TABELA>')# Retorna uma tabeladb.drop_tabela('<TABELA>')# Deleta a tabeladb.add('<TABELA>','<CHAVE>','<VALOR>')# Insere dadosdb.get('<TABELA>','<CHAVE>')# Retorna os dadosdb.get_all('<TABELA>')# Retorna todos os dadosdb.get_all_keys('<TABELA>')# Retorna todas as chavesdb.get_all_values('<TABELA>')# Retorna todos os valoresdb.update('<TABELA>','<CHAVE>','<VALOR>')# Atualiza os dadosdb.delete('<TABELA>','<CHAVE>')# Deleta os dadosdb.drop_database()# Deleta a base de dadosContribuindoContribuições são sempre bem-vindas!Autor@marcellobatiista
Package: telebirrTxChecker
Telebirr Transaction Checker/ParserThis is a simple script that checks your Telebirr transactions and parses them⚠ Not finished yetInstallationpipinstallgit+https://github.com/wizkiye/telebirr-tx-checker.gitUsagefromttxcimportTelebirrTxCheckerasyncdefmain():checker=TelebirrTxChecker()tx=awaitchecker.get_transaction("<TRANSACTION_ID>")print(tx.status)print(tx.id)print(tx.total_sent)print(tx.total_amount_in_word)print(tx.mode)print(tx.channel)print(tx.payer)print(tx.payer.name)print(tx.payer.phone)print(tx.payer.account_type)
Package: telebirrweb
telebirrwebPython package used to integrating telebirr web API with your project.importosfromdotenvimportload_dotenvfromtelebirrwebimportTelebirrWebfromutilsimportgenerate_uniqueload_dotenv()telebirrAppID=os.environ.get("TelebirrAppID")telebirrAppKey=os.environ.get("TelebirrAppKey")telebirrShortCode=os.environ.get("TelebirrShortCode")telebirrPublicKey=os.environ.get("TelebirrPublicKey")receiveName="Test"tele=TelebirrWeb(telebirrAppID,telebirrAppKey,telebirrShortCode,telebirrPublicKey,receiveName)subject="Payment"totalAmount=10nonce=generate_unique([],32)outTradeNo=generate_unique([],32)notifyUrl="https://example.com/"returnUrl="https://example.com/"response=tele.send_request(subject,totalAmount,nonce,outTradeNo,notifyUrl,returnUrl)print(response)
Package: telebit-python
README.md 👋telebit-pythonA wrapper aroundtelebit(A ngrok like service).Installation & Usage:Follow these steps:1st:git clone https://github.com/Xeroxxhah/telebit-python2nd:cd telebit-python3rd:sudo python3 setup.py installBug reportFound any bug!
Report it to me atxeroxxhah@pm.meor open anissueTODO:Add more features.Contributions:All contributions are welcomed.fork this repo,improve it andpull requestsLicenseDistributed under GPLV3.0
Package: telebot
Note: This is notpyTelegramBotAPI, but do to often confusion I have included
it within this package.  So if you accidentally install this instead ofpyTelegramBotAPIthe examples, etc will still work.This originally was telegram bot library, with simple route decorators, and will now
be imported as telebot_router, to separatepyTelegramBotAPIand this package from
collision.Currently a work in progress, doesn’t do much now, but will register and send messages.Example Setupfrom telebot_router import TeleBot

app = TeleBot(__name__)


@app.route('/command ?(.*)')
def example_command(message, cmd):
    chat_dest = message['chat']['id']
    msg = "Command Recieved: {}".format(cmd)

    app.send_message(chat_dest, msg)


@app.route('(?!/).+')
def parrot(message):
   chat_dest = message['chat']['id']
   user_msg = message['text']

   msg = "Parrot Says: {}".format(user_msg)
   app.send_message(chat_dest, msg)


if __name__ == '__main__':
    app.config['api_key'] = 'xxxxxxxx:enterYourBotKeyHereToTest'
    app.poll(debug=True)
Package: telebot7
This is a Python wrapper for Telegram Bot API.QuickstartInstallpipinstalltelebot7Usage>>>fromtelebot7importTeleBot>>>fromtelebot7.long_pollingimportget_updates>>>>>>token='123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'>>>tele_bot=TeleBot(token)>>>>>>print(tele_bot.getMe())>>>>>>defon_updates(updates):...print(updates)...>>>get_updates(tele_bot,on_updates,timeout=10)Seehttps://core.telegram.org/bots/apifor detailed API guide.
Package: telebot-against-war
telebotAsync-first fork ofpyTelegramBotApilibrary wrapping theTelegram Bot API.Supported Bot API version:6.0!See upstream projectdocsandREADMEManually merged changes up to version4.10.0UsageInstall withpipinstalltelebot-against-warBasic usageimportasynciofromtelebotimportAsyncTeleBot,typesasyncdefminimal_example():bot=AsyncTeleBot("TOKEN")@bot.message_handler(commands=["start","help"])asyncdefreceive_cmd(m:types.Message):awaitbot.send_message(m.from_user.id,"Welcome!")@bot.message_handler()# catch-all handlerdefreceive_message(m:types.Message):awaitbot.reply_to(m,m.text)awaitbot.infinity_polling(interval=1)asyncio.run(minimal_example())DevelopmentThe project usesPoetryto manage dependencies, build and publish the package.
Install as describedhereand make sure to update
to the latest1.2.xversion:poetryselfupdate1.2.0b1Installing and configuring locallypoetryinstall
poetryrunpre-commitinstallRunning tests and linterspoetryshell

pytesttests-vv

mypytelebot

black.
isort.
Package: telebotbuilder
telebotbuildertelebotbuilderAn aggregate of my frequently used packages when building a Telegram botContentsGetting startedIncluded PackagesUsing telebotbuilderGetting StartedInstallation using pip (Python Package Index):$ pip install telebotbuilderIncluded Packagespip install pyTelegrambotAPIpip install firebasepip install python_jwtpip install gcloudpip install sseclientpip install pycryptodomepip install requests-toolbeltUsing telebotbuilderYou can just use the packages as normal. Here are some examples:# main.pyimporttelebotbot=telebot.TeleBot(secrets.get_telebot_token())bot.polling()# database.pyfromfirebaseimportFirebasefirebase=Firebase(secrets.get_firebase_config())auth=firebase.auth()db=firebase.database()All's good, easier pip installs in the future!
Package: telebot-components
telebot-componentsFramework / toolkit for building bots withtelebot.DevelopmentSetupClone repositorygitclonegit@github.com:bots-against-war/telebot-components.gitbawcd./bawThe project requires Poerty 1.5.1 (seeinstallation instruction).
For example, to install1.5.1on Unix, runcurl-sSLhttps://install.python-poetry.org|python3---version1.5.1Then, to install the library with all dependencies, run from project rootpoetryinstallYou might need to manually install dynamic versioning plugin (without it local build will
always have version0.0.0):poetryselfaddpoetry-dynamic-versioning-pluginTo create virtualenv inside the project’s root directory, use commandpoetryconfigvirtualenvs.in-projectfalse--localRunpre-committo set up git hook scriptspre-commitinstallTestingUse command below for run testspoetryrunpytesttests-vvTo also generate test coverage reportpoetryruncoveragerun-mpytesttests-vv&&poetryruncoveragereportBy default, all tests are run with in-memory Redis emulation. But if you want you can run them
locally on real Redis by specifyingREDIS_URLenvironment variable before runningpytest.Note: Tests must be able to find an empty Redis DB to use; they also clean up after themselves.Start example botFor first start you need to do 3 things:Use command below to generate environment variables file:cp./examples/example.env./examples/.envNote: After.envfile is generated you will need to add yourbot's tokento it.Also for bot withtrello integrationyou need to addtrellotoken and api key. You can get ithere.If you want start redis on local machine, rundockerrun--namebaw-redis-d-p6379:6379redisredis-server--save601--loglevelwarningRun any bot from./examplespython3./examples/feedback_bot.py//orrunwithIDEfrombotfile
Package: telebot-constructor
telebot-constructorFree & open-source Telegram bot constructor with no-code web UI, using as backendtelebot-components.DevelopmentDev setupThe project uses Poerty 1.5.1 (seeinstallation instruction). Using it,
install Python package with the backend API code:poetryinstallPoetry details- You might need to manually install dynamic versioning plugin (without it local build will
      always have version `0.0.0`):
      ```bash
      poetry self add poetry-dynamic-versioning-plugin
      ```
    - To create virtualenv inside the project’s root directory, use command
    `bash
    poetry config virtualenvs.in-project false --local
    `Start backend/API applicationexportTELEBOT_CONSTRUCTOR_DEBUG=1pythonrun_polling.pyFrontend usesnpmv16+, use it to install the dependencies and run the dev server for frontendnpminstall
npmrundevVisithttp://localhost:8081in the browser.
Package: tele-bot-push
About This ProjectWhen you want to send some telegram message, photo via Telegram Bot to yourself, Then you can try this project.当你想在Python程序中通过Telegram机器人给你自己发送文字、图片、文档等，就可以使用这个项目。Install And Usage中文版： 可以参见这篇讨论贴English Version: To Be Added...LicenseMIT LicenseCopyright (c) [2019] [BuGTEa]Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: telebotties
TelebottiesCreate and share robots with real-time remote controlsStream to Twitch or YouTube and let viewers control your robot one by oneNo hardware required to get startedArduinoandRaspberry Pitutorials availableOBS and Streamlabs compatible video sourceSimple open-source Python libraryChecktelebotties.comfor currently online bots!Quick startInstall the library (help):pip install --upgrade telebottiesCreate and save abot.pyfile:importtelebottiesastbb=tb.Button("A")@b.on_pressdefhello():tb.print("Hello")@b.on_releasedefworld():tb.print("World")tb.run()Execute thebot.pyfile withpython bot.pyand open the returned link in browser (help).From the browser, add a live video feed by opening the video feed link in a separate tab or another device such as phone.Press theTry controls-button. Now when you press and releaseAkey from a keyboard or a touch screen, texts "Hello" and "World" get printed on the bottom of the live video feed.Checkthe full documentationif you want to learn how to:Share the bot with othersMake the bot public on telebotties.comStream the bot to Twitch or Youtubeand a lot more!
Package: telebot-utils
Telebot Utils 🤖Collection of utils for pyTelegramBotAPI to develop awesome Telegram Bots.InstallationTo install the package run the following command in your terminal:pip install telebot-utilsUsageTo use the utilities that the telebot-utils package provide you need to import it in your script:importtelebot_utilsLicenseLICENSE.mdContributingSeeCONTRIBUTING.md
Package: telecms-django
Universal admin panel for DjangoDescriptionService Exchange:https://about.service.exchangeLive Demo:http://app.service.exchange/demoSupport:support@service.exchangeTele-CMSis a SaaS service that automatically generates back office for your Django Application through REST API ofService Exchangepackage installed to your project.–Visual. Admin interface can be easily changed without need of development with the help of Visual Editor.–Secure. Tele-CMS does not access your data: its transferred directly from browser to your application.–Customizable. Flex functions allow you to solve your specific business tasks when standard functionality is not enough.FeaturesCRUD (create, read, update, delete):Create, view, update and delete data. Display it in an easy format, and then search and filter your data.Dashboard:Create reports and visualize KPIs. Monitor new data like new orders, comments, etc.Works with any technology:The interface is generated automatically based on an analysis of the data and data structure of your applications.Visual editor:Customize the admin area to make it easy for any manager to use. Allow managers to modify the interface, configure features, and set up analytics widgets without using any developers — just like WIX, Squarespace….Secure:Your data is safe. We do not have access to your information. We simply plug your information in to an easy-to-use interface for you to interact with it better.Works on any device:The interface is optimized for any device from phones to tablets to desktops.Quick installation:It takes only a few hours to integrate with your project.Available 24/7:Use it around the clock and don’t worry about updates — we take care of that.Manage users:Assign access rights to any data from within the panel.Activity log:Track the history of all changes and know who made them.RequirementsPython– 3.4, 3.5, 3.6, 3.7Django– 1.11, 2.0, 2.1Installation1. Download and install latest version of Service Exchange:pipinstalltelecms_bridge2. Add ‘telecms_django’ application to the INSTALLED_APPS setting of your Django project settings.py file:INSTALLED_APPS=(...'telecms_django',...)3. Add URL-pattern to the urlpatterns of your Django project urls.py file:fromtelecms_django.urlsimporttelecms_urlsurlpatterns=[...url(r'^telecms_api/',include(telecms_urls)),...]4. Apply migrations:pythonmanage.pymigratetelecms_django5. Restart your project6. Open https://YOUR_PROJECT_URL/telecms_api/register/ in browser to create a projectSupportFeel free to Email us –support@service.exchangeLicenseThis project isMITlicensed - see the LICENCE file for details.
Package: telecoin
💾 Installationpipinstalltelecoin📞 Contacts🖱️Developer contacts:🐦 DependenciesLibraryDescriptionaiohttpAsynchronous HTTP Client/Server for asyncio and Python.pyrogramModern Telegram Framework❔ What is this?This is simple library to activate @BTC_CHANGE_BOT, @Chatex_bot, @GetWallet_bot gift cheque.↗️ Create SessionimportasynciofromtelecoinimportBankerWrapperasyncdefmain():banker=BankerWrapper(phone_number='Your Number',api_id='Your ID',api_hash='Your Hash',session_name='i_love_telecoin')awaitbanker.create_session()if__name__=='__main__':asyncio.run(main())💰 Activate Chequeimportasyncioimporttelecoin.exceptionsfromtelecoinimportBankerWrapperasyncdefmain():banker=BankerWrapper(phone_number='Your Number',api_id='Your ID',api_hash='Your Hash',session_name='i_love_telecoin')try:result=awaitbanker.activate_cheque('https://telegram.me/BTC_CHANGE_BOT?start=c_ae0f629a49fd1b494b371c0ec64d1v21')print(f'Received{result.btc}BTC /{result.rub}RUB')exceptInvalidCheque:print('Cheque is not valid')if__name__=='__main__':asyncio.run(main())
Package: telecomlib
Python Package Telecomlib📦 一个专为 Telecom 打造的 Python Package。上传到 PyPI 后可以使用pip install安装。pipinstalltelecomlib1 使用方法编写你的 Package 代码，并进行测试。# 在本地进行充分测试bashscripts/local_test.sh上传到 PyPi（需要注册），参考如何发布自己的包到 pypi；bashscripts/upload_pypi.sh更新到 Github。gitpush2 项目结构.
├── package_name # 项目名称
│    ├── shell # 在命令行中执行的代码
│    │    ├── __init__.py
│    │    └── usage.py
│    └── src # 静态资源
│          └── temp.txt
├── scripts
│    ├── set_package_name.sh # 批量替换默认的项目名称
│    ├── local_install.sh
│    ├── local_test.sh
│    └── upload_pypi.sh
├── README.md # 项目文档
├── requirements.txt # 包依赖
├── .gitignore # 忽略文件
├── MANIFEST.in # 要包含在 sdist 命令构建的分发中的文件列表。
├── LICENSE # 这里面的内容为本项目的 License，你需要手动替换它。
└── setup.py # 安装配置3 TODO增加 test 相关代码。4 许可5 参考Packaging Python Projects如何从模板创建仓库？如何发布自己的包到 pypi ？