Saravanan666/pypi-org huggingface dataset:
Package: aap-client-python
OverviewThis library can be used to interface with the AAP, although it is also able to sign tokens.
(for testing the verification is done correctly)Cryptographic files here shouldn’t be used in production, they’re just for testing :)UsageTo install the package, enable the virtual environment where it’s going to be used and run$ pip installaap-client-pythonTo use the Flask functionality this needs to be installed:$ pip installaap-client-python[flask]DevelopingTo prepare the environment for developing the library, create a virtual environment, go to project root and then run:$ pip install -e .[dev]TestingThe recommended way is to test using detox.
This allows for testing in all the supported python versions using virtual environments effortlessly.
To use, install it, then run in the project root:$ pip install detox
$ detoxAlternatively, testing can be done in the same environment as the dev one by installing it’s dependecies, then running pytest:$ pip install -e .[test]
$ python -m pytest -s
Package: aapns
AAPNSAsynchronous Apple Push Notification Service client.Requires TLS 1.2 or betterRequires Python 3.8 or betterQuickstartfromaapns.apiimportServerfromaapns.configimportPriorityfromaapns.modelsimportNotification,Alert,Localizedasyncdefsend_hello_world():client=awaitServer.production('/path/to/push/cert.pem').create_client()apns_id=awaitclient.send_notification('my-device-token',Notification(alert=Alert(body=Localized(key='Hello World!',args=['foo','bar']),),badge=42),priority=Priority.immediately)print(f'Sent push notification with ID{apns_id}')awaitclient.close()
Package: aa-policy-validator
:white_check_mark: Access Analyzer - Batch Policy ValidatorThis script will analyze usingAWS Access Analyzer - Policy Validationall your account customer managed IAM policies.UsageProTip :bulb: : Use AWS CloudShell to run this directly on your AWS AccountInstall$ python3 -m pip install aa-policy-validator --userRun$ python3 -m aa-policy-validatorUpdate$ python3 -m pip install aa-policy-validator -U --user --no-cache-dirResultsResults will be written into/tmp/findingsfolder with aREADME.mdfile inside.
Package: aapp2face
🏛️ AAPP2FACeAAPP2FACees una librería Python para interactuar con los servicios
web de FACe, el Punto General de Entrada de Facturas de la
Administración General del Estado, desde el lado de las Administraciones
Públicas Españolas.Está diseñada para ser fácil de usar por desarrolladores y dispone de
una interfaz de línea de comandos (CLI) que también le permite ser usada
por usuarios finales.Documentación:https://antmartinez68.github.io/aapp2faceCódigo fuente:https://github.com/antmartinez68/aapp2faceRequisitosPython v3.10InstalaciónComo libreríaAunque depende de cómo estés gestionando las dependencias de tu
proyecto, por lo general querrás hacer:$pipinstallaapp2faceComo aplicación de línea de comandos (CLI)Si solo pretendes usar la interfaz de línea de comandos, es recomendable
instalar AAPP2FACe usandopipx:$pipxinstallaapp2faceUso básicoComo libreríaEl siguiente script de ejemplo muestra cómo puedes crear los objetos
necesarios para conectar con FACe y recuperar la información de las
nuevas facturas que están disponibles para su descarga:>>>fromaapp2faceimportFACeConnection,FACeSoapClient>>>cliente=FACeSoapClient(..."https://se-face-webservice.redsara.es/facturasrcf2?wsdl",..."cert.pem",..."key.pem"...)>>>face=FACeConnection(cliente)>>>nuevas_facturas=face.solicitar_nuevas_facturas()>>>forfacturainnuevas_facturas:...print(...factura.numero_registro,...factura.fecha_hora_registro,...factura.oficina_contable,...factura.organo_gestor,...factura.unidad_tramitadora,...)...Como aplicación de línea de comandos (CLI)La misma operación anterior puedes hacerla usando la CLI. Una vez tienes
configurada la aplicación, basta con que ejecutes el siguiente comando:$aapp2facefacturasnuevasNúmero registro:    202001015624Fecha registro:     2023-01-19 10:57:38Oficina contable:   P00000010Órgano gestor:      P00000010Unidad tramitadora: P00000010Número registro:    202001017112Fecha registro:     2013-01-20 11:05:51Oficina contable:   P00000010Órgano gestor:      P00000010Unidad tramitadora: P000000102 nuevas facturas disponiblesConstuir AAPP2FACe desde código fuenteAAPP2FACe usaPoetrycomo gestor de
dependencias y empaquetado. Si quieres construirlo desde el código
fuente, puede hacerlo mediante:$gitclonehttps://github.com/antmartinez68/aapp2face
$cdaapp2face
$poetryinstall
$poetryrunpytest
$poetrybuildNota: La versión inicial de este proyecto forma parte del TFG del
Grado en Ingeniería Informática enUNIRde
Antonio Martínez.
Package: aapp-runner
[![Build status](https://github.com/pytroll/pytroll-aapp-runner/workflows/CI/badge.svg?branch=main)](https://github.com/pytroll/pytroll-aapp-runner/workflows/CI/badge.svg?branch=main)
[![Coverage Status](https://coveralls.io/repos/github/pytroll/pytroll-aapp-runner/badge.svg?branch=main)](https://coveralls.io/github/pytroll/pytroll-aapp-runner?branch=main)A pytroll runner supporting real-time processing of Direct Readout or regional
(RARS type) AVHRR and ATOVS data from level-0 to level-1 using the NWPSAF/AAPP
package.
Package: aaps
# Herramientas AAPS-LABPaquete con todas las herramientas para la aplicacion AAPS-LAB.## InicioEstas instrucciones te proveerÃ¡n una copia del proyecto en funcionamiento en tu mÃ¡quina local para su uso.### PrerequisitosPara instalar y usar este paquete es necesario una instalaciÃ³n de python.Recomendamos usar el instalador a medida que estÃ¡ disponible a travÃ©s del sistema AAPS-API. Este instalador instalarÃ¡ python, conda, el paqueteaapsy todas sus dependencias.Este paquete hace uso de las librerÃ­as geo-espaciales [GEOS](https://trac.osgeo.org/geos/) (objetos y funciones espaciales), [GDAL](https://www.gdal.org/) (formatos espaciales) y [PROJ4](https://proj4.org/) (transformaciÃ³n de coordenadas), por lo que estas deben estar previamente instaladas para instalar este paquete desde la fuente.Si se utilizaconda, las dependencias son instaladas de manera automÃ¡tica.### InstalaciÃ³nSi no se usa el instalador a medida, este paquete tambiÃ©n estÃ¡ disponible en PyPI y Anaconda Cloud.Para instalar usando el gestor de paquetesconda(recomendado), puedes usar el comando` conda install-csergio.chumacero aaps `Para instalar usando el gestor de paquetespip, puedes usar el comando` pip install aaps `Puedes verificar la instalaciÃ³n y la versiÃ³n usando el comandoconda list(conda) ypip freeze(pip).<!– ## Running the tests –><!– Explain how to run the automated tests for this system –><!– ### Break down into end to end testsExplain what these tests test and why` Give an example `–><!– ### And coding style testsExplain what these tests test and why` Give an example `–>
<!–
## DeploymentAdd additional notes about how to deploy this on a live system –><!– ## Built With[Dropwizard](http://www.dropwizard.io/1.0.2/docs/) - The web framework used[Maven](https://maven.apache.org/) - Dependency Management[ROME](https://rometools.github.io/rome/) - Used to generate RSS Feeds –><!– ## ContributingPlease read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us. –><!– ## VersioningWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).  –>## AutoresSergio Chumacero-trabajo inicial- [GitHub](https://github.com/sergio-chumacero) - contacto:sergio.chumacero.fi@gmail.com## LicenseEste proyecto se encuentra bajo la licencia MIT, que es del tipo “open source”. VÃ©ase [LICENSE.md](LICENSE.md) para ver detalles.<!– This project is licensed under the MIT License - see the  –><!– ## ReconocimientosHat tip to anyone whose code was usedInspirationetc –>
Package: aapt
AaptAndroid Asset Packaging Tool for Python3Exampleimportaapthelp=aapt.aapt('--help')print(help)ls=aapt.ls('./xx.apk')print(ls)apk_info=aapt.get_apk_info('./xxx.apk')print(apk_info)# save iconfromPILimportImageapk_info=aapt.get_apk_and_icon('./xxx.apk')byte_stream=io.BytesIO(apk_info['icon_byte_value'])img=Image.open(byte_stream)img.save('./1.png')# upload filerequests.post(url,files={'file':apk_info['icon_byte_value']})APIaapt(args)ls(file_path)dump(file_path, values)packagecmd(file_path, command)remove(file_path, files)add(file_path, files)crunch(resource, output_folder)single_crunch(input_file, output_file):version()get_apk_info(file_path)
Package: aapy
Python code to retrieve data from theEPICS Archiver Appliance.UsageNote on timezonesWhen you pass a datetime to aapy it doesn't know by default what timezone
that datetime is supposed to be in. It will assume that it is the local
timezone, but will print a warning. If you pass it a timezone-aware
datetime no warning will be printed. You can useutc_datetime()as
a shortcut:>>> from aa.utils import utc_datetime
>>> utc_datetime(2019, 10, 7, 17) # 5pm UTC on 7th October 2019Fetching dataTo retrieve data, create the appropriate fetcher>>> from aa.js import JsonFetcher
>>> jf = JsonFetcher('archappl.diamond.ac.uk', 80)You can request a single event, returning an ArchiveEvent object:>>> from datetime import datetime
>>> event = jf.get_event_at('SR-DI-DCCT-01:SIGNAL', datetime.now())
WARNING:root:Assuming timezone for 2019-10-07 16:42:13.301672 is Europe/London
Archive event for PV SR-DI-DCCT-01:SIGNAL: timestamp 2019-10-07
15:42:04.876639 UTC value [301.33007915] severity 0
>>> event.value
array([300.77982715])
>>> event.utc_datetime
datetime.datetime(2019, 10, 7, 16, 2, 54, 928836, tzinfo=<UTC>)You can also request a range of events, returning an ArchiveData object:>>> data = jf.get_values('SR-DI-DCCT-01:SIGNAL', utc_datetime(2018, 1, 7), utc_datetime(2018, 1, 8))
>>> data.values
array([[2.51189843e-03],
   [1.56371643e-03],
   [5.54392030e-04],
   ...,
   [2.77373366e+02],
   [2.77329542e+02],
   [2.77287664e+02]])
>>> data.utc_datetimes
array([datetime.datetime(2018, 1, 6, 23, 59, 59, 3897, tzinfo=<UTC>),
   datetime.datetime(2018, 1, 7, 0, 0, 2, 3975, tzinfo=<UTC>),
   datetime.datetime(2018, 1, 7, 0, 0, 5, 4066, tzinfo=<UTC>), ...,
   datetime.datetime(2018, 1, 7, 23, 59, 53, 3885, tzinfo=<UTC>),
   datetime.datetime(2018, 1, 7, 23, 59, 56, 3825, tzinfo=<UTC>),
   datetime.datetime(2018, 1, 7, 23, 59, 59, 3726, tzinfo=<UTC>)],
  dtype=object)
>>> len(data)
28764Developmentaapy uses Pipenv to manage its dependencies.To install development requirements:pipenv install --devTo run the tests and static checks:pipenv run tests
Package: aa-ravworks-exporter
AllianceAuth Ravworks ExporterThis is a plugin forAllianceAuththat exports ESI data to a config file forRavworks.PrerequisitesThis plugin requires a working AllianceAuth installation with v3 as a minimum version. See theAllianceAuth installation instructionsfor more information.Data from ESI are not directly fetched by this application, instead it relies on other AllianceAuth plugins. Currently the following plugins are supported:Skills:MemberAuditCorpToolsStructures:aa-structuresIf there are multiple plugins for the same functionality, only 1 is needed. If no plugin is installed, that functionality will be unavailable.InstallationInstall the package with pip:pipinstallaa-ravworks-exporterAdd'ravworks_exporter',to yourINSTALLED_APPSinlocal.pyBasic usageDownload the config file from Ravworks website. This apps doesn't directly create the config files but rather update existing ones with data from ESI.Use it in the form in this plugin page on AllianceAuth.Download the update config file and use it on Ravworks website.
Package: aarc-entitlement
This package provides python classes to create, parse and compare entitlements according
to the AARC recommendations G002 and G069.InstallationInstall using pip:pip install aarc-entitlementDocumentationThe documentation is available athttps://aarcentitlement.readthedocs.io.The G002 recommendation can be found athttps://aarc-community.org/guidelines/aarc-g002.ExamplesCheck if a user entitlement permits usage of a serviceimportaarc_entitlement# This entitlement is needed to use a servicerequired=aarc_entitlement.G002("urn:geant:h-df.de:group:aai-admin")# This entitlement is held by a user who wants to use the serviceactual=aarc_entitlement.G002("urn:geant:h-df.de:group:aai-admin:role=member")# Is the user permitted to use the service, because of its entitlement `actual`?permitted=actual.satisfies(required)# -> True here# Are the two entitlements the same?equals=required==actual# -> False hereG069 Entitlement NormalizationStarting with recommendation G069 the specification requires normalization of entitlements.
When usingAarcEntitlementG069the library produces normalized representations.importaarc_entitlementnot_normalized="UrN:NiD:ExAmPlE.oRg:group:Minun%20Ryhm%c3%a4ni"normalized=repr(aarc_entitlement.G069(not_normalized))# -> "urn:nid:example.org:group:Minun%20Ryhm%C3%A4ni"Tests, Linting and DocumentationRun tests for all supported python versions:# run tests, coverage and linter
tox

# build docs
tox -e docs

# After this, the documentation should be located at `doc/build/index.html`.PackagingTo upload a new package version to pypi use the Makefile:# build the package
make dist

# upload the package to pypi
make uploadFunding NoticeThe AARC project has received funding from the European Union’s Horizon 2020
research and innovation programme under grant agreement No 653965 and 730941.
Package: aarc-g002-entitlement
AARC G002 Entitlement ParserDeprecation warningThe newerAarcEntitlementsupports AARC-G002 and the updated version AARC-G069.IntroductionThis package provides a python Class to parse and compare entitlements according
to the AARC-G002 Recommendationhttps://aarc-community.org/guidelines/aarc-g002.Examplefromaarc_g002_entitlementimportAarc_g002_entitlementrequired=Aarc_g002_entitlement('urn:geant:h-df.de:group:aai-admin',strict=False)actual=Aarc_g002_entitlement('urn:geant:h-df.de:group:aai-admin:role=member#backupserver.used.for.developmt.de')# is a user with actual permitted to use a resource which needs required?permitted=required.is_contained_in(actual)# True in this case# are the two entitlements the same?equals=required==actual# False in this caseFor more examples:./example.pyInstallationpip --user install aarc-g002-entitlementDocumentationtox -e docsAfter this, the documentation should be located atdoc/build/index.html.Documentation is also available atReadthedocsTestsRun tests for all supported python versionstoxFunding NoticeThe AARC project has received funding from the European Union’s Horizon
2020 research and innovation programme under grant agreement No 653965 and
730941.
Package: aarghparse
MotivationI was having shower and this name came up.At the moment this is a collection ofargparseextensions I have written and found useful in recent times.Features@arg_converterdecorator to write simple argument value parsers without theargparse.Actionboilerplate@subcommanddecorator to save you from all theadd_subparsersandset_defaults(func=).@clidecorator to generate a command-line interface.ExampleThe example below combines all the features, but the tool doesn’t enforce it on you.If you have an existingargparse.ArgumentParserdefinition, you should be able to replace it withaarghparseby just changing the initialisation line toparser =aarghparse.ArgumentParser(...).importdatetimeasdtimportdateutil.tzfromaarghparseimportArgumentParser,arg_converter,cli@clidefcalendar_cli(parser:ArgumentParser,subcommand:ArgumentParser.subcommand):"""
    Command-line calendar.
    """parser.add_argument('--date-format',default=None,)@arg_converterdeftz_arg(value):returndateutil.tz.gettz(value)@subcommand(name="now",args=[["--tz",{"action":tz_arg,"help":"Timezone",}],],)defnow_cmd(args):"""
        Prints today's date.
        """date_format=args.date_formator"%Y-%m-%d%H:%M:%S"print(dt.datetime.now(tz=args.tz).strftime(date_format))if__name__=="__main__":calendar_cli.run()If you installpython-dateutilthen you can try the above with:python-maarghparse.examples.calendar--helppython-maarghparse.examples.calendarnow--helppython-maarghparse.examples.calendarnow--tz"Europe/Riga"python-maarghparse.examples.calendar--date-format"%d.%m.%Y."now--tz"Europe/Riga"
Package: aa-routing
Routing for Alliance AuthRouting is a pathfinding plugin forAlliance Auth.Featuresdef route_path(source: int, destination: int, mode="p_shortest",  algorithm="astar", edges: list = [], static_cache: bool = False) -> List[int]:def route_length(source: int, destination: int, mode="p_shortest",  algorithm="astar", edges: List = [], static_cache: bool = False ) -> int:def systems_range(source: int, range: int, mode="p_shortest", edges: list = [], static_cache: bool = False) -> List:A pregenerated optional Graph dict, to reduce DB load and processing for mass use, cannot guarantee accuracy without shipping new versions.ImplementationsPlannedAA Drifters
AA IncursionsInstallationRouting is an App forAlliance Auth, Please make sure you have this installed. Routing is not a standalone Django ApplicationStep 1 - Install apppipinstallaa-routingStep 2 - Configure Auth settingsConfigure your Auth settings (local.py) as follows:Add'routing'toINSTALLED_APPSAdd below lines to your settings file:Step 3 - Maintain Alliance AuthRun migrationspython manage.py migrateGather your staticfilespython manage.py collectstaticRestart your projectsupervisorctl restart myauth:Step 4 - ConfigurationIn the Admin interface, visitroutingor<AUTH-URL>/admin/routingSettingsNameDescriptionDefaultContributingMake sure you have signed theLicense Agreementby logging in athttps://developers.eveonline.combefore submitting any pull requests. All bug fixes or features must not include extra superfluous formatting changes.
Package: aars
AARS - Aleph Active Record SDKAARS is a powerful and flexible Python library built on top of the Aleph decentralized storage network, designed to help you build better backends for your decentralized applications. It provides an easy-to-use interface for managing and querying your data, with a focus on performance and versatility.FeaturesAsynchronous, high-performance data storage and retrievalCustomizable schema with support for different data typesIndexing for efficient queryingRevision history tracking for recordsSupport for forgetting data (GDPR compliant)Built-in pagination for large result setsInstallationInstall AARS using pip:pipinstallaarsGetting StartedTo get started with AARS, you will need to define your data schema by creating classes that inherit from Record. These classes represent the objects you want to store and query on the Aleph network.Here's an example of how you can implement a simple social media platform, that we'll call "Chirper":fromsrc.aarsimportRecordclassUser(Record):username:strbio:strclassChirp(Record):author:Usercontent:strlikes:inttimestamp:intIn this example, we have a User class representing a user of Chirper, and a Chirp class representing a user's message. Now, let's create some indices to make querying our data more efficient:fromsrc.aarsimportIndexIndex(User,'username')Index(Chirp,'author')Index(Chirp,'timestamp')With the schema defined and indices created, we only need to initialize an AARS session:fromsrc.aarsimportAARSAARS()It is enough to call the constructor once, and it will automatically initialize the session with the default settings.We can now perform various operations, such as creating new records, querying records, and updating records:importtime# Create a new usernew_user=awaitUser(username='chirpy_user',display_name='Chirpy User',bio='I love chirping!').save()# Create a new chirpnew_chirp=awaitChirp(author=new_user,content='Hello, Chirper!',likes=0,timestamp=int(time.time())).save()# Query chirps by authorchirps_by_author=awaitChirp.filter(author=new_user).all()# Update a chirpnew_chirp.likes+=1updated_chirp=awaitnew_chirp.save()DocumentationFor detailed documentation, including advanced features such as revision history, forgetting data, and pagination,
refer to the docs folder in the repository orvisit the official documentation website.Building the DocsTo build the documentation, you will need to install the dependencies listed in the requirements.txt and docs-requirements.txt. Then, run the following command:mkdocsbuildYou can serve the documentation locally by running the following command:mkdocsserveContributingContributions to AARS are welcome! If you have found a bug, want to suggest an improvement, or have a question, feel free to open an issue on the GitHub repository.LicenseAARS is released under theMIT License.
Package: aartfaac-arthur
A set of tools for building AARTFAAC visualisations.Things like:A fast and simple imagerTools for streaming images to a rtsm server (youtube)Tools for visualising all kind of other meta datarequirementsPython 3, but python 2 mostly works.Why ARTHUR?because Arthur is the anthropomorphic AARTFAACNotesThis repo uses git lfs. If you want to run the test suite
dont forget to unzip the tarball intest/data.
Package: aasaanjobs-notificationhub
Python Aasaanjobs/Waahjobs NotificationHub ClientPython SDK to communicate with Aasaanjobs/Waahjobs Notification Hub and send notifications to users.Supported Notification ChannelsShort Messaging Service (SMS)EmailWhatsAppMobile Push (FCM)Installationpip install aasaanjobs-notificationhubUsageEach notification is referred to asTaskin this library. A singleTaskcan contain
multiple channels, i.e., a singleTaskcan contain bothEmailandWhatsAppnotification data.
ThisTaskis then validated viaProtocol Buffersand pushed to corresponding Notification Hub Amazon SQS queue.ForTransactionalnotificationsNOTIFICATION_HUB_SQS_QUEUE_NAMEenvironment variable should be configured.ForMarketingnotificationsNOTIFICATION_HUB_MARKETING_SQS_QUEUE_NAMEenvironment variable should be configured.ForOTPnotificationsNOTIFICATION_HUB_OTP_SQS_QUEUE_NAMEenvironment variable should be configured.ConfigurationEach application which uses this library must configure Amazon SQS configurations to successfully
send notification task to Hub.The following keys can be defined in the settings module if Django application or can be defined as environment variablesSettingDescriptionNOTIFICATION_HUB_SQS_ACCESS_KEY_IDAccess Key of the IAM role which has access to the Hub SQSNOTIFICATION_HUB_SQS_SECRET_ACCESS_KEYSecret Access Key of the IAM role which has access to the Hub SQSNOTIFICATION_HUB_SQS_REGIONAWS Region where the Hub SQS residesNOTIFICATION_HUB_SQS_QUEUE_NAMEName of the Hub SQS QueueNOTIFICATION_HUB_MARKETING_SQS_QUEUE_NAMEName of the Hub Marketing SQS QueueNOTIFICATION_HUB_OTP_SQS_QUEUE_NAMEName of the Hub OTP SQS Queue
Package: aasalert
AASJobAlertAASJobAlert is a Python script for checking the AAS Job Register.Some code borrowed from thistutorial.InstallationUse the package managerpipto install aasalert.pipinstallaasalertUsageusage:aasalert[-h]keywordSearchtheAASjobregisterforpost-docpositionsinthelastyear.


positionalarguments:keywordKeywordtosearchtheAASjobregisterfor.

optionalarguments:-h,--helpshowthishelpmessageandexitThis is best used as a cronjob for regular checks of AAS. We can usemailxto generate a email alert. For example:crontab-e0000**1aasalertkeyword2>&1|mailx-E-s"AAS Job Alert"your.email@address.comSeethis linkfor examples of how to use crontab.ContributingPull requests are welcome.LicenseMIT