Saravanan666/pypi-org huggingface dataset:
Package: bosta
Python SDK for integrating with Bosta.Usageimportosfrombostaimport*bosta=Bosta(api_key=os.getenv('BOSTA_API_KEY'),api_base=os.getenv('BOSTA_API_BASE'))receiver=Receiver(firstName='Lemuel',lastName='Formacil',phone='+201551234567')pickup_address=Address(firstLine='1234 Some Place',city='EG-01')dropoff_address=Address(firstLine='5678 Another Place',city='EG-01')result=bosta.deliveries_create(receiver=receiver,pickupAddress=pickup_address,dropoff_address=dropoff_address)bosta.deliveries_list(perPage=10,page=1)bosta.deliveries_get(_id=result._id)bosta.deliveries_update(_id=result._id,notes='Throw package into the window.')bosta.deliveries_delete(_id=result._id)
Package: bostas
bostas==0.0.2A python package for automated web surfing based on selenium module .Now released onpypi.prg. Check out nowHere.:green_book:Read Full official documentationHere.importent linksHow to install and run bostosinstall bostosDownload webdriverrun bostosupdate bostosGuide and DocumentationWritten guideBostos features documentationFull DocumentationDiscussion with CommunityOfficial sitegithub resoursesCraditsSupportsInstallation And Usage(short)for descripted documentation viewhere.To make this bot active you have to download a selenium webdriver. Download any web brouser of your choice.First check the version of your brouser then download the driver of same version.Download through direct link#ChromeDriver#Microsoft Edge#Mozilla Firefox--> you will get a page like this .          click the link as per your OS and version.#SafariLearn more about itHereMake sure you have downloaded python3 in your Mechine.Download pythonHereIt's better for you to use a Good IDE.(pycharm/vscode/jupyter notebook....etc.)Now time to install Bostas. Use "pip install bostas" to install bostas in your sustem.No need to install dependencies like selenium,beautifulsoup4 as bostos comes with it's own dependency.You are all set to roll.Use this starter plate to active your botMake sure you have an account on your terget site. 
    Cuz anonymously you can't enter on social media sites.from bostas import instabot # for instagram heist
        from selenium import webdriver

        # replace with the "PATH" in your local mechine of the installer file of newly downloaded  webdriver.
        # like "C:/Users/USER/Downloads/edgedriver_win32/msedgedriver.exe" // for edge driver.
        # get more help on google.

        insta = instabot.InstaBot()
        insta.setup(mydriver=webdriver.Edge("C:/Users/TIRTHA/Downloads/edgedriver_win32/msedgedriver.exe"))

        # login to instagram account
        insta.login("username", "passward")

        # this will take you to home page of your account.
        # You can set more action using the in-built function like....
        # insta.LikeCommentByUsername(target="user",like=True,comment=True)
        # insta.FollowFollowers()
        # insta.unfollowfollower(["username1","username2",.....])
        # learn more Features on Documentation.Now you are set to play with it.Disclaimer:Please be aware of thatbostosis a under research period. Maintainer is not responsible for any illigal or violentusage of this tool. Use it on your responsibility. Maintainer will not responsible if your account get banned or on any legalaction due to extensive use of this tool.
Package: boston-housing-prediction
Boston Housing PredictionPredict Housing prices in boston with different Models. This repository is mainly for learning purpose and NOT for comercial-use.Boston Housing Prediction is a python script that can predict the housing prices in boston with different models, the user can choose from.InstallationYou need to havepython >= 3.5installed.To install the the script do:$pipinstallboston_housing_predictionUsage exampleYou can run the programm with:$python-mboston_housing_predictionmodel_nameTo see the help(for extra options) do:$python-mboston_housing_prediction-hMore InfomationFor more information please visit my github repository:My Github
Package: bosunplugins
# Bosun PluginsGuidelines for making pluginsDon’t alter the concurrency model.If you don’t know what this means, then you can skip this whole bullet.I/O is patched with geventmostof the time (FTP handlers are currently an exception).
If you some special concurrent processing, use gevent’s Pool or Group, if possible.Keep to builtin or standard packages.This helps to keep the total number of installed packages down, and, in turn, the number
of packages that are loaded into memory.Recommended packages:JSON: builtinjsonYAML:pyyamlXML:xmltodictHTTP: builtinurllib, builtinurllib2, andrequestsUseYourDeviceSubclass.test_subclass()to check your work.It’s strongly recommended that your subclass pass this method. It performs basic checks
and can alert you if you subclass seems to be doing something strange or is missing
anything. This doesn’t check your implementation, but instead checks that you’re
adhering to the contract set out by being a Device subclass.[See the full documentation](docs/index.rst)
Package: botafar
botafarAddglobal remote controlsanda real time livestreamto your projectsShare a link and let others take the controls one by oneForward the livestream to Twitch or YouTube (optional)No hardware required, a phone can be used as a cameraArduinoandRaspberry Pitutorials availableDesktop and mobile browser support, no apps, no signupsIt works by decorating existing functions and class methods to respond to user input:importbotafarj=botafar.Joystick("W","A","S","D")@j.on_leftdefturn_left():print("left!")@j.on_rightdefturn_right():print("right!")# ...@j.on_up, on_down, on_centerbotafar.run()Checkbotafar.comfor currently online bots!Get startedStarting scenarioLet's suppose you have aPythonproject,main.py, where you have defined two functionsgreetandtarget:defgreet():print("hello")deftarget():print("world")greet()target()When you runmain.pyit calls those functions, and prints "hello" and "world" to the terminal:$ python main.py
hello
worldYou want be able to share a link through which people canremotely call these functions on your hardware, andsee the results in real life through a low-latency livestream(and optionally, on Twitch or YouTube as well).botafarenables you to do all these things.Add remote controls and livestreamingInstall the library (help)pip install --upgrade botafarOn some Debian based operating systems such as Raspberry Pi OS, on you need to havelibSRTPand other related network dependencies installed to be installed as well:sudo apt install libnss3 libnspr4 libsrtp2-1 -yModifymain.py:Import botafarCreate a control,Joystickin this example, and bind 4 keys from keyboard to itUse decorators (@-symbol) to select functions to call on user inputCallbotafar.run()importbotafarj=botafar.Joystick("W","A","S","D")@j.on_leftdefgreet():print("hello")@j.on_rightdeftarget():print("world")botafar.run()Execute themain.pyfile, and open the returned link in browser.Note that this browser can be on other device, for example the Python program can run on aRaspberry Piand the browser setup is done on a desktop PC's browser(help).$ python main.py

Bot running, connect at https://botafar.com/abcde-fghij-klmnoFrom the browser, press theTry controls-button. Now when you pressAandDkeys from a keyboard or a touch screen, texts "hello" and "world" get printed on terminal.$ python main.py

Bot running, connect at https://botafar.com/abcde-fghij-klmno
hello
world
hello
worldChoose a stream source from the browser. It can be a webcam, a phone or a screen share (help).Give your bot a name and switch it to publicThe browser now shows a direct link to your bot you can share with anyone in the world!Others can press keyboard or touch screen to print "hello" and "world" to the terminal, and see the prints through a low-latency livestream.If you got stuck, have an idea or you found a bug, write about it on theGitHub discussions forum. This tool is still under development, and all feedback is appreciated.Keep reading if you want to learn how to:Use more botafar features such asprinting text to livestream directlyRemote control servos and LEDs withArduinoorRaspberry PiForward the livestream to Twitch or Youtube through OBS
Package: botalert
This script is still in alpha version, and may have some instabilities.
If you use it, you acknowledge doing it at your own risks and certify that you know what you are
doing.The purpose of this script is to monitor /var/log/messages on a cron.daily basis for predefined
dropped packets, in order to detect “spambot” infected machines in your LAN.
An email is send only per detection.First, you need to configure iptables or shorewall to drop packets originating from your LAN
towards port 25, if the destination server is not your own MTA (or your ISP’s MTA).
Indeed, machines in your LAN are supposed to use your own (or your ISP’s) smtp server as a relay,
and should never send mails directly.
(infected machines participating in spam bots usually send mails directly)
Of coarse, your smtp server itself still needs to be allowed to send mails, take care not to block
it while configuring your firewall.
Check also that the dropped packets are well logged, otherwise we would detect nothing.Secondly, install (by typing the ‘python setup.py install’ command as root) this script on your linux
firewall, and adapt /etc/botalert.conf to your needs (“IN:” being the interface of your lan, “OUT:”
the outbound interface (not required to be defined). Leaving a variable empty means no corresponding
‘matches’ will be searched for.
You can define as many signals you want (other than [smtp]) by creating another signal section and
then add the sections you want to log in the “log:” variable of the [signals] section, as a comma
separated list. Indeed this script is pre-configured to detect spam bots, but you can detect anything
else if you know the protocol of what you want to detect, and then define it (and it needs to be
logged in the log file (defaults : /var/log/messages)).This script has only been tested with shorewall and iptables logs, however, you can adapt the regex
to your needs. No need to edit the regex in botalert.py itself, instead you can add a “regex:”
variable in the [DEFAULT] section of /etc/botalert.conf, it will override the one in the script.Type:python -m botalert.py -hfor help.Release Notes :Release 0.4a:Alpha VersionRelease 0.5a:Changed author’s contact info.
Package: botamino-new.py
AminoBotAn API for bot amino based on Slimakoi's workDiscord serverhttps://discord.gg/KZgKktQ6RtThis API has been made for people who aren't very good at programming or people who want to do easy stuff!How does this API works?It works like the Amino.py's API but with added features like commands or answer
for example:fromBotAminoimportBotAminoprint("wait...")client=BotAmino()client.prefix="/"# set the prefix to /client.wait=10# wait 10 sec before doing a new commanddeftest(data):returndata.authorId==["your_user_id"]@client.command("ping",test)# "ping" the command and test the function, if test is True the command will be executed, else it will notdefping(data):data.subClient.send_message(data.chatId,message="pong!")@client.command("pong")# "pong" the command, the test function is not necessarydefping(data):ifdata.subClient.is_in_staff(data.authorId):# will execute the command if the user is in the amino's staff (learder/curator)data.subClient.send_message(data.chatId,message="ping!")@client.answer("hey")defhello(data):data.subClient.send_message(data.chatId,message="Hey! Hey!")@client.on_member_join_chat()defsay_hello(data):data.subClient.send_message(data.chatId,f"welcome here{data.author}!")@client.on_member_leave_chat(["chatId"])# the chatId is not necessary, put one if you want a specified chat onlydefsay_goodbye(data):data.subClient.send_message(data.chatId,f"See you soon{data.author}!")client.launch()print("ready")There is also built-in functions that might be useful:â€¢ add_title(userId, title, color) : add a title to an userâ€¢ remove_title(userId, title) : remove the title given to the userâ€¢ follow_user(userId) : follow the user in parametersâ€¢ unfollow_user(userId) : unfollow the user in parametersâ€¢ leave_all_chats() : leave all the chats for a given communityâ€¢ join_all_chat() : join all the publics chat of an Aminoâ€¢ get_chats() : return a list of the publics chatroomsâ€¢ join_chatroom(chat_name_or_link) : join the chat for the given link/nameâ€¢ pay(nb_of_coins, blogId, chatId, objectId, transactionId) : give coins in balance, transactionId not necessary (automatically generated if not put)â€¢ get_wallet_amount() : return the number of coin of the botâ€¢ get_member_title(userId) : return the titles of the memberâ€¢ get_member_level(userId) : return the level of the member [1-20]â€¢ leave_community() : leave the current communityâ€¢ get_chat_id(chat) : return the id of the chat (link supported)â€¢ ask_amino_staff(message) : send the message to all the curators/leader of the aminoâ€¢ get_user_id(name_or_id) : return a tuple with the name and the userId (name, uid)â€¢ get_staff(community) : return the staff of the given community (communityId or aminoId)â€¢ accept_role(noticeId, chatId) : accept a promotion or a chat transfertâ€¢ generate_transaction_id() : create a transactionIdâ€¢ ask_all_members(message) : will send a message in pv to all member by group of 100â€¢ is_it_bot(userId) : check if the user is the bot accountâ€¢ add_community("aminoId") : add manually a community to the bot (nice for join amino command)
Package: botank
botankIt is a tool for automated testing of Alice skills
(and maybe other chat bots in the future).We shoot random requests into your bot and look how it copes with them.The tool is written in Python, but it calls the bots through a web hook,
therefore the bots can be written in any language or without language at all.Links:GitHub,PyPI.Read this in other languages:English,Русский.The essentialsTo install the tool you need Python>=3.6 and thepippackage manager
(or analogs).Installation:pip install botankUsage:python -m botank http://localhost:5000/alice/ -n 100 -o results.txtWhen you run it like this,botanksends tohttp://localhost:5000/alice/100 Alice-like random requests into your skill,
and saves the results to the fileresults.txt.
Package: botapi
Build json API fast and simpleKey FeaturesProvides simple API.Supports serialize/deserialize class objects to/from dictionary.Field type may be the same with model type (self_base Field attribute)Installationpip install botapiGetting startedLet’s take some data:order={'user':{'name':'Jack','surname':'Doe','phone':'123456789',},'date':'2020-12-10 10:12:13','paid':True,'items':[{'name':'product 1','id':1,'quantity':2,'subtotal':10.5},{'name':'product 2','id':2,'quantity':1,'subtotal':5}]}Write models:fromdatetimeimportdatetimefrombotapiimportModel,Field,ListFieldclassItem(Model):name=Field()item_id=Field(alias='id')# inherit modelclassCartItem(Item):quantity=Field(base=int)subtotal=Field()classUserModel(Model):name=Field()surname=Field()phone=Field()classOrderModel(Model):user=Field(base=UserModel)paid=Field(base=bool,default=False)cart=ListField(item_base=CartItem,default=[],alias='items')order_date=DateTimeField()Deserialize and work with data:# deserialize dataobj=OrderModel(**order)# work with dataobj.user.name='John'obj.paid=Trueobj.cart[0].subtotal=12.5obj.order_date=datetime.now()Serialize model:# may be you want to add some datacomment='call before delivery'# serialize dataprint(obj.serialize(data_to_update={'comment':comment}))Output:{'user': {'surname': 'Doe', 'phone': '123456789', 'name': 'John'}, 'paid': True, 'items': [{'quantity': 2, 'subtotal': 12.5, 'id': 1, 'name': 'product 1'}, {'quantity': 1, 'subtotal': 5, 'id': 2, 'name': 'product 2'}], 'order_date': '2020-12-22 12:04:39', 'comment': 'call before delivery'}RequirementsPython>= 3.7LicenseBotAPIis distributed under theApache License 2.0 license.
Package: bot-assistant
Python Bot AssistantBot Assistant for Python to avoid getting Blocked for Web ScrapingBasic Features:-> Generate & Set User Agents basedd on requirements-> Make boy humanly with randomized waiting time and human like behaviours-> Control Browser using selenium (Open Browser, Close Browser, Open New Tab, Close Tab, Go to Link)-> Calculate Time in seconds or MilliSecondsBest suitable for Web Scraping or Automation projectsUSAGE:from bot.assistant import *
bot = botAssistant(debugMode=True) # Create an Instance
Package: botastico
Botastico python SDKIntroductionThis is the official python SDK for Botastico, a sophisticated conversational AI service. The SDK enables developers to easily integrate Botastico's powerful conversational capabilities into their applications, products, or services.This SDK is designed to interact with the Botastico API, offering an easy and user-friendly way to send and receive messages, manage conversations, and much more. Whether you're building a chatbot, a virtual assistant, or any other kind of conversational application, this SDK will simplify your work and increase your productivity.Current VersionThe current version of this SDK is designed to work seamlessly with the Langchain ecosystem. It implements thelangchain.chat_modelsinterface, offering compatibility with other components in the Langchain ecosystem. This ensures you can easily leverage Botastico's conversational abilities within Langchain-powered applications.Please note that this version of the SDK is primarily focused on conversation management. Features include sending and receiving messages, managing conversational history, and configuring the behavior of the conversational AI.Future PlansThis SDK will be expanded in the future to cover the full range of the Botastico API. This will provide additional capabilities such as detailed analytics, advanced conversation management, AI training and customization, and more.Stay tuned for updates!UsageHere is a basic example of how to use the Botastico SDK:frombotastico.langchainimportChatBotasticofromlangchain.schemaimportHumanMessagechat=ChatBotastico(botastico_agent_id='your_agent_id',botastico_api_key='your_api_key')ai_message=chat([HumanMessage(content="Please provide me with a SWOT analysis of Unity!")])print(ai_message.content)Remember to replace'your_agent_id'and'your_api_key'with your actual Botastico agent ID and API key.FeedbackYour feedback is highly appreciated. If you have any suggestions, questions, or bug reports, please feel free to submit an issue on our GitHub page.Enjoy building amazing conversational experiences with Botastico!
Package: botaxon
botaxonbotaxon is a taxonomic parser for (sub)species botanical names.It has been used against 3 million names.
It aims to be fast and efficient.Usage>>>importbotaxon>>>botaxon.load("Plumeria")Genus(name='Plumeria',is_hybrid=False)>>>botaxon.load("Ocimum × citriodorum")Species(genus=Genus(name='Ocimum',is_hybrid=False),name='citriodorum',is_hybrid=True)>>>botaxon.load("Cannabis sativa var. indica")Variety(species=Species(genus=Genus(name='Cannabis',is_hybrid=False),name='sativa',is_hybrid=False),name='indica')
Package: bot-bin
Bot BinShared cogs and utilities for use in Discord bots.
Some cogs require bot configuration; those that do expect abot.configdict attribute.bot_bin.botContains an AutoShardedBot subclass. Contains custom error logging, customizable on_message bot ignoring,
case insensitive prefixes, and database setup if the setup_db kwarg is set to True. Requires the config kwarg
to be set to a dict. bot.config['tokens']['discord'] should be the bot's Discord token.bot_bin.debugContains memory usage and performance debugging commands. Most other debug functionality is already provided
byjishaku.bot_bin.miscContains an uptime, ping, and copyright command. The latter requires bot.config['copyright_license_file'] to be
set to a path to a text file, the contents of which will be sent when the user runs the copyright command.Also contains various utilities:codeblockwraps text in a markdown code blockabsolute_natural_timedeltareturns an English string representing an amount of secondsnatural_timedeltareturns an English string representing the difference between two dates.
This function differs fromabsolute_natural_timedeltain that it also supports years and months.natural_ratereturns an English string representing a rate of occurence.pluralis a format object which pluralizes strings. For example:f'Found {plural(len(results)):weapon}'natural_joinjoins a sequence of strings according to English grammartimeitis a context manager that times the code in thewithblockbot_bin.sqlContains SQL execution commands for asyncpg.
Requiresbot.poolto be set to either an asyncpg Connection or a ConnectionPool.
Requires thebot_bin[sql]extra.bot_bin.statsImplements the guild count API for DBL, DBots, Bots For Discord, LBots, and Discord Boats.
This is configured usingbot.config['tokens']['stats'].
Each key should be a domain, e.g.bot.config['tokens']['stats']['discordbots.org']would be the bot's DBL token.Defines asend-statsowner only command which sends the current guild counts to the configured APIs
and reports any errors.
Package: botblox
BotBlox softwareSoftware created by BotBlox to configure settings on our productsExplore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectBuilt WithInstallationGetting StartedUsageTestingRoadmapContributingLicenseContactAcknowledgementsAbout The ProjectWelcome to BotBlox Software. We designed this software to go along with ourfirmwareto allow our community of customers and developers to manually configure custom settings on BotBlox products, such as the SwitchBlox: our flagship Ethernet switch. For a while now, our customers have requested that they want to be able to program VLAN membership, Quality-of-service, Port mirroring, etc on our products. The software comes as a packaged module that you can use as a CLI application. This can be further extended on request to an application that can be used cleanly with a Python codebase. This application was designed with developers in mind; to make developing features for this application as simple as possible. We very much encourage people to point out improvements, bugs or missing features they want implemented as we want to be very responsive to the needs of both the developer and customer.Built WithPySerialInstallationYou'll need to install Python version 3.6+ in order to use this application.pipinstallbotbloxUsageBefore using the software, it is recommended that you create a python virtual environment in the project directory that you use. There are multiple ways to do this. The easiest way to do this is using thevenvmodule, which is part of the Python standard library. You can check the dockshere.In short;In your shell, navigate to project root:cd /path/to/project/rootExecute command in your shellpython-mvenv/path/to/virtual/environmentFor example:python -m venv botblox-envExecute in your shellsource/path/to/virtual/environmentFor example:source botblox-env4) Executepip install botbloxto install the package in the virtual environmentFor specific information on what commands you can run, refer to theDocumentationTestingpython -m pytest tests/RoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Create 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 RequestPlease also note theDeveloper Guidelinesthat BotBlox kindly asks of all those who are generous enough to devote their time using or developing on this product.LicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactProject Link:https://github.com/botblox/botblox-manager-softwareAcknowledgementsChristopher McClellanMilad Alizadeh