Saravanan666/pypi-org huggingface dataset:
Package: aria2r
aria2rIn the spirit ofaria2candaria2p, aria2r is a command line utility to add downloads to a (r)emote, or (r)unning instance of aria2.While aria2 is a great download manager, one of its biggest drawbacks is the inability to easily add additional downloads when run as a daemon. While it is possible to add downloads through one of the several available GUIs, you are limited to adding one download at a time, and scrolling through seemingly endless options to find the ones you want to change.The goal of aria2r is to provide a familiar interface for quickly and easily adding a single or multiple downloads to aria2 without having to restart the service. As much as possible, aria2r strives to match the interface, design, and verbiage used by aria2c. Any notable divergences come with an explanation behind the decision.Full documentation.Installationaria2r is written in Python and can be installed through pip.pipinstallaria2r--userExamplesBasic example of adding a single download to aria2 running on the same machinearia2r--urls"http://host/file.zip"Download a file from 2 mirrorsaria2r-u"http://host/file.zip""http://mirror/file.zip"Add downloads to a remote server listening on a non-default portaria2r--host10.0.0.1--port8660"http://host/file.zip"Add multiple downloads through anaria2 input filearia2r-i/path/to/input-file.txtCommand Line Optionsusage: cli.py [-h] [-c CONFIG] [-u [URLS [URLS ...]]] [-i INPUT_FILE] [-d]
              [--host HOST] [--port PORT] [--rpc-secret RPC_SECRET] [-v] [-q]

Add downloads to a running instance of aria2c. Given one or more URLS (or an
INPUT_FILE in the same format as aria2c input files), aria2r will use aria2's
RPC interface to add the downloads (with options) to a running instance of
aria2c. It is mandatory to supply either the URLS or INPUT_FILE argument, but
it is an error to provide both.

optional arguments:
  -h, --help            show this help message and exit

  -c CONFIG, --config CONFIG
                        config file path

  -u [URLS [URLS ...]], --urls [URLS [URLS ...]]
                        One or more urls to a file. All given urls must be
                        mirrors to the same file and be http/https protocol.
                        Torrent, Magnet, and Metalink files are not supported.

  -i INPUT_FILE, --input_file INPUT_FILE
                        Path to an aria2c formatted input file

  -d, --dry-run         Read the input file or urls and build the request, but
                        don't send it to the aria2 instance.

  --host HOST           The ip or fully qualified domain name where aria2 is
                        located. (Default: localhost)

  --port PORT           The port that aria2 listens on. (Default: 8600)

  --rpc-secret RPC_SECRET
                        Secret authorization token set for the aria2 rpc
                        interface.

  -v, --verbose         Increase level of output.

  -q, --quiet           Decrease level of output.
Package: aria2-rpc-client
How to using this packageInstallingpip install aria2_rpc_clientUsingfromaria2_rpc_clientimportDefaultClientfromaria2_rpc_clientimportDefaultConnectionfromaria2_rpc_clientimportFileDownloadOptions# Make connection, enter aria2 rpc server informationconnection=DefaultConnection("localhost","6800","top_secret_key")# Make clientclient=DefaultClient(connection)# Download optionsoptions=FileDownloadOptions()options.set_filename("changed.mkv")options.set_dir("/home/user/downloads")options.add_header("token","da78d676ds6a86dsa6d8sa6d8")# Download start & set optionsresult=client.add_uri(["https://jell.yfish.us/media/jellyfish-15-mbps-hd-h264.mkv"],options)# Get defined GID number from aria2print(result)# 6be2fb970af88d07# Set download pausepause_download=client.pause(result)print(pause_download)# 6be2fb970af88d07
Package: ariadna
ariadnaA featureful map object that can take path-like keys to access nested keys or attributes.ExamplesfromariadnaimportCajaconfiguration=Caja({'clients':[{'name':'Joe','lastname':'Doe','addresses':[{'street':'1st Mulholland Drive','city':'Redmond','state':'Washington','zip':'12345'},{'street':'15101 Linea Drive','city':'Miami','state':'Florida','zip':'67890'}],'phone':['1-555-888-8888','1-404-NOT-REAL'],'age':'42'}]})# now the values can be accessed usingprint(configuration['clients.0.addresses.1.city'])# == Miamiprint(configuration['clients/0/phone/1'])# == 1-404-NOT-REAL
Package: ariadne-ai
OverviewAriadne AI is an open-source library for evaluating text summarization and retireved-augmented-generation (RAG) chatbots without the necessity for human-annotated reference summaries. Each evaluator is paired with an explanation that help developers evaluate their LLMs and detect the reason for their failure cases. Our approach leverages LLM's reasoning to provide explanations for the failures.Installationpipinstallariadne-aiorpoetryrunpythonrun_experiment_rag.pypoetryrunpythonrun_experiment_summarization.pyorsee the providednotebook examplesText SummarizationFor text summarization, a question-answer generation (QAG) framework has been developed, which allows us to pinpoint failure cases in production without human-annotated reference summaries. Here is a breakdown of our approach:Question Generation:The LLM formulates closed-ended (Yes/No) questions drawing from both the summary and the main document.Summary-based Answers:An LLM answerer generator responds to these questions using only the summary as a reference. The potential responses include "Yes," "No," and "Unknown."Document-based Answers:Similarly, the LLM answerer generator answers the same set of questions, but this time, it references the primary document. Possible responses remain "Yes," "No," and "Unknown."Evaluation Metrics:The evaluation metrics assessing the consistency between the summary-based and document-based summaries are computed to draw conclusions.The following failure are detected based on the above approach:Hallucination Failure:A hallucination failure occurs when a question gets a 'Yes/No' answer based on the summary but receives an 'Unknown' answer based on the original document.Contradiction Failure:A contradiction failure is detected when at least one question is answered 'Yes' based on the summary, but 'No' when based on the full document, or vice-versa.Non-informativeness Failure:A non-informativeness failure occurs when at least one question is answered as 'Unknown' based on the summary but a definitive 'Yes/No' based on the original document.Retrived Augmented Generation (RAG)Here is a breakdown of our approach:Evaluation:The LLM determines whether a critirion is met, leveraging its reasoningExplanation:The LLM explains the reasoning behind its decision, providing clarity regarding the failure cases.The following failure cases are detected:Faithfulness Failure:A faithfulness failure occurs if the response cannot be inferred purely from the context provided.Context Relevance Failure:A context relevance failure (bad retrieval) occures if the user's query cannot be answered purely from the retrieved context.Answer Relevance Failure:An answer relevacne failure occurs if the response does not answer the question.ContributionPlease feel free to reach out toshiv@athina.aiif you would like to contribute. You could find more on how you could integrate the evaluations in your product here:https://docs.athina.ai.LicenseApache License 2.0
Package: ariadne-django-ext
ariadne-django-extInstallation•Contributing•LicenseCustom, simple Django User model with email as usernameInstallationpipinstallariadne-django-extUsagecachecachedecorator will cache a result returned from resolver using Django cache framework. You can it accepts same keyword arguments and passed down to Django cache.Cache key must be either value or callable. Callable will receive same arguments as resolver then return cache key. Callable may returnNoneto bypass the cache.It usestypenameandkeyfrominfo.pathas cache key prefix.fromariadne_django_extimportcache@cache(key='cache_key')defresolver(parent,info):...return'result'wrap_resultwrap_resultdecorator wraps return value of a resolver into dictionary with the keyfromariadne_django_extimportwrap_result@wrap_result(key='result')defresolver(parent,info):return'result'Above example will return following dict{"result":"result"}isAuthenticated & isStaff directiveA resolver will receive an authenticated user as keyword argument.directive@isAuthenticatedonFIELD_DEFINITIONtypeUser{id:IDusername:StringipAddress:String@isAuthenticated}fromariadne_django_extimportIsAuthenticatedDirectiveschema=make_executable_schema(type_defs,resolvers,directives={"isAuthenticated":IsAuthenticatedDirective})ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT License
Package: ariadne-extended
Ariadne ExtendedAriadne comes with a few contrib modules to support integration with Django. This module acts as an additional Django contrib module to reduce some of the boilerplate when integrating with Django.It copies and follows some of the conventions defined in Django Rest Framework, effort will be made to provide API compatibility with certain DRF extension modules that are relevant.The overall goal is to provide often re-used modules and GrpahQL schema, so one doesn't have to re-create them per project.Supported DRF modulesPagination classesPermissions classesSerializer classes ( may not removed and made generic )Throttlingdjango-filters filter backendSupported Django versions2.2.*, 3.0.*ariadne_extended.graph_loaderauto schema, resolver and types loaderSearches fortypesandresolversmodules as well as any.graphqlfiles defined within any installed Django application.Once found they can be used to build the final schema and resolver solution for your ariadne application.ariadne_extended.payloadSchema, types and resolvers for the graphqlPayloadinterface.Currently theFieldErrorsare highly coupled to Django rest framework field validation exceptions.ariadne_extended.cursor_paginationRename to relay_pagination maybe?Contains thePageInfographql type andConnectioninterface for utilizing cursor based pagination.TODO: Should we provide a input type for cursor pagination instead of just copying pagination args info paginate-able list fields??ariadne_extended.filtersFilter backend interface to pass filter arguments to django-filter.ariadne_extended.resolversABC for Class Based Resolvers and model resolvers that utilize DRF serializers for saving data. This is likely to change in the future.ariadne_extended.uuidDRF UUID field scalar for use with models that may use a UUID as their primary key, or other UUID fields.Contribdjango-waffleinariadne_extended.contrib.waffle_graphAdds resolvers, schema and types that can be utilized to query the any waffle flags, samples and switches.ChecklistGet rid of dependency on DRF?Investigate the need for a serializer ( nested data reliance? )Organize code into multiple Django apps to select desired componentryDocumentation and examplesBetter support of lists of enums when used with django-filters ( currently expects comma sep list string, not a list of enums from input field resolver )License and make publicDeployment automationMixins are highly coupled to serializers, should they still be?
Package: ariadne-graphql-proxy
Ariadne GraphQL ProxyAriadne toolkit for building GraphQL proxies.Features:Combining multiple local and remote GraphQL schemas into single GraphQL schema.Routing GraphQL queries to local and remote GraphQL schemas.Foreign keys system for modeling relationships between separate services schemas.Cache framework for caching of GraphQL query results per query fields.Low-level utilities for GraphQL Schema manipulation: adding, removing and copying schema items.InstallationAriadne GraphQL Proxy can be installed with pip:pip install ariadne-graphql-proxyAriadne GraphQL Proxy requires Python 3.10 or higher.ExampleFollowing code combines two remote schemas into one:fromariadne.asgiimportGraphQLfromariadne_graphql_proxyimportProxySchema,get_context_valueproxy_schema=ProxySchema()proxy_schema.add_remote_schema("https://example.com/first-graphql/")proxy_schema.add_remote_schema("https://example.com/second-graphql/")final_schema=proxy_schema.get_final_schema()app=GraphQL(final_schema,context_value=get_context_value,root_value=proxy_schema.root_resolver,)Usage guideFor guide on using Ariadne GraphQL Proxy, please see theGUIDE.mdfile.Note:Ariadne GraphQL Proxy is currently in prototyping stages. Library's API can and will change!ContributingWe are welcoming contributions to Ariadne GraphQL Proxy!If you've found a bug or issue, feel free to openGitHub issue.If you have any questions or feedback, don't hesitate to catch us onGitHub discussions on main Ariadne repo.Pull requests are also welcome! We only request that PRs providing new features and extending existing implementation are proceeded by discussion in dedicated GitHub issue with a proposal or onariadne/discussions.Also make sure you follow@AriadneGraphQLon Twitter for latest updates, news and random musings!Crafted with ❤️ byMirumee Softwarehello@mirumee.com
Package: ariane_clip3
Ariane CLIP3 (client python 3) is the python implementation for the remote Ariane services.Through Ariane CLIP3 you can define your own Ariane external injector which will map your system.Where you can get more informations :    +http://ariane.echinopsii.net+http://confluence.echinopsii.net/confluence/display/AD/Ariane+Documentation+Home+ IRC on freenode #ariane.echinopsii
Package: arichuvadi
* அரிச்சுவடி - Arichuvadiஇந்த பைத்தான் பொதி, தமிழ்ச்சரங்ளை எழுத்துக்களாக நறுக்கும் மிகவெளிய வேலையைச்செய்ய உதவும்.This packages was written as part of regex engine from scratch for tamil. It provides very basic functionalities such as splitting the string into characters inline with how a native Tamil speakers thinks. Open-Tamil package by contrast provides a myriad of utilities to deal with Tamil text.*  எடு.கா.:#+begin_src python# -*- coding: utf-8 -*-import arichuvadi as arisaram = 'The Great உயர்தனிச்செம்மொழி தமிழ்!!!'print(1, saram)print(2, list([i for i in saram]))print(3, ari.get_letters_coding(saram))print(4, ari.get_letters_glyph(saram))#+end_src#+RESULTS:1 The Great உயர்தனிச்செம்மொழி தமிழ்!!!2 [T, h, e,  , G, r, e, a, t,  , உ, ய, ர, ், த, ன, ி, ச, ், ச, ெ, ம, ், ம, ொ, ழ, ி,  , த, ம, ி, ழ, ், !, !, !]3 [T, h, e,  , G, r, e, a, t,  , உ, ய, ர், த, னி, ச், செ, ம், மொ, ழி,  , த, மி, ழ், !, !, !]4 [T, h, e,  , G, r, e, a, t,  , உ, ய, ர், த, னி, ச், செ, ம், மொ, ழி,  , த, மி, ழ், !, !, !]
Package: aries-askar
Aries-AskarA Python wrapper around thearies-askarRust library, this module provides secure storage support for Hyperledger Aries agents.CreditThe initial implementation ofaries-askarwas developed by the Verifiable Organizations Network (VON) team based at the Province of British Columbia. The database structure derives largely from the wallet design withinHyperledger Indy-SDK. To learn more about VON and what's happening with decentralized identity in British Columbia, please go tohttps://vonx.io.ContributingPull requests are welcome! Please read ourcontributions guideand submit your PRs. We enforcedeveloper certificate of origin(DCO) commit signing. See guidancehere.We also welcome issues submitted about problems you encounter in usingaries-askar.LicenseLicensed under either ofApache License, Version 2.0 (LICENSE-APACHEorhttp://www.apache.org/licenses/LICENSE-2.0)MIT license (LICENSE-MITorhttp://opensource.org/licenses/MIT)at your option.
Package: aries-controller
Python製 ARIES / LYNX モーターコントローラ ラッパー神津精機株式会社さんのARIES / LYNX ドライバ分離型多軸モーターコントローラをPythonで制御するためのラッパーです。
研究室の4軸ステージの制御用に作成したものです。An unofficial telnet wrapper for"ARIES / LYNX" motor controllerbyKohzu Precision Co.,Ltd.This repository is intended to work with the equipment I use in my lab. It may not work as is on equipment set up for other purposes (with different numbers and ranges of axes to operate).Usage環境次第でpipをpip3やpipenv、pip installをpoetry addやpyflow installなどに読み替えてください。Installpipinstallaries-controllerUpdatepipinstall-Uaries-controlleraries(as a command line tool)# aries --host <HOST> --port <PORT> <operation># transfer raw_command(reset Z axis)aries--raw_commandORG3/7/0# getting axis positionaries# moving axisaries--set_position45/90/0/-10
aries--set_position" -45/60/180/10"The defaults ofHOSTandPORTare192.168.1.20and12321.import(as a Python module)>>>fromariesimportAries>>>stage=Aries()>>>print(stage.position)(0.0,0.0,0.0,0.0)>>>stage.raw_command("RPS2/4/45000/1")>>>print(stage.position)(0.0,45.0,0.0,0.0)>>>stage.position[2]=10<NG(TypeError)>>>>stage.position=[0,45,10,0]<OK>>>>pos=stage.position>>>pos[3]=5>>>stage.position=pos<OK>Uninstallpipuninstallaries-controllerCoordinate system
Package: ariestools
ariestoolsCommon toolssource codeInstallpip install -U ariestoolsPython version supportpython3.7+Functiongraphql queryfromariestoolsimportgraphql_query_res_json=graphql_query(query_url,payload)json pathfromariestoolsimportJsonPath_json_dict={'k':'v'}_jp1=JsonPath(_json_dict)print(_jp1.path("$.k"))_json_list=[{'k':'v'}]_jp2=JsonPath(_json_list)print(_jp2.path("$.[0].k"))_json_complex={'k':[{'k':'v'}]}_jp3=JsonPath(_json_complex)print(_jp3.path("$.k.[0].k"))load json filefromariestoolsimportload_json_json=load_json(json_file_path)format obj to json strfromariestools.json_utilimportobj2jsonstrclassFoo:def__init__(self):self.a=1self.b=2self.bar=Bar()classBar:def__init__(self):self.x=1self.y=2print(obj2jsonstr(Foo())){"a":1,"b":2,"bar":{"x":1,"y":2}}get relative path & load yamlimportosfromariestoolsimportreplace_sys_path,load_yaml_yaml=load_yaml(os.path.realpath('')+replace_sys_path("/.xxx/xxx.yaml"))parse timet_time_str='2019-08-01 00:00:00.000't_dt=parse(t_time_str)# 2019-08-01T00:00:00+08:00print(get_local_time(t_dt))# 2019-08-01 00:00:00.000print(get_cloud_time(t_dt))# 1564588800000000000t_time_str2='2019-08-01 00:00:05.000't_dt2=parse(t_time_str2)print(get_dt_duration_seconds(t_dt2,t_dt))# 5print(t_dt2>t_dt)# Trueprint(now())# 1576224515111
Package: arikaim-client
Arikaim CMS Api Client for pythonThis repo is part ofArikaim CMSproject.Installationpipinstallarikaim-clientUsagefromarikaim.client.clientimportArikaimClientclient=ArikaimClient(host,apiKey)data={requestdatafieldskey:value}response=client.request(method,url,data)print(response.status)print(response.to_dictonary())POSTrequestresponse=client.post(url,data)GETrequestresponse=client.get(url,data)PUTrequestresponse=client.put(url,data)
Package: arimafd
# About arimafdArimafd is a Python package that provides algorithms
for online prediction and anomaly detection. One of the
applications of this package can be the early detection
of faults in technical systems.# Main FeaturesDifferentiation and integration of series including seasonal componentsFinding best hyperparametrs for ARIMA modelOnline forecasting based on ARIMA modelAnomaly detectionEvaluating score of anomaly detection algorithms# How to get it
The master branch on GitHubhttps://github.com/waico/arimafdBinaries and source distributions are available from PyPihttps://pypi.org/project/arimafd/# Get startedInstallationthrough [PyPi](https://pypi.org/project/tsad):pip install -U arimafd# LicenseMIT
Package: arinc424
ARINC-424A python library for parsing and decoding ARINC-424, the international standard file format for aircraft navigation data.RequirementsPython >= 3.10Installationpipinstallarinc424Getting StartedReading a recordCreate a record object. Use theread()method to read an ARINC-424 record in string format.importarinc424.recordasarinc424record=arinc424.Record()record.read(line)Viewing a recordAfterreading a record,dump()will print the record to the console.record.dump()foo@bar:~$python3dump_example.pyRecord Type               : SCustomer / Area Code      : USASection Code              : ER...Cycle Date                : 8704Decoding a recordSimilar todump(), but each value in the key-value pair is decoded to be human readable without referencing the ARINC-424 spec.record.decode()foo@bar:~$python3decode_example.pyRecord Type               : Standard RecordCustomer / Area Code      : United States of AmericaSection Code              : Airways and Routes...Cycle Date                : 1987, AprilWriting a record to a fileIn addition to printing to the console,dump()anddecode()will return strings which can
be written to files.decoded - the most human readable formatJSON (single line) - useful for importing the records to a databaseraw data - the unmodified string from which the record object was createdf=open("output.txt","w")# writes the fields as they aref.write(record.dump())# writes the record in single-line JSON formatf.write(record.json())
Package: arinfopy
arinfopyarinfopyis a Python library to read and writeADSO/BINfiles generated by atmospheric dispersion models such asSPRAYand others.It also includes thearinfopycommand line tool to summarize the content ofADSO/BINfiles.It requires Python >= 3.6.x (Python2 is unsupported.)Installationarinfopyis onPyPIand it can be installed withpip:pipinstallarinfopyYou either want to do this into auserenvironment (putting thearinofpyexecutable in~/.local/bin/arinfopy) like this:pipinstall--userarinfopyor put it into a virtualenv, to avoid modifying the system python’s libraries, like this:python3-mvenv./venvsourcevenv/bin/activate
pipinstallarinfopyYou probably don’t want to usesudowhen you runpip.UseYou can use the command line tools as follows.>arinfopy--help
usage:arinfopy[-h][-minmax][-deadlines][-v]inifile

arinfopyparserforADSO/binfiles.

positionalarguments:inifileFiletobeparsed

optionalarguments:-h,--helpshowthishelpmessageandexit-minmaxShowmin/maxvaluesforeachdeadline-deadlinesShowdeadlines-v,--verboseIncreseoutputverbosity.APIarinfopycan also be used an external module in otherpythonscripts to read and writeADSO/BINfiles.Documentation for this feature is in preparation.Who Are YouWe areSimulariaand we do numerical simulations of atmospheric phenomena and data analysis withRandPython.ContributorsGiuseppe Carlino (Simularia)g.carlino@simularia.itBruno Guillaume (ARIA Technologies)bguillaume@aria.frMatteo Paolo Costa (Arianet s.r.l.)costa@aria-net.itValeria Dentis (Simularia)v.dentis@simularia.itLicensearinfopy parser for ADSO/bin files.
Copyright (C) 2013  Simularia s.r.l.info@simularia.itThis program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.Simularia S.r.l.
via Sant'Antonio da Padova 12
Torino, Italywww.simularia.itinfo@simularia.it