Saravanan666/pypi-org huggingface dataset:
Package: aphorism
Project TitleaphorismInstalling / Upgrading / UninstallingaphorismInstallingaphorismis as easy as opening a command line/terminal and calling:pip install aphorismOptionally, you can install specific versions or upgrade in the standard ways, respectively:pip install aphorism==versionnumber
pip install --upgrade aphorismUninstalling also works as you expect:pip uninstall aphorismImportingaphorismImporting aphorism is as easy as:import aphorismAll standard Python syntaxes apply once imported, and subsets or subpackages ofaphorismcan be imported in the standard way:from aphorism import ... (as ...)Project MotivationTo provide a structured, clean environment for my python code, examples, and historical work products.Current To-Do and Feature Enhancement ListNeed to figure out how to add/access data in the folder. I can see it, but I can't access it.Need to figure out why the package won't let me install required packages even when they are listed under install_requires.Build the COVID reporting functions into a module.Build the COVID reporting data structures/examples into the module.Build out the general function file with all of the various functions.Need to finish merging in the OPPE code for locations, volumes, readmissions, ...Need to finish adding all of the LaTeX and SQL files to this after patient info is cleaned.Need to complete the markdown file with all appropriate notations and sections.Need to finish the GUI that directly interacts with the data files/folders.Set up a repository for the *.shp files with a link to the US Census Bureau.Create a complete resource/reference section. Make sure to include a link to GitHub with the info on generatinginit.py, setup.py, and setup.cfg.
Package: aphrodite
Project descriptionAthena is the core SDK for requesting the EnOS APIExample1.1 Queryfromposeidonimportposeidonappkey='7b51b354-f200-45a9-a349-585d97730c5a'appsecret='65417473-2da3-40cc-b235-513b9216bab1'url='http://10.27.20.193:8000/tttttttt/v1/tyy?sid=28654780'req=poseidon.urlopen(appkey,appsecret,url)print(req)1.2 Headerfromposeidonimportposeidonappkey='7b51b354-f200-45a9-a349-585d97730c5a'appsecret='65417473-2da3-40cc-b235-513b9216bab1'url='http://10.27.20.193:8000/tttttttt/v1/tyy?sid=28654780'header={}req=poseidon.urlopen(appkey,appsecret,url,None,header)print(req)1.3 Bodyfromposeidonimportposeidonappkey='7b51b354-f200-45a9-a349-585d97730c5a'appsecret='65417473-2da3-40cc-b235-513b9216bab1'url='http://10.27.20.193:8000/tttttttt/v1/tyy?sid=28654780'data={"username":"11111","password":"11111"}req=poseidon.urlopen(appkey,appsecret,url,data)print(req)
Package: aphylogeo
﻿﻿﻿﻿﻿﻿﻿aPhyloGeo🌳 Multi-platform application for analyze phylogenetic trees with climatic parametersTable of ContentsAbout the projectInstallationLinux/UNIX, Mac OS and Windows versionsSettingsReferencesContact📝 About the projectaPhyloGeois a powerful and versatile bioinformatics pipeline specifically designed for the analysis of phylogeography. Developed by the dedicated team led by ProfessorNadia Tahiriat the University of Sherbrooke in Quebec, Canada, this open-source multi-platform application is implemented in Python. It serves as a valuable tool for researchers and scientists interested in unraveling the intricate relationships between genetic sequences and geographic locations.⚒️ InstallationLinux UNIX & Windows versionsaPhyloGeois available as a Python script.PrerequisitesThis package usePoetrydependency management and packaging tool for Python. Poetry installation guide can be found here:Poetry Install⚠️ For windows installation it's recommended to launch powershell inAdministrator mode.Once Poetry is installed, you can clone the repository and install the package using the following commands:poetry installUsagePoetry will handle the virtual environment automatically. if you want to use the virtual environment manually, you can use the following command:poetry shell⚠️ Assuming Python 3.8 or higher is installed on the machine, these scripts should run well with the libraries installed.You can also launch the package using themakecommand from your terminal when you are in theroot. This command will use theMakefileto run the script. If you use the commandmake clean, it will erase theoutput.csvfile previously created with the first command.🚀 SettingsTheaPhyloGeosoftware can be encapsulated in other applications and applied to other data by providing a YAML file. This file will include a set of parameters for easy handling (seeWiki documentation).📚 TutorialsWe provide several tutorials to help you get started with the package.📖 DocumentationYou can also refer to thedocumentationfor more details.✔️ References💡 If you are using our algorithm in your research, please cite our recent papers:1️⃣  Li, W. & Tahiri, N. (2023). aPhyloGeo-Covid: A Web Interface for Reproducible Phylogeographic Analysis of SARS-CoV-2 Variation using Neo4j and Snakemake.Proceeding in SciPy 2023, Auxtin, TX, USA2️⃣ Koshkarov, A., Li, W., Luu, M. L., & Tahiri, N. (2022). Phylogeography: Analysis of genetic and climatic data of SARS-CoV-2.Proceeding in SciPy 2022, Auxtin, TX, USA📧 ContactPlease email us at:Nadia.Tahiri@USherbrooke.cafor any questions or feedback.
Package: api2openai
🔥ChatLLM 基于知识库🔥Installpipinstall-UchatllmDocsUsages目前适配的LLMsfromchatllm.applicationsimportChatBaseqa=ChatBase()qa.load_llm(model_name_or_path="THUDM/chatglm-6b")foriinqa(query='周杰伦是谁',knowledge_base='周杰伦是傻子'):print(i,end='')# 根据已知信息无法回答该问题，因为周杰伦是中国内地流行歌手、演员、音乐制作人、导演，# 是具有一定的知名度和专业能力的人物，没有提供足够的信息无法判断他是傻子。OpenaiEcosystemClick to 无缝对接openai生态# 服务端pipinstall"chatllm[openai]"&&chatllm-runopenai<本地模型地址>SDK：pip install openaiimportopenaiopenai.api_base='http://0.0.0.0:8000/v1'openai.api_key='chatllm'prompt="你好"completion=openai.Completion.create(prompt=prompt,stream=True,model="text-davinci-003")forcincompletion:print(c.choices[0].text,end='')# 你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你，欢迎问我任何问题。客户端：点击下载chatbox，也可接入客户端openai_keys:不定期更新免费keysChatMindClick to ChatMindpipinstall"chatllm"&&chatllm-runwebui--namechatmindChatPDFClick to ChatPDFpipinstall"chatllm[pdf]"&&chatllm-runwebui--namechatpdfpython交互fromchatllm.applications.chatpdfimportChatPDFqa=ChatPDF(encode_model='nghuyong/ernie-3.0-nano-zh')qa.load_llm(model_name_or_path="THUDM/chatglm-6b")qa.create_index('财报.pdf')# 构建知识库foriinqa(query='东北证券主营业务'):print(i,end='')# 根据已知信息，东北证券的主营业务为证券业务。公司作为证券公司，主要从事证券经纪、证券投资咨询、与证券交易、# 证券投资活动有关的财务顾问、证券承销与保荐、证券自营、融资融券、证券投资基金代销和代销金融产品待业务。支持召回结果查看DeployClick to DeployChatGLM-6B 模型硬件需求|量化等级|最低 GPU 显存（推理） |最低 GPU 显存（高效参数微调） |
| -------------- | ------------------------- | --------------------------------- |
| FP16（无量化） | 13 GB                     | 14 GB                             |
| INT8           | 8 GB                     | 9 GB                             |
| INT4           | 6 GB                      | 7 GB                              |从本地加载模型安装指南ChatGLM-6B Mac 本地部署实操记录THUDM/ChatGLM-6B#从本地加载模型TODOClick to TODOChatLLM 应用接入非结构化文档（已支持 md、pdf、docx、txt 文件格式）搜索引擎与本地网页接入结构化数据接入（如 csv、Excel、SQL 等）知识图谱/图数据库接入增加 ANN 后端，ES/RedisSearch【确保生产高可用】增加多级缓存缓存多路召回问标量匹配多种向量化，向量匹配增加相似问，换几个问法高置信度直接返回答案【匹配标准问】答高置信度篇章增加上下文信息增加夸篇章信息增加召回信息的相似信息提前生成标准问，匹配问拒绝推断增加更多 LLM 模型支持THUDM/chatglm-6bTHUDM/chatglm-6b-int8THUDM/chatglm-6b-int4THUDM/chatglm-6b-int4-qeClueAI/ChatYuan-large-v2增加更多 Embedding 模型支持nghuyong/ernie-3.0-nano-zhnghuyong/ernie-3.0-base-zhshibing624/text2vec-base-chineseGanymedeNil/text2vec-large-chinese增加一键启动 webui利用 streamlit 实现 ChatPDF，一键启动chatllm-run webui --name chatpdf利用 gradio 实现 Web UI DEMO添加输出内容及错误提示引用标注增加知识库管理选择知识库开始问答上传文件/文件夹至知识库删除知识库中文件增加 API 支持利用 Fastapi/Flask/Grpc
实现流式接口chatllm-run openai <本地模型地址> --host 127.0.0.1 --port 8000前后端分离，实现调用 API 的 Web UI Demo交流群若二维码失效加微信拉群 313303303
Package: api4jenkins
Jenkins Python ClientPython3client library forJenkins APIwhich provides sync and async APIs.FeaturesProvides sync and async APIsObject oriented, each Jenkins item has corresponding class, easy to use and extendBase onapi/json, easy to query/filter attribute of itemSetup relationship between class just like Jenkins itemSupport api for almost every Jenkins itemPythonicTest with latest Jenkins LTSInstallationpython3-mpipinstallapi4jenkinsQuick startSync example:>>>fromapi4jenkinsimportJenkins>>>client=Jenkins('http://127.0.0.1:8080/',auth=('admin','admin'))>>>client.version'2.176.2'>>>xml="""<?xml version='1.1' encoding='UTF-8'?>... <project>...   <builders>...     <hudson.tasks.Shell>...       <command>echo $JENKINS_VERSION</command>...     </hudson.tasks.Shell>...   </builders>... </project>""">>>client.create_job('path/to/job',xml)>>>importtime>>>item=client.build_job('path/to/job')>>>whilenotitem.get_build():...time.sleep(1)>>>build=item.get_build()>>>forlineinbuild.progressive_output():...print(line)...StartedbyuseradminRunningasSYSTEMBuildinginworkspace/var/jenkins_home/workspace/freestylejob[freestylejob]$/bin/sh-xe/tmp/jenkins2989549474028065940.sh+echo$JENKINS_VERSION2.176.2Finished:SUCCESS>>>build.buildingFalse>>>build.result'SUCCESS'Async exampleimportasyncioimporttimefromapi4jenkinsimportAsyncJenkinsasyncmain():client=AsyncJenkins('http://127.0.0.1:8080/',auth=('admin','admin'))print(awaitclient.version)xml="""<?xml version='1.1' encoding='UTF-8'?><project><builders><hudson.tasks.Shell><command>echo $JENKINS_VERSION</command></hudson.tasks.Shell></builders></project>"""awaitclient.create_job('job',xml)item=awaitclient.build_job('job')whilenotawaititem.get_build():time.sleep(1)build=awaititem.get_build()asyncforlineinbuild.progressive_output():print(line)print(awaitbuild.building)print(awaitbuild.result)asyncio.run(main())DocumentationUser Guide and API Reference is available onRead the Docs
Package: api5paisa
api5paisaUnoffical Browser Based Python API of 5paisa made atUnofficed.Its created live today morning only.https://youtube.com/watch?v=2PXSfi0RshoFeel Free to Tweak it, Modify it and Add the rest of the missing functions to it at your pace.InstallationUse the package managerpipto install api5paisa.pipinstallapi5paisaUsagefromapi5paisaimportApi5Paisaapi=Api5Paisa()api.login("email or clientId","passowrd","dob in the format ddMMyyyy")#for easy access create ~/.5paisa.conf and user api.login() refer examples/5paisa.conf#Get Marginprint(api.get_margin())#Get Trade Bookprint(api.get_trade_book())#Firing Orderorder_response=api.order('SBIN',170.2,1)print(order_response)print(api.get_order_book())DocumentationFor Documentation and Sample Code, Refer -https://forum.unofficed.com/ContributingFor Discussion and Improving this Code, Join -https://www.unofficed.com/chat/LicenseMIT
Package: api66jenkins
Jenkins Python ClientPython3client library forJenkins API.dispose api4jenkins job.  Build could not pass dictionary format。Thanks to the original authors of api4jenkins for providing such a nice package to manipulate JenkinsFeaturesObject oriented, each Jenkins item has corresponding class, easy to use and extendBase onapi/json, easy to query/filter attribute of itemSetup relationship between class just like Jenkins itemSupport api for almost every Jenkins itemPythonicTest with latest Jenkins LTSInstallationpython3-mpipinstallapi66jenkinsQuick start>>>fromapi66jenkinsimportJenkins>>>client=Jenkins('http://127.0.0.1:8080/',auth=('admin','admin'))>>>client.version'2.176.2'>>>xml="""<?xml version='1.1' encoding='UTF-8'?>... <project>...   <builders>...     <hudson.tasks.Shell>...       <command>echo $JENKINS_VERSION</command>...     </hudson.tasks.Shell>...   </builders>... </project>""">>>client.create_job('path/to/job',xml)>>>importtime>>>item=client.build_job('path/to/job')>>>whilenotitem.get_build():...time.sleep(1)>>>build=item.get_build()>>>forlineinbuild.progressive_output():...print(line)...StartedbyuseradminRunningasSYSTEMBuildinginworkspace/var/jenkins_home/workspace/freestylejob[freestylejob]$/bin/sh-xe/tmp/jenkins2989549474028065940.sh+echo$JENKINS_VERSION2.176.2Finished:SUCCESS>>>build.buildingFalse>>>build.result'SUCCESS'DocumentationUser Guide and API Reference is available onRead the Docs
Package: apiai
api.ai: Python SDK for `API.AI <http://api.ai>`_=========================.. image:: https://badge.fury.io/py/apiai.svg:target: http://badge.fury.io/py/apiai.. image:: https://travis-ci.org/api-ai/api-ai-python.svg:target: https://travis-ci.org/api-ai/api-ai-pythonOverview--------The API.AI Python SDK makes it easy to integrate speech recognition with API.AI natural language processing API. API.AI allows using voice commands and integration with dialog scenarios defined for a particular agent in API.AI.Prerequsites--------Create an `API.AI account <http://api.ai>`_.Running examples--------1. Find examples from 'examples' path.2. Insert API key... code-block:: python>>> CLIENT_ACCESS_TOKEN = '<YOUR_CLIENT_ACCESS_TOKEN>'...Features--------- Speech Recognition.- Voice Activity Detection.- Natural Language Processing.Installation------------To install apiai, simply:.. code-block:: bash$ pip install apiaior install it from repo:.. code-block:: bash$ pip install https://github.com/api-ai/api-ai-python.gitYou might run into problems because some dependencies in your python environment are missing. You need to install numpy (which is available in almost all package managers). For running the examples you also need python audio.In ubuntu the following will do the job:.. code-block:: bash$ apt-get install python-pyaudio python-numpy$ pip install apiaiDocumentation-------------Documentation is available at http://api.ai... :changelog:Release History---------------0.0.8 (2015-01-29)++++++++++++++++++* `scipy` removed from dependencies in library.* `scipy` removed from dependencies in examples.0.0.1 (2014-03-1)++++++++++++++++++* Conception
Package: api.ai
api_aiAPI.ai Python clientFree software: ISC licenseDocumentation:https://api_ai.readthedocs.org.FeaturesMake queriesCreate EntitiesCreate and update IntentsInstallationpipinstallapi.aiQuickstartfromapi.aiimportAgentagent=Agent('<subscription-key>','<client-access-token>','<developer-access-token>',)response=agent.query("Hello there")CreditsFulfil.IO IncThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-1-22)First release on PyPI.
Package: apiai_assistant
API.ai Assistantapiai_assistantaims to offer developers the easiest and most intuitive way to create smart assistants through API.aiTable of contentsInstallationLatest PyPI stable releaseLatest development release on githubRunning testsChangelogUsageSample projectFurther readingFAQ and Known IssuesTo doDocumentationContributionsLICENCEAuthorsInstallationLatest PyPI stable releasepipinstallapiai-assistantLatest development release on githubPull and install in the current directory:pipinstall-egit+https://github.com/toasterco/apiai_assistant.git@master#egg=apiai_assistantRunning testspython-munittestdiscovertests/Ornosetests--with-coverage--cover-package=apiai_assistantChangelogThe list of all changes is available either on GitHub’s Releases:or on crawlers such asallmychanges.com.UsageSample projectSee theapiai_assistant-sampleproject.Further readingDeclaring an AssistantRegistering an intentWriting intentsAccessing parametersAccessing context parametersTelling the userAsking the userShowing the userSuggesting options to the userAdding contextsRequesting permissionsAbortingFAQ and Known IssuesCan I use my agent for all API.ai supported integrations ?Only Actions on Google is supported as of yet in Alpha.If you come across any other difficulties, browse/open issueshere.To doBetter error support (all error code, not only 400, and include error message)Add follow up intents supportSupport other smart assistant platforms (Alexa, Messenger, Slack as priorities)Assist account linkingDocumentationAll the doc can be found overhere.ContributionsAll source code is hosted onGitHub.
Contributions are welcome.LICENCEOpen Source :AuthorsRanked by contributions.Zack Dibe (Zack–) *Dominic Santos (dominicglenn)*Original author
Package: apian
IntroductionApian is an opinionated library for setting up a Python-based service with a
minimum of boilerplate. It is a thin wrapper aroundflask-restplusand provides:Documentation using OpenAPI.Info and health resources.JWT-based authentication.Configuration injection usingminiscule.ExampleAdd a configuration fileconfig.yamlin the root of the project, with the
following contents:environment:productiondebug:Falseauthentication:enabled:Truesecret:secretTo create a Flask application and run it onlocalhost:5000:fromapianimportread_config,create_api,create_app,authenticatedfromflask_restplusimportNamespace,Resourcens=Namespace("user")@ns.route("")classUserItem(Resource):@authenticateddefget(self,user_id):returnuser_idconfig=read_config()api=create_app("my-app",config)api.add_namespace(ns)app=create_app(api,config)app.run()The application has endpoints at the paths:GET /my-app/api/info- Return information about the service.GET /my-app/api/health- Return the health status of the service.GET /my-app/api/user- Return the user ID set in the Bearer token.To access the user resource, ensure that therequestspackage is installed and execute the
following snippet:importjwtimportrequestsdefauth_token():user_id=10claims={"iat":dt.datetime.utcnow(),"sub":user_id}key="secret"returnjwt.encode(claims,key,"HS256")headers={"Authorization":"Bearer{}".format(requests.get("http://localhost:5000/my-app/api/user",headers=headers)
Package: api-assistant
API AssistantThe API assistant is aChatGPT assistanton top of an OpenAI IDL json file.
The CLI will based on prompts find the correct request and send it with the provided arguments.You can run the CLI from your terminal withapi-chat--idl=<OPENAI_IDL_PATH>InstallationThe tool is available atpypiand can be installed using pippipinstallapi-assistantExtra - convert a swagger to OpenAI IDLIf you have generated a swagger (OpenAPI) for you API then you can use the s2o (swagger to openai) tool to convert it to a OpenAI IDL format. The tool can be installed with the cargo CLI that follows therustinstallation.If you have cargo installed then you can install it withcargoinstalls2oIn order to interact with the cli there are some environment variables that needs to be present.Environment variables - REQUIREDOPENAI_API_KEY: An OpenAI api keyHOST: The host of the API that you wish to query. Ex:http://localhost:8000ASSISTANT_INSTRUCTIONS: A description (prompt) to the assistant of its purpose. Ex: For a payments api a typical instruction could be "ou are a wrapper around a payments api. Use the provided endpoints to answer user questions. Sometimes functions has to be combined to achieve the intended result."CLI ArgumentsThere is only one argument to the CLI itselfidl: The path to the OpenAI IDL json. Ex:api-chat --idl=./idls/openai.idl.
Package: apibara
WarningThis SDK is alpha software. The API will change drastically until the beta.Open an issue on GitHubto report bugs or provide feedback.Build web3-powered applications in Python.DevelopmentInstall the following packages using your OS package manager:protobufpoetrydocker (for testing)Install all Python dependencies with:poetry installRun tests with:poetry run pytest testsFormat code with:poetry run black src examples test
poetry run isort src examples testTo update the protobuf definitions:protoc -I=protos/starknet/ \
    --python_out=src/apibara/starknet/proto/ \
    --pyi_out=src/apibara/starknet/proto protos/starknet/*Development (with Nix)This repository provides a Nix development environment. To use it simply run:nix developAll dependencies, including pre-commit hooks, will be installed for you.LicenseCopyright 2023 GNC Labs LimitedLicensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: apibee
ApiBee is a dynamic rest client built on top of the excellentrestkitlibrary.It aims to be able to handle any uris for any apis.How it work ?Let’s say we want to fetch the json API of the great servicehttp://www.example.com. Their api is served fromhttp://api.example.com/1.0/:>>> from apibee import Client
>>> api = Client('http://api.example.com/1.0/')Now we want to get the result fromhttp://api.example.com/1.0/users/search?q=Timy:>>> results = api.users.search(q='Timy')That’s it !Going furtherGetting json resultHere:class ExampleClient(Client):
    def process_result(self, result):
        return json.loads(result)Now the result is a python type:>>> api = ExampleClient("http://api.example.com/1.0/")
>>> result = api.user.search(q="timy")Adding query automaticallySometimes some api are a bit tricky. And we need to build a custom client to match thoses.Previously, the version of the api was part of the resource but what if we have to specify it for each request:http://api.example.com/user/search?v=1.0&q=TimyWe can specify one or more params which will be automatically add to the query:class ExampleClient(Client):
    def set_persistent_query(**args):
        self._persistent_query = args

    def build_query(self, response, query):
        query.update(self._persistent_query)
        return response, query

>>> api = ExampleClient('http://api.example.com')
>>> api.set_persistent_query(v="1.0")Customize resourcesSome apis like Twitter add.jsonafter the resource but before the query :https://api.twitter.com/1/search.json&q=Timy. We can do it like this:class TwitterClient(Client):
    def set_format(self, f):
        self._format = f

    def build_query(self, response, query):
        response = "%s.%s" % (response, self._format)
        return response, query

>>> api = TwitterClient('https://api.twitter.com/1', end_resource='.json')
>>> results = api.search(q='Timy')Raising errorsSometimes you may have to clean up the result before send it back. You can do it by overloading theClient.process_resultmethod.Example:Google’s web service won’t send an http error 400 if the request failed. Instead, it will send a custom result:http://ajax.googleapis.com/ajax/services/search/web?q=Earth%20Daywill send back:{"responseData": null, "responseDetails": "invalid version", "responseStatus": 400}Let’s say we want to catch the error and raise an RequestFailed exception with a custom message which is in the “responseDetails” field:class GoogleClient(Client):
    def process_result(self, result):
        if result["responseStatus"] == 400:
            raise RequestFailed(result['responseDetails'])
        return resultThat’s it ! Don’t forget to return the result at the end of theprocess_resultmethod.>>> api = GoogleClient('http://ajax.googleapis.com/ajax/services')
>>> api.search.web(q="toto")
Traceback (most recent call last):
...
RequestFailed: invalid version
Package: api-bible-sdk
API.Bible SDKThis SDK wraps theapi.bibleAPI for use in python applications.Getting StartedPrerequisitesPython 3.7Follow the instruction on thePython Download PagePipenv$ pip install pipenvInstallingUse pipenv to install the dependancies$ pipenv installRunning the testsPytest is installed as part of the dependancies run the tests with$ pipenv run pytestLintingBlack is installed for linting exectue it withpipenv run black api_bible_sdk/ tests/Built Withapi.bible- The backend APIPython- The programming languagePipenv- Dependancy managmentContributingAny help or suggestions you may have will be greatly appriciated. If you have the time open a MR and I will do me best to get to it promptly.AuthorsMatthew Birky-Initial work-mbirkyLicenseThis project is licensed under the MIT License - see theLICENSEfile for details