Saravanan666/pypi-org huggingface dataset:
Package: ayeaye
Aye AyeAn ETL (Extract, Transform, Load) framework.Quick installIn the virtual environment for the project you’d like to use Aye Aye in, run:-pipinstallayeayeQuick startUsePipenvto manage a python virtual environment and package management0pipenvshell
pipenvinstallayeayeWithin the environment created by pipenv above, run one of the examples:-curl"https://raw.githubusercontent.com/Aye-Aye-Dev/AyeAye/master/examples/poisonous_animals.py"\--outputpoisonous_animals.py
mkdirdata
curlhttps://raw.githubusercontent.com/Aye-Aye-Dev/AyeAye/master/examples/data/poisonous_animals.json\--outputdata/poisonous_animals.json
pythonpoisonous_animals.pyThis model takes a small input dataset of animals and collates them by the country they are found. It doesn't write to a dataset, it just outputs a log. The log for this example contains the name of the country and the animals found there.There are more examples in theAye-Aye-Recipesgit repo.OverviewAn Aye Aye ETLmodelinherits fromayeaye.modeland uses class level variables to declareconnectorsto the data it acts on.Example:-importayeayeclassPoisonousAnimals(ayeaye.Model):poisonous_animals=ayeaye.Connect(engine_url='json://data/poisonous_animals.json')When instantiated,self.poisonous_animalswill be adatasetthat ETL operations can be done with.Theengine_urlparameter passed toayeaye.Connectis specifying the dataset type JSON in this case) and exact location for the data (data/poisonous_animals.jsonis a relative file path).Instead ofengine_urlyou could also specify arefand this uses the data catalogue to lookup theengine_url. (TODO this feature is coming soon!). When used this way,ayeaye.Connectis responsible for resolving therefto anengine_urland passing this to a subclass ofayeaye.connectors.base.DataConnectorwhich can read and maybe write this data type.Unit testsEnsure the working directory is the base Aye Aye directory (i.e. the same directory as the Pipfile):pipenvinstall--devexportPYTHONPATH=`pwd`/lib
pipenvrunpython-munittestdiscoverDevelopment versionTo use the latest code in editable mode-pipenvinstall-egit+https://github.com/Aye-Aye-Dev/AyeAye#egg=ayeayeWhenvenvis being used, add this line torequirements.txt-git+https://github.com/Aye-Aye-Dev/AyeAye#egg=ayeayeOptional extrasExtra dependencies for API usage within Aye-aye models can be installed like this:pipenvinstall"ayeaye[api]"LabelFunctionalityapiRestful JSON via http(s)awsFile based connectors can use Amazon Web Service S3 file storagecompressionOn the fly compression for file based connectorsLicenseAye Aye is distributed under the terms of theApache License 2.0and Copyright Progressive Logic Limit 2021 and onwards.
Package: ayed
AyED ToolsUsage:$ayed[OPTIONS]COMMAND[ARGS]...Options:--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Commands:coll: Crea las funciones newT, TToString, etc. Para un struct T.files: Crea archivos .dat con los datos de un excel.ayed collCrea las funciones newT, TToString, TFromString, TToDebug para un struct T.Por default, abre un editor - $VISUAL o NOTEPAD en Win, $EDITOR o vi/vim/nvim/nano en Linux - en el que podrán escribir sus structsSi ya tienen un archivo y no quieren que se abra el editor, pueden usar
-p o --path [PATH], siendo [PATH] el nombre del archivo.Usage:$ayedcoll[OPTIONS]Options:-p, --path FILE: La dirección del archivo .cpp[,.hpp,.c,.h] que contiene a los structs--help: Show this message and exit.ayed filesPor default, abre el excelAlgoritmosFiles.xlsxen la carpeta en la que
estén y lee todas sus solapas.Si el excel está en otro lugar, pueden especificar la dirección del archivo.xlsx
después del nombre del programa,
ej:$ayedfileshome/bocanada/Documents/AlgoritmosFiles.xlsx.Con -s o --sheet [SHEET] pueden especificar una solapa, siendo [SHEET] la solapa.Si utilizan --no-read, el programa no leerá los archivos para mostrarlos.Usage:$ayedfiles[OPTIONS][PATH]Arguments:[PATH]: La dirección del .xlsx  [default: AlgoritmosFiles.xlsx]Options:-s, --sheet TEXT: El nombre de la solapa/sheet--read / --no-read: Lee las estructuras guardadas en el .dat  [default: True]--help: Show this message and exit.
Package: ayla-iot-unofficial
ayla-iot-unofficialAn unofficial python library for interacting with the Ayla IoT API.
Intended to be generic for multi-device use.Designed primarily to be a support package forHome Assistantintegrations.This library is heavily based off ofsharkiqby@JeffResc.PyPiAyla ReferencesThis device is integrated by/with Ayla Networks and (generally) uses their documentation.These can be used as starting references:https://developer.aylanetworks.com/apibrowserhttps://docs.aylanetworks.com/reference/getting_startedhttps://connection.aylanetworks.com/s/article/2080270InstallationFrom PyPipipinstallayla-iot-unofficialBuild from sourcepipinstallbuild
pipbuild
pipinstallayla-iot-unofficialLibrary RequirementsRequires typical http interaction and datatype packages like requests, aiohttp, ujsonUser RequirementsReqiures a username and password (typically a smart device's app login credentials)
Requires an app_id and app_secret (granted by Ayla to the smart device's app for operation/integration)The app_id and app_secret may need to be obtained from proxy traffic or other method.UsageClass ObjectInstantiate a new class object through new_ayla_api() or Ayla() directly.For devices that may be region specific, the new_ayla_api() function will create an Ayla() object based on the europe boolean.Ayla Access_TokenStandard use should call sign_in() on the Ayla object after creation. This will perform the POST login request to obtain an access_token.Some devices communicate with a different IoT domain but still expose the Ayla access_token. This access token can be passed into the Ayla object using _set_credentials() and the proper arguments.DevicesBy default, calling get_devices() will return a list of class specific device objects with updated properties for use.See device.py for implemented device classes.Typical Operationpython3-mpipinstallayla-iot-unofficialimportayla_iot_unofficialUSERNAME='me@email.com'PASSWORD='$7r0nkP@s$w0rD'ayla_api=new_ayla_api(USERNAME,PASSWORD,APP_ID,APP_SECRET)ayla_api.sign_in()devices=ayla_api.get_devices()# Example Vacuum Devicesshark=devices[0]shark.set_operating_mode(OperatingModes.START)shark.return_to_base()# Example Water Softener Devicessoftener=devices[1]softener.capacity_remaining_gallonssoftener.set_vacation_mode()LicenseMIT
Package: aylien-apiclient
AboutThis is the Python client library for AYLIEN’s APIs. If you haven’t already done so, you will need tosign up.InstallationTo install, simply usepip:$pipinstall--upgradeaylien-apiclientSee theDevelopers Guidefor additional documentation.Examplefromaylienapiclientimporttextapic=textapi.Client("YourApplicationID","YourApplicationKey")s=c.Sentiment({'text':'John is a very good football player!'})Third Party Libraries and DependenciesThe following libraries will be installed when you install the client library:httplib2For development you will also need the following libraries:httprettyunittest2nose
Package: aylien-message-puller
aylien-message-pullerGoogle Cloud provides emulators for testing PubSub. Here you will find a tool that will pull messages for subscriptions taking project ID, subscription ID and the maximum number of messages as input.The retreived messages can be acknowledged using the flag 'ack' (which is turned off by default).Install using pip (Python 3):pip install aylien-message-pullerExampleTo pull messages from a subscription, you will need to provide the project-id, subscription-id, and the maximum number of messagesimport aylien_message_puller
aylien_message_puller.pull_pubsub("project-id", "subscription-id", 10)The default mechanisn does not  the received messages are not acknowledged. However, if you would like to acknowledge them, set the flag as true.import aylien_message_puller
aylien_message_puller.pull_pubsub("project-id", "subscription-id", 10, true)
```Change Log
==========

0.0.1 (07/11/2022)
------------------
First release
Package: aymara
LIMA python bindingsIntroducing LIMALIMA is a multilingual linguistic analyzer developed by theCEA LIST,LASTI laboratory(French acronym for Text and Image Semantic Analysis Laboratory). LIMA is Free Software, available under the MIT license.LIMA hasstate of the art performance for more than 60 languagesthanks to its recent deep learning (neural network) based modules. But it includes also a very powerful rules based mechanism called ModEx allowing to quickly extract information (entities, relations, events…) in new domains where annotated data does not exist.For more information, detailed installation instructions and documentation, please refer tothe LIMA Wiki.InstallationLIMA python bindings are currently available for python >= 3.7 and < 4, under Linux. Install with:$pipinstall--upgradepip# IMPORTANT: LIMA needs a recent pip$pipinstallaymaraYou can use it like that in English (eng) or French (fre) but it is preferable to use deep-learning based models. To install them, use thelima_models.pyscript:$lima_models.py-h
usage:lima_models.py[-h][-i][-lLANG][-dDEST][-sSELECT][-f][-L]optionalarguments:-h,--helpshowthishelpmessageandexit-i,--infoprintlistofavailablelanguagesandexit-lLANG,--langLANGinstallmodelforthegivenlanguagenameorlanguagecode(example:'english'or'eng')-dDEST,--destDESTdestinationdirectory-sSELECT,--selectSELECTselectparticularmodelstoinstall:tokenizer,morphosyntax,lemmatizer(comma-separatedlist)-f,--forceforcereinstallationofexistingfiles-L,--listlistinstalledmodelsFor example:$lima_models.py-lengRunning$pythonPython3.8.10(default,Nov262021,20:14:08)[GCC9.3.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>importaymara.lima>>>l=aymara.lima.Lima("ud-eng")>>>r=l.analyzeText("The author wrote a novel.",lang="ud-eng")>>>print(r)# sent_id = 1# text = The author wrote a novel.1ThetheDET_Definite=Def|PronType=Art2det_Len=3|Pos=12authorauthorNOUN_Number=Sing3nsubj_Len=6|Pos=53wrotewriteVERB_Mood=Ind|Tense=Past|VerbForm=Fin0root_Len=5|Pos=124aaDET_Definite=Ind|PronType=Art5det_Len=1|Pos=185novelnovelNOUN_Number=Sing3obj_Len=5|Pos=20|SpaceAfter=No6..PUNCT__3punct_Len=1|Pos=25>>>Note that some error messages could be displayed during the Lima object instantiation. If you get a valid result, you can ignore them. Most of them are debug messages that will be removed in a later version.You can replace the language (ud-eng) used byengto use the legacy pipeline. This is the same forud-fraandfre. Note that legacy pipelines do not use the Universal Dependencies tagset, but a proprietary one.Configuration and customizationTo configure finely LIMA for your needs, follow the same instructions as for the native C++ tools, available here: [[https://github.com/aymara/lima/wiki/LIMA-User-Manual]].PySide LIMA python bindings build and deploy instructionsBuilding the wheelUse docker using thegbuild-manylinux_2_28.shscript:./gbuild-manylinux_2_28.sh.shDeploying the wheelUse Twine (pip install twine) to deploy the whell to PyPI with the help of thedeploy.shscript../deploy.sh
Package: ayomide-sdk
The Lord of the rings API Python SDKWelcome to this Python SDK repository for the The Lord of the rings API.This is a simple library to facilitate the usage of the The Lord of the rings API.Register onhttps://the-one-api.dev/to get your API token used to authenticate your requestsInstalling the package from pypi# create a virtual environment
>>> python3 -m venv venv
>>> pip install ayomide-sdk==0.0.7Installing the sdk client>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> quotes = client.quote.get()
>>> quotes["status"]
200
>>> quotes["json"]
{}for /movie>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> movies = client.quote.get()
>>> movies["status"]
200
>>> movies["json"]
{}for /movie/id>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> single_movie = client.movie.get(params={'id':"5cd95395de30eff6ebccde57"})
>>> single_movie["status"]
200
>>> single_movie["json"]
{}for /movie/id/quote>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> movie_quotes = client.quote.get(params={"id":"5cd95395de30eff6ebccde57","subquery"="quote"})
>>> movie_quotes["status"]
200
>>> movie_quotes["json"]
{}for /quote>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> quotes = client.quote.get(params={"id":"5cd95395de30eff6ebccde57","subquery"="quote"})
>>> quotes["status"]
200
>>> quotes["json"]
{}for /quote/id>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> single_quote = client.quote.get(params={'id':"5cd95395de30eff6ebccde57"})
>>> single_quote["status"]
200
>>> single_quote["json"]
{}for pagination filter (can be used for movie and quotes on any edpoints)>>> from ayomide_sdk.rest import Client
>>> client = Client(version="v2", api_key="API-KEY")
>>> single_movie = client.movie.get(params={'id':"5cd95395de30eff6ebccde57"}, filters={"limit":"100","page":"2"})
>>> single_movie["status"]
200
>>> single_movie["json"]
{}Supported Python VersionsThis library supports the following Python implementations:Python 3.6
Python 3.7
Python 3.8
Python 3.9
Python 3.10Installationayomide_sdk is available on PyPI:python -m pip install ayomide_sdkMore about ayomide_sdkRead morehere
Package: ayon-openassetio-manager-plugin
AYON OpenAssetIO Manager PluginThis is implementing manager interface forOpenAssetIO. With it,
any OpenAssetIO enabled host (DCC) can be used to load data fromAYON. This is a work in
progress, and it depends on OpenAssetIO Traits to be supported by the host. Once up adn running, OpenAssetIO host should
understand AYON URIs in a form ofayon+entity://{project}/{asset}?product={product}&version={version}&representation={representation}likeayon+entity://TestProject/assets/Alice?product=modelMain&version=v002&representation=abcInstallationTo manage your installation, use./tools/manage.ps1on Windows and./tools/manage.shon Linux and macOS. It accepts
commands as arguments, run it without arguments to see the list of available commands.create-env- creates virtual environment for development usingPoetrygenerate-traits- generates Python traits using openassetio-tratsgen fromtraits.ymlfile and puts them intoayon_traitsmodule.run-tests- runs testBuildingYou can build the plugin as Python wheel using Poetry. Runpoetry buildto build the wheel.
It will be located indistdirectory.UsageTo use this plugin, make sure you pointOPENASSETIO_PLUGIN_PATHenvironment variable to the directory where this plugin is located.
You can useOPENASSETIO_DEFAULT_CONFIGpointing topyproject.tomlfile to set default configuration for the plugin.Also make sure plugin Python environment is available inside the host. So far it needs onlyrequests,openassetioandopenassetio_mediacreation.
To tell manager how to connect to AYON, setAYON_SERVER_URLenvironment variable to the server address andAYON_API_KEYto the API key.To get the correct formatted paths, you need to have AYON site id - unique identifier of your local site that can be determined from hostname
and platform. Server can determine your site id from that and use it for all subsequent requests. Site id is stored on server once
you first run AYON launcher and connect it to the server. In other words, you need to run AYON launcher at least once to get correct results.
This needs to be handled later on more gracefully.DevelopmentTo run tests, you need to configure your AYON server intests/conftest.pyfile. SetAYON_SERVER_URLandAYON_API_KEYat the top of the file.TODO:Handle site id determination more gracefullyBetter error handlingBetter loggingMore testsImplement missing methods
Package: ayon-python-api
AYON server APIPython client for connection server. Client must be (at least for some time) Python 2 compatible because will be used in DCC that are "older".AYON Python api should support connection to server with raw REST functions and prepared functionality for work with entities. Must not contain only functionality that can be used with core server functionality.Module support singleton connection which is usingAYON_SERVER_URLandAYON_API_KEYenvironment variables as source for connection. The singleton connection is usingServerAPIobject. There can be created multiple connection to different server at one time, for that purpose useServerAPIBaseobject.InstallAYON python api is available on PyPi:pip install ayon-python-apiFor development purposes you may followbuildguide to build and install custom wheels.Cloning the repositoryRepository does not have submodules or special cases. Clone is simple as:git clone git@github.com:ynput/ayon-python-api.gitBuild wheelFor wheel build is required awheelmodule from PyPi:pip install wheelOpen terminal and change directory to ayon-python-api repository and build wheel:cd <REPOSITORY ROOT>/ayon-python-api
python setup.py sdist bdist_wheelOnce finished a wheel should be created in./dist/ayon_python_api-<VERSION>-py3-none-any.Wheel installationThe wheel file can be used to install using pip:pip install <REPOSITORY ROOT>/dist/ayon_python_api-<VERSION>-py3-none-anyIf pip complain thatayon-python-apiis already installed just uninstall existing one first:pip uninstall ayon-python-apiTODOsFind more suitable name ofServerAPIobjects (right now is usedconorconnection)Add all available CRUD operation on entities using RESTAdd folder and task changes to operationsEnhance entity hubMissing docstrings in EntityHub -> especially entity arguments are missingBetter order of arguments for entity classesMove entity hub to first placeSkip those which are invalid for the entity and fake it for base or remove it from baseEntity hub should use operations session to do changesEntity hub could also handle 'product', 'version' and 'representation' entitiesMissing 'status' on foldersMissing assignees on tasksPass docstrings and arguments definitions fromServerAPImethods to global functionsSplitServerAPIinto smaller chunks (somehow), the class has 4k+ lines of codeAdd .pyi stub for ServerAPIMissing websockets connection
Package: ays-agent
ays-agentThe At Your Service Agent Sensor is a Python app that allows you to monitor a system.The agent provides a few mechanisms to report status to @ys. You can:Use the built-in resource usage agent. This will send CPU, HDD, RAM, and/or network usage to @ys.Call the agent as a one-shot script with a value or status.Execute a program, on a specified interval, and report the values it produces.This agent integrates directly with theAgent Sensor Service. Therefore, the property values provided to the CLI app are the same as those described in the documentation. For example, the alerting levels (critical...warning), status states (critical...healthy), etc. use the same parameter values.InstallationInstall usingpip(requires Python v3.8+).pipinstallays-agentTODO:Windows self-contained installerWhat Next?Please refer toAPI documentationUsage examples
Package: aysncfreesia
![freesia](./images/logo.png)## IntroductionFreesia is a concise and lightweight async web framework. Its api is inspired by Flask.## Installation```bashpip3 install asyncfreesia```## DocsYou can find the project's detailed API documentation on [here](https://freesia.readthedocs.io/en/latest/?).## Example*hello world*```pythonfrom freesia import Freesiaapp = Freesia()@app.route('/hello/<name>')async def hello(request, name):return "Hello, " + name + "!"if __name__ == "__main__":app.run()```*middleware*```pythonfrom freesia import Freesiaapp = Freesia()@app.route("/<name>")async def hello(request, name):print("enter user handler")return "hello, " + nameasync def middleware1(request, handler):print("enter middleware1")res = await handler()print("exit middleware1")return res + " !"async def middleware2(request, handler):print("enter middleware2")res = await handler()print("exit middleware2")return res + " :D"app.use([middleware1, middleware2])if __name__ == "__main__":app.run()```*session*```pythonfrom freesia import Freesia, set_up_session, get_session, Responsefrom freesia.session import SimpleCookieSessionapp = Freesia()@app.route("/")async def hello(request):s = await get_session(request)if "count" not in s:s["count"] = 1return Response(text="Hello, stranger!")else:s["count"] += 1return Response(text="I've seen you %d times" % s["count"])if __name__ == "__main__":set_up_session(app, SimpleCookieSession)app.run()```## MoreYou can see more exmaple and usags in [docs](https://freesia.readthedocs.io/en/latest/?) and [examples](./examples).
Package: ayt-api
ayt-apiA Basic Asynchronous, Object oriented python library for the YouTube apiThe library is designed towards being used in python based discord bots that use an asynchronous discord api wrapperInstallationStable Release:The latest stable version is available on pypiWindows:python-mpipinstall-Uayt-apiUnix based OSes (Linux, Mac OS, etc.):The pip command can vary between different unix based OSes but should be simular to these:python3-mpipinstall-Uayt-api# orpip3install-Uayt-apiLatest Commit:Installing the latest commit from here. You will need git or something simular installed to download the libraryWindows:python-mpipinstall-U"git+https://github.com/Revnoplex/ayt-api.git"Unix based OSes (Linux, Mac OS, etc.):The pip command can vary between diffrent unix based OSes but should be simular to these:python3-mpipinstall-Ugit+https://github.com/Revnoplex/ayt-api.git# orpip3install-Ugit+https://github.com/Revnoplex/ayt-api.gitUsageFirst of all to use this library, you will need an API key. To get one,see here for instructionsBasic video data fetching:importasyncioimportayt_apiapi=ayt_api.AsyncYoutubeAPI("Your API Key")asyncdefvideo_example():video_data=awaitapi.fetch_video("Video ID")print(video_data.id)print(video_data.channel_id)print(video_data.url)print(video_data.title)print(video_data.thumbnails.default.url)print(video_data.visibility)print(video_data.duration)print(video_data.view_count)print(video_data.like_count)print(video_data.embed_html)print(video_data.published_at)print(video_data.description)print(video_data.age_restricted)loop=asyncio.new_event_loop()loop.run_until_complete(video_example())Basic playlist data fetching:importasyncioimportayt_apiapi=ayt_api.AsyncYoutubeAPI("Your API Key")asyncdefplaylist_example():playlist_data=awaitapi.fetch_playlist("Playlist ID")print(playlist_data.id)print(playlist_data.channel_id)print(playlist_data.url)print(playlist_data.title)print(playlist_data.thumbnails.default.url)print(playlist_data.visibility)print(playlist_data.published_at)print(playlist_data.description)print(playlist_data.embed_html)print(playlist_data.item_count)loop=asyncio.new_event_loop()loop.run_until_complete(playlist_example())Basic playlist video fetching:importasyncioimportayt_apiapi=ayt_api.AsyncYoutubeAPI("Your API Key")asyncdefplaylist_video_example():playlist_videos=awaitapi.fetch_playlist_videos("Playlist ID")video=playlist_videos[0]print(video.id)print(video.channel_id)print(video.url)print(video.title)print(video.thumbnails.default.url)print(video.visibility)print(video.published_at)print(video.description)print(video.duration)loop=asyncio.new_event_loop()loop.run_until_complete(playlist_video_example())More examples are listedhere