Saravanan666/pypi-org huggingface dataset:
Package: vka
vkaМодуль сделана по основам "vk_api" и "vkquick"Поддерживает python3.10+Ниже приведен первый пример, как можно - создать команду, отправить сообщение, выполнить метод вкfromvkaimportABot,Context# токен от ГРУППЫbot=ABot(token="group_token")# добавление команды в бота@bot.command(commands=['привет','hi'])asyncdefhello_world(ctx:Context):# чтобы воспользоваться методом вкawaitctx.api.users.get(user_ids=1)# тоже самое можно так ->  await ctx.api.method("users.get", {"user_ids":1})#   (#       {#           'first_name': 'Павел',#            'id': 1,#            'last_name': 'Дуров',#            'can_access_closed': True,#            'is_closed': False,#            'can_invite_to_chats': False#        }#   )# чтобы получить пользователя который написал командуuser=awaitctx.fetch_sender()"""id              - idfn              - имяln              - фамилияfull            - имя фамилия@ - [@id|name]  - становится кликабельная"""# отправка сообщенияawaitctx.answer(f'{user:@full}, привет!')asyncdefpoke(ctx:Context):awaitctx.answer('ТЫК!')bot.register_command(poke,commands='тык')# запуск ботаbot.run()Второй примерfromvkaimportABot,Context,Keyboard,Buttonbot=ABot(token="group_token")@bot.click_callback(show_snackbar=True)asyncdefshow_snackbar():return'Произошло чудо 🧩'@bot.command(commands='привет')asyncdefhello_world(ctx:Context):keyboard=Keyboard(Button.callback('Мя').positive().on_called(show_snackbar),)awaitctx.answer('Нажми на кнопку чтобы произошло чудо 🤖',keyboard=keyboard)bot.run()
Package: vk-air
Фреймворк для VK API.С помощью этого фреймворка можно написать бота для группы ВКонтакте. Фреймворк был сделан недавно, документация появится чуть позже.Фреймворк устанавливается с помощью командыpipinstallvk_airилиpipinstallgit+https://github.com/sultan1k/vk_airПару примеров с кодом:fromvk_airimportClientfromvk_air.utilsimportUtilsbot=Client(prefix='!',debug=False)@bot.command(name='hi')asyncdefhi(ctx):awaitctx.send('Привет')@bot.event(name='chat_invite_user')asyncdefadd_me(ctx):ifctx.action.member_id==-bot.group.id:awaitctx.send('Вы добавили меня в беседу!')@bot.command(name='whois')asyncdefwhois(ctx,user,*,reason):user=Utils().mention_to_id(user)# достаём из упоминания айдиawaitctx.send(f'Айди пользователя -{user}\nПричина вызова команды:{reason}')bot.login(token='TOKEN')
Package: vkapi
vkapivkapiis a Python library for working with theapi.vk.com.InstallationUse the package managerpipto installvkapi.pipinstallvkapivkapiuses therequestslibrary to send requests to the server.UsageUsageContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: vk-api
vk_apivk_api– Python модуль для создания скриптов для ВКонтакте (vk.com API wrapper)ДокументацияПримерыЧат в TelegramДокументация по методам APIАльтернативы vk_api(асинхронность; боты)python3 -m pip install vk_apiimportvk_apivk_session=vk_api.VkApi('+71234567890','mypassword')vk_session.auth()vk=vk_session.get_api()print(vk.wall.post(message='Hello world!'))
Package: vk-api-for-groups
VK API for groupsPython package, that allows posting to groups with ease.How to Use·Report Bug·Request FeatureTable of ContentsAbout The ProjectBuilt WithTODO (planned)Getting StartedPrerequisitesInstallationUsageContributingLicenseContactAbout The ProjectPost to vk groups with ease.Built WithPythonPython's package requestsTODOAdd text formatting from .md filesAdd attachment supportAdd ability to change groups' settings.Add auto attachments uploading to vk serversGetting StartedPrerequisitesPython language is necessary, obviously.
You need to also install Python requests:pipinstallrequestsInstallationpipinstallvk_api_for_groupsUsageUsage example is located in examples/example.pyIntended usagefromsrc.vk_api_for_groupsimportApitoken="____________________________________..."# your token heregroup_id=-000000000# your group's idgroup_api=Api(token,group_id,ver=5.131)# you may leave version blank# (in that case latest will be used)group_api.send_post(post="Message")# ORgroup_api.send_post(post_path="path/to/file.txt")Look at example for further details.ContributingFork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactTwitter -@rokoel_dudeProject Link:https://github.com/rokoel/vk_api_for_groups
Package: vk-api-lite
vk_api_liteSmall library for VK API (via access_token)fromvk_api_liteimportVkAPILitevk_api_l=VkAPILite(TOKEN='vk1.a.OVgI7F9psMHdS4954SQ_6ksmDM0cFsZ6rCGYxbXJyR00A3Hqa76H6VI0anrkYLBTuxVtrXXT7fAK-YzSC78OhT2V_3FoqMQCwFHCi6utgVytIinZWNrxUlwKx_jPF7P0kgGbUq9QViyHvR0TUN35oobk7dBo8-QsiGT1afvS3KkKf0cbbgZ8UeAEiobq3Ctr')# Get info from wall by idwall_content=vk_api_l.wallGetById(1)# Get info from wall by domainwall_content=vk_api_l.wallGetByDomain('apiclub')# wall.postvk_api_l.wallPost(1,message="Hello, World!")# photos.saveid_list=vk_api_l.photosSave(22822305,126315661,['1.png','2.png'])Supported methodswall.get-https://dev.vk.com/method/wall.getwall.post-https://dev.vk.com/method/wall.postphotos.save-https://dev.vk.com/method/photos.save
Package: vk-audio
vk_audioМодуль на python для работы с аудио вк
github:https://github.com/imartemy1524/vk_audioУстановкаУстановить данный модуль можно через pypi:pip install vk_audioТребованияpython>=3.6Описание и примеры тут:https://github.com/imartemy1524/vk_audio
Package: vkaudiotoken
vkaudiotoken-pythonPort ofvodka2/vk-audio-token, originally written in PHP, to Python. This package obtains tokens, that work for VK audio API. Actually there are two versions of the API, one for Kate Mobile, and one for official VK client, each requires a different token.vkaudiotokenis compatible with Python 2.7 and >=3.5.requestspackage is required.pip install vkaudiotokenYou can also run examples in theexamplesdirectory without installing the packageGetting tokensThe simplest example:fromvkaudiotokenimportget_kate_token,get_vk_official_tokenlogin='+71234567890'# your vk login, e-mail or phone numberpassword='12345'# your vk password# print tokens and corresponding user-agent headersprint(get_kate_token(login,password))print(get_vk_official_token(login,password))More advanced examples are in theexampledirectory. See also examples and README invodka2/vk-audio-tokenrepository.Using tokensThe simplest example:importrequeststoken='...'user_agent='...'sess=requests.session()sess.headers.update({'User-Agent':user_agent})sess.get("https://api.vk.com/method/audio.getById",params=[('access_token',token),('audios','371745461_456289486'),('v','5.95')])See examples in theexample/usagedirectory and invodka2/vk-audio-token. Some VK API documentation, still in progress, is available atvodka2.github.io/vk-audio-token/.2FATwo factor authorization with SMS is supported, however VK sometimes does not send it. If you don't receive an SMS, you can useTwoFAHelperclass to force resending.It is also possible to create separate passwords in VK account settings and use them instead of your account password.
Package: vkauth
VKAuth LibraryVKAuth is a Python library that helps you to authenticate with VK.com using cookies from your browser. The library automatically fetches required cookies from supported browsers, establishes a session, and retrieves an access token.FeaturesAutomatic fetching of cookies from supported browsersEstablishing a session with VK.comFetching access token for user and group scopesInstallationUse the package managerpip ↗to install VKAuth.pipinstallvkauthUsagefromvkauthimportVKAuthauth=VKAuth()# to get a user tokenuser_token=auth.get_token()# to get a group tokengroup_token=auth.get_token(group_id='your_group_id')Supported BrowsersGoogle ChromeYandex BrowserMozilla FirefoxMicrosoft EdgeOperaOpera GXContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT ↗DisclaimerThis library is intended to be used for educational purposes only. Never use it to exploit or harm someone's privacy without their consent. The maintainers of this library are not responsible for any misuse by the users.ContactFor any issues or suggestions, please create an issue on the GitHub repository.
Package: vkbee
VKBee - простая в использовании библиотека для взаимодействия с API ВКонтактеУстановкаИз PyPI:$pipinstallvkbeeИз GitHub (рекомендуется):$pipinstallhttps://github.com/vkbee/vkbee/archive/master.zipМинимальная версия Python - 3.6Пример использованияimportasyncioimportvkbeefromvkbee.longpollimportBotLongpoll,SessionfromvkbeeimportAPIasyncdefmain(loop):vk_session=Session(token='token',loop=loop)longpoll=BotLongpoll(vk_session,'groupid',10)asyncforeventinlongpoll.events():user_id=event['object']['message']['from_id']message_text=event['object']['message']['text']awaitAPI.call(vk_session,'messages.send',{'user_id':user_id,'message':message_text,'random_id':0})loop=asyncio.get_event_loop()loop.run_until_complete(main(loop))Более расширенное использование описано вдокументацииСообществоSoon
Package: vk-botting
VK-Bottingvk_botting is a package for building async VK bots.It is in development so it can be buggy or not implement all latest features of VK API.That is also why it does not have full documentation atm.Partial docs:RussianorEnglish.For any questions, suggestions or reports, use eitherTelegram chatorGitHub Issues.vk_botting - библиотека для создания асинхронных ботов для ВК.Она все еще в разработке, так что в некоторых местах может содержать баги, или же не полностью реализовывать все последние возможности VK API.По той же причине у нее на данный момент может не быть исчерпывающей документации.Частичная документация:На русскомилиНа английском.Со всеми вопросами, предложениями и проблемами можете обращаться либо вЧат Telegram, либо вРаздел Issues на GitHub.
Package: vkbottle
VKBottle 4.xКастомизируемый, быстрый и удобный фреймворк для работы с VK APIДокументацияТуториал для новичковТехническая документацияУстановкаУстановить новейшую версию можно командой:pipinstall-Uhttps://github.com/vkbottle/vkbottle/archive/master.zipУстановить последнюю версию VKBottle 4.x с PyPI можно командой:pipinstallvkbottleЕсли вы ищете старые версии:3.x2.xHello WorldСмотреть больше примеров!Почему VKBottle?fromvkbottle.botimportBotbot=Bot("GroupToken")@bot.on.message()asyncdefhandler(_)->str:return"Hello world!"bot.run_forever()ContributingПР поддерживаются! Перед созданием пулл реквеста ознакомьтесь сCONTRIBUTION_GUIDE.md. Нам приятно видеть ваш вклад в развитие библиотеки. Задавайте вопросы в блоке Issues и вчате Telegram/чате VK!Создатель@timoniqМейнтейнер@FeeeeKЛицензияCopyright © 2019-2021timoniq.Copyright © 2022FeeeeK.Этот проект имеетMITлицензию.
Package: vk-captcha
vk_captcha- AIVKcaptcha solver for93.2%accuracyRequirementsPython3.3 - python3.10Python 3.10 is not supported yet becauseonnxruntimeis not supportingpython3.10UPDATE: Python3.10 is supportedInstallationpip install vk_captcha
or
pip install https://github.com/imartemy1524/vk_captcha/raw/main/dist/vk_captcha-1.21.tar.gz
or
pip install git+https://github.com/imartemy1524/vk_captchaFast examples:Look intoVkHackerfor examples of accounts bruteforceusingvk_apilibrary:fromvk_captchaimportvk_api_handlervk=vk_api_handler.VkApiCaptcha("88005553535","efwoewkofokw")# this login will create captchavk_api_handler.Solver.logging=True# enable loggingvk.auth()# get captcha error and automatically solve itanother way withvk_api:fromvk_captchaimportVkCaptchaSolverfromvk_apiimportVkApisolver=VkCaptchaSolver(logging=True)# use logging=False on deployvk=VkApi(login='',password='',captcha_handler=solver.vk_api_captcha_handler)vk.method("any.method.with.captcha.will.be.handled")just solve captcha fromurl/bytesfromvk_captchaimportVkCaptchaSolverimportrandom,requestssession=requests.Session()session.headers['User-Agent']='Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0'solver=VkCaptchaSolver(logging=True)# use logging=False on deploysid=random.randint(122112,10102012012012)easy_captcha=Falseurl=f"https://api.vk.com/captcha.php?sid={sid}&s={int(easy_captcha)}"answer,accuracy=solver.solve(url=url,minimum_accuracy=0.33,# keep solving captcha while accuracy < 0.33repeat_count=14,# if we solved captcha with less than minimum_accuracy, then retry repeat_count timessession=session# optional parameter. Useful if we want to use proxy or specific headers)# or#answer, accuracy = solver.solve(bytes_data=session.get(url))print(f"I solved captcha ={answer}with accuracy{accuracy:.4}")async way:fromvk_captchaimportVkCaptchaSolverimportrandom,asynciosolver=VkCaptchaSolver(logging=False)# use logging=False on deployasyncdefcaptcha_solver():sid=random.randint(122112,10102012012012)easy_captcha=Falseurl=f"https://api.vk.com/captcha.php?sid={sid}&s={int(easy_captcha)}"answer,accuracy=awaitsolver.solve_async(url=url,minimum_accuracy=0.4,repeat_count=10)print(f"Solved captcha ={answer}with accuracy{accuracy:.4}")asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())asyncio.run(captcha_solver())Also, you can get some statistics of solving captcha:fromvk_captchaimportVkCaptchaSolversolver=VkCaptchaSolver()...# solve some captchas...time_for1captcha=solver.argv_solve_timetotal_solved=solver.TOTAL_COUNTfail_count=solver.FAIL_COUNT# you need directly increase it after getting second captcha errorIn theory, for other languages you can use command line solver (NOT RECOMMENDED, it will always load model again):python -m vk_captcha -url "https://api.vk.com/captcha.php?sid=2323832899382092" -minimum-accuracy 0.33 -repeat-count 13
Package: vk-captchasolver
vk_captchasolver - VKontakte captcha solver with 91% accuracy right.This model, which solves vkontakte captchas, was taken fromDefasium's repository-How to use?--Solve by image-importvk_captchasolverasvccaptcha=vc.solve(image='captcha.png')print(captcha)-Solve by sid and s-importvk_captchasolverasvccaptcha=vc.solve(sid=74838345480543,s=1)#Solve by sid and scaptcha=vc.solve(sid=74838345480543)#Solve by sid onlyprint(captcha)
Package: vk-cli
VK CLICall VK API methods from terminal.InstallationInstall with pippipinstallvk-cliUsageHelp>vk-h
Usage:python-mvk[OPTIONS]COMMAND[ARGS]...

Options:-h,--helpShowthismessageandexit.

Commands:apiCalltheAPIprofileProilecommandsshellstartshellCreate new profilevkprofilenew--access-token<VKTOKEN>API callvkapiusers.getuser_id=1ShellRun ShellvkshellShel is it interactive python shell, but you can call to api vk>>>response=API.users.get(user_id=1)>>>user=user["response"][0]>>>print(user["first_name"],user["last_name"],sep=" ")ПавелДуров
Package: vkconnections
Vk Connections: the shortest path from one vk user to anotherLibrary that finds the shortest path from one vk user to another through friends.VkConnection classesclass Create(keys)Parametrs:keys - list of 4 Vk api keys (user or community access)Note that keys is a list with exactly 4 api keys, this requires fast work of library (each request being processed under 30 sec)Methods of Create classgetConnection(userFrom, userTo)Parameters:userFrom вЂ“ id/nickname/link to user AuserTo вЂ“ id/nickname/link to user BResult:
A list of lists of dictionaries {id: person_id, full_name: person_full_name, photo: person_photo}printResult(result)- prints the result from main methodInstallationpip install vkconnectionsExampleimportvkconnections# Vk API KeysfirstKey='XXX'secondKey='XXX'thirdKey='XXX'fourthKey='XXX'keys=[firstKey,secondKey,thirdKey,fourthKey]# all the keys in one listvk=vkconnections.Create(keys)# creating an instance of a class# users for making a wayuserFrom="alsu"userTo="dm"result=vk.getConnection(userFrom,userTo)# receiving a resultvk.printConnection(result)# printing resultOutput:
Package: vk-dark-library
# VK api dark library
PYTHON модуль для создания скриптов на основе VK_APIУстановка:` python-mpip install-ihttps://test.pypi.org/simple/vk-dark-library`Примеры:
[Примеры](https://github.com/DarkLorianPrime/vk_library/tree/dev/examples)
Package: vkdelivery
VK DeliveryVK Deliveryis a script for automatically sending to users of
VKontakte communities. The script is written inPython 3usingVK API.DependenciesUsageInstall this package from pip usingpip3 install vkdeliverycommand.ArgumentsRequired:tokens: list of the VK community access tokens (85-digit
strings);group_id: your community ID (integer).vkdelivery.send()method:message: your message for the delivery (string up to 4096
sybmols);dialogs: list of the required users’ IDs (integers).Additional:ui: whether to display current progress (boolean).Methodsvkdelivery.get()Arguments:tokens(reqiured);group_id(reqiured);ui.Output format: list of the current community’s dialogs
([user_1, user_2,...,user_n]).vkdelivery.send()Arguments:tokens(reqiured);group_id(reqiured);message(reqiured);dialogs(reqiured);ui.Output format:Trueexpression.vkdelivery.getandsend()Arguments:tokens(reqiured);group_id(reqiured);message(reqiured);ui.Output format:Trueexpression.Errorsvk.exceptions.VkAPIError: standard VKontakte error;KeyError: one of arguments is missing or invalid.SystemError: one of arguments is invalid.Contacts
Package: vk-dev
vk_devLocalizations:README on RussianInfoWhat true convenience is?You have a lot ofdoorwaysto try amazing python package for developing with API VKontakte. By using the flavor of python this library let you write on readable style without complications when need write fastor when you are at 0 daysand refactor your project conveniencly and with idea.Installationpip3installvk_devExampleimportvk_devapi=vk_dev.Api(token='token',group_id=192979547,v=5.103)lp=api>>vk_dev.LongPoll()## You can create own decorators@vk_dev.cond.Path('direct')@vk_dev.cond.Prefix('/','.')@lp.message_new()asyncdefreaction(event,pl):"""This function will work ifmessage was sended to direct andstarts at `/` or `.`"""## Send response to the interlocutorawaitapi.messages.send(peer_id=event.object.message.peer_id,message='Hello there',random_id=vk_dev.random_id())if__name__=='__main__':lp()DocumentationWiki
Package: vkeasybot
vkeasybotБыстрый стартLongPollfromvkeasybotimportVkEasyBotfromvkeasybot.longpullimportLongPollvk=VkEasyBot(token=token,v=5.92)#Your access_tokenlongpoll=LongPoll(vk=vk,group_id=1)#Your group_id@longpoll.message_newdefmessage(event):ifevent.text.lower()=="привет":return"Привет!"ifevent.attachments:return"Ты мне прислал вложение"return"Я тебя не понял, что ты написал!"longpoll.start_listen()
Package: vk-exchange-rates
Official Repo:https://gtlb.jetsoftpro.com/vitoldkliain/vk-exchange-ratesThe library allows you to collect exchange rates from two Ukrainian banks: PrivatBank and National Bank of Ukraine. What
can you do:Get the exchange rate of each currency for a certain periodSave data in csv and json formatGet a graph how a currency changed in the selected periodLibrariesIt uses the following libraries:requestsfor requests to exchange ratesnumpyto calculation for better data visualizationmatplotlibto draw a graphpandasto set a DataFrameQuick Install / Usagepipinstallvk-exchange-ratesfromdatetimeimportdatetimefromvk_exchange_ratesimportget_exchange_rates,show_graph,save_to_csv,save_to_jsondefmain():get_exchange_rates(datetime(2022,4,20),datetime(2022,4,27))# show_graph(currency='PLN')# save_to_json(datetime(2022, 4, 25))# save_to_csv(datetime(2022, 4, 20), datetime(2022, 4, 27), currency='USD')# Output:# Exchange rates (sale) National Bank of Ukraine:# {'date': '20.04.2022', 'rates': {'AUD': 21.5418, 'CAD': 23.1906, 'CNY': 4.5801, 'HRK': 4.176, 'CZK': 1.293, ... }# Exchange rates (sale) PrivatBank:# {'date': '20.04.2022', 'rates': {'AZN': 17.2433, 'BYN': 10.6335, 'CAD': 23.1906, 'CHF': 33.82, 'CNY': 4.5801, ... }Most popular currenciesUSDEURPLNGBPCHFCZK
Package: vk-face-recognition
vk_face_recognitionA program for creating a database with human biometrics based on photos.
Photos will be automatically downloaded fromVKontakte.
Subsequently, it will be possible to search for a person using the created database.
The program was created based on theface_recognitionandvk_apilibrariesInstallationRequirementsPython 3.8+Linux, Windows or macOSInstalling on Linux or Macpip3 install vk_face_recognitionInstalling on Windowspip install vk_face_recognitionUsageInitial setupTo get started, you need to add your token_vk received on thesite, to the filemain.pyto a stringself.session = vk_api.VkApi(token='your_token')Using the Libraryfrom vk_face_recognition import Vk_recognition

vk_recognition = Vk_recognition()
vk_recognition.start_recognition(age_min=25, age_max=26, gender=1, city='Moscow')When running this code, a file will be created firstusers_id.txtwith the user id according to the specified parameters ofage_min,age_max,genderandcity. Then the user's photos will be downloaded to thedatafolder. And then these photos will be used to recognize faces and create face parameters and write them to a separate file in thepickle_filesfolderSearch by photoAfter creating the database you need, you can search through the photo in the following wayfrom vk_face_recognition import Vk_recognition

search = Vk_recognition()
search.find_people('path to the photo')A search will be performed on the database you created and, if it matches, it will report this
Package: vk-fetch
vk_fetchScript helps to fetch all data from your VK account. No need to browse every part of profile and
manually download every single file.Usagevk_fetch --help

 Usage: vk_fetch [OPTIONS] COMMAND [ARGS]...

 Script helps to fetch all data from your VK account

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --install-completion        [bash|zsh|fish|powershe  Install completion for  │
│                             ll|pwsh]                 the specified shell.    │
│                                                      [default: None]         │
│ --show-completion           [bash|zsh|fish|powershe  Show completion for the │
│                             ll|pwsh]                 specified shell, to     │
│                                                      copy it or customize    │
│                                                      the installation.       │
│                                                      [default: None]         │
│ --help                                               Show this message and   │
│                                                      exit.                   │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ download   Download data from VK profile                                     │
│ ping       Check app can connect to VK and auth as user with login/pass      │
│ show       Print available data of VK profile                                │
╰──────────────────────────────────────────────────────────────────────────────╯Sample casesDownload all:Download all exclude attachments in conversations111,-222,c5:Download all attachments in conversations111,-222,c5:Show all available data to fetch: