Saravanan666/pypi-org huggingface dataset:
Package: agent-tool
Agent ToolsA common protocol for AI agent toolsInstallationpip install agent-toolUsageLet's define a simplified Selenium web browser toolfromagent_toolsimportTool,action,observationfromseleniumimportwebdriverclassSeleniumBrowser(Tool):"""Selenium browser as a tool"""def__init__(self,headless:bool=True)->None:super().__init__()options=webdriver.ChromeOptions()ifheadless:options.add_argument("--headless")self.driver=webdriver.Chrome(options=options)@actiondefopen_url(self,url:str)->None:"""Open a URL in the browserArgs:url (str): URL to open"""self.driver.get(url)@actiondefclick_element(self,selector:str,selector_type:str="css_selector")->None:"""Click an element identified by a CSS selectorArgs:selector (str): CSS selectorselector_type (str, optional): Selector type. Defaults to "css_selector"."""element=self.driver.find_element(selector_type,selector)element.click()@observationdefget_html(self)->str:"""Get the entire HTML of the current page.Returns:str: Page HTML"""returnself.driver.page_sourcedefclose(self)->None:"""Close the tool"""self.driver.quit()We mark the functions to be made available to the agent as@actionif they mutate the environment, and@observationif they are read only.Now we can use this tool with an agent such as openai function callingfromopenaiimportOpenAIclient=OpenAI()browser=SeleniumBrowser()schemas=browser.json_schema()messages=[]messages.append({"role":"system","content":"Don't make assumptions about what values to plug into functions. Ask for clarification if a user request is ambiguous."})messages.append({"role":"user","content":"Get the HTML for the front page of wikipedia"})headers={"Content-Type":"application/json","Authorization":"Bearer "+openai.api_key,}json_data={"model":model,"messages":messages,"tools":schemas}response=requests.post("https://api.openai.com/v1/chat/completions",headers=headers,json=json_data,)assistant_message=response.json()["choices"][0]["message"]messages.append(assistant_message)assistant_message{"role":"assistant","tool_calls":[{"id":"call_RYXaDjxpUCfWmpXU7BZEYVqS","type":"function","function":{"name":"open_url","arguments":"{\n  \"url\": \"https://wikipedia.org\"}"}},{"id":"call_TJIWlknwdoinfWEMFNss","type":"function","function":{"name":"get_html","arguments":""}}]}Then to use this actionfortoolinassistant_message["tool_calls"]:action=browser.find_action(tool["function"]["name"])args=json.loads(tool["function"]["arguments"])resp=browser.use(action,**args)Tools can be used locally or spun up on a server and used remotely (In progress)Share (In progress)Register a tool with the AgentSea hub so others can find and use it.pipinstallagentseaCreate a repo to publishagentsea create toolAdd your tool to thetool.pyin the repo, fill in theREADME.mdand add your dependencies using PoetryPublish to the hubagentsea publish .RoadmapIntegrate with langchain, babyagi, autogpt, etc
Package: agentwallet
Agent Wallet Python SDKThe Agent Wallet Python SDK is a powerful tool designed to simplify the integration of your AI agent with the AgentWallet platform. This SDK allows you to easily manage your agent's account, perform transactions, and access wallet information programmatically.Key FeaturesSimple Account Management:Create and manage your agent's account with ease.Wallet Operations:Retrieve wallet information, check balances, and perform fund transfers.Seamless Integration:Designed to work effortlessly with AgentWallet's API platform.Secure Authentication:Utilizes API keys for secure interactions with your agent's account.Getting StartedInstallation:To start using the Agent Wallet SDK, check out theAgent Wallet SDK GitHub repositoryand install it usingpip:gitclonegit@github.com:llmOS/agent-wallet-sdk.gitcdagent-wallet-sdk
pipinstall-e.Setting Up Your Account:Import the Account class from the SDK and initialize it with your API key:fromagentwalletimportAccountaccount=Account.from_key("your-api-key")Managing Wallets:Fetch wallet information and manage transactions:# Fetch all wallets associated with the accountwallets=account.get_wallets()print(f"Wallets:{wallets}")# Access a specific walletwallet=account.get_wallet(wallets[0].wallet_uid)print(f"Wallet:{wallet}")# Perform a fund transfertransfer_ok=wallet.transfer("recipient@email.com",amount)print(f"Transfer successful:{transfer_ok}")# Check the new balancebalance=wallet.balance()print(f"New balance: ${balance/100:.2f}")ExamplesFor more details, visitAgent Wallet SDK GitHub repository. Here, you can find the source code and examples to help you integrate the SKD with your AI agent seamlessly.
Package: agentzero
It works great with gevent, making it possible to create network applications with simple code that performs complex operations.Home-page: https://github.com/gabrielfalcao/agentzeroAuthor: Gabriel FalcaoAuthor-email: gabriel@nacaolivre.orgLicense: UNKNOWNDescription: AgentZero 0.4.4 - high-level ZeroMQ socket managers===================================================.. image:: https://readthedocs.org/projects/agentzero/badge/?version=latest:target: http://agentzero.readthedocs.io/en/latest/?badge=latest.. image:: https://travis-ci.org/gabrielfalcao/agentzero.svg?branch=master:target: https://travis-ci.org/gabrielfalcao/agentzero.. image:: https://codecov.io/gh/gabrielfalcao/agentzero/branch/master/graph/badge.svg:target: https://codecov.io/gh/gabrielfalcao/agentzero.. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg:target: https://saythanks.io/to/gabrielfalcao**Supports Python 2.7 and 3.6**Looking for `documentation <https://agentzero.readthedocs.io/en/latest/>`_ ?--------------------------------------------------------------------------------------What is AgentZero ?-------------------AgentZero is a pluripotent networking library that lets you create,connect, bind, and modify ZeroMQ sockets in runtime with ease.It works great with gevent, making it possible to create networkapplications with simple code that performs complex operations.Features:----------  Create labeled sockets, every ZMQ socket in AgentZero has a name.-  seamlessly poll across connected/bound sockets-  seamlessly subscribe to events-  easily publish events-  bind sockets to random ports automatically-  bind to hostnames, with automatic DNS resolution-  ability to wait until a socket has received data-  builtin python log handler that publishes logs in a ZMQ PUB socketInstalling==========.. code:: bashpip install agentzeroLearn More==========`API Reference <https://agentzero.readthedocs.io/en/latest/api-reference.html>`_Platform: UNKNOWN
Package: aget
Aget - Asynchronous Downloader中文Aget is an asynchronous downloader operated in command-line, running on Python > 3.5.It supports HTTP(S), usinghttpxrequest library.Aget continues downloading a partially downloaded file as default.Installion$pip3installagetUsageagethttps://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png# get an output nameagethttps://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png-o'google.png'# set headersagethttps://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png-H"User-Agent: Mozilla/5.0"-H"Accept-Encoding: gzip"# set concurrencyagethttps://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.tar.xz-s10# set request range sizeagethttps://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.tar.xz-k1MOptions-oOUT,--outOUT# output path-HHEADER,--headerHEADER# request header-XMETHOD,--methodMETHOD# request method-dDATA,--dataDATA# request data-tTIMEOUT,--timeoutTIMEOUT# timeout-sCONCURRENCY,--concurrencyCONCURRENCY# concurrency-kCHUCK_SIZE,--chuck_sizeCHUCK_SIZE# request range sizeFor DeveloperloggingUse environment variableAGET_LOG_LEVELto setting logging level.The default level isCRITICAL.
Package: age-YTDownloader
YT_DownloaderPackage for aquiring binary data for YT videos with age restrictions.UsageTo use in your project include 'import YTDownloader'Create a class object passing a url (for a YouTube video) string like:
yt = YTDownloader.AgeRestrictedYTVideo()Query if video is age restricted like:
age_restricted = yt.is_age_restricted()Either way, a binary object for the video is returned by:
bytes_obj = yt.get_video()
Package: ag.funutils
ag.funutilsFun functional utilities for python. This library provides achainmethod and several operators that you can chain together to create pipelines of functional transformations, like with Lodash's chain or Clojure's threading macros.The provided functions are "sugary". They do NOT provide performance optimizations, error handling, or guarantees of statelessness.Each operator will take a transformation and return a function that applies that transformation to an iterable. Because most operators are wrappers around built-in functions like of the same name, they return iterables and the results of most chains will need to be converted to a list to be immediately useful. The documentation for associated standard library functions should largely be applicable to the provided operators.ExamplesAlso see the tests.fromag.funutilsimportfunadd_one=fun.map(lambdax:x+"1")upper=fun.map(str.upper)fun.chain(["a","b","c","d"],add_one,upper,list)# => ["A1", "B1", "C1", "D1"]big_transform=[add_one,upper]fun.chain(["a","b","c","d"],*big_transform,list)# => ["A1", "B1", "C1", "D1"])fun.chain(["a","b","c","d"],fun.tap(print),# => "[a, b, c, d]"*big_transform,fun.tap(print),# => "[A1, B1, C1, D1]"fun.sort(reverse=True),list)# => ["D1", "C1", "B1", "A1"]fun.chain(["a","b","c","d"],*big_transform,fun.reduce(lambdaacc,x:acc+x))# => "A1B1C1D1"# Values that are tuples will be spread into the transformations,# which lets you work with dicts.data={'beep':1,'boop':2,'buup':3,}add_one=fun.map(lambdak,v:(k,v+1))evens=fun.filter(lambdak,v:v%2==0)beep_buup=fun.reduce(lambdaacc,k,v:f'{acc}{k}{v}','')result=fun.chain(data.items(),add_one,evens,add_one,beep_buup)# => 'beep3buup5'Referenceag.funutils.chain(data, *transforms):Providesdataas an argument to the firsttransform, then the result of eachtransformto the following one. Eachtransformshould be a function that takes a single, iterable argument and returns an iterable. The exception is thereduceoperator, which can return a single value if it is the last operator in the chain.ag.funutils.map(transform):returns a function which takes an iterable and appliestransformto each item of the iterableag.funutils.filter(condition):returns a function which takes an iterable and returns an iterable with only items matching the conditionag.funutils.sort(key=None, reverse=False):returns a function which takes an iterable and return an iterable sorted according to the value returned by thekeyfunction. Compares items directly by default.ag.funutils.reduce(transform, initial=None):returns a function which takes an iterable and reduces it to a single value. If noinitialvalue is provided, the first item is used as the initial value.ag.funutils.tap(fn):returns a function which takes a single argument, passes it tofn, and returns it. Intended for debugging purposes, in particular:ag.funutils.tap(print).DevelopmentRequires pipenv and python 3.7.$./scripts/setup.sh
$./scripts/test.sh
Package: agg
AggA Python library to aggregate files and data. This release supports merging two or more csv files.Documentationmerge_csv(files_to_merge:tuple,output_file:Union[str,pathlib.Path],first_line_is_header:Optional[bool]=None)->dict:The methodmerge_csvmerges multiple CSV files in the order they are specified. It will overwrite any existing file with the same name.Parameters:files_to_merge: A tuple containing paths to a files in the order they are to be merged.output_file: The path to the result file. The folder must already exist. An existing file with the same name will be overwritten.first_line_is_header: if True agg will remove the first line of all csv files except for the first. If not set agg will guess if the first line is a header or not.Its return value is a dictionary containing:a SHA256 hash of the result file,the name of the result file,its absolute path,a boolean indicating whether the first line is a header or not,its size in bytes,its number of lines (including the header),a list of the files merged (absolute path).Example#!/usr/bin/env python3# -*- coding: utf-8 -*-importagg# tuples are ordered:my_files=('file_01.csv','file_02.csv')# Merge the CSV-files - in the order specified by the tuple - into a new file# called "merged_file". Meanwhile copy the header / first line only once from# first file.merged_file=agg.merge_csv(my_files,'merged_file',True)# The return value is a dictionary!print(merged_file)# {'sha256hash': 'fff30942d3d042c5128062d1a29b2c50494c3d1d033749a58268d2e687fc98c6',#  'file_name': 'merged_file',#  'file_path': '/home/exampleuser/merged_file',#  'first_line_is_header': True,#  'file_size_bytes': 76,#  'line_count': 8,#  'merged_files': ['/home/exampleuser/file_01.csv',#                  '/home/exampleuser/file_02.csv']# }print(merged_file['file_path'])# '/home/exampleuser/merged_file'
Package: aggiestack
Purpose-------This is a demo program towards satisfying the course requirements for CSE - 689-607 SPTP: Cloud Computing Individual Project.Description of the project can be found at:https://tamu.blackboard.com/bbcswebdav/pid-4279770-dt-content-rid-31058440_1/courses/CSCE.689.1811.M1/P1.pdfUsage-----pip install aggiestack cliFirst time you use the command you will be asked the mongodb host URL and database_name in order to connectUsage:aggiestack server create [--image=<IMAGE> --flavor=<FLAVOR_NAME>] <INSTANCE_NAME>aggiestack server delete <INSTANCE_NAME>aggiestack server listaggiestack admin show hardwareaggiestack admin show instancesaggiestack admin can_host <MACHINE_NAME> <FLAVOR>aggiestack admin show imagecaches <RACK_NAME>aggiestack admin evacuate <RACK_NAME>aggiestack admin remove <MACHINE>aggiestack admin clear_allaggiestack admin add -mem MEM -disk NUM_DISKS -vcpus VCPU -ip IP -rack RACK_NAME MACHINEaggiestack show hardwareaggiestack show imagesaggiestack show flavorsaggiestack show allaggiestack show logsaggiestack config [--images=<IMAGES_PATH> | --flavors=<FLAVORS_PATH> | --hardware=<HARDWARE_PATH> ]aggiestack config load <CONGFIG_PATH>aggiestack -h | --helpaggiestack --version
Package: agglo_cc
################################################################################ Copyright (C) 2025 Plaisic and/or its subsidiary(-ies).## Contact: eti.laurent@gmail.com#### This file is part of the Agglo project.#### AGGLO_BEGIN_LICENSE## Commercial License Usage## Licensees holding valid commercial Agglo licenses may use this file in## accordance with the commercial license agreement provided with the## Software or, alternatively, in accordance with the terms contained in## a written agreement between you and Plaisic.  For licensing terms and## conditions contact eti.laurent@gmail.com.#### GNU General Public License Usage## Alternatively, this file may be used under the terms of the GNU## General Public License version 3.0 as published by the Free Software## Foundation and appearing in the file LICENSE.GPL included in the## packaging of this file.  Please review the following information to## ensure the GNU General Public License version 3.0 requirements will be## met: http://www.gnu.org/copyleft/gpl.html.#### In addition, the following conditions apply:##     * Redistributions in binary form must reproduce the above copyright##       notice, this list of conditions and the following disclaimer in##       the documentation and/or other materials provided with the##       distribution.##     * Neither the name of the Agglo project nor the names of its##       contributors may be used to endorse or promote products derived##       from this software without specific prior written permission.#### THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED## TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF## LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING## NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS## SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#### AGGLO_END_LICENSE##############################################################################agglo_cli_client generates command to a cli in Alexis Royer's cli format.
Package: agglo_tb
################################################################################ Copyright (C) 2025 Plaisic and/or its subsidiary(-ies).## Contact: eti.laurent@gmail.com#### This file is part of the Agglo project.#### AGGLO_BEGIN_LICENSE## Commercial License Usage## Licensees holding valid commercial Agglo licenses may use this file in## accordance with the commercial license agreement provided with the## Software or, alternatively, in accordance with the terms contained in## a written agreement between you and Plaisic.  For licensing terms and## conditions contact eti.laurent@gmail.com.#### GNU General Public License Usage## Alternatively, this file may be used under the terms of the GNU## General Public License version 3.0 as published by the Free Software## Foundation and appearing in the file LICENSE.GPL included in the## packaging of this file.  Please review the following information to## ensure the GNU General Public License version 3.0 requirements will be## met: http://www.gnu.org/copyleft/gpl.html.#### In addition, the following conditions apply:##     * Redistributions in binary form must reproduce the above copyright##       notice, this list of conditions and the following disclaimer in##       the documentation and/or other materials provided with the##       distribution.##     * Neither the name of the Agglo project nor the names of its##       contributors may be used to endorse or promote products derived##       from this software without specific prior written permission.#### THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED## TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF## LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING## NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS## SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#### AGGLO_END_LICENSE##############################################################################agglo_test_conductor is a library for stearing tests.
Package: agglo_tt
################################################################################ Copyright (C) 2025 Plaisic and/or its subsidiary(-ies).## Contact: eti.laurent@gmail.com#### This file is part of the Agglo project.#### AGGLO_BEGIN_LICENSE## Commercial License Usage## Licensees holding valid commercial Agglo licenses may use this file in## accordance with the commercial license agreement provided with the## Software or, alternatively, in accordance with the terms contained in## a written agreement between you and Plaisic.  For licensing terms and## conditions contact eti.laurent@gmail.com.#### GNU General Public License Usage## Alternatively, this file may be used under the terms of the GNU## General Public License version 3.0 as published by the Free Software## Foundation and appearing in the file LICENSE.GPL included in the## packaging of this file.  Please review the following information to## ensure the GNU General Public License version 3.0 requirements will be## met: http://www.gnu.org/copyleft/gpl.html.#### In addition, the following conditions apply:##     * Redistributions in binary form must reproduce the above copyright##       notice, this list of conditions and the following disclaimer in##       the documentation and/or other materials provided with the##       distribution.##     * Neither the name of the Agglo project nor the names of its##       contributors may be used to endorse or promote products derived##       from this software without specific prior written permission.#### THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED## TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR## PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF## LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING## NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS## SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.#### AGGLO_END_LICENSE##############################################################################aut is a library for unit tests.
Package: aggnf
aggnf: Aggregate Nth Field. A small console utility to count/group text data.Free software: MIT licenseDocumentation: (COMING SOON!)https://aggnf.readthedocs.org.FeaturesGenerates aggregate counts of text data, using a specified field as a key.Fields can be delimited by any string, the default is consecutive whitespace.Key field can be any integer, with negative integers counting backwards. The default is the last field.How-ToThe--helpoption is descriptive:~$ aggnf --help
Usage: aggnf [OPTIONS] [IN_DATA]

  Group text data based on a Nth field, and print the aggregate result.

  Works like SQL:
      `select field, count(*) from tbl group by field`

  Or shell:
      `cat file | awk '{print $NF}' | sort | uniq -c`

  Arguments:
      IN_DATA   Input file, if blank, STDIN will be used.

Options:
  -d, --sep TEXT          Field delimiter. Defaults to whitespace.
  -n, --fieldnum INTEGER  The field to use as the key, default: last field.
  -o, --sort              Sort result.
  -i, --ignore-err        Don't exit if field is specified and out of range.
  --help                  Show this message and exit.Here we generate an example file of 1000 random numbers, and ask aggnf to group it for us, ordering the result by the most common occurrences:~$ seq 1 1000 | while read -r l; do echo -e "line:${l}\t${RANDOM:0:1}"; done > rand.txt
~$ aggnf -o rand.txt
       1: 340
       2: 336
       3: 120
       8: 42
       6: 37
       5: 35
       7: 35
       4: 33
       9: 22This might look familiar, as it’s the same result one might get from something likeselectfield,count(*)as count from table group by field order by count desc, or even by the following bash one-liner:~$ cat rand.txt | awk '{print $NF}' | sort | uniq -c | sort -nr
340 1
336 2
120 3
 42 8
 37 6
 35 7
 35 5
 33 4
 22 9To-DoOutput is mangled when using another delimiter, will fix.Add a--sumoption, which will key on one field, and sum the contents of another.Speed optimizations.NotesThe usefulness of this program is questionable. It’s functionality is already covered by existing console commands that are much faster.This project is merely a quick example to learn the basics of packages which are unfamiliar to me, namely: cookiecutter, tox, and click.HistoryApril 4th: Released